-
1Installation of NVIDIA L4T (or other base OS)
On a TK1, I installed L4T and all associated drivers/addons: https://developer.nvidia.com/embedded/linux-tegra-archive
I won't cover install of the base device OS here. Most other debian-based distros would likely work. -
2Installation of Preliminary Packages
sudo apt-get install libmad0 libjpeg62 libva1 libstdc++6
-
3Adding Repository and Updating
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
-
4Installation of GCC 4.9 with Alternative Support
sudo apt-get install gcc-4.9 g++-4.9
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9
(--slave will cause g++ to be switched along with gcc, to the same version. More on switching in next step.)
-
5Installation of GCC 4.8 with Alternative Support
sudo apt-get install gcc-4.8 g++-4.8
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.8
You can then check which one is set, and change back and forth using:
sudo update-alternatives --config gcc
-
6Installation of libstdc++6
wget http://security.ubuntu.com/ubuntu/pool/main/g/gcc-5/libstdc++6_5.4.0-6ubuntu1~16.04.2_amd64.deb
dpkg -i libstdc++6_5.4.0-6ubuntu1~16.04.2_amd64.deb
-
7Installation of libstdc++arm
wget http://mirrors.kernel.org/ubuntu/pool/universe/libs/libstdc++-arm-none-eabi/libstdc++-arm-none-eabi-newlib_4.9.3+svn227297-1+8_all.deb
dpkg -i libstdc++-arm-none-eabi-newlib_4.9.3+svn227297-1+8_all.deb
After this, I proceeded to set up the compilation environment.
-
8Add Compiler Dev Tools
sudo apt-get install cmake gcc g++ libmad0-dev libgtk2.0-dev binutils-dev git-core make libasound2-dev yasm libc6-dev libogg-dev libvorbis-dev libbz2-dev zlib1g-dev libjpeg62-turbo-dev libpng12-0 libxtst-dev libxrandr-dev libglew-dev libglu1-mesa-dev mesa-common-dev automake autoconf libva-dev
-
9Cloning and Initializing Source Code
git clone https://github.com/stepmania/stepmania stepmania-src
cd stepmania-src
git submodule init
git submodule update
-
10Creating Build Directory
mkdir Build
cd Build
cmake .. cmake ..
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.