|
 |
|
09-06-2007, 06:03 AM
|
#76
|
|
Low Bitrate
Join Date: Jan 2007
Posts: 76
|
Since i had no idea, i asked cp15 about this, and here's his thoughts :
Quote: Originally Posted by cp15
There seems to be a bug in the navit code. Strange that it didn't appear earlier.
In debug.h replace int debug_level; with extern int debug_level;
Let us know!
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
09-06-2007, 08:21 AM
|
#77
|
|
Low Bitrate
Join Date: Jan 2007
Location: Munich, Germany
Posts: 82
|
Ok, I've added "extern" and now here we go:
Code:
alexs-computer:~/navit-0.0.1 alex$ make
make all-recursive
Making all in src
Making all in binding
Making all in python
make[4]: Nothing to be done for `all'.
make[4]: Nothing to be done for `all-am'.
Making all in data
Making all in mg
make[4]: Nothing to be done for `all'.
Making all in textfile
make[4]: Nothing to be done for `all'.
Making all in garmin_img
make[4]: Nothing to be done for `all'.
Making all in poi_geodownload
Making all in libmdb
Making all in include
make[6]: Nothing to be done for `all'.
make[6]: Nothing to be done for `all-am'.
make[5]: Nothing to be done for `all-am'.
make[4]: Nothing to be done for `all-am'.
Making all in fib-1.1
make[3]: Nothing to be done for `all'.
Making all in gui
make[4]: Nothing to be done for `all-am'.
Making all in graphics
Making all in null
make[4]: Nothing to be done for `all'.
make[4]: Nothing to be done for `all-am'.
Making all in osd
make[4]: Nothing to be done for `all-am'.
Making all in speech
Making all in cmdline
make[4]: Nothing to be done for `all'.
make[4]: Nothing to be done for `all-am'.
Making all in vehicle
Making all in file
make[4]: Nothing to be done for `all'.
make[4]: Nothing to be done for `all-am'.
Making all in xpm
make[3]: Nothing to be done for `all'.
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../src/fib-1.1 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -DMODULE=\"navit\" -I/System/Library/Frameworks/CoreFoundation.framework/Headers -g -O2 -Wall -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -MT param.o -MD -MP -MF ".deps/param.Tpo" -c -o param.o param.c; \
then mv -f ".deps/param.Tpo" ".deps/param.Po"; else rm -f ".deps/param.Tpo"; exit 1; fi
param.c:3:20: error: malloc.h: No such file or directory
param.c: In function 'param_add_string':
param.c:10: warning: implicit declaration of function 'malloc'
param.c:10: warning: incompatible implicit declaration of built-in function 'malloc'
make[3]: *** [param.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
So...?
|
|
|
09-06-2007, 08:51 AM
|
#78
|
|
Low Bitrate
Join Date: Jan 2007
Posts: 76
|
https://stat.ethz.ch/pipermail/r-sig...ch/000807.html
should help i think.
Two choice, either the symlink, or just comment the include <malloc.h>
If it works, we'll add a platform-dependent include.
( Also, there's our irc channel (irc://irc.freenode.org/navit) if you want to chat. )
|
|
|
09-06-2007, 05:13 PM
|
#79
|
|
Low Bitrate
Join Date: Jan 2007
Location: Munich, Germany
Posts: 82
|
Awesome, I commented the line and got it installed.
Now it's asking for a navit.xml, is there some site where I can read what I have to do know to proceed?
|
|
|
09-07-2007, 03:21 AM
|
#80
|
|
Low Bitrate
Join Date: Jan 2007
Posts: 76
|
You should have a sample file in the src directory (subfolder of where you ran ./autogen.sh and others).
Navit will look for the file in the following folder, in this order :
- ~/.navit/navit.xml
- ./navit.xml
Also, you can specify which file to use on the command line (in case path detection is broken under MacOS). Just add the path to the file :
./navit <path>
If you ran make install, and tried to run it by typing directly 'navit', this is somehow normal (we should add some lines telling how to configure this file). If you ran navit from the src dir, then, it's weird
The documentation about navit.xml can be found here :
http://navit.wiki.sourceforge.net/Configuring+navit
Basically, you only need to change the mapset to point to the folder where you stored your maps.
Also, you need only the path to the DE.map (or DEM.map depending of your map version) and at least one smp file.
If you're in Germany, you need smp3. In France, smp1.
To find which smp file you need (loading only the one you need will increase performances a little) you can load all the smp files, then in the GTK gui, you have a mapset menu, from where you can enable or disable a given smp. Once you found the one you need, just comment out or remove the other ones in navit.xml.
You'll also find there the two lines you need to change if you want to try the SDL gui.
We are really interested in you mileage (what packages you had to install, et) for our wiki, since it could help other peoples.
Now, we're waiting for your comments
Last edited by KaZeR; 09-07-2007 at 03:24 AM.
|
|
|
09-07-2007, 01:08 PM
|
#81
|
|
Low Bitrate
Join Date: Jan 2007
Location: Munich, Germany
Posts: 82
|
Code:
alexs-computer:~/navit-0.0.1/src alex$ ./navit
Running from source directory
** (process:8695): WARNING **: can't load '*/*/.libs/lib*.so', Error 'dlopen(*/*/.libs/lib*.so, 9): image not found'
sh: line 1: pidof: command not found
** (process:8695): WARNING **: failed to create gui 'gtk'
Using 'navit.xml'
No instance has been created, exiting
I've seen the same error earlier in this thread, though there was no fix, was it? (Btw.: Same error appears if I run the installed navit with a specified .xml file; if I use -sdl though it tells me that it could not create gui 'sdl' instead of 'gtk')
So what do I do?
Till now I only had to install gtk2, glib2 via MacPorts, no big deal. (At least as much as I recall, after having everything running I will do a fresh installation and document everything I am doing.)
|
|
|
09-08-2007, 08:33 AM
|
#82
|
|
Low Bitrate
Join Date: Jan 2007
Posts: 76
|
Quote: Originally Posted by bpwned 
Code:
alexs-computer:~/navit-0.0.1/src alex$ ./navit
Running from source directory
** (process:8695): WARNING **: can't load '*/*/.libs/lib*.so', Error 'dlopen(*/*/.libs/lib*.so, 9): image not found'
sh: line 1: pidof: command not found
** (process:8695): WARNING **: failed to create gui 'gtk'
Using 'navit.xml'
No instance has been created, exiting
I've seen the same error earlier in this thread, though there was no fix, was it? (Btw.: Same error appears if I run the installed navit with a specified .xml file; if I use -sdl though it tells me that it could not create gui 'sdl' instead of 'gtk')
So what do I do?
This is an easy issue. We are working on a fix which will ease this part
In fact, you have to specify in the config file where to find the libraries.
By default, it looks in ./*/*, which works fine if you run navit from the source tree. If you run it from elsewhere, you have to specify the full path to these libraires (the gui and the graphic renderer, mainly).
By default, they should be installed in /usr/local/lib/navit, so just edit your navit.xml file and change the plugin path line to :
Code:
<plugin path="/usr/share/navit/*/*/*.so" />
We will ease that part.
Let me know how it works!
Quote: Originally Posted by bpwned 
Till now I only had to install gtk2, glib2 via MacPorts, no big deal. (At least as much as I recall, after having everything running I will do a fresh installation and document everything I am doing.)
Great thanks.
|
|
|
09-09-2007, 06:53 AM
|
#83
|
|
Low Bitrate
Join Date: Jan 2007
Location: Munich, Germany
Posts: 82
|
Quote: Originally Posted by KaZeR 
By default, they should be installed in /usr/local/lib/navit, so just edit your navit.xml file and change the plugin path line to :
Code:
<plugin path="/usr/share/navit/*/*/*.so" />
Maybe I'm just not getting it, but which one is it now?
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
09-09-2007, 11:06 AM
|
#84
|
|
Newbie
Join Date: Sep 2007
Location: Germany
Posts: 2
|
Since I am new to this forum, I first wish to extend my congratulations to this excellent project.
After some internal discussions (caused by missing knowledge on my side), navit and me seem to become friends. SuSE 10.2 refused to install gpsd, so I turned to ubuntu 7.04 with full success.
The correct plugin path for me is "/usr/local/lib/navit/*/lib*.so" and is functioning.
Further, the "Reiseplaner" maps are operative, but there is still an error message "failed to load font, no labeling", which I could not resolve so far.
Has anybody any solution or hint for this problem?
Greetings
compucat
|
|
|
09-10-2007, 03:47 AM
|
#85
|
|
Low Bitrate
Join Date: Jan 2007
Posts: 76
|
Quote: Originally Posted by bpwned 
Maybe I'm just not getting it, but which one is it now?
Maybe my explanations aren't very clear
In navit.xml, you should have :
Code:
<plugin path="*/*/*.so" />
Or something like this. It is a relative path, impling that you run navit from the source tree.
If you ran make install, libraries have been installed in /usr/share/navit so you can use an absolute path, by changing the previous line to something like this :
Code:
<plugin path="/usr/share/navit/*/*/*.so" />
which is the default path used by navit upon make install.
Hope it's better now
|
|
|
09-10-2007, 03:59 AM
|
#86
|
|
Low Bitrate
Join Date: Jan 2007
Posts: 76
|
Quote: Originally Posted by compucat 
Since I am new to this forum, I first wish to extend my congratulations to this excellent project.
Hi compucat, and welcome !
Also, thanks for your compliment
Quote: Originally Posted by compucat 
After some internal discussions (caused by missing knowledge on my side), navit and me seem to become friends. SuSE 10.2 refused to install gpsd
I ran into this issue as well.
You can't use the rpm provided by the gpsd project, they won't run under OpenSuse. Instead, if you search for a OpenSuse rpm at webpin, you will get this : http://benjiweber.co.uk:8080/webpin/...earchTerm=gpsd
And thoses rpms works (you need both gpsd and gpsd-devel, as navit needs to link against it).
Quote: Originally Posted by compucat 
so I turned to ubuntu 7.04 with full success.
Great. glad you made it work. If you had any distro-specific step to follow, i'd be happy to hear about them to enhance our docs.
Quote: Originally Posted by compucat 
The correct plugin path for me is "/usr/local/lib/navit/*/lib*.so" and is functioning.
Exactly. Default path after make install. /*.so at the end would also work.
Quote: Originally Posted by compucat 
Further, the "Reiseplaner" maps are operative, but there is still an error message "failed to load font, no labeling", which I could not resolve so far.
Has anybody any solution or hint for this problem?
Sure. By default, we currently use the Arial font for labelling, because it easily readable even on small fonts. The drawback is that it's not an open font, so some distro don't ship it by default because of licensing issues.
Under gentoo, it's packed in "corefonts".
Under OpenSuse, you can find a package with them.
Under Ubuntu, i have to say that i don't know.
I'll add a word in the error message about this font, it would be more convenient for users. it's true that if you don't read into the code, you can't guess which font is needed. Thanks for the feedback.
We have discussed last week about replacing arial with something open. If anybody knows about a font which would fit, suggestions are welcome.
If you have any other question, feel free to ask 
Comments / criticisms / suggestions are welcome.
|
|
|
09-10-2007, 01:20 PM
|
#87
|
|
Low Bitrate
Join Date: Jan 2007
Location: Munich, Germany
Posts: 82
|
Hm, I've been trying to find those libraries, but I can't find any .so files.
Code:
alexs-computer:~ alex$ find /usr | grep navit
/usr/local/bin/navit
/usr/local/lib/navit
/usr/local/lib/navit/binding
/usr/local/lib/navit/binding/libbinding_python.0.0.0.dylib
/usr/local/lib/navit/binding/libbinding_python.0.dylib
/usr/local/lib/navit/binding/libbinding_python.dylib
/usr/local/lib/navit/binding/libbinding_python.la
/usr/local/lib/navit/data
/usr/local/lib/navit/data/libdata_garmin_img.0.0.0.dylib
/usr/local/lib/navit/data/libdata_garmin_img.0.dylib
/usr/local/lib/navit/data/libdata_garmin_img.dylib
/usr/local/lib/navit/data/libdata_garmin_img.la
/usr/local/lib/navit/data/libdata_mg.0.0.0.dylib
/usr/local/lib/navit/data/libdata_mg.0.dylib
/usr/local/lib/navit/data/libdata_mg.dylib
/usr/local/lib/navit/data/libdata_mg.la
/usr/local/lib/navit/data/libdata_poi_geodownload.0.0.0.dylib
/usr/local/lib/navit/data/libdata_poi_geodownload.0.dylib
/usr/local/lib/navit/data/libdata_poi_geodownload.dylib
/usr/local/lib/navit/data/libdata_poi_geodownload.la
/usr/local/lib/navit/data/libdata_textfile.0.0.0.dylib
/usr/local/lib/navit/data/libdata_textfile.0.dylib
/usr/local/lib/navit/data/libdata_textfile.dylib
/usr/local/lib/navit/data/libdata_textfile.la
/usr/local/lib/navit/graphics
/usr/local/lib/navit/graphics/libgraphics_null.0.0.0.dylib
/usr/local/lib/navit/graphics/libgraphics_null.0.dylib
/usr/local/lib/navit/graphics/libgraphics_null.dylib
/usr/local/lib/navit/graphics/libgraphics_null.la
/usr/local/lib/navit/speech
/usr/local/lib/navit/speech/libspeech_cmdline.0.0.0.dylib
/usr/local/lib/navit/speech/libspeech_cmdline.0.dylib
/usr/local/lib/navit/speech/libspeech_cmdline.dylib
/usr/local/lib/navit/speech/libspeech_cmdline.la
/usr/local/lib/navit/vehicle
/usr/local/lib/navit/vehicle/libvehicle_file.0.0.0.dylib
/usr/local/lib/navit/vehicle/libvehicle_file.0.dylib
/usr/local/lib/navit/vehicle/libvehicle_file.dylib
/usr/local/lib/navit/vehicle/libvehicle_file.la
/usr/local/share/navit
/usr/local/share/navit/navit.xml
/usr/local/share/navit/README
/usr/local/share/navit/xpm
/usr/local/share/navit/xpm/camping.xpm
/usr/local/share/navit/xpm/car_dealer.xpm
/usr/local/share/navit/xpm/flag_bk_tr.xpm
/usr/local/share/navit/xpm/flag_bk_wh.xpm
/usr/local/share/navit/xpm/flag_bl_wh.xpm
/usr/local/share/navit/xpm/fuel.xpm
/usr/local/share/navit/xpm/hospital.xpm
/usr/local/share/navit/xpm/hotel.xpm
/usr/local/share/navit/xpm/parking.xpm
/usr/local/share/navit/xpm/restaurant.xpm
/usr/local/share/navit/xpm/unknown.xpm
Shouldn't I see them somewhere here? I mean there is obviously nothing in usr/share, only in usr/local/share (maybe OS X uses usr/local/share instead of usr/share?). But still no .so files. Any Ideas?
|
|
|
09-10-2007, 01:40 PM
|
#88
|
|
Low Bitrate
Join Date: Jan 2007
Posts: 76
|
Quote: Originally Posted by bpwned 
Hm, I've been trying to find those libraries, but I can't find any .so files.
Code:
alexs-computer:~ alex$ find /usr | grep navit
/usr/local/bin/navit
[...]
/usr/local/share/navit/xpm/unknown.xpm
Shouldn't I see them somewhere here? I mean there is obviously nothing in usr/share, only in usr/local/share (maybe OS X uses usr/local/share instead of usr/share?). But still no .so files. Any Ideas?
I'm sorry, my bad
/usr/local/share is for various ressources, like icons, SDL gui datafiles, etc.
You are right, libs should be in /usr/local/lib/navit (unless you changed the prefix in ./configure to /usr, in which case they will be in /usr/lib/navit.
I noticed that you only have the null graphics renderer. You are probably missing something gtk related (like a gtk2-devel package probably) and you have no gui compiled yet (no gtk, no sdl). So you have to install gtk2-devel, rerun ./configure && make && make install
It's quite hard, because you're the first one trying it on MacOS. For the next users, it will work probably out of the box
Thanks for your time!
|
|
|
09-10-2007, 06:37 PM
|
#89
|
|
Low Bitrate
Join Date: Jan 2007
Location: Munich, Germany
Posts: 82
|
No need to thank me, I'm happy to help.
I will take a look on the issue as soon as I'm back on my Mac, right now I'm sitting in front of a Windows-Box...
Alors, à bientôt ;-)
|
|
|
09-11-2007, 07:55 AM
|
#90
|
|
Low Bitrate
Join Date: Jan 2007
Location: Munich, Germany
Posts: 82
|
Alright, seems like my gtk2 install didn't really work, I reinstalled it again (had to reinstall Apple X11).
Now, configure is working fine, make not:
Code:
alexs-computer:~/navit-0.0.1 alex$ make
(...)
Making all in gtk
if /bin/sh ../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -DPNG_NO_MMX_CODE -DXTHREADS -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/usr/X11R6/include -I../../../src -DMODULE=\"gui_gtk\" -I/System/Library/Frameworks/CoreFoundation.framework/Headers -g -O2 -Wall -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -MT datawindow.lo -MD -MP -MF ".deps/datawindow.Tpo" -c -o datawindow.lo datawindow.c; \
then mv -f ".deps/datawindow.Tpo" ".deps/datawindow.Plo"; else rm -f ".deps/datawindow.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -DPNG_NO_MMX_CODE -DXTHREADS -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/usr/X11R6/include -I../../../src -DMODULE=\"gui_gtk\" -I/System/Library/Frameworks/CoreFoundation.framework/Headers -g -O2 -Wall -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -MT datawindow.lo -MD -MP -MF .deps/datawindow.Tpo -c datawindow.c -fno-common -DPIC -o .libs/datawindow.o
datawindow.c:1:20: error: malloc.h: No such file or directory
In file included from /opt/local/include/gtk-2.0/gtk/gtkactiongroup.h:34,
from /opt/local/include/gtk-2.0/gtk/gtk.h:38,
from datawindow.c:6:
/opt/local/include/gtk-2.0/gtk/gtkitemfactory.h:50: warning: function declaration isn't a prototype
datawindow.c: In function 'keypress':
datawindow.c:135: warning: passing argument 2 of 'gui_gtk_datawindow_delete' from incompatible pointer type
make[4]: *** [datawindow.lo] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 12:29 PM.
| |