|
From: Marcin S. <ms...@gm...> - 2008-09-18 11:42:36
|
Hello,
Thanks for solutions, it helped to install Torcs, but now I have another
problem:
sudo make datainstall
did not work:
oot@Feniks:~/Pulpit/TORCS/torcs-1.3.0$ sudo make datainstall
[sudo] password for Coot:
make[1]: Wejście do katalogu `/home/Coot/Pulpit/TORCS/torcs-1.3.0/data'
make[1]: *** Brak reguł do wykonania obiektu `datainstall'. Stop.
make[1]: Opuszczenie katalogu `/home/Coot/Pulpit/TORCS/torcs-1.3.0/data'
make: *** [installdatadirs] Błąd 1
Thus I just copied the catalog data to /usr/local/share/games/torcs
and the game starts, but then there is a segmentation fault:
Coot@Feniks:/usr/local/share/games/torcs$ torcs
Visual Properties Report
------------------------
Compatibility mode, properties unknown.
/usr/local/bin/torcs: line 52: 7130 Segmentation fault
$LIBDIR/torcs-bin -l $LOCAL_CONF -L $LIBDIR -D $DATADIR $*
I'm using kubuntu and I could also install the game from repositories, but
then after I run the game in the middle of a first lap a segmentation fault
appears as well.
Best regards and
Thanks
Marcin
---------- Forwarded message ----------
From: Marcin Szamotulski <ms...@gm...>
Date: Wed, Sep 17, 2008 at 7:01 PM
Subject: Torcs Compilation Problem
To: tor...@li...
Hello,
When I compile Torcs from source code on my laptop:
AMD Turion 64x2 with Kubuntu Hardy Heron
with ./configure CHOST="i686-pc-linux-gnu" CFLAGS="-march=native"
CXXFLAGS="${CFLAGS}"
the program is unable to find libx11, in the attachment I send You my
config.log from running ./configure as above.
The message that has appear during configuration is the following:
configure: error: Can't find libX11. Please check config.log and if you
can't solve the problem send the file to
tor...@li... the subject "torcs compilation
problem"
Here is the part of config.log which might be useful:
configure:6457: checking for XOpenDisplay in -lX11
configure:6487: g++ -o conftest -Wall -fPIC -fno-strict-aliasing -O2
-DUSE_RANDR_EXT -DGL_GLEXT_PROTOTYPES -L conftest.cc -lX11 -lm >&5
/usr/lib/gcc/x86_64-linux-gnu/4.2.3/../../../../lib/crt1.o: In function
`_start':
(.text+0x20): 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 exit (int) throw ();
| #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... the subject "torcs compilation
problem"
Best regards, and thanks for any ideas,
Marcin |