Skip to content
Baptiste edited this page Aug 21, 2024 · 29 revisions

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.

Linux executable

In this case the native compiler will be used, since we are compiling for the same architecture ;)

Install all the necessary tools

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

Compile

Form the root of LK8000 project:

make TARGET=LINUX all

WindowsCE executable for PNA devices

In this case it will be necessary to install the arm-mingw32ce cross compiler.

Install the arm-mingw32ce cross compiler

  1. download prebuild toolchain: wget http://lk8000.it/toolchain/arm-mingw32ce-9.3.0.buster.x86_64.tar.xz
  2. extract archive: tar -xJf arm-mingw32ce-9.3.0.buster.x86_64.tar.xz
  3. move it where you want to install toolchain ex: /opt/ mv arm-mingw32ce /opt/arm-mingw32ce
  4. add toolchain path to PATH envVar PATH=$PATH:/opt/arm-mingw32ce/bin

Cross-compile

Form the root of LK8000 project:

make TARGET=PNA all

Windows executable for PC

Also in this case it necessary to use a cross compiler: mingw32

Install MinGW compiler

Mingw32 (Minimalist GNU for Windows) package needs to be installed.

sudo apt-get install mingw32

Cross-compile

Form the root of LK8000 project:

make TARGET=PC all

Speed-up compile process

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.