Page 1 of 1

To get tales of maj'eyal working in chromeos on lenovo 100e

Posted: Tue Mar 31, 2020 5:05 pm
by elegantuni
sudo sed -i -e 's/main/main contrib/' /etc/apt/sources.list
Then using sudo vi /etc/apt/sources.list add too lines to /etc/apt/sources.list copy the deb lines but use deb-src for the duplicate lines. Make sure to keep the deb lines.
sudo dpkg --add-architecture armhf
sudo apt-get update
sudo apt-get install build-essential
sudo apt-get install libc6:armhf libstdc++6:armhf
sudo apt-get build-dep libsdl1.2debian
sudo apt-get install subversion mercurial autoconf automake libtool
sudo apt-get install libopenal-dev libogg-dev libpng-dev libvorbis-dev
sudo apt-get install libglu1-mesa-dev libfreetype6-dev xorg-dev
sudo apt-get install libasound2-dev libaudiofile-dev
sudo apt-get install premake4
sudo apt-get install libsdl2-dev:armhf
sudo apt-get install libsdl2-ttf-dev:armhf
sudo apt-get install libsdl2-image-dev:armhf
sudo apt-get install libsdl2-gfx-dev:armhf
sudo apt-get install libsdl2-mixer-dev:armhf
sudo apt-get install libsdl2-net-dev:armhf
sudo apt-get install libopenal-dev:armhf
sudo apt-get install libvorbis-dev:armhf
Change in to your tales of maj'eyal source directory with premake4.lua in it.
sed -i 's/opt\/SDL-2.0/usr/' premake4.lua
make clean
cd build
Apply the patch t-engine-1_6_7.txt with t-engine-1_6_7 in the build folder. The patches should be in the root directory with premake4.lua for the next instruction to work.
patch te4core.lua < ../t-engine-1_6_7.txt
cd ..
cd src
Apply the patches t-engine4-tSDL.txt and t-engine4-music.txt
patch tSDL.h < ../t-engine4-tSDL.txt
patch music.h < ../t-engine4-music.txt
cd ..
sudo apt-get install gcc-arm-linux-gnueabihf
sudo apt-get install g++-arm-linux-gnueabihf
In the folder with premake4
export CC="arm-linux-gnueabihf-gcc"
export CXX="arm-linux-gnueabihf-g++"
export AR="arm-linux-gnueabihf-ar"
premake4 clean
premake4 gmake
make -j2