Re: Torcs Crashes after clicking on "New Race "

Bernhard Wymann <[email protected]>
Newsgroups gmane.games.torcs.general
Organization wytec
Message-ID <[email protected]>
Hi

Hmm, very strange... I always wonder why there are differences regarding 
linking...

Does "torcs -l" report it as missing library, or is it not listed at all?

Did you run "configure" before you compiled the package, this should set 
up the LDFLAGS properly, e.g. here is what I get on my system:

Some snippets out of my config.log:
configure:6106: checking for alutLoadWAVFile in -lalut
configure:6131: g++ -o conftest -march=barcelona -O2 
-fno-strict-aliasing -Wall -fPIC -fno-strict-aliasing -O2 
-DUSE_RANDR_EXT -DGL_GLEXT_PROTOTYPES -march=barcelona -O2 
-fno-strict-aliasing  -lopenal conftest.cpp -lalut  -lXrandr -lXrender 
-lXxf86vm -lXmu -lXi -lXt -lSM -lICE -lXext -lX11 -lm  >&5

ac_cv_lib_alut_alutLoadWAVFile=yes

LDFLAGS=' -lopenal -lalut -lvorbisfile'

Then the compiler (linking) commands emitted are like this:

g++ -shared -o libconfscreens.so controlconfig.o graphconfig.o 
mouseconfig.o driverconfig.o joystickconfig.o simuconfig.o soundconfig.o 
openglconfig.o -L/home/berni/torcs_src/torcs/torcs/export/lib  -lopenal 
-lalut -lvorbisfile -L/usr/lib  -lplibjs

So I would guess "configure" failed somehow.

Best regards

Bernhard

On 10/07/2012 04:57 PM, Anand Madhusoodanan wrote:
> Hi,
>      I managed to compile and install Torcs on Ubuntu 10.04. However,
> when i click on New Race after opening Torcs, it crashes with this message.
>
> linuxModLoad: ...  /usr/local/lib/torcs/modules/graphic/ssggraph.so:
> undefined symbol: alutLoadWAVFile
> /usr/local/bin/torcs: line 53:  1885 Segmentation fault
>   $LIBDIR/torcs-bin -l $LOCAL_CONF -L $LIBDIR -D $DATADIR $*
>
> I googled the
> problem(http://debian.2.n7.nabble.com/Bug-357835-Missing-library-flag-for-ALUT-from-openal-config-td60952.html)  and
> tried to run torcs like this.
>
> torcs -I/usr/local/include -L/usr/local/lib -lopenal
>
> But it crashes again showing a different message.
>
> linuxModLoad: ...  -lopenal/modules/track/track.so: cannot open shared
> object file: No such file or directory
> /usr/local/bin/torcs: line 53:  1932 Segmentation fault
>   $LIBDIR/torcs-bin -l $LOCAL_CONF -L $LIBDIR -D $DATADIR $*
>
> Could someone help me out with this?
>
>
> Regards,
> Anand.
>
>
> ------------------------------------------------------------------------------
> Don't let slow site performance ruin your business. Deploy New Relic APM
> Deploy New Relic app performance management and know exactly
> what is happening inside your Ruby, Python, PHP, Java, and .NET app
> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
> http://p.sf.net/sfu/newrelic-dev2dev
>
>
>
> _______________________________________________
> Torcs-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/torcs-users
>


------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.