Skip to content

CompilingRaspberryPI

Alexander Barthel edited this page May 6, 2021 · 4 revisions

Compiling Little Navmap for a Raspberry PI

Thanks to Sten Kristensen for working this out!

Related Avsim thread.

new raspbian buster 64bit 64GB sd-card (I used an Raspberry Pi 4 Model B 8Gb ram to compile)

sudo apt update
sudo apt full-upgrade
sudo  nano /etc/apt/sources.list # ->uncomment the last 3 lines
sudo apt install patchelf
sudo apt-get install build-essential
sudo apt-get install cmake
sudo apt-get install qt5-*
sudo apt-get install qtcreator
sudo apt-get install qtdeclarative5-dev 
sudo apt-get install   qtscript5-dev 
sudo apt-get install libqt5*

mkdir projects (in Your home directory)

edit( with Your default editor) .bashrc and insert export APROJECTS=/home/pi/projects at the bottom.

sudo reboot
cd $APROJECTS

git clone --single-branch --branch release/3.6 https://github.com/albar965/atools.git
mkdir build-atools-release
cd build-atools-release
qmake ../atools/atools.pro CONFIG+=release
make -j4
cd $APROJECTS

git clone --single-branch --branch lnm/1.1 https://github.com/albar965/marble.git
mkdir Marble-release
cd Marble-release
cmake -DCMAKE_BUILD_TYPE=Release -DSTATIC_BUILD=TRUE -DQTONLY=TRUE -DBUILD_MARBLE_EXAMPLES=NO -DBUILD_INHIBIT_SCREENSAVER_PLUGIN=NO -DBUILD_MARBLE_APPS=NO -DBUILD_MARBLE_EXAMPLES=NO -DBUILD_MARBLE_TESTS=NO -DBUILD_MARBLE_TOOLS=NO -DBUILD_TESTING=NO -DBUILD_WITH_DBUS=NO -DMARBLE_EMPTY_MAPTHEME=YES -DMOBILE=NO -DWITH_DESIGNER_PLUGIN=NO -DWITH_Phonon=NO -DWITH_Qt5Location=NO -DWITH_Qt5Positioning=NO -DWITH_Qt5SerialPort=NO -DWITH_ZLIB=NO -DWITH_libgps=NO -DWITH_libshp=NO -DWITH_libwlocate=NO -DCMAKE_INSTALL_PREFIX=$APROJECTS/Marble-release -DEXEC_INSTALL_PREFIX=$APROJECTS/Marble-release  ../marble/
make -j4
make install
cd $APROJECTS

git clone --single-branch --branch release/2.6 https://github.com/albar965/littlenavmap.git 
 mkdir build-littlenavmap-release
    cd build-littlenavmap-release
    qmake  ../littlenavmap/littlenavmap.pro CONFIG+=release 
make -j4
make copydata
make deploy

copy database files from simulator computer to /home/USERNAME/.config/ABarthel/little_navmap_db

That should be it! Enjoy

/Sten

Clone this wiki locally