Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

LMN on Raspberry Pi 4

Featured Replies

Hi all

The last days, I have tried to install and use Little Navmap on a Raspberry Pi 4 8Gb!

I have had no luck to get it running!
I have tried on Ubuntu Desktop 20.10: ubuntu-20.10-preinstalled-desktop-arm64+raspi.img.xz and Raspberry Pi 64bit: 2021-03-04-raspios-buster-arm64.

Both fresh installed and updated on a 64Gb Sd card.

the Ubuntu gives me these outputs:

$ uname -a
Linux sten-desktop 5.8.0-1021-raspi #24-Ubuntu SMP PREEMPT Tue Apr 13 11:00:57 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux

$ ./littlenavmap
bash: ./littlenavmap: cannot execute binary file: Exec format error

$ ldd littlenavmap
    not a dynamic executable


And the RPI4 gives these outputs:

~/LittleNavmap $ ./littlenavmap
bash: ./littlenavmap: cannot execute binary file: Exec format error

~/LittleNavmap $  uname -a
Linux raspberrypi 5.10.17-v8+ #1403 SMP PREEMPT Mon Feb 22 11:37:54 GMT 2021 aarch64 GNU/Linux

~/LittleNavmap $ ldd littlenavmap
    not a dynamic executable

-rwxr-xr-x  1 pi pi 18824184 Mar 29 14:22  littlenavmap


Can anybody tell what I have to do to get it running? Is there any dependencies? Or is  it simply impossible to run it on RPI4?

Best regards

Sten Kristensen

  • Replies 100
  • Views 9.2k
  • Created
  • Last Reply

That's why because you try to launch binaries compiled for x86-64 architecture on Raspbery Pi that uses ARM processors and aarch64 architectue.
To get working LNM under Raspberry Pi you have to download LNM sources from Github and recompile them for aarch64 architecture.
The similar problem will be in macOS  case - as the Apple's created its new macBook with M1 series (ARM derived) processor and it's necessary recompilation LNM sources for this architecture.

Regards,
Piotr

Never give up ...  - here are details of the whip-round: https://zrzutka.pl/en/pewr2d  -> to help my younger son fights against Acute Lymphoblastic Leukemia (blood cancer).

  • Author

Thank you.

 

I'll try to install the qt5 compiler and test it out!

R.

Sten

It would be very interesting to know how smkr got on with the compiling and how he did it.  It would be great if one could run LNM on a raspberry pi as it is very cheap to buy and run, and one could have it on a monitor beside the sim. I realise you could still view the basic data via the web tool, but it would be really good to have all the functionality of LNM on the Pi itself.  
The pi seems such an ideal  way to run LVM, though I expect one would need the Pi 4 with the full 8gb of ram. I also realise that maintaining yet another version would be additional work for the developer, of course. 
 

Anyway would be interested to know how this progresses 

many thanks

Upkeep

In theory it's possible to make a cross-compilation under x86_64 for aarch64 architecture, but at the end testing phase always requires RPi 4 (or other 64 bit ARM) hardware side.
When I find some spare time I'll try to do some experiments with cross-compilation (but I don't promise it will be soon) 🙂

Regards,
Piotr

Never give up ...  - here are details of the whip-round: https://zrzutka.pl/en/pewr2d  -> to help my younger son fights against Acute Lymphoblastic Leukemia (blood cancer).

Thanks very much ppgas. Very kind of you. 
 

best wishes  Upkeep

  • Author

Hi

I cannot install QT on the raspberry or compile it!!

I have used different sites with instructions on how to install QT, but without luck. I only have win10 machines and some RPI's!

So until either I can get a precompiled version of LMP or clear instruction in how to install QT i'm lost!

 

br.

Sten

6 hours ago, smkr said:

I cannot install QT on the raspberry or compile it!!

1) Which exactly OS you've got installed on RPi4 (Raspbian or whatever else? Which version? etc.)?

2) What commands did you use to install QT on RPi4?

3) What errors did you get during installation process?

Regards,
Piotr

Never give up ...  - here are details of the whip-round: https://zrzutka.pl/en/pewr2d  -> to help my younger son fights against Acute Lymphoblastic Leukemia (blood cancer).

  • Author

I have installed Raspberry Pi 64bit: 2021-03-04-raspios-buster-arm64.

The kernel is : Linux test 5.10.17-v8+ #1403 SMP PREEMPT Mon Feb 22 11:37:54 GMT 2021 aarch64 GNU/Linux.   Is that correct?

I'm using this turorial:https://www.tal.org/tutorials/building-qt-512-raspberry-pi

I came to this "Configure the Qt build environment" and then it went wrong!

The configure command gives this error:  "g++: error: unrecognized command line option '-mfpu=crypto-neon-fp-armv8' "

R.

Sten

Edited by smkr

Every version is correct 🙂
You've got newest available Raspbian version with kernel 5.10.x series (here is exactly .17-v8 but it can be upgraded when newer kernel will be released in update channel).

Now I need an answers to questions 2) and 3)

Regards,
Piotr

Never give up ...  - here are details of the whip-round: https://zrzutka.pl/en/pewr2d  -> to help my younger son fights against Acute Lymphoblastic Leukemia (blood cancer).

  • Author

I have edited the above reply.

/Sten

But why you have to recompile QT library? 
Not easier to install QT5 itself under RPi4? 😛

Here are the commands you should write:

1) sudo apt-get update
2) sudo apt-get upgrade
3) sudo apt-get install qt5-default
4) sudo apt-get install qtcreator
5) sudo apt-get install qtdeclarative5-dev

If you get in meantime such an error:  "Unable to fetch some archives,maybe run apt-get update or try with --fix-missing?"
try first launch update and upgrade phase (points 1) and 2) ) with --fix-missing switch: sudo apt-get update --fix-missing

Try above method and please report does it work on your RPi4.

Regards,
Piotr


 

Never give up ...  - here are details of the whip-round: https://zrzutka.pl/en/pewr2d  -> to help my younger son fights against Acute Lymphoblastic Leukemia (blood cancer).

  • Author

Thank you PPGAS

 

I wil try that tomorrow.

I was not aware that QT was avilable for RPI!!

Goodnight

Sten

 

 

2 minutes ago, smkr said:

I was not aware that QT was avilable for RPI!!


Until today's digging in RPi4 (and similar) documentation I also haven't been awaring this fact (even haven't got Raspberry Pi -really) 🙂

Simply, at Information Technologies area for solving problems usually it's necessary exactly digging, reading and analyzing all available documentation ...
Doesn't matter are you developer, devops engineer, admin or whatever else here. Such a kind of job 😛

Regards,
Piotr

ps. don't forget to report does it work or not, ok?

Never give up ...  - here are details of the whip-round: https://zrzutka.pl/en/pewr2d  -> to help my younger son fights against Acute Lymphoblastic Leukemia (blood cancer).

  • Author

A small update before I stop for today.

I think I have installed what is needed in QT5.

Now when trying to compile Marble I get this error when running make:

/home/pi/projects/marble/src/plugins/render/gpsinfo/GpsInfo.cpp:87:24: error: return type ‘class QIcon’ is incomplete
 QIcon GpsInfo::icon () const
                        ^~~~~

/home/pi/projects/marble/src/plugins/render/gpsinfo/GpsInfo.cpp: In member function ‘virtual void Marble::GpsInfo::icon() const’:
/home/pi/projects/marble/src/plugins/render/gpsinfo/GpsInfo.cpp:89:51: error: invalid use of incomplete type ‘class QIcon’
     return QIcon(QStringLiteral(":/icons/gps.png"));
                                                   ^

In file included from /usr/include/aarch64-linux-gnu/qt5/QtCore/qobject.h:54,
                 from /usr/include/aarch64-linux-gnu/qt5/QtCore/QObject:1,
                 from /home/pi/projects/marble/src/lib/marble/RenderPlugin.h:17,
                 from /home/pi/projects/marble/src/lib/marble/AbstractFloatItem.h:18,
                 from /home/pi/projects/marble/src/plugins/render/gpsinfo/GpsInfo.h:20,
                 from /home/pi/projects/marble/src/plugins/render/gpsinfo/GpsInfo.cpp:11:
/usr/include/aarch64-linux-gnu/qt5/QtCore/qmetatype.h:1943:1: note: forward declaration of ‘class QIcon’
 QT_FOR_EACH_STATIC_GUI_CLASS(QT_FORWARD_DECLARE_STATIC_TYPES_ITER)
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

make[2]: *** [src/plugins/render/gpsinfo/CMakeFiles/GpsInfo.dir/build.make:80: src/plugins/render/gpsinfo/CMakeFiles/GpsInfo.dir/GpsInfo.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2278: src/plugins/render/gpsinfo/CMakeFiles/GpsInfo.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

Any suggestion for what to do? Is something with the blue lines(My coloring)

 

Goodnight

/Sten

 

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.