[Gambas-user] X11/Xlib.h error

ron ronstk at ...239...
Fri Oct 1 01:40:31 CEST 2004


On Thursday 30 September 2004 17:46, Paolo Saudin wrote:
> Hi all,
> I'm trying to compile gambas 0.99 in Yoper 2.1, the ./configure command 
> seems to be ok, but when I type make, I get the following error:
> ...........................
> Making all in html
> make[6]: Entering directory 
> `/home/paolo/stuff/gambas-0.99/src/lib/qt/kde/html'
> /bin/sh ../../../../../libtool --mode=compile c++ -DHAVE_CONFIG_H -I. 
> -I. -I../../../.r/lib/qt-3.3/include/ -D_REENTRANT     -g -O2 -pipe 
> -Wall -fno-exceptions -g -Os -fno- c++ -DHAVE_CONFIG_H -I. -I. 
> -I../../../../.. -I../../../../../src/share -I/usr/lib/qt- -Wall 
> -fno-exceptions -g -Os -fno-omit-frame-pointer -c main.cpp  -fPIC -DPIC 
> -o main
> main.cpp:41:22: X11/Xlib.h: No such file or directory
> 
> This file is locate in "/usr/X11R6/include/X11/Xlib.h"
> I tried the ./configure --x-includes=/usr/X11R6/include/ , ./configure 
> --x-includes=/usr/X11R6/include/X11/  without success. I keep getting 
> the error. Any Idea? Many thanks!
> Paolo
> 
> 

Maybe I'm wrong.

But try './configure --x-includes=/usr/X11R6/' without the 'include' directory.

As I understood the --x-includes should point to the place the 'include' directory is
configure adds 'include' to it and the main.cpp is adding 'X11/Xlib.h' resulting
the full path as '/usr/X11R6' / 'include' / 'X11/Xlib.h'.

However it is strange, SuSE has the same path for Xlib.h and I do not set it myself.

In my 'config.log':
configure:12068: checking for X
configure:12288: result: libraries /usr/X11R6/lib, headers /usr/X11R6/include
configure:12441: gcc -o conftest -g -O2   conftest.c   -L/usr/X11R6/lib -lX11 >&5

May be this helps if you compare.




More information about the User mailing list