Ubuntu 11.04 - Torcs 1.3.0 kompilieren schlägt fehl

Software besorgen und anwenden
Post Reply
Message
Author
Heinz

Ubuntu 11.04 - Torcs 1.3.0 kompilieren schlägt fehl

#1 Post by Heinz »

Hallo allerseits,

ich bevorzuge TORCS, die Rennsimulation in der Version 1.3.0, weil hier die Fahrzeuge noch Namen haben und nicht nur mit car1-trb1 usw. numeriert sind.

Aaalso:

Anleitungen noch mal gelesen, Quellcode entpackt und das Configure-Skript angeworfen:

Code: Select all

./configure --x-libraries=/usr/lib/X11 --x-includes=/usr/include/X11
Was mir das Skript sagt siehe hier.

Dann "mach" ich mal:

Code: Select all

make
Und "make" spuckt mir dies hier aus. Es scheinen also alle notwendigen Pakete vorhanden zu sein.

Hab die ganze Ausgabe reingestellt, weil ich daraus nicht schlau werde.

Da scheint also die Datei [...]/torcs-1.3.0/src/modules/simu/simuv2/SOLID-2.0/src/new.h zu fehlen.

Eigenartig, unter Hardy hat das so noch funktioniert. :-o Falsche gcc-Version? (Hardy 4.2.3, Natty 4.5.2) Im Netz der Netze finde ich keinerlei Information darüber, und im ubuntuusers-Forum konnte man mir auch nicht helfen. Vielleicht hat jemand von Euch ja ne Idee...

Schöne Grüße

Heinz

Heinz

#2 Post by Heinz »

Hier ne kleine Korrektur: Natürlich zeigt nicht "make" an, ob eine Bibliothek oder ein Programm fehlt, sondern "configure". Peinlich... :oops:

Hier die Ausgabe von "configure":

Code: Select all

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 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... none
checking how to run the C preprocessor... gcc -E
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++... none
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking how to run the C++ preprocessor... g++ -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether time.h and sys/time.h may both be included... yes
checking for ar... ar
checking for ld... ld
checking whether byte ordering is bigendian... no
checking for X... libraries /usr/lib/X11, headers /usr/include/X11
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 GL/gl.h usability... yes
checking GL/gl.h presence... yes
checking for GL/gl.h... yes
checking GL/glut.h usability... yes
checking GL/glut.h presence... yes
checking for GL/glut.h... yes
checking GL/glx.h usability... yes
checking GL/glx.h presence... yes
checking for GL/glx.h... yes
checking X11/Xlib.h usability... yes
checking X11/Xlib.h presence... yes
checking for X11/Xlib.h... yes
checking X11/Xatom.h usability... yes
checking X11/Xatom.h presence... yes
checking for X11/Xatom.h... yes
checking X11/keysym.h usability... yes
checking X11/keysym.h presence... yes
checking for X11/keysym.h... yes
checking plib/ssg.h usability... yes
checking plib/ssg.h presence... yes
checking for plib/ssg.h... yes
checking AL/al.h usability... yes
checking AL/al.h presence... yes
checking for AL/al.h... yes
checking AL/alut.h usability... yes
checking AL/alut.h presence... yes
checking for AL/alut.h... yes
checking for sin in -lm... yes
checking for XOpenDisplay in -lX11... yes
checking for XShmCreateImage in -lXext... yes
checking for IceSetIOErrorHandler in -lICE... yes
checking for SmsSetErrorHandler in -lSM... yes
checking for XtDisplay in -lXt... yes
checking for XOpenDevice in -lXi... yes
checking for XmuSimpleErrorHandler in -lXmu... yes
checking for XF86VidModeSetViewPort in -lXxf86vm... yes
checking for XRenderSetSubpixelOrder in -lXrender... yes
checking for XRRQueryVersion in -lXrandr... yes
checking for alEnable in -lopenal... yes
checking for alutLoadWAVFile in -lalut... yes
checking for dlopen in -ldl... yes
checking for dlopen... yes
checking for strndup... yes
checking for crc32 in -lz... yes
checking for png_init_io in -lpng... yes
checking for glGetString in -lGL... yes
checking for gluOrtho2D in -lGLU... yes
checking for glutSwapBuffers in -lglut... yes
checking for main in -lplibul... yes
checking for main in -lplibsg... yes
checking for main in -lplibsl... yes
checking for main in -lplibsm... yes
checking for main in -lplibssg... yes
checking for main in -lplibssgaux... yes
checking for plib 1.8.3 or newer... yes
checking for GL_VERSION_1_3... yes
checking for GL_ARB_texture_compression... yes
configure: creating ./config.status
config.status: creating Make-config
config.status: creating src/linux/torcs
config.status: creating src/tools/accc/accc
config.status: creating src/tools/nfs2ac/nfs2ac
config.status: creating src/tools/nfsperf/nfsperf
config.status: creating src/tools/texmapper/texmapper
config.status: creating src/tools/trackgen/trackgen
config.status: creating src/doc/torcsdoc.conf
config.status: creating src/tools/package/specfiles/torcs-data.spec
config.status: creating src/tools/package/specfiles/torcs-data-cars-Patwo-Design.spec
config.status: creating src/tools/package/specfiles/torcs-data-cars-kcendra-gt.spec
config.status: creating src/tools/package/specfiles/torcs-data-cars-kcendra-sport.spec
config.status: creating src/tools/package/specfiles/torcs-data-cars-kcendra-roadsters.spec
config.status: creating src/tools/package/specfiles/torcs-data-cars-extra.spec
config.status: creating src/tools/package/specfiles/torcs-data-tracks-base.spec
config.status: creating src/tools/package/specfiles/torcs-robot-K1999.spec
config.status: creating src/tools/package/specfiles/torcs-robot-base.spec
config.status: creating src/tools/package/specfiles/torcs-robot-berniw.spec
config.status: creating src/tools/package/specfiles/torcs.spec
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
Hier kann ich keinen Fehler erkennen.

Und hier die Ausgabe von "make", ab dem Auftreten des ersten Fehlers:

Code: Select all

gcc -E  -M -D__DEPEND__ -I/mnt/daten/Software/Quellcodes/torcs-1.3.0/export/include -I/mnt/daten/Software/Quellcodes/torcs-1.3.0 -D_SVID_SOURCE -D_BSD_SOURCE -DSHM -DHAVE_CONFIG_H -DNDEBUG -Wno-deprecated  Transform.cpp Convex.cpp Box.cpp Cone.cpp Cylinder.cpp Sphere.cpp Simplex.cpp Polygon.cpp Polyhedron.cpp Complex.cpp BBoxTree.cpp Endpoint.cpp Object.cpp Response.cpp RespTable.cpp C-api.cpp > .depend
Complex.cpp:35:17: fatal error: new.h: Datei oder Verzeichnis nicht gefunden
compilation terminated.
BBoxTree.cpp:35:17: fatal error: new.h: Datei oder Verzeichnis nicht gefunden
compilation terminated.
Endpoint.cpp:35:17: fatal error: new.h: Datei oder Verzeichnis nicht gefunden
compilation terminated.
Object.cpp:36:17: fatal error: new.h: Datei oder Verzeichnis nicht gefunden
compilation terminated.
make[7]: *** [.depend] Fehler 1
make[7]: Verlasse Verzeichnis '/mnt/daten/Software/Quellcodes/torcs-1.3.0/src/modules/simu/simuv2/SOLID-2.0/src'
make[6]: *** [subdirs] Fehler 1
make[6]: Verlasse Verzeichnis '/mnt/daten/Software/Quellcodes/torcs-1.3.0/src/modules/simu/simuv2/SOLID-2.0'
make[5]: *** [subdirs] Fehler 1
make[5]: Verlasse Verzeichnis '/mnt/daten/Software/Quellcodes/torcs-1.3.0/src/modules/simu/simuv2'
make[4]: *** [subdirs] Fehler 1
make[4]: Verlasse Verzeichnis '/mnt/daten/Software/Quellcodes/torcs-1.3.0/src/modules/simu'
make[3]: *** [subdirs] Fehler 1
make[3]: Verlasse Verzeichnis '/mnt/daten/Software/Quellcodes/torcs-1.3.0/src/modules'
make[2]: *** [subdirs] Fehler 1
make[2]: Verlasse Verzeichnis '/mnt/daten/Software/Quellcodes/torcs-1.3.0/src'
make[1]: *** [subdirs] Fehler 1
make[1]: Verlasse Verzeichnis '/mnt/daten/Software/Quellcodes/torcs-1.3.0'
make: *** [restart] Fehler 2
Tja, man sollte hochzuladende Dateien erst mal ansehen, ob was fehlt. :twisted:

So, vielleicht findet Ihr ja jetzt, was nicht stimmt...

Schöne Grüße
Heinz

User avatar
Janka
Posts: 3585
Joined: 11. Feb 2006 19:10

#3 Post by Janka »

Die Frage muss sich an die Torcs-Entwickler richten, denn new.h ist kein Standardheader, noch wüsste ich irgendeine Bibliothek, die ihren Header einfach so "new.h" nennt. Folglich ist der Quellcode defekt.

Janka
Ich vertonne Spam immer in /dev/dsp statt /dev/null.
Ich mag die Schreie.

User avatar
logout
Posts: 65
Joined: 29. Jan 2011 0:16

#4 Post by logout »

Tut mir leid dich verbessern zu müssen.
Guckst du hier:
http://www.imb-jena.de/~gmueller/kurse/ ... eader.html
Hmm,wo ist eigentlich die Any-Key Taste?

Heinz

#5 Post by Heinz »

logout wrote:Tut mir leid dich verbessern zu müssen.
Guckst du hier:
http://www.imb-jena.de/~gmueller/kurse/ ... eader.html
Eben, bei Hardy ist es ja gegangen. :(

Heinz

User avatar
logout
Posts: 65
Joined: 29. Jan 2011 0:16

#6 Post by logout »

@ heinz,
das ist ein c++ header. Da nützt dir gcc nichts.
Bist du sicher, dass g++ installiert ist?
Hmm,wo ist eigentlich die Any-Key Taste?

User avatar
Janka
Posts: 3585
Joined: 11. Feb 2006 19:10

#7 Post by Janka »

Richtig, dann sollte da statt gcc g++ stehen. Außerdem im Quellcode prüfen, ob tatsächlich #include <new> drinsteht. #include <new.h> wäre falsch.

Janka
Ich vertonne Spam immer in /dev/dsp statt /dev/null.
Ich mag die Schreie.

User avatar
logout
Posts: 65
Joined: 29. Jan 2011 0:16

#8 Post by logout »

Ja, ist schon ein wenig verworren.
Habe mal nachgeschaut, und das hier gefunden:
http://www.cplusplus.com/reference/std/ ... w_handler/
Ich hatte unter Debian auch schon Probleme Torcs aus den Quellen zu installieren.
Bekam auch merkwürdige Fehlermeldungen.
Vermutlich sind da einige Abhängigkeiten, die nicht berücksichtigt werden.
Hmm,wo ist eigentlich die Any-Key Taste?

Post Reply