Re: Weird Torcs error

Bernhard Wymann <[email protected]> Thu, 14 Nov 2013 20:34:44 +0100
Newsgroups gmane.games.torcs.general
Organization wytec
Message-ID <[email protected]>
Hi Evgenios

Is this all output of torcs -l, there is missing a lot of stuff (vorbis, 
openal, parts of torcs, ...)?

Can you try to run as root "ldconfig", and then try again, and if that 
not helps restart the system? Does this help?

What is suspect is that some libs are in /usr/local/lib... and some in 
/usr/lib/x86_64..., this raises the question if this is normal on this 
system or if you have mixed up somehow 64 and 32 bit stuff, e.g my torcs 
-l output is like this and pretty consistent:

         linux-vdso.so.1 (0x00007fff1cdff000)
         libopenal.so.1 => /usr/lib64/libopenal.so.1 (0x00007f59339b2000)
         libalut.so.0 => /usr/lib64/libalut.so.0 (0x00007f59337aa000)
         libvorbisfile.so.3 => /usr/lib64/libvorbisfile.so.3 
(0x00007f59335a1000)
         libracescreens.so => 
/home/berni/torcs_bin/lib64/torcs/lib/libracescreens.so (0x00007f5933390000)
         librobottools.so => 
/home/berni/torcs_bin/lib64/torcs/lib/librobottools.so (0x00007f5933189000)
         libclient.so => 
/home/berni/torcs_bin/lib64/torcs/lib/libclient.so (0x00007f5932ad3000)
         libconfscreens.so => 
/home/berni/torcs_bin/lib64/torcs/lib/libconfscreens.so (0x00007f59328c5000)
         libtgf.so => /home/berni/torcs_bin/lib64/torcs/lib/libtgf.so 
(0x00007f59326b9000)
         libtgfclient.so => 
/home/berni/torcs_bin/lib64/torcs/lib/libtgfclient.so (0x00007f593249e000)
         libtxml.so => /home/berni/torcs_bin/lib64/torcs/lib/libtxml.so 
(0x00007f593227f000)
         libraceengine.so => 
/home/berni/torcs_bin/lib64/torcs/lib/libraceengine.so (0x00007f593206f000)
         libmusicplayer.so => 
/home/berni/torcs_bin/lib64/torcs/lib/libmusicplayer.so (0x00007f5931e69000)
         liblearning.so => 
/home/berni/torcs_bin/lib64/torcs/lib/liblearning.so (0x00007f5931c54000)
         libglut.so.3 => /usr/lib64/libglut.so.3 (0x00007f5931a09000)
         libGLU.so.1 => /usr/lib64/libGLU.so.1 (0x00007f593178a000)
         libGL.so.1 => /usr/X11R6/lib64/libGL.so.1 (0x00007f593145c000)
         libpng12.so.0 => /usr/lib64/libpng12.so.0 (0x00007f5931232000)
         libz.so.1 => /lib64/libz.so.1 (0x00007f593101c000)
         libdl.so.2 => /lib64/libdl.so.2 (0x00007f5930e18000)
         libXrandr.so.2 => /usr/lib64/libXrandr.so.2 (0x00007f5930c0e000)
         libXrender.so.1 => /usr/lib64/libXrender.so.1 (0x00007f5930a04000)
         libXxf86vm.so.1 => /usr/lib64/libXxf86vm.so.1 (0x00007f59307fe000)
         libXmu.so.6 => /usr/lib64/libXmu.so.6 (0x00007f59305e3000)
         libXi.so.6 => /usr/lib64/libXi.so.6 (0x00007f59303d3000)
         libXt.so.6 => /usr/lib64/libXt.so.6 (0x00007f593016c000)
         libSM.so.6 => /usr/lib64/libSM.so.6 (0x00007f592ff64000)
         libICE.so.6 => /usr/lib64/libICE.so.6 (0x00007f592fd48000)
         libXext.so.6 => /usr/lib64/libXext.so.6 (0x00007f592fb36000)
         libX11.so.6 => /usr/lib64/libX11.so.6 (0x00007f592f7fa000)
         libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007f592f4f4000)
         libm.so.6 => /lib64/libm.so.6 (0x00007f592f1f6000)
         libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f592efdf000)
         libc.so.6 => /lib64/libc.so.6 (0x00007f592ec31000)
         librt.so.1 => /lib64/librt.so.1 (0x00007f592ea29000)
         libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f592e80d000)
         libvorbis.so.0 => /usr/lib64/libvorbis.so.0 (0x00007f592e5df000)
         libogg.so.0 => /usr/lib64/libogg.so.0 (0x00007f592e3d8000)
         libnvidia-tls.so.319.32 => 
/usr/lib64/tls/libnvidia-tls.so.319.32 (0x00007f592e1d5000)
         libnvidia-glcore.so.319.32 => 
/usr/lib64/libnvidia-glcore.so.319.32 (0x00007f592bc7e000)
         /lib64/ld-linux-x86-64.so.2 (0x00007f5933c0a000)
         libuuid.so.1 => /usr/lib64/libuuid.so.1 (0x00007f592ba79000)
         libxcb.so.1 => /usr/lib64/libxcb.so.1 (0x00007f592b859000)
         libXau.so.6 => /usr/lib64/libXau.so.6 (0x00007f592b655000)


I suggest performing this experiment: build TORCS from fresh extracted 
sources into your home directory and run it from there (this way you 
have not to fight with permissions/root):
1. Make sure that your environment variables are empty, check "echo 
$MAKE_DEFAULT" and "echo $TORCS_BASE" (you can set them later again for 
robot development if required)
2. Make sure that "echo $CFLAGS", "echo $CPPFLAGS" and "echo $CXXFLAGS" 
are empty or do not contain weird stuff
3. configure with "./configure --prefix=$HOME/torcs_bin"
4. "make", "make install", "make datainstall"
5. start TORCS with "~/torcs_bin/bin/torcs" (or wherever it has been 
placed).

Best regards

Bernhard


On 11/14/2013 07:56 PM, Evgenios Kastanias wrote:
>
>> Can you post the output of "torcs -l"?
> linux-vdso.so.1 =>  (0x00007fff981fe000)
> 	libclient.so => /usr/local/lib/torcs/lib/libclient.so
> (0x00007f5f67baf000)
> 	libtgf.so => /usr/local/lib/torcs/lib/libtgf.so (0x00007f5f67ba3000)
> 	libtgfclient.so => /usr/local/lib/torcs/lib/libtgfclient.so
> (0x00007f5f67b86000)
> 	libraceengine.so => /usr/local/lib/torcs/lib/libraceengine.so
> (0x00007f5f67b75000)
> 	libglut.so.3 => /usr/lib/x86_64-linux-gnu/libglut.so.3
> (0x00007f5f67917000)
> 	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f5f67712000)
> 	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f5f67349000)
> 	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6
> (0x00007f5f67046000)
> 	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f5f66d40000)
> 	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1
> (0x00007f5f66b2a000)
> 	libracescreens.so => /usr/local/lib/torcs/lib/libracescreens.so
> (0x00007f5f66b18000)
> 	librobottools.so => /usr/local/lib/torcs/lib/librobottools.so
> (0x00007f5f66b0f000)
> 	libGL.so.1 => /usr/lib/nvidia-310/libGL.so.1 (0x00007f5f667ec000)
> 	libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6
> (0x00007f5f664b2000)
> 	/lib64/ld-linux-x86-64.so.2 (0x00007f5f68069000)
> 	libnvidia-tls.so.310.44 => /usr/lib/nvidia-310/tls/libnvidia-
> tls.so.310.44 (0x00007f5f662ae000)
> 	libnvidia-glcore.so.310.44 => /usr/lib/nvidia-310/libnvidia-
> glcore.so.310.44 (0x00007f5f63dbb000)
> 	libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6
> (0x00007f5f63ba9000)
> 	libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1
> (0x00007f5f6398a000)
> 	libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6
> (0x00007f5f63786000)
> 	libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6
> (0x00007f5f6357f000)
>
>
>> No, not required, the only thing which needs some tweaking regarding 64
>> bit is plib (not part of TORCS itself), it must usually be compiled with
>> -fPIC
>
> Yes I compiled plib with -fPIC so I don't think its the issue either.
>
>
>> You need first to change to the directory containing libtgf.so, see
>> output of "torcs -l" to locate it (or use find/file browser).
>
> Ok, now the output is as you said
> nm libtgf.so | grep XML_ParserCreate
>                   U XML_ParserCreate
>
>
>> Btw. some other thought, if you are new to Linux, why are you using it
>> at all, what about using Windows for your work, would that be an option
>> (of course I encourage the use of Linux, but in the context of limited
>> time/fixed schedule it could make sense to use a familiar platform to
>> have less battles to fight...)?
>
> Yeah, I agree that with Windows I would have had less trouble but I was told
> by my supervisor to do this in Linux. To be honest I have learned alot
> despite all the issues I have!
>
> Also a poster below suggested that I run "ldd torcs-bin". It couldn't find
> some libraries like libtgf.so and libtgfclient.so all of them in the
> /usr/local/lib/torcs/lib directory so I added them to LD_LIBRARY_PATH.
> Unfortunately I still get the same error.
>
> Again I thank you for your time and effort in helping me!
>
>
>
> ------------------------------------------------------------------------------
> DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
> OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
> Free app hosting. Or install the open source package on any LAMP server.
> Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
> http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
> _______________________________________________
> Torcs-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/torcs-users
>


------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk