-
-
Notifications
You must be signed in to change notification settings - Fork 71
Linux
This page describes the steps to setup a development environment on a Debian (v7 or 8) or Ubuntu Linux distribution for LK8000. For other Linux distributions these steps are similar. When compiling for other platforms a cross-compiler will be required.
In this case the native compiler will be used, since we are compiling for the same architecture ;)
sudo apt-get install build-essential pkg-config libsdl2-dev libsdl2-mixer-dev libzzip-dev libboost-dev libfreetype6-dev libpng-dev libgeographic-dev xsltproc imagemagick fonts-dejavu zip libgl1-mesa-dev libegl1-mesa-dev libx11-dev libasound2-dev libsndfile1-dev
Form the root of LK8000 project:
make TARGET=LINUX all
In this case it will be necessary to install the arm-mingw32ce cross compiler.
- download prebuild toolchain:
wget http://lk8000.it/toolchain/arm-mingw32ce-9.3.0.buster.x86_64.tar.xz
- extract archive:
tar -xJf arm-mingw32ce-9.3.0.buster.x86_64.tar.xz
- move it where you want to install toolchain ex: /opt/
mv arm-mingw32ce /opt/arm-mingw32ce
- add toolchain path to PATH envVar
PATH=$PATH:/opt/arm-mingw32ce/bin
Form the root of LK8000 project:
make TARGET=PNA all
Also in this case it necessary to use a cross compiler: mingw32
Mingw32 (Minimalist GNU for Windows) package needs to be installed.
sudo apt-get install mingw32
Form the root of LK8000 project:
make TARGET=PC all
It is possible to build in parallel the objects using the option J (jobs) of make:
make -j4 TARGET=PC all
Where 4 is the number of cores/processors present on your machine.