PiRSquared17 / quadra

Automatically exported from code.google.com/p/quadra
0 stars 0 forks source link

configure: WARNING: X11 is required and could not be found! #116

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download quadra-1.2.0.tar.gz
2. Extract it
3. Go to the directory
4. Launch the configure script

What is the expected output? What do you see instead?
I got configure: WARNING: X11 is required and could not be found!
I should have something telling I got X11 because I have installed the 
libx11-dev and libx11-6 packages.

What version of the product are you using? On what operating system?
1.2.0
Debian GNU/Linux "Lenny"

Please provide any additional information below.

Original issue reported on code.google.com by samsonpi...@gmail.com on 17 Aug 2010 at 3:07

Attachments:

GoogleCodeExporter commented 9 years ago
That error message is erroneous, unfortunately. What you're really missing is 
the development package for libxpm (libxpm-dev on Debian? not sure). See line 
419 in the config.log you attached.

Sorry about that! I'd improve the error message, but further releases are 
probably going to be from the SDL version that doesn't have that message at all.

Original comment by pphaneuf on 17 Aug 2010 at 3:25

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Ok you are right.
I have done :
$ cat config.log | grep error
to see what files are missing.
So, I installed the packages to get these files installed :
- libxpm-dev for X11/xpm.h
- x11proto-xext-dev for X11/extensions/XShm.h
- x11proto-xf86vidmode-dev for X11/extensions/xf86vmode.h
- zlib1g-dev for zlib.h
- libpng12-dev for png.h

But I see again some errors :
$ ./configure
configure: WARNING: X11 is required and could not be found!
configure: error: Required dependencies missing.
$ cat config.log | grep error
conftest.c:8:28: error: ac_nonexistent.h: No such file or directory
conftest.c:8:28: error: ac_nonexistent.h: No such file or directory
| /* Override any GCC internal prototype to avoid an error.
| /* Override any GCC internal prototype to avoid an error.
| /* Override any GCC internal prototype to avoid an error.
conftest.c:59:28: error: machine/endian.h: No such file or directory
conftest.c:26:28: error: machine/endian.h: No such file or directory
conftest.c:59:32: error: machine/byte_order.h: No such file or directory
conftest.c:26:32: error: machine/byte_order.h: No such file or directory
configure:6979: error: Required dependencies missing.

For these headers files, I see no DEBIAN packages :
$ apt-file find machine/endian.h
$ apt-file find ac_nonexistent.h
$ apt-file find machine/byte_order.h

It is a problem for me... I can't compile the game.

Do you know how can I get these missing files installed?

Original comment by samsonpi...@gmail.com on 18 Aug 2010 at 6:37

GoogleCodeExporter commented 9 years ago
These files aren't really missing, they're just files that can be in different 
locations on some systems (including Mac OS X, which is fairly different than 
Linux). On most Linux systems, it's just "endian.h", without the "machine/" 
part (should be in /usr/include, if you want to double-check).

I'm not sure why you're still getting an error about X11, though, the list of 
packages you gave sounds like it should cover everything?

Could you attach a config.log file generated after you installed all these 
packages? Thanks!

Original comment by pphaneuf on 18 Aug 2010 at 3:26

GoogleCodeExporter commented 9 years ago
I attach the config.log file, I hope it can help you.

Yes I have endian.h at 2 places but for the others files, I don't have them :
$ find /usr/include/ -name endian.h
/usr/include/bits/endian.h
/usr/include/endian.h
$ find /usr/include/ -name byte_order.h
$ find /usr/include/ -name ac_nonexistent.h

The problem is : I don't know how to tell to the configure script to check in 
/usr/include instead of /usr/include/machine directory.

Do you know how I can do this?

Original comment by samsonpi...@gmail.com on 19 Aug 2010 at 3:45

Attachments:

GoogleCodeExporter commented 9 years ago
The compiler already looks in /usr/include for header files, this isn't a 
problem. The "ac_nonexistent.h" one, in particular, is something internal to 
autoconf that is not even used in Quadra. For the others, I look for a number 
of files, and use the one that works, so it's okay if some do not work (looks 
for machine/endian.h, machine/byte_order.h, and endian.h, the last one is the 
one that works on your system, the errors are normal).

The reason for the "X11 could not be found" seems to be these:

/usr/bin/ld: cannot find -lXext
/usr/bin/ld: cannot find -lXxf86vm

I was pretty sure the packages you have installed there should have done it! 
According to http://packages.debian.org/, you need to install "libxext-dev" and 
"libxxf86vm-dev". I'm not sure what the packages you installed are? Maybe they 
separated the headers from the libraries?

Also, I saw this, which might be a cause for concern, but easily fixed:

./configure: line 4503: g++: command not found

Have fun! :-)

Original comment by pphaneuf on 19 Aug 2010 at 2:04

GoogleCodeExporter commented 9 years ago
I should read the config.log file more carefully, but there is so many lines :-)
You are right these shared libraries are missing :
$ cat config.log | grep cannot
/usr/bin/ld: cannot find -lICE
/usr/bin/ld: cannot find -lXext
/usr/bin/ld: cannot find -lXxf86vm

And, again you are right, the packages I must install are "libxext-dev" and 
"libxxf86vm-dev" :
$ apt-file find libXext.so
libxext-dev: /usr/lib/libXext.so
libxext6: /usr/lib/libXext.so.6
libxext6: /usr/lib/libXext.so.6.4.0
libxext6-dbg: /usr/lib/debug/usr/lib/libXext.so.6.4.0
lsb-build-base3: /usr/lib/lsb3/libXext.so
$ apt-file find libXxf86vm.so
libxxf86vm-dev: /usr/lib/libXxf86vm.so
libxxf86vm1: /usr/lib/libXxf86vm.so.1
libxxf86vm1: /usr/lib/libXxf86vm.so.1.0.0
libxxf86vm1-dbg: /usr/lib/debug/usr/lib/libXxf86vm.so.1.0.0

So after I install them... The configure script is happy and doesn't tell me 
"configure: WARNING: X11 is required and could not be found!".

Problem solved.

Original comment by samsonpi...@gmail.com on 20 Aug 2010 at 10:37