##Install git sudo apt install git ##Install gcc / g++ 13.1 sudo apt install software-properties-common -y sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt update sudo apt install gcc-13 g++-13 -y sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 13 --slave /usr/bin/g++ g++ /usr/bin/g++-13 ##Install latest CMake sudo snap install cmake --classic ##Install Ninja build (alternative to Makefiles) sudo apt install ninja-build -y ## Download and compile boost cd /repos/libs/ #Replace w/ latest version of boost from boost.org wget https://boostorg.jfrog.io/artifactory/main/release/1.83.0/source/boost_1_83_0.tar.bz2 gunzip -d ./boost_1_79_0.tar.gz tar xf ./boost_1_79_0.tar cd boost_1_79_0 ./booststrap ./b2 install ## Install libjpeg and png sudo apt install libjpeg-dev -y sudo apt install libpng-dev -y sudo apt install libxext-dev -y ## Install GLEW sudo apt install libglew-dev ## Install SDL2 cd /repos/libs wget https://github.com/libsdl-org/SDL/releases/download/release-2.28.1/SDL2-2.28.1.tar.gz gunzip -d ./SDL2-2.28.1.tar.gz tar xf ./SDL2-2.28.1.tar cd SDL2-2.28.1/ #Build using ccmake (mkdir build && ccmake ../src), use default build options make -j16 sudo make install ## Repeat above, but for SDL2_image cd /repos/libs wget https://github.com/libsdl-org/SDL_image/releases/download/release-2.6.3/SDL2_image-2.6.3.tar.gz #Build using ccmake (mkdir build && ccmake ../src), use default build options cd SDL2_image-2.6.3 make -j16 sudo make install ## Install ASSIMP cd /repos/libs wget https://github.com/assimp/assimp/archive/refs/tags/v5.2.5.tar.gz gunzip -d ./v5.2.5.tar.gz tar xf ./v5.2.5.tar cd assimp-5.2.5/ mkdir build && cd build && ccmake ../ # ENSURE in ccmake you set ASSIMP_NO_EXPORT=ON ***** (configure & generate) make -j16 sudo make install ## Install libfmt cd /repos/libs wget https://github.com/fmtlib/fmt/archive/refs/tags/10.1.1.tar.gz gunzip -d ./10.1.1.tar.gz tar xf ./10.1.1.tar cd fmt-10.1.1 && mkdir build && cd build ccmake ../ #(Turn off tests and doc (we don't need them))) make -j16 sudo make install ## Install Eigen 3.4 wget https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.tar.gz gunzip -d eigen-3.4.0.tar.gz tar xf eigen-3.4.0.tar.gz cd eigen-3.4.0.tar.gz && mkdir build && cd build ccmake ../ # Turn off testing, doc, mathjax make sudo make install #install libGLM sudo apt install libglm-dev ## Build AftrBurner using ccmake cd /repos/aburn/engine/ mkdir bg #(build debuG) cd bg ccmake ../src/aftr # Turn off these LIBS: FREE_TYPE, FREE_TYPE_GL_FONTS, GDAL) # Set CMAKE_BUILD_TYPE to Debug (No quotes, just Debug) make -j16 make install ### Now build a NewModule and test cd /repos/aburn/usr/modules unzip NewModule.zip cd NewModule mkdir bg && cd bg ccmake ../src # Turn off GTEST, set CMAKE_BUILD_TYPE to Debug # In aftr.conf, set the MSAA to 8 or less # on ARM 64, you have to export video setting for SDL export SDL_VIDEO_X11_VISUALID=0x44