Re: Issue: TORCS won't link libpng on Ubuntu 13.10

Arnaud Ceyrolle <[email protected]> Tue, 3 Dec 2013 13:34:22 +0100
Newsgroups gmane.games.torcs.general
Message-ID <CAN3Qb7w2V2fETUE4E8FVTASQSa7QtS72S8p1Qw2pvAb1Na_-_A@mail.gmail.com>
Hello Tom,

one thing you could do is find where is the missing library :
on your test program you run ldd to find in which path is located libpng
    ldd png_test | grep libpng

and look if the path of this lib is well referenced in the compile paths of
Torcs :
-L/usr/lib -L/usr/local/lib

regards


-- 
*Arnaud Ceyrolle*


2013/12/2 Toms Lēšmanis <[email protected]>

> Hi,
>
> I have spent days trying to work out what causes this problem, but I
> haven't been successful. Hence, I am turning to you.
>
> I am trying to build TORCS 1.3.5. on Ubuntu 13.10, but I keep getting the
> errors "undefined reference to png_*":
>
> g++ main.o linuxspec.o
> -L/home/reinis/FYP_Surrey/TORCS_source/torcs-1.3.5/export/lib -lopenal
> -lalut -lvorbisfile -L/usr/lib -L/usr/local/lib -lracescreens -lrobottools
> -lclient -lconfscreens -ltgf -ltgfclient -ltxml -lplibul -lraceengine
> -lmusicplayer -llearning -lplibjs -lplibssgaux -lplibssg -lplibsm -lplibsl
> -lplibsg -lplibul -lglut -lGLU -lGL -lpng -lz -ldl -lXrandr -lXrender
> -lXxf86vm -lXmu -lXi -lXt -lSM -lICE -lXext -lX11 -lm -o torcs-bin
> /home/reinis/FYP_Surrey/TORCS_source/torcs-1.3.5/export/lib/libtgfclient.so:
> undefined reference to `png_get_valid'
> /home/reinis/FYP_Surrey/TORCS_source/torcs-1.3.5/export/lib/libtgfclient.so:
> undefined reference to `png_create_info_struct'
> ...
>
> The error suggests the linker can't find the actual library, but the
> configuration (./configure) did not complain and I have written an example
> program that uses these functions, which builds fine with the command "gcc
> png_test.o -o png_test -lpng"
>
> Has anyone experienced a similar issue and can provide a solution to it?
> Help will be much appreciated.
>
> Thanks,
> Tom
>
>
>
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
> Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
> _______________________________________________
> Torcs-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/torcs-users
>
>

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk

_______________________________________________
Torcs-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/torcs-users