|
From: Frank A. <Fra...@br...> - 2007-04-13 10:49:44
|
Running Kubuntu 7.04 and torcs-1.3.0:
If I run ./configure direct, I get the following error in config.log:
---
configure:6457: checking for XOpenDisplay in -lX11
configure:6487: g++ -o
conftest -g -O2 -Wall -fPIC -fno-strict-aliasing -O2 -DUSE_RANDR_EXT -DGL_GLEXT_PROTOTYPES -L
conftest.cc -lX11 -lm >&5
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/crt1.o: In function
`_start':
(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
configure:6493: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "torcs"
| #define VERSION "1.3.0"
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| #define STDC_HEADERS 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_LIBM 1
| /* end confdefs.h. */
|
| /* Override any gcc2 internal prototype to avoid an error. */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* We use char because int might match the return type of a gcc2
| builtin and then its argument prototype would still apply. */
| char XOpenDisplay ();
| int
| main ()
| {
| XOpenDisplay ();
| ;
| return 0;
| }
configure:6519: result: no
configure:6529: error: Can't find libX11. Please check config.log and if you
can't solve the problem send the file to tor...@li...
with the subject "torcs c
ompilation problem"
---
Both package libx11-dev and xlibs-dev are installed, so the headers should be
available.
Any feedback would be appreciated!
Best regards,
Frank Aune
|