Re: Problem compiling simuv3.so (necessary for testing/driving high-banked tracks)
Bernhard Wymann <[email protected]>
| Newsgroups | gmane.games.torcs.general |
|---|---|
| Organization | wytec |
| Message-ID | <[email protected]> |
Hi I fixed the build some days ago in CVS (for Posix, did not look at Windows), but I did not do any runtime testing whatsoever. Review the change: http://torcs.cvs.sourceforge.net/viewvc/torcs/torcs/torcs/src/modules/simu/simuv3/Options.h?r1=1.4.2.1&r2=1.4.2.2&pathrev=r1-3-1 Best regards Bernhard On 10/18/2012 05:24 PM, [email protected] wrote: > > Since the default simuv2.so fails on all high-banked tracks (20+ deg), I > should apparently have simuv3.so. Unfortunately (and unsurprisingly), I > face another brick wall when trying to compile it on my own. Does > anybody with coding competence know how to compile it, and agree to > share that information with this dipstick (simple instructions and clear > commands if possible)? > > These are the (mis)steps I took and their results: > > 1. run "make" in /torcs-1.3.3/src/modules/simu/simuv3. No targets found, > exiting. Nothing happens. > > What is the target supposed to be, and how do I add it (and where)? (For > those sighing in exasperation, I know I'm clueless.) > > 2. change the Makefile in /torcs-1.3.3/src/modules/simu/ so that SUBDIRS > =simuv2 simuv3, then run "make" in that folder. Same > complaint, no targets, no action follows, except for temperature rising > rapidly in the engine block. > > 3. move to the /torcs-1.3.3 root folder in terminal, and then run > "make". Now wheels are set in motion, but as usual, they soon grind to a > halt, with the following output: > > g++ -I/home/myhome/torcs-1.3.3/export/include -I/home/myhome/torcs-1.3.3 > -g -O2 -Wall -fPIC -fno-strict-aliasing -O2 -DUSE_RANDR_EXT > -DGL_GLEXT_PROTOTYPES -Wall -fPIC -fno-strict-aliasing -O2 > -DUSE_RANDR_EXT -DGL_GLEXT_PROTOTYPES -D_SVID_SOURCE -D_BSD_SOURCE > -DSHM -DHAVE_CONFIG_H -c SimulationOptions.cpp > In file included from SimulationOptions.h:15, > from SimulationOptions.cpp:13: > Options.h: In member function ‘virtual bool AbstractOption::Match(const > char*)’: > Options.h:44: error: ‘strcmp’ was not declared in this scope > Options.h: In constructor ‘Option<T>::Option(const char*, T*)’: > Options.h:68: error: there are no arguments to ‘strlen’ that depend on a > template parameter, so a declaration of ‘strlen’ must be available > Options.h:68: note: (if you use ‘-fpermissive’, G++ will accept your > code, but allowing the use of an undeclared name is deprecated) > Options.h:74: error: there are no arguments to ‘strdup’ that depend on a > template parameter, so a declaration of ‘strdup’ must be available > Options.h: In destructor ‘virtual Option<T>::~Option()’: > Options.h:82: error: there are no arguments to ‘free’ that depend on a > template parameter, so a declaration of ‘free’ must be available > make[5]: *** [SimulationOptions.o] Error 1 > > What went wrong, and what should be done to successfully complete the > compilation? Or is this totally hopeless? So many good high-banked > tracks created and in the works, but because of this obstacle, they > can't be driven. > > Help would be greatly appreciated, as always. > ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct _______________________________________________ Torcs-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/torcs-users