Re: Weird Torcs error

Evgenios Kastanias <[email protected]> Mon, 18 Nov 2013 17:31:30 +0000 (UTC)
Newsgroups gmane.games.torcs.general
Message-ID <[email protected]>
Bernhard Wymann <berniw <at> bluewin.ch> writes:

> 
> Hi Evgenios
> 
> Uff, looks all pretty good (I will have another look tomorrow), only the 
> "torcs -l" is weird, I run out of ideas...
> 
> Can you publish as well the generated "torcs" script and the output of 
> "cd ~/torcs_bin; tree lib" (maybe you have to install "tree" first).
> 
> Just to review if the generated torcs script makes sense and if the 
> files are there. What would be interesting as well is the location of 
> libopenal.so.* files for example. But somehow it does not even miss it.
> 
> Best regards
> 
> Bernhard

Hi, sorry for not replying sooner. This the output of tree lib

lib
└── torcs
    ├── accc-bin
    ├── drivers
    │   ├── berniw
    │   │   └── berniw.so
    │   ├── berniw2
    │   │   └── berniw2.so
    │   ├── berniw3
    │   │   └── berniw3.so
    │   ├── bt
    │   │   └── bt.so
    │   ├── damned
    │   │   └── damned.so
    │   ├── human
    │   │   └── human.so
    │   ├── inferno
    │   │   └── inferno.so
    │   ├── inferno2
    │   │   └── inferno2.so
    │   ├── lliaw
    │   │   └── lliaw.so
    │   ├── olethros
    │   │   └── olethros.so
    │   ├── sparkle
    │   │   └── sparkle.so
    │   └── tita
    │       └── tita.so
    ├── lib
    │   ├── libclient.so
    │   ├── libconfscreens.so
    │   ├── liblearning.so
    │   ├── libmusicplayer.so
    │   ├── libraceengine.so
    │   ├── libracescreens.so
    │   ├── librobottools.so
    │   ├── libtgfclient.so
    │   ├── libtgf.so
    │   └── libtxml.so
    ├── modules
    │   ├── graphic
    │   │   └── ssggraph.so
    │   ├── simu
    │   │   └── simuv2.so
    │   ├── telemetry
    │   │   └── telemetry.so
    │   └── track
    │       └── track.so
    ├── nfs2ac-bin
    ├── nfsperf-bin
    ├── setup_linux.sh
    ├── texmapper-bin
    ├── torcs-bin
    └── trackgen-bin


And I hope this is the correct torcs script:

#! /bin/bash
# src/linux/torcs.  Generated from torcs.in by configure.

############################################################################
##
#
#    file                 : torcs.in
#    created              : Sat Sep 11 20:20:04 CEST 1999
#    copyright            : (C) 1999 by Eric Espie                         
#    email                : [email protected]   
#    version              : $Id: torcs.in,v 1.5.2.4 2012/06/01 01:59:42 
berniw Exp $                                  
#
############################################################################
##
#
#   This program is free software; you can redistribute it and/or modify
#   it under the terms of the GNU General Public License as published by
#   the Free Software Foundation; either version 2 of the License, or
#   (at your option) any later version.
#
############################################################################
##

prefix=/home/evgenios/torcs_bin
exec_prefix=${prefix}

BINDIR=${exec_prefix}/bin
LIBDIR=${exec_prefix}/lib/torcs
DATAROOTDIR=${prefix}/share
DATADIR=$DATAROOTDIR/games/torcs
VARDIR=${prefix}/var/games/torcs

LOCAL_CONF=$HOME/.torcs

if [ -d $DATADIR ]
then
    if [ ! -d $LOCAL_CONF ]
    then
	rm -rf $LOCAL_CONF
	mkdir -p $LOCAL_CONF
	echo "$LOCAL_CONF created, copying/linking game data"
    fi
    export LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}$LIBDIR/lib
    cd $DATADIR
    if [ -f $LIBDIR/setup_linux.sh ]
    then
	/bin/bash $LIBDIR/setup_linux.sh $LOCAL_CONF
	if [ $? -ne 0 ]
	then
	    exit 1
	fi
    else
	echo "$LIBDIR/setup_linux.sh file does not exist, check your 
installation"
	exit 1
    fi
    case $1 in
	# List the library used
	-l) shift
	    ldd $LIBDIR/torcs-bin
	    ;;

	# Run under GDB
	-d) shift
	    gdb  $LIBDIR/torcs-bin <<EOF
r -l $LOCAL_CONF -L $LIBDIR -D $DATADIR $*
bt
EOF
	    ;;

	-g) shift
	    valgrind --leak-check=yes --log-file=$LOCAL_CONF/valgrind.log 
$LIBDIR/torcs-bin -l $LOCAL_CONF -L $LIBDIR -D $DATADIR $*
	    ;;

	-e) shift
	    echo "cd $DATADIR"
	    echo "export LD_LIBRARY_PATH=$LIBDIR/lib:$LD_LIBRARY_PATH"
	    echo "gdb  $LIBDIR/torcs-bin"
	    echo "r -l $LOCAL_CONF -L $LIBDIR -D $DATADIR $*"
	    ;;

	-h)
	    echo "usage: torcs [-l|-d|-g|-e] [-s] [-r]"
	    echo "   -l  list the dynamically linked libraries"
	    echo "   -d  run under gdb and print stack trace on exit"
		echo "   -g  run under valgrind (requires a debug build for 
useful results)"
	    echo "   -e  display the commands to issue when you want to run 
under gdb"
		echo "   -s  disable multitexturing, important for older 
graphics cards"
		echo "   -r  run race in command line mode, see FAQ for 
details"
		echo "   -k  suppress dlclose for modules (useful to get 
symbol information with valgrind)"
	    ;;

	# Normal run
	*) $LIBDIR/torcs-bin -l $LOCAL_CONF -L $LIBDIR -D $DATADIR $*
	    ;;

    esac
    exit 0
fi

echo "TORCS location not found"
	
	


------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Torcs-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/torcs-users