Open asbaklm opened 4 years ago
Your trying to run navit from the build directory. This is currently broken. When you install it, it will work. But you can just create the file "version.h" into the same directory next to the Navit binary. Then run navit from the same directory where the executable is placed
Hi jkoan, thanks for the reply. That solution is interesting thank you.
After more attempts I got it working by compiling the code from the navit webpage instead of cloning the code from the github trunk. So perhaps this information could be useful to other users.
https://www.navit-project.org/ https://github.com/navit-gps/navit/archive/v0.5.3.zip
Best Regards
@asbaklm Can you please tell us exactly what steps you followed since i am also strucked same like as your precious comment. I wanted to build navit for arm board. So for that first i wanted to try it on desktop. So i am trying it for . I installed all the dependencies and instead of cloning from git hub i directly downloaded from website as you mentioned in previous comment and did the cmake followed by make . at make step i got error like this.
~/navit-0.5.3/navit/graphics/qt5/graphics_qt5.cpp: In function ‘void get_data(graphics_priv, const char)’:
~/navit/graphics/qt5/graphics_qt5.cpp:705:28: error: ‘struct graphics_priv’ has no member named ‘engine’
return (this_priv->engine);
^~
navit/graphics/qt5/CMakeFiles/graphics_qt5.dir/build.make:62: recipe for target 'navit/graphics/qt5/CMakeFiles/graphics_qt5.dir/graphics_qt5.cpp.o' failed
make[2]: [navit/graphics/qt5/CMakeFiles/graphics_qt5.dir/graphics_qt5.cpp.o] Error 1
CMakeFiles/Makefile2:684: recipe for target 'navit/graphics/qt5/CMakeFiles/graphics_qt5.dir/all' failed
make[1]: [navit/graphics/qt5/CMakeFiles/graphics_qt5.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: [all] Error 2**
Please can you suggest me in this regard for proceeding further.
Thanks & Regards
A.N.V.Lavanya
ananthavidhya@futuraautomation.com
@anantha-vidhya , you are posting to a already closed issue.
Seems you hit a bug here: You're trying to compile without Qt5 QML support. Without QML support there is no member engine, but the get_parameter function refers to it because of missing USE_QML ifdef.
You have two options: Either compile with QML support by installing the qt5 qml develop packages. See CMakeLists.txt for which one exactly. Or ad the ifdef around the error yourself. I'll add a change request to fix that in trunk.
See #1172
@metalstrolch firstly Apology for continuing in this chain which is of closed issue, As my issue is more similar i thought i can express it here. But any way i successfully compiled navit with out having sample map enabled since if it there i am getting errors as below: [ 93%] Generating osm_bbox_11.3,47.9,11.7,48.2.osm.bz2 Downloading http://www.navit-project.org/maps/osm_bbox_11.3,47.9,11.7,48.2.osm.bz2 -- [download 100% complete] CMake Error at /home/username/Downloads/navit-0.5.3/cmake/navit_download.cmake:7 (message): Download of sample map from http://www.navit-project.org/maps/osm_bbox_11.3,47.9,11.7,48.2.osm.bz2 failed: "HTTP response code said error" To disable the sample map, run cmake with -DSAMPLE_MAP=n .
So changed my command as cmake ../navit-0.5.3 -DSAMPLE_MAP=n
Well after that cmake,make are succeded but it still relying on sample map when i run ./navit on desktop. It shows no map in gui also displays a message of *Running from source directory error:navit:xinclude:Unable to include /home/username/Downloads/navit-build/navit/maps/.xml in terminal. so i did following things again to disable and use offline maps which i downloaded from usermanual page of navit. I changed these following in /home/username/Downloads/navit-0.5.3/navit/maps/navit.xml <!-- If you dont want to use the sample map, either set enabled="no" in the next line or remove the xml file from the maps directory
are you sure that /home/username/Downloads/map/osm_bbox_5.2,46.8,15.5,55.6.bin
exists?
Yes bin file exist in the same path.
could you please provide the full log from the navit run? Probably Layouts are missing? Any other related errors? Or perhaps the center is set wrong. If so, try searching for something which should be within the map and click "Show on map"
Yeah sure:
THIS IS cmake ../navit-0.5.3 -DSAMPLE_MAP=n
This is not what i meant, i do mean the output of "./navit"
This is only log came *futura@futura-Lenovo-Legion-Y540-15IRH-PG0:~/Downloads/navit-build/navit$ ./navit Running from source directory error:navit:xinclude:Unable to include /home/futura/Downloads/navit-build/navit/maps/.xml**
Have you tried to search for something from the menu after clicking the yellow? If there shows something up, the center is set wrong. You can fix this by selecting "Show on map" at the found item
from menu show on map any thing not came.
Menu->Actions->Town-> Search for something that should be within the map -> View on map
If you can not find anything check that navit is using the right config file by adding the Path to the command ./navit /path/to/config_file.xml
where is this config_file.xml file i couldn't find any file with this name neither in source directory nor in build directory or you mean navit.xml file? Th eresult is like this ..
It doesn't showed any error like "*error:navit:xinclude:Unable to include /home/futura/Downloads/navit-build/navit/maps/.xml**" But map also not came. i downloaded sydney map but in Menu->Actions->Town it not even showing any suggestion with name sydney.
Can some one please help me ? Also i am struggling a lot for cross-compiling navit source code to arm board for that i am using cross-compiling tool chain linaro6.2 but i am unable to succeed directly i tried to build using bitbake which also failing to built as some dependence libraries are blacklisted.you Thanking you A.N.V.Lavanya
Could you please upload the config file xml? I think your maps are not configured correctly
Hello navit-gps team, I am facing still issue of the adding maps to gui. But here i am facing issue in cross-compiling the navit to a arm board Can you guide me in proper.
same issue on a raspberry pi 4
xevilstar@raspberrypi:~/Maps $ navit /etc/navit/navit.xml
error:navit:traffic_new:wrong type 'null'
error:navit:xinclude:Unable to include '/usr/share/navit/maps/*.xml'
error:navit:xinclude:Unable to include '/home/xevilstar/.navit/navit_layout_*.xml'
error:navit:xinclude:Unable to include '/usr/share/navit/navit_layout_*.xml'
xevilstar@raspberrypi:~/Maps $ navit -v
navit 0.5.6+git:xdevxgitxnotxfound-
same issue on a raspberry pi 4
xevilstar@raspberrypi:~/Maps $ navit /etc/navit/navit.xml error:navit:traffic_new:wrong type 'null' error:navit:xinclude:Unable to include '/usr/share/navit/maps/*.xml' error:navit:xinclude:Unable to include '/home/xevilstar/.navit/navit_layout_*.xml' error:navit:xinclude:Unable to include '/usr/share/navit/navit_layout_*.xml' xevilstar@raspberrypi:~/Maps $ navit -v navit 0.5.6+git:xdevxgitxnotxfound-
On Debian/Ubuntu/Rasberry Pi OS the layout files are missing:
To get them you need we do some simple things: 1) Download navitlayout*.xml from here: https://github.com/navit-gps/navit/tree/trunk/navit 2) Put them here /usr/share/navit/ or ~/.navit/
done thanks
On Wed, Jul 6, 2022 at 3:41 PM jkoan @.***> wrote:
same issue on a raspberry pi 4
@.:~/Maps $ navit /etc/navit/navit.xml error:navit:traffic_new:wrong type 'null' error:navit:xinclude:Unable to include '/usr/share/navit/maps/.xml' error:navit:xinclude:Unable to include '/home/xevilstar/.navit/navitlayout.xml' error:navit:xinclude:Unable to include '/usr/share/navit/navitlayout.xml' **@.***:~/Maps $ navit -v navit 0.5.6+git:xdevxgitxnotxfound-
On Debian/Ubuntu/Rasberry Pi OS the layout files are missing:
To get them you need we do some simple things:
- Download navitlayout*.xml from here: https://github.com/navit-gps/navit/tree/trunk/navit
- Put them here /usr/share/navit/ or ~/.navit/
— Reply to this email directly, view it on GitHub https://github.com/navit-gps/navit/issues/954#issuecomment-1176237793, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKTHVNFH4SNXK4MKMHN3SLVSWEKJANCNFSM4KFXNALA . You are receiving this because you commented.Message ID: @.***>
Hi
Could you please help with navit problems trying to compile and run under Ubuntu 18.04 / Mint 19?
I tried to compile navit for Ubuntu 18.04 / Mint 19 from instructions found at https://navit.readthedocs.io/en/latest/development/linux_development.html but it won't run.
I adjusted prerequisites to include the following, not all packages are necessary but I was running out of ideas:
apt-get install cmake zlib1g-dev libpng-dev libgtk2.0-dev librsvg2-bin g++ gpsd gpsd-clients libgps-dev libdbus-glib-1-dev freeglut3-dev libxft-dev libglib2.0-dev libfreeimage-dev gettext protobuf-c-compiler libprotobuf-c-dev qtdeclarative5-dev libqt5positioning5 libqt5positioning5-plugins libqt5svg5-dev
apt-get install libsdl-image1.2-dev libdevil-dev libglc-dev freeglut3-dev libxmu-dev libfribidi-dev libimlib2-dev gcc
apt-get install libgegl-dev libgd-dev libqtexengine-dev libqt5qml5 qt5-qmltooling-plugins libespeak-dev libqt5multimedia5 libqt5multimedia5-plugins libqt5positioning5 libqt5positioning5-plugins
apt-get install libespeak-ng-dev libespeak-dev
Next I cloned navit from git and ran cmake
mkdir navit-build cd navit-build cmake ../navit -DFREETYPE_INCLUDE_DIRS=/usr/include/freetype2/
Result
-- Building with CMake V3.10.2 -- The C compiler identification is GNU 7.4.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- The CXX compiler identification is GNU 7.4.0 -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- LIBDIR variable is not defined. It will be autodetected now. -- You can set it manually with -DLIBDIR=
-- LIB_DIR (highest subdirectory if LIBDIR) is set to 'lib64/navit'
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Checking for module 'gmodule-2.0'
-- Found gmodule-2.0, version 2.56.4
-- Checking for module 'glib-2.0>=2.10'
-- Found glib-2.0, version 2.56.4
-- Checking for module 'fontconfig >= 2.2.0'
-- Found fontconfig , version 2.12.6
-- Checking for module 'dbus-1 >= 1.4'
-- Found dbus-1 , version 1.12.2
-- Checking for module 'dbus-glib-1'
-- Found dbus-glib-1, version 0.110
-- Checking for module 'liblocation'
-- No package 'liblocation' found
-- Checking for module 'libosso'
-- No package 'libosso' found
-- Checking for module 'libgps'
-- Found libgps, version 3.17
-- Checking for module 'libgps>=2.90'
-- Found libgps, version 3.17
-- Checking for module 'libgps>=3.1'
-- Found libgps, version 3.17
-- Checking for module 'libgarmin'
-- No package 'libgarmin' found
-- Checking for module 'imlib2'
-- Found imlib2, version 1.4.10
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11")
-- Found Freetype: /usr/lib/x86_64-linux-gnu/libfreetype.so (found version "2.8.1")
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found SDL: /usr/lib/x86_64-linux-gnu/libSDLmain.a;/usr/lib/x86_64-linux-gnu/libSDL.so;-lpthread (found version "1.2.15") -- Found SDL_image: /usr/lib/x86_64-linux-gnu/libSDL_image.so (found version "1.2.12") -- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so
-- Found GLUT: /usr/lib/x86_64-linux-gnu/libglut.so
-- Found GTK2_GTK: /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so
-- Found Gettext: /usr/bin/msgmerge (found version "0.19.8.1") -- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.6.34") -- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found version "2.7.17") CMake Warning at CMakeLists.txt:225 (find_package): By not providing "FindQt5Positioning.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Qt5Positioning", but CMake did not find one.
Could not find a package configuration file provided by "Qt5Positioning" with any of the following names:
Add the installation prefix of "Qt5Positioning" to CMAKE_PREFIX_PATH or set "Qt5Positioning_DIR" to a directory containing one of the above files. If "Qt5Positioning" provides a separate development package or SDK, be sure it has been installed.
CMake Warning at CMakeLists.txt:232 (find_package): By not providing "FindQt5Multimedia.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Qt5Multimedia", but CMake did not find one.
Could not find a package configuration file provided by "Qt5Multimedia" with any of the following names:
Add the installation prefix of "Qt5Multimedia" to CMAKE_PREFIX_PATH or set "Qt5Multimedia_DIR" to a directory containing one of the above files. If "Qt5Multimedia" provides a separate development package or SDK, be sure it has been installed.
CMake Warning at CMakeLists.txt:233 (find_package): By not providing "Findespeak.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "espeak", but CMake did not find one.
Could not find a package configuration file provided by "espeak" with any of the following names:
Add the installation prefix of "espeak" to CMAKE_PREFIX_PATH or set "espeak_DIR" to a directory containing one of the above files. If "espeak" provides a separate development package or SDK, be sure it has been installed.
-- Looking for include file wordexp.h -- Looking for include file wordexp.h - found -- Looking for include file endian.h -- Looking for include file endian.h - found -- Looking for include file stdint.h -- Looking for include file stdint.h - found -- Looking for include file byteswap.h -- Looking for include file byteswap.h - found -- Looking for gypsy_control_get_default in gypsy -- Looking for gypsy_control_get_default in gypsy - not found -- Looking for include file libspeechd.h -- Looking for include file libspeechd.h - not found -- Looking for include file sys/socket.h -- Looking for include file sys/socket.h - found -- Looking for include file sys/shm.h -- Looking for include file sys/shm.h - found -- Looking for snprintf -- Looking for snprintf - found -- Looking for include file locale.h -- Looking for include file locale.h - found -- Looking for include file libintl.h -- Looking for include file libintl.h - found -- Looking for include file sys/time.h -- Looking for include file sys/time.h - found -- Looking for include file getopt.h -- Looking for include file getopt.h - found -- Looking for include file string.h -- Looking for include file string.h - found -- Looking for gettimeofday -- Looking for gettimeofday - found -- Looking for system -- Looking for system - found -- Looking for CreateProcess -- Looking for CreateProcess - not found -- Looking for stpcpy -- Looking for stpcpy - found -- Looking for sbrk -- Looking for sbrk - found -- Looking for getdelim -- Looking for getdelim - found -- Looking for getline -- Looking for getline - found -- Looking for fsync -- Looking for fsync - found -- Looking for libintl_fprintf in intl -- Looking for libintl_fprintf in intl - not found -- Checking for module 'fribidi' -- Found fribidi, version 0.19.7 -- Checking for module 'fribidi>=0.19.0' -- Found fribidi, version 0.19.7 -- Looking for FreeImage_Load in freeimage -- Looking for FreeImage_Load in freeimage - found -- opengl found: /usr/lib/x86_64-linux-gnu/libGL.so -- Found XSLT processor: /usr/bin/saxon-xslt -- Found PROTOBUF_C: /usr/lib/x86_64-linux-gnu/libprotobuf-c.so
-- Looking for getifaddrs -- Looking for getifaddrs - found -- SVG2PNG-Converter: /usr/bin/rsvg-convert -- Use plugins: MODULE -- Looking for include file malloc.h -- Looking for include file malloc.h - found -- Looking for include files sys/param.h, sys/mount.h -- Looking for include files sys/param.h, sys/mount.h - found -- Looking for include file unistd.h -- Looking for include file unistd.h - found -- Looking for getcwd -- Looking for getcwd - found -- Looking for memalign -- Looking for memalign - found -- Looking for valloc -- Looking for valloc - found -- Looking for posix_memalign -- Looking for posix_memalign - found -- Looking for popen -- Looking for popen - found -- Looking for _atoi64 -- Looking for _atoi64 - not found -- Performing Test FLAG_AVAILABLEC-Wno-missing-field-initializers -- Performing Test FLAG_AVAILABLEC-Wno-missing-field-initializers - Success -- Performing Test FLAG_AVAILABLECXX-Wno-missing-field-initializers -- Performing Test FLAG_AVAILABLECXX-Wno-missing-field-initializers - Success -- Performing Test FLAG_AVAILABLEC-Wextra -- Performing Test FLAG_AVAILABLEC-Wextra - Success -- Performing Test FLAG_AVAILABLECXX-Wextra -- Performing Test FLAG_AVAILABLECXX-Wextra - Success -- Performing Test FLAG_AVAILABLEC-Wmissing-prototypes -- Performing Test FLAG_AVAILABLEC-Wmissing-prototypes - Success -- Performing Test FLAG_AVAILABLECXX-Wmissing-prototypes -- Performing Test FLAG_AVAILABLECXX-Wmissing-prototypes - Failed -- Performing Test FLAG_AVAILABLEC-Wstrict-prototypes -- Performing Test FLAG_AVAILABLEC-Wstrict-prototypes - Success -- Performing Test FLAG_AVAILABLECXX-Wstrict-prototypes -- Performing Test FLAG_AVAILABLECXX-Wstrict-prototypes - Failed -- Performing Test FLAG_AVAILABLEC-Wformat-security -- Performing Test FLAG_AVAILABLEC-Wformat-security - Success -- Performing Test FLAG_AVAILABLECXX-Wformat-security -- Performing Test FLAG_AVAILABLECXX-Wformat-security - Success
Summary:
--->>> autoload Disabled osso ( Default )
--->>> binding Enabled dbus ( dbus-glib-1 found ) Enabled python ( python libraries [2.7.17] found ) Disabled win32 ( Default )
--->>> font Enabled freetype ( freetype found )
--->>> graphics Disabled android ( FreeType library not found ) Disabled cocoa ( Default ) Disabled egl ( Required library not found ) Disabled gd ( FreeType library not found ) Enabled gtk_drawing_area ( GTK libs found ) Enabled null ( Default ) Enabled opengl ( Found OpenGL ) Enabled qt5 ( Qt5 found ) Disabled qt_qpainter ( Qt libraries not found ) Enabled sdl ( SDL/SDL_image libs found )
--->>> gui Enabled gtk ( GTK libs found ) Enabled internal ( Default ) Disabled qml ( Qt Declarative not found ) Enabled qt5_qml ( Qt5 found )
--->>> map Enabled binfile ( Default ) Enabled csv ( Default ) Enabled filter ( Default ) Disabled garmin ( Garmin library not found ) Enabled mg ( Default ) Enabled shapefile ( Default ) Enabled textfile ( Default )
--->>> osd Enabled core ( Default )
--->>> plugin Disabled j1850 ( Default ) Disabled pedestrian ( Default )
--->>> speech Disabled android ( Default ) Enabled cmdline ( system() call is available ) Enabled dbus ( dbus-glib-1 found ) Disabled espeak ( Default ) Disabled iphone ( Default ) Disabled qt5_espeak ( Qt5 multimedia not found ) Disabled speech_dispatcher ( speech_dispatcher lib not found )
--->>> support Disabled espeak ( Default ) Disabled ezxml ( native Glib found ) Disabled gettext_intl ( native libintl found ) Disabled glib ( native Glib found ) Disabled libpng ( native libpng found ) Enabled shapefile ( Default ) Disabled wordexp ( native wordexp found ) Disabled zlib ( native zlib found )
--->>> traffic Enabled dummy ( Default ) Enabled null ( Default ) Disabled traff_android ( Default )
--->>> vehicle Disabled android ( Default ) Enabled demo ( Default ) Enabled file ( Default ) Enabled gpsd ( gpsd lib found ) Enabled gpsd_dbus ( dbus-glib-1 found ) Disabled gypsy ( gypsy lib not found ) Disabled iphone ( Default ) Disabled maemo ( Default ) Disabled null ( Default ) Disabled qt5 ( Qt5 libraries not found ) Disabled wince ( Default )
--->>> Features Enabled BUILD_MAPTOOL ( default ) Disabled DBUS_USE_SYSTEM_BUS ( default ) Disabled GUI_INTERNAL_VISUAL_DBG ( default ) Disabled INTERNAL_ESPEAK_COMPLETE ( build complete internal libespeak ) Enabled NETWORK_INFO ( ifaddrs.h found ) Enabled SAMPLE_MAP ( default ) Enabled SVG2PNG ( default ) Enabled USE_NATIVE_LANGUAGE_SUPPORT ( Gettext found ) Enabled USE_PLUGINS ( default ) Enabled USE_QML ( Qt5Quick found ) Enabled USE_QWIDGET ( Qt5Widgets found ) Enabled USE_ROUTING ( default ) Enabled USE_SVG ( default ) Enabled XSL_PROCESSING ( default )
Processing XSLT files: NONE See navit/xslt for available XSLT files, and put them into cache variable 'XSLTS' (without extension .xslt).
To configure your build use 'cmake -L' to find changeable variables and run cmake again with 'cmake -D= ...'.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/asbak2/Downloads/GPS/navit-build
Next I ran make, navit compiled
When trying to run navit I see following errors
error:navit:plugins_init:Warning: No plugins found. Is Navit installed correctly? error:navit:map_new:invalid type 'textfile' error:navit:graphics_new:Failed to load graphics plugin gtk_drawing_area. error:navit:traffic_new:wrong type 'null' error:navit:vehicle_new:invalid source 'gpsd://localhost': unknown type 'gpsd' error:navit:speech_new:wrong type 'cmdline' error:navit:xinclude:Unable to include '/usr/local/share/navit/maps/.xml' error:navit:xinclude:Unable to include '/home/username/.navit/navitlayout.xml' error:navit:xinclude:Unable to include '/usr/local/share/navit/navitlayout*.xml' error:navit:navit_init:FATAL: No GUI available.