Giter Club home page Giter Club logo

navit-gps / navit Goto Github PK

View Code? Open in Web Editor NEW
537.0 48.0 173.0 77.06 MB

The open source (GPL v2) turn-by-turn navigation software for many OS

Home Page: http://www.navit-project.org

License: Other

CMake 1.17% Shell 1.25% XSLT 0.51% Perl 1.82% C 87.31% Java 2.74% Python 0.18% C++ 3.04% Objective-C 0.44% QML 0.99% JavaScript 0.01% HTML 0.08% PHP 0.16% Makefile 0.01% Yacc 0.08% M4 0.01% Roff 0.08% QMake 0.01% Smarty 0.02% Ruby 0.09%
gps navigation c navit gpsd openstreetmap android hacktoberfest

navit's Introduction

Navit Build Status CodeFactor Translation

A copylefted libre software car-navigation system with its own routing engine.

On an Android tablet
navit on android
On a Linux-based carputer
navit-nuc-osd
Get it on F-Droid Get it on Google Play
Modular design with routing and rendering of one or more vector maps in various formats.
GTK and SDL user-interfaces with touch-screen displays.
Current vehicle position from gpsd or directly from NMEA (GPS) sensors.
Optimal routes and directions spoken in 70+ languages.
Points of interest (POIs) in many formats.

Help and more info available on the wiki.
The Reporting Bugs document helps you file issues.

Maps

OpenStreetMap — display, routing, incomplete street-name search.
Grosser Reiseplaner and compliant maps — full support.
Garmin maps —display, routing, search is being worked on.

GPS Support

Current vehicle position from
— a file or port.
— gpsd (local or remote).
— the location service of several mobile platforms.
— a UDP server (friends tracking) (experimental).

Translation

The Hosted Weblate platform is used to manage translations, which runs Weblate. Translation status

Routing algorithm

Uses LPA* starting at the destination by assigning
a value to each point directly connected to the destination point.
It represents estimated time needed to reach the destination from that point.
A Fibonacci-heap search for the point with the lowest value (to find
a value then assigned to connected points either unevaluated or whose
current value is greater than the new one) is repeated until the origin is found.
Once reaching the origin, the lowest-value points are followed to the destination.

the (experimental) traffic module re-evaluates route-graph portions as segment costs change.
It can process traffic reports and find a way around problems.

navit's People

Contributors

aerostitch avatar barbeque-squared avatar bignaux avatar bkoppelmann avatar charlescurley avatar danieldegroot2 avatar emaiannone avatar gefin avatar greg42 avatar hoehnp avatar ihuguet avatar jandegr avatar jfitie avatar jkoan avatar lains avatar mcapdeville avatar mdankov avatar metalstrolch avatar mvglasow avatar okias avatar olfdb avatar pgrandin avatar pohlinkzei avatar robotaxi avatar sleske avatar tengel avatar trldp avatar xenos1984 avatar youte62 avatar zintor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

navit's Issues

destination dialog does not work

Hi,

I am trying navit on an ubuntu installation.
(Using the apt package installation as described in dokumentation)

Whatever destination I try to search for in the destination Dialog, hitting the "Ziel/Destinatiion" Button does not use the found spot as new destination ...

any suggestions ???

Greetings,
Hop

Reported by: hop_berlin

Original Ticket: "navit/bugs/28":https://sourceforge.net/p/navit/bugs/28

No menu in WM 6.1

Hello,

I have installed navit-current.cab on an HP iPAQ 914. It does not create an icon under programs but I can start it from the install directory. I guess this is how it works.

There is no menu shown in the program so I can't do anything.

Menu is enabled in the xml file.

Am I doing something wrong?

Thanks,

Gabor

Reported by: raczg

Original Ticket: "navit/bugs/31":https://sourceforge.net/p/navit/bugs/31

Hotkeys

I use navit on my eeepc and it is annoying to search always the menu with the touchpad.
I propose to use hotkeys for:
* fullscreen 'F11'
* recalc route 'F5'

There is also a problem when changing the scale with the slider of the touchpad. Please add a hotkey to get back to the default scale of the navit.xml

Christian

Reported by: lazyzero

Original Ticket: "navit/feature-requests/11":https://sourceforge.net/p/navit/feature-requests/11

Can't compile, and get a dep error?

Hello, I have all the deps, well I think I have all the deps, and I get this compile error:

[fsk141@MiniFsk navit]$ ./configure
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
./configure: line 4137: PKG_CHECK_EXISTS: command not found
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 98304
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for X... libraries , headers
./configure: line 19778: syntax error near unexpected token `NAVIT,'
./configure: line 19778: `PKG_CHECK_MODULES(NAVIT, glib-2.0 gmodule-2.0)'

Reported by: *anonymous

Original Ticket: "navit/bugs/12":https://sourceforge.net/p/navit/bugs/12

Osm2Navit: Seg fault when all nodes are in order

When all nodes are in order, I get a segmentation fault. The problem is that the hash table pointers are not initialized to NULL (node_hash, tile_hash, tile_hash2 pointers), initializing them to NULL fixes the problem (see also my patch I've submitted to resolve the other hash table related problems). When applying the fixes, osm2navit runs now OK on win32 when compiling it with mingw. The basics of Navit are now also working, more work needs to be done on the win32 port to get all functions to work

Reported by: afaber

Original Ticket: "navit/bugs/15":https://sourceforge.net/p/navit/bugs/15

search feature for Romanian towns do not work

Hi, I would like to know how to enable the search feature for Roania, according to wiki search is not working for Romania.

I closed the Romanian border over the Black See and almost all cities have the "is_in" tag included.
The "is_in" tag contains usually the country name in the national form "România". When I select the country in Navit the country is written as Romania.
I suppose that the search have to be done for “România,Romania,RO”

Reported by: alex-map

Original Ticket: navit/bugs/34

Several SEGV happened to me in parser

Hi there, I found several SEGV in parser using file: or pipe: vehicle modules. I (somehow sucessfully) wrote a workaround by checking, whether on the lines past
vehicle_file.c the items array of all items being accessed is valid. I think, that malformed messages from gpspipe lead to SEGV. This is even exploitable for code injection.

vehicle_file_parse(struct vehicle_priv *priv, char *buffer)
char *items[32]
...
then the string argument is exploded to items. But there is no check behind, that the string contained as many data fields as the specification of the NMEA command needs to have and returns a zero value if not.

My workaround is not stable, somehow GPS now works, but my interfaces freezes somewhere in the ZIP libraries. I dont know (yet) if this is related.

I could clean up my workaround to a patch, if it could be useful. Still note, I have only read the one file vehicle_file.c where gdb showed me the BOF was.

Details, what I really did:
excerpt:
<before I initialized all buffer[i] = NULL>

(here the string is exploeded to the item array
item[i++] = p;
while (*p && *p != ',')
p++;
if (!*p)
break;
*p++ = '\0';
}

#define ASS_ITEMS_VALID(x) {for (l=1; l <= x; l++) if (item[l] == NULL){printf("SEGV workaround is discarding\n");return 0;}}

if (!strncmp(buffer, "$GPGGA", 6)) {
// here I assert, that item 1-9 are valid

ASS_ITEMS_VALID(9);

lat = g_ascii_strtod(item[2], NULL);
priv->geo.lat = floor(lat / 100);

End of Citation

Here the relevant gdb output

navit:main:Using '/usr/local/share/navit/navit.xml'
vehicle_file:vehicle_file_parse:no leading $ in 'GPSD,R=1'

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1210370368 (LWP 7749)]
0xb73c34c2 in vehicle_file_io (priv=0x825a948) at vehicle_file.c:381
381 if (i == 12 && (*item[12] == 'A' || *item[12] == 'D'))
(gdb)

Still nice piece of software. Lets get it running :-)

Contact: martin ÄT martinwerner <dot> de

Reported by: martinwerner

Original Ticket: "navit/bugs/29":https://sourceforge.net/p/navit/bugs/29

mac osx needs machine/endian.h inclusion

src/endianness.h contains #include <endian.h> which is machine/endian.h on Mac OSX. It also includes byteswap.h which does not exist at all on Mac OSX, making compilation impossible.

I found this patch that works around it (http://wiki.openmoko.org/wiki/User:SNMoore\#Patch\_to\_work\_around\_byteswap.h\_and\_endian.h\_errors\_on\_OS\_X\)

Patch to work around byteswap.h and endian.h errors on OS X

-#include <byteswap.h>
-#include <endian.h>
+
+#ifndef _BYTESWAP_H
+#define _BYTESWAP_H
+
+//#warning "byteswap.h is an unportable GNU extension! Don't use!"
+
+static inline unsigned short bswap_16(unsigned short x) {
+ return (x>>8) | (x<<8);
+}
+
+static inline unsigned int bswap_32(unsigned int x) {
+ return (bswap_16(x&0xffff)<<16) | (bswap_16(x>>16));
+}
+
+static inline unsigned long long bswap_64(unsigned long long x) {
+ return (((unsigned long long)bswap_32(x&0xffffffffull))<<32) |
+(bswap_32(x>>32));
+}
+
+#endif
+
+
+#include <machine/endian.h>

Reported by: spaetz

Original Ticket: "navit/bugs/20":https://sourceforge.net/p/navit/bugs/20

code not portable and not robust

navit uses non-portable constructs and does not compile on a BSD system:

- use of fopen64 and O_LARGEFILE)
- including malloc.h (should use stdlib.h)
- main.c needs signal.h

however osm2navit.c doesn't bother to check
the return status of system calls!!! It also
uses assert to check the return status of malloc.

Its frustrating to have spent time trying to get the
software to work when even the most basic rules of developing robust C code are not followed.

I highly recommend the book "Writing Solid Code"
by Steve Maguire to any C programmer.

good luck with your project.

Reported by: diekhans

Original Ticket: "navit/bugs/14":https://sourceforge.net/p/navit/bugs/14

Searching city and street by sql server

Hi,

I have posted on the openmoko mailing list a message that is about
searching the street and city by a SQL server, propably sqlite.

I have tested generating these data from OSM with a small area and
it seems to work.

But big data is a problem when converted at once.

In general, is there an interest ?

Lothar

Reported by: lollisoft

Original Ticket: "navit/feature-requests/15":https://sourceforge.net/p/navit/feature-requests/15

Osm2Navit: Seg fault when all nodes are in order

When all nodes are in order, I get a segmentation fault. The problem is that the hash table pointers are not initialized to NULL (node_hash, tile_hash, tile_hash2 pointers), initializing them to NULL fixes the problem (see also my patch I've submitted to resolve the other hash table related problems). When applying the fixes, osm2navit runs now OK on win32 when compiling it with mingw. The basics of Navit are now also working, more work needs to be done on the win32 port to get all functions to work

Reported by: afaber

Original Ticket: "navit/bugs/16":https://sourceforge.net/p/navit/bugs/16

Location Sharing

Hey guys,

We're creating a project at OpenMoko that enables mobile devices to share their locations through the internet and make your friends visible on the map.
It is a really simple protocol and it would be really cool if all phones that will run OpenMoko are compatible with Cars running Navit.

Let me know what you think.

Geert at schuring dot eu.
Geert Schuring.

Reported by: nobody

Original Ticket: "navit/feature-requests/8":https://sourceforge.net/p/navit/feature-requests/8

Segfault when choosing destination

I can not choose any destination, this is under Ubuntu Feisty, fresh CVS compile, Grosser Reiseplanner 2007/2008 maps.

I see the keyboard, successfully choose my destination, and finally get a segfault. Here's the end of the trace :

read(3, "\34\177`\205`\2`\3\4\1\0\0\241\370\32\0\0\0\0\0\0\0\0\0"..., 32) = 32
read(3, "\1\0a\205\0\0\0\0\230\237n\10\1\0\0\0\0\20\0\0\0\0\0 \320"..., 32) = 32
gettimeofday({1182104687, 384830}, NULL) = 0
poll([{fd=3, events=POLLIN}], 1, 0) = 0
write(3, "C\0\7\0g\2`\3x\2`\3\0\0\1\0(\2\20\0\0\0I\0(\2\20\0\33\0"..., 36) = 36
write(1, "Selected row 4, column 5\n", 25Selected row 4, column 5
) = 25
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
write(1, "segmentation fault received\n", 28segmentation fault received
) = 28
open("crash.txt", O_WRONLY|O_APPEND|O_CREAT, 0666) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=59, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb72ae000
fstat64(4, {st_mode=S_IFREG|0644, st_size=59, ...}) = 0
_llseek(4, 59, [59], SEEK_SET) = 0
munmap(0xb72ae000, 4096) = 0
write(4, "segmentation fault received\n", 28) = 28
time(NULL) = 1182104687
open("/etc/localtime", O_RDONLY) = 18
fstat64(18, {st_mode=S_IFREG|0644, st_size=685, ...}) = 0
fstat64(18, {st_mode=S_IFREG|0644, st_size=685, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb72ae000
read(18, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\0\0\0\4\0"..., 4096) = 685
close(18) = 0
munmap(0xb72ae000, 4096) = 0
write(4, "Time: Sun Jun 17 20:24:47 2007\n", 31) = 31
munmap(0x82598b8, 1) = -1 EINVAL (Invalid argument)
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV (core dumped) +++
Process 11845 detached

Reported by: sch_lika

Original Ticket: "navit/bugs/3":https://sourceforge.net/p/navit/bugs/3

gypsy & bt-dev

if gypsy is enabled, libbluetooth-dev is requiered to compile, otherwise :

creating libvehicle_gypsy.la
/bin/sed: can't read /usr/lib/libbluetooth.la: No such file or directory
libtool: link: `/usr/lib/libbluetooth.la' is not a valid libtool archive
make[5]: *** [libvehicle_gypsy.la] Error 1

so ./configure should also check for bt-dev if gypsy found

Reported by: kevredon

Original Ticket: "navit/bugs/25":https://sourceforge.net/p/navit/bugs/25

crash after 3 letters in city search

Navit seems to crash when I enter the thrird letter of a city.

I am using a serial over USB GPS and a Garmin map (that I can provide if requested. I am running an up-to-date Ubuntu 8.10 on a eee-pc 701SD. I am using the latest svn version on navit and the garmin drivers (as of today, dec 22nd 2008).

Reported by: *anonymous

Original Ticket: "navit/bugs/27":https://sourceforge.net/p/navit/bugs/27

Efficient rendering - switch to cairo

Navit renders the map fast enough using the VESA X driver. However, it took 20s (!) to render a small city map when using the nouveau nvidia driver. This driver uses the EXA acceleration, and driver authors informed me that navit got slow because it uses an obsolete way of painting, a way that don't work well with modern acceleration.

They recommended using the cairo vector drawing library, as works well with modern graphics acceleration.

Reported by: hafting

Original Ticket: "navit/feature-requests/14":https://sourceforge.net/p/navit/feature-requests/14

[[ regex test in svg2png

in xpm/svg2png, the test [[ ]] is used to recognize a regex.
the [[ ]] is not available on every shell, but it is in bash since 3.0
so instead of using the shabang #!/bin/sh in svg2png, replace it with #!/bin/bash

this problem occurs on ubuntu 8.04

Reported by: kevredon

Original Ticket: "navit/bugs/24":https://sourceforge.net/p/navit/bugs/24

Save bookmarks in config dir, not bin dir

Navit SVN, built 20080625.I configured navit with the installation prefix /home/user/navit.app so I can simply copy it over to a N810.

Navit reads and writes
/home/user/.navit/navit.xml
and
/home/user/.navit/center.txt
but it reads and writes
/home/user/navit.app/bin/bookmark.txt
instead of
~/.navit/bookmark.txt

IMO it should read and write the bookmarks to the latter location as the other two files.

Reported by: christeck

Original Ticket: "navit/bugs/23":https://sourceforge.net/p/navit/bugs/23

Build for Nokia N770 fails

There are downloads available for the newer N800 but I've got an N770 running OS 2006 so I thought I'd try building it myself. I've got the SDK, scratchbox etc all set up and working. I downloaded the latest svn sources and the debian directory from http://tech.visser-scully.ca/.

Anyway, I get the following error:
gcc -Wall -g -O2 -Wall -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -ffast-math -o navit start.o -pthread -Wl,--export-dynamic -rdynamic ./.libs/libnavit.a /usr/lib/libgthread-2.0.so -lpthread /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so -lz -L/var/tmp/navit-0.1.1/navit/fib-1.1 /var/tmp/navit-0.1.1/navit/fib-1.1/.libs/libfib.a -lm
./.libs/libnavit.a(vehicle.o): In function `vehicle_log_gpx':/var/tmp/navit-0.1.1/navit/vehicle.c:69: undefined reference to `g_time_val_to_iso8601'
collect2: ld returned 1 exit status
make[5]: *** [navit] Error 1
make[5]: Leaving directory `/targets/SDK_ARM/var/tmp/navit-0.1.1/navit

Looking back much earlier, I see:
vehicle.c: In function `vehicle_log_gpx':
vehicle.c:69: warning: implicit declaration of function `g_time_val_to_iso8601'
vehicle.c:69: warning: assignment makes pointer from integer without a cast

Is g_time_val_to_iso8601 something that's been added to glib since the version that comes with OS 2006? Would it perhaps be possible to add a configure test and alternative implementation that does something like convert to UTC and then uses glib's strftime?

Reported by: *anonymous

Original Ticket: navit/bugs/32

libXrandr not available on Mac OS X ?

Hi,

I am trying to compile navit on Mac OS X Leopard. After getting the gpsd source code I was able to finish configure, but building fails at linking libgui_internal:

/usr/X11/lib/libXrandr.2.1.0.dylib: No such file or directory

Any ideas where to get it ?

What else can I do ?

Thanks

Lothar

Reported by: lollisoft

Original Ticket: "navit/bugs/26":https://sourceforge.net/p/navit/bugs/26

libXmu-devel dependency not covered by configure

make[6]: Entering directory `/home/fedora/navit-0.0.3/src/gui/sdl'
/bin/sh ../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/CEGUI -I../../../src -DMODULE="gui_sdl" -g -O2 -Wall -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -ffast-math -MT wmcontrol.lo -MD -MP -MF .deps/wmcontrol.Tpo -c -o wmcontrol.lo wmcontrol.c
gcc -DHAVE_CONFIG_H -I. -I../../.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/CEGUI -I../../../src -DMODULE="gui_sdl" -g -O2 -Wall -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -ffast-math -MT wmcontrol.lo -MD -MP -MF .deps/wmcontrol.Tpo -c wmcontrol.c -fPIC -DPIC -o .libs/wmcontrol.o
wmcontrol.c:12:29: error: X11/Xmu/WinUtil.h: No such file or directory

Installation of libXMU-devel on my Fedora 8 resolved this problem

Reported by: *anonymous

Original Ticket: "navit/bugs/17":https://sourceforge.net/p/navit/bugs/17

Can not find X, configure error on debian/Eee PC

Below is the error I get when running on a Debian etch and mini laptop Asus Eee PC. Below is the results.

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for pkg-config... no
checking build system type... i686-pc-linux
checking host system type... i686-pc-linux
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for X... no
Can not find X
/home/user/apps/gps/navit-0.0.2>

============================================
# I found the place in the configure script that has a problem, and changed a few things to see what output I would get...

#-------------------------- debug -----------------------
echo ---have_x=$have_x---
echo changing to xyes
have_x="xyes"
echo ---have_x=$have_x---

#if test x"$have_x" != xyes; then
if test "$have_x" != xyes; then
echo "Can not find X"
exit -1
fi
#-------------------------- debug -----------------------

checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for X... no
---have_x=no---
changing to xyes
---have_x=xyes---
checking for NAVIT... configure.s: error: Package requirements (glib-2.0 gmodule-2.0) were not met:

No package 'glib-2.0' found
No package 'gmodule-2.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables NAVIT_CFLAGS
and NAVIT_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

Reported by: *anonymous

Original Ticket: "navit/bugs/13":https://sourceforge.net/p/navit/bugs/13

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.