April 26, 20215 yr Author Sorry I didn't answer the last few Q's It was not a permissions problem! after copying th db-files to the path Alex' post the LMN is now working!! The red bar in the Status bar is now gone and it is now showing: "AP,A,E,H,S....." and the Title bar shows "Little Navmap 2.6.11 - MSFS / N 1801" ls -lR is: $ ls -lR $HOME/.config/ABarthel /home/pi/.config/ABarthel: total 76 drwxr-xr-x 2 pi pi 4096 Apr 26 19:51 little_navmap_db -rw-r--r-- 1 pi pi 1548 Apr 26 19:51 little_navmap_fusionstyle.ini -rw-r--r-- 1 pi pi 2014 Apr 26 19:51 little_navmap.history -rw-r--r-- 1 pi pi 47352 Apr 26 19:51 little_navmap.ini -rw-r--r-- 1 pi pi 3820 Apr 26 19:51 little_navmap_mapstyle.ini -rw-r--r-- 1 pi pi 1548 Apr 26 19:51 little_navmap_nightstyle.ini -rw-r--r-- 1 pi pi 10 Apr 26 19:51 little_navmap_profile.track -rw-r--r-- 1 pi pi 27 Apr 26 19:51 little_navmap.track /home/pi/.config/ABarthel/little_navmap_db: total 935400 -rw------- 1 pi pi 90112 Apr 26 19:51 little_navmap_logbook_backup.sqlite -rw------- 1 pi pi 90112 Apr 26 19:49 little_navmap_logbook_backup.sqlite.1 -rw------- 1 pi pi 90112 Apr 26 19:46 little_navmap_logbook_backup.sqlite.2 -rw------- 1 pi pi 90112 Apr 25 20:27 little_navmap_logbook_backup.sqlite.3 -rw------- 1 pi pi 90112 Apr 25 20:27 little_navmap_logbook.sqlite -rw------- 1 pi pi 710729728 Apr 25 20:33 little_navmap_msfs.sqlite -rw------- 1 pi pi 245346304 Apr 25 20:27 little_navmap_navigraph.sqlite -rw------- 1 pi pi 20480 Apr 26 19:51 little_navmap_onlinedata.sqlite -rw------- 1 pi pi 425984 Apr 25 20:27 little_navmap_.sqlite -rw------- 1 pi pi 94208 Apr 26 19:51 little_navmap_track.sqlite -rw------- 1 pi pi 86016 Apr 25 20:27 little_navmap_userairspace.sqlite -rw------- 1 pi pi 53248 Apr 26 19:51 little_navmap_userdata_backup.sqlite -rw------- 1 pi pi 53248 Apr 26 19:49 little_navmap_userdata_backup.sqlite.1 -rw------- 1 pi pi 53248 Apr 26 19:46 little_navmap_userdata_backup.sqlite.2 -rw------- 1 pi pi 53248 Apr 25 20:27 little_navmap_userdata_backup.sqlite.3 -rw------- 1 pi pi 53248 Apr 25 20:27 little_navmap_userdata.sqlite -rwxrwxrwx 1 pi pi 425984 Dec 21 21:18 little_navmap_xp11.sqlite Regards A happy guy!! /Sten P.S. The next post comes with a new problem.😔
April 26, 20215 yr Sounds good. Permissions are ok supposed you're working as user "pi". Alex Alex' Projects: Little Navmap
April 26, 20215 yr Author Yes, it is easier and there is only me to use the RPI's. The problem, the last I hope, is that I can't run the program from terminal but only from QT Creator. /projects/littlenavmap-rel $ ./littlenavmap ./littlenavmap: error while loading shared libraries: libmarblewidget-qt5.so.25: cannot open shared object file: No such file or directory ldd: /projects/littlenavmap-rel $ ldd littlenavmap linux-vdso.so.1 (0x0000007fbb338000) libmarblewidget-qt5.so.25 => not found libz.so.1 => /lib/aarch64-linux-gnu/libz.so.1 (0x0000007fbb2c4000) libQt5Svg.so.5 => /lib/aarch64-linux-gnu/libQt5Svg.so.5 (0x0000007fbb25d000) libQt5PrintSupport.so.5 => /lib/aarch64-linux-gnu/libQt5PrintSupport.so.5 (0x0000007fbb1d2000) libQt5Widgets.so.5 => /lib/aarch64-linux-gnu/libQt5Widgets.so.5 (0x0000007fbab4c000) libQt5Gui.so.5 => /lib/aarch64-linux-gnu/libQt5Gui.so.5 (0x0000007fba5e1000) libQt5Sql.so.5 => /lib/aarch64-linux-gnu/libQt5Sql.so.5 (0x0000007fba584000) libQt5Xml.so.5 => /lib/aarch64-linux-gnu/libQt5Xml.so.5 (0x0000007fba537000) libQt5Network.so.5 => /lib/aarch64-linux-gnu/libQt5Network.so.5 (0x0000007fba379000) libQt5Core.so.5 => /lib/aarch64-linux-gnu/libQt5Core.so.5 (0x0000007fb9e67000) libGL.so.1 => /lib/aarch64-linux-gnu/libGL.so.1 (0x0000007fb9d71000) libpthread.so.0 => /lib/aarch64-linux-gnu/libpthread.so.0 (0x0000007fb9d42000) libstdc++.so.6 => /lib/aarch64-linux-gnu/libstdc++.so.6 (0x0000007fb9bb7000) libm.so.6 => /lib/aarch64-linux-gnu/libm.so.6 (0x0000007fb9afa000) libgcc_s.so.1 => /lib/aarch64-linux-gnu/libgcc_s.so.1 (0x0000007fb9ad6000) libc.so.6 => /lib/aarch64-linux-gnu/libc.so.6 (0x0000007fb9964000) /lib/ld-linux-aarch64.so.1 (0x0000007fbb30a000) libpng16.so.16 => /lib/aarch64-linux-gnu/libpng16.so.16 (0x0000007fb991f000) libharfbuzz.so.0 => /lib/aarch64-linux-gnu/libharfbuzz.so.0 (0x0000007fb9821000) libicui18n.so.63 => /lib/aarch64-linux-gnu/libicui18n.so.63 (0x0000007fb954e000) libicuuc.so.63 => /lib/aarch64-linux-gnu/libicuuc.so.63 (0x0000007fb9373000) libpcre2-16.so.0 => /lib/aarch64-linux-gnu/libpcre2-16.so.0 (0x0000007fb92f9000) libdouble-conversion.so.1 => /lib/aarch64-linux-gnu/libdouble-conversion.so.1 (0x0000007fb92d5000) libdl.so.2 => /lib/aarch64-linux-gnu/libdl.so.2 (0x0000007fb92c1000) libglib-2.0.so.0 => /lib/aarch64-linux-gnu/libglib-2.0.so.0 (0x0000007fb918e000) libGLdispatch.so.0 => /lib/aarch64-linux-gnu/libGLdispatch.so.0 (0x0000007fb9003000) libGLX.so.0 => /lib/aarch64-linux-gnu/libGLX.so.0 (0x0000007fb8fc1000) libfreetype.so.6 => /lib/aarch64-linux-gnu/libfreetype.so.6 (0x0000007fb8f02000) libgraphite2.so.3 => /lib/aarch64-linux-gnu/libgraphite2.so.3 (0x0000007fb8ecf000) libicudata.so.63 => /lib/aarch64-linux-gnu/libicudata.so.63 (0x0000007fb74d1000) libpcre.so.3 => /lib/aarch64-linux-gnu/libpcre.so.3 (0x0000007fb745e000) libX11.so.6 => /lib/aarch64-linux-gnu/libX11.so.6 (0x0000007fb7314000) libxcb.so.1 => /lib/aarch64-linux-gnu/libxcb.so.1 (0x0000007fb72dd000) libXau.so.6 => /lib/aarch64-linux-gnu/libXau.so.6 (0x0000007fb72ca000) libXdmcp.so.6 => /lib/aarch64-linux-gnu/libXdmcp.so.6 (0x0000007fb72b2000) libbsd.so.0 => /lib/aarch64-linux-gnu/libbsd.so.0 (0x0000007fb728c000) librt.so.1 => /lib/aarch64-linux-gnu/librt.so.1 (0x0000007fb7274000) and /projects/Marble-release/lib $ ls -al total 8740 drwxr-xr-x 4 pi pi 4096 Apr 25 16:28 . drwxr-xr-x 10 pi pi 4096 Apr 25 16:28 .. drwxr-xr-x 4 pi pi 4096 Apr 25 16:28 cmake lrwxrwxrwx 1 pi pi 13 Apr 25 16:28 libastro.so -> libastro.so.1 -rw-r--r-- 1 pi pi 275240 Apr 25 15:54 libastro.so.0.17.20 lrwxrwxrwx 1 pi pi 19 Apr 25 16:28 libastro.so.1 -> libastro.so.0.17.20 -rw-r--r-- 1 pi pi 653936 Apr 25 16:20 libmarbledeclarative.so lrwxrwxrwx 1 pi pi 25 Apr 25 16:28 libmarblewidget-qt5.so -> libmarblewidget-qt5.so.25 -rw-r--r-- 1 pi pi 7996032 Apr 25 16:17 libmarblewidget-qt5.so.0.25.2 lrwxrwxrwx 1 pi pi 29 Apr 25 16:28 libmarblewidget-qt5.so.25 -> libmarblewidget-qt5.so.0.25.2 drwxr-xr-x 3 pi pi 4096 Apr 25 16:28 marble So, what happens here? /Sten
April 26, 20215 yr That's because dynamic linker doesn't know about /projects/Marble-release/lib library. Try copy libmarblewidget-qt5* required libraries into /lib/aarch64-linux-gnu/ directory like other dynamic libraries. Regards, Piotr Edited April 26, 20215 yr by ppgas 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).
April 26, 20215 yr 1 minute ago, ppgas said: That's because dynamic linker doesn't know nothing about /projects/Marble-release/lib library. Normally yes but the libmarblewidget-qt5.so.25 has to be in lib since LNM uses RPATH to load libraries from the local folders. This is done to avoid loading stock libraries which can result in all kind of problems. In the littlenavmap.pro: "QMAKE_RPATHDIR+=./lib" @smkrIs the library itself loadable "ldd lib/libmarblewidget-qt5.so.25"? Alex' Projects: Little Navmap
April 26, 20215 yr Author Yes! ldd ../Marble-release/lib/libmarblewidget-qt5.so.25 linux-vdso.so.1 (0x0000007f87c3f000) libastro.so.1 => /lib/aarch64-linux-gnu/libastro.so.1 (0x0000007f8756f000) libQt5Xml.so.5 => /lib/aarch64-linux-gnu/libQt5Xml.so.5 (0x0000007f87522000) libQt5Quick.so.5 => /lib/aarch64-linux-gnu/libQt5Quick.so.5 (0x0000007f87081000) libQt5Svg.so.5 => /lib/aarch64-linux-gnu/libQt5Svg.so.5 (0x0000007f8701a000) libQt5Script.so.5 => /lib/aarch64-linux-gnu/libQt5Script.so.5 (0x0000007f86df9000) libQt5PrintSupport.so.5 => /lib/aarch64-linux-gnu/libQt5PrintSupport.so.5 (0x0000007f86d6e000) libQt5Concurrent.so.5 => /lib/aarch64-linux-gnu/libQt5Concurrent.so.5 (0x0000007f86d57000) libQt5Qml.so.5 => /lib/aarch64-linux-gnu/libQt5Qml.so.5 (0x0000007f86943000) libQt5Network.so.5 => /lib/aarch64-linux-gnu/libQt5Network.so.5 (0x0000007f86785000) libQt5Widgets.so.5 => /lib/aarch64-linux-gnu/libQt5Widgets.so.5 (0x0000007f860ff000) libQt5Gui.so.5 => /lib/aarch64-linux-gnu/libQt5Gui.so.5 (0x0000007f85b94000) libQt5Core.so.5 => /lib/aarch64-linux-gnu/libQt5Core.so.5 (0x0000007f85682000) libstdc++.so.6 => /lib/aarch64-linux-gnu/libstdc++.so.6 (0x0000007f854f7000) libm.so.6 => /lib/aarch64-linux-gnu/libm.so.6 (0x0000007f8543a000) libgcc_s.so.1 => /lib/aarch64-linux-gnu/libgcc_s.so.1 (0x0000007f85416000) libc.so.6 => /lib/aarch64-linux-gnu/libc.so.6 (0x0000007f852a4000) /lib/ld-linux-aarch64.so.1 (0x0000007f87c11000) libz.so.1 => /lib/aarch64-linux-gnu/libz.so.1 (0x0000007f85277000) libpthread.so.0 => /lib/aarch64-linux-gnu/libpthread.so.0 (0x0000007f85248000) libGL.so.1 => /lib/aarch64-linux-gnu/libGL.so.1 (0x0000007f85152000) libpng16.so.16 => /lib/aarch64-linux-gnu/libpng16.so.16 (0x0000007f8510d000) libharfbuzz.so.0 => /lib/aarch64-linux-gnu/libharfbuzz.so.0 (0x0000007f8500f000) libicui18n.so.63 => /lib/aarch64-linux-gnu/libicui18n.so.63 (0x0000007f84d3c000) libicuuc.so.63 => /lib/aarch64-linux-gnu/libicuuc.so.63 (0x0000007f84b61000) libpcre2-16.so.0 => /lib/aarch64-linux-gnu/libpcre2-16.so.0 (0x0000007f84ae7000) libdouble-conversion.so.1 => /lib/aarch64-linux-gnu/libdouble-conversion.so.1 (0x0000007f84ac3000) libdl.so.2 => /lib/aarch64-linux-gnu/libdl.so.2 (0x0000007f84aaf000) libglib-2.0.so.0 => /lib/aarch64-linux-gnu/libglib-2.0.so.0 (0x0000007f8497c000) libGLdispatch.so.0 => /lib/aarch64-linux-gnu/libGLdispatch.so.0 (0x0000007f847f1000) libGLX.so.0 => /lib/aarch64-linux-gnu/libGLX.so.0 (0x0000007f847af000) libfreetype.so.6 => /lib/aarch64-linux-gnu/libfreetype.so.6 (0x0000007f846f0000) libgraphite2.so.3 => /lib/aarch64-linux-gnu/libgraphite2.so.3 (0x0000007f846bd000) libicudata.so.63 => /lib/aarch64-linux-gnu/libicudata.so.63 (0x0000007f82cbf000) libpcre.so.3 => /lib/aarch64-linux-gnu/libpcre.so.3 (0x0000007f82c4c000) libX11.so.6 => /lib/aarch64-linux-gnu/libX11.so.6 (0x0000007f82b00000) libxcb.so.1 => /lib/aarch64-linux-gnu/libxcb.so.1 (0x0000007f82ac9000) libXau.so.6 => /lib/aarch64-linux-gnu/libXau.so.6 (0x0000007f82ab6000) libXdmcp.so.6 => /lib/aarch64-linux-gnu/libXdmcp.so.6 (0x0000007f82aa0000) libbsd.so.0 => /lib/aarch64-linux-gnu/libbsd.so.0 (0x0000007f82a7a000) librt.so.1 => /lib/aarch64-linux-gnu/librt.so.1 (0x0000007f82a60000) pi@test:~/projects/littlenavmap-rel $
April 26, 20215 yr Author what does this line in the littlenavmap.pro file: LIBS += -L$$MARBLE_LIB_PATH -lmarblewidget-qt5 -L$$ATOOLS_LIB_PATH -latools -lz especially the -lmarblewidget-qt5 ??
April 26, 20215 yr In theory there are the options passed by GCC (or other compiler) to linker to know which library should be linked - here marblewidget-qt5 and where it should be found here $$MARBLE_LIB_PATH - where in given variable (here MARBLE_LIB_PATH) should be kept path to proper directory. I wrote "in theory" because sometimes (but very rarely) happens strange things, that's why I prefer system directories for libraries, although Alex's attitude to be independent of system libraries has got more pros 🙂 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).
April 26, 20215 yr Author Piotr I can understand that but have You seen this in one of the git files: "Get Marble from my repository which contains a few required improvements: `git clone https://github.com/albar965/marble.git`" As I see it You will need to hold the file away from the /lib libraries because it is no longer std. /Sten
April 26, 20215 yr 20 minutes ago, smkr said: As I see it You will need to hold the file away from the /lib libraries because it is no longer std. IMHO when there is no std Marble library/package installed in system it doesn't matter whether files are kept in /lib library or not. Alex's restriction concerns only situation when you'll decide (in the future) install std Marble package and it''ll overwrite your compiled Marble binaries in /lib and then that will be a problem. That's why Alex keep his own stuff in project subdirectories 🙂 Regards, Piotr Edited April 26, 20215 yr by ppgas 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).
April 26, 20215 yr LNM will look at the lib path (based on LNM executable folder) to load Marble and ignore all other Marble libs. Others would not work anyway because there are modifications in the LNM Marble. The RPATH in LNM which is used to find the Marble library is stored in the executable. There are a few tools to read an modify RPATH in/from the executable but I don't have these at hand now. LD_LIBRARY_PATH does not have to be modified. Anyway, Marble library seems to be ok but "libastro.so.1 => /lib/aarch64-linux-gnu/libastro.so.1 (0x0000007f8756f000)" is wrong. Your own compiled Marble should not load libraries like astro from the system but the lib folder. Just to clarify: You build the LNM own Marble with its special branch? Exactly this Marble can be found in LNM installation lib folder and not the system Marble library? Alex' Projects: Little Navmap
April 27, 20215 yr Author Alex The Marble-release folder and littlenavmap folder is both in folder projects. I had a compiled version marble installed. It is removed now I have now recompiled without any changes. marble is compiled to Marble-release and littlenavmap is compiled to build-littlenavmap-release. all in /home/pi/projects/ And I can still not run ./littlenavmap. The output is pi@test:~/projects/build-littlenavmap-release $ ./littlenavmap ./littlenavmap: error while loading shared libraries: libmarblewidget-qt5.so.25: cannot open shared object file: No such file or directory after copying libmarblewidget-qt5.so.25 (all libmarblewidget-qt5 files) from Marble-release/lib to build-littlenavmap-release, the error is this: ./littlenavmap: error while loading shared libraries: libastro.so.1: cannot open shared object file: No such file or directory It doesn't change anything to have the libastro files copied to build-littlenavmap-release on this link is the output from ldd: https://1drv.ms/u/s!Avz73tRxHW6Nhuw-rTyBYswqzXU9zQ?e=qK3hqT but if I build and run(without deployment) from QT Creator, it runs smoothly! But i can't go into the folder from this build and run from terminal witout the libmarblewid... error I will now create a new SD-card and prepare it, and then later today i might start all over!!! Regards Sten
April 27, 20215 yr Try manually add required library to ldd search path by command: "sudo ldconfig <ABSOLUTE_PATH>/libmarblewidget-qt5.so.25" Similar for other required libraries 🙂 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).
April 27, 20215 yr Give me a day and I'll dig through my build process for the Linux systems and provide it here. The issues might be that you use the system provided libraries and I use the libraries provided by the Qt installation. But this should still work. @ppgas Normally this should work without any LDCONFIG environment variable or tool magic. There should also be no need to install libs system folders. Alex Alex' Projects: Little Navmap
Archived
This topic is now archived and is closed to further replies.