Re: Issue: TORCS won't link libpng on Ubuntu 13.10
Bernhard Wymann <[email protected]> Wed, 04 Dec 2013 07:35:51 +0100
| Newsgroups | gmane.games.torcs.general |
|---|---|
| Organization | wytec |
| Message-ID | <[email protected]> |
Hi Tom This looks good: > When I do "nm -D ./lib/x86_64-linux-gnu/libpng12.so | grep > create_info_struct", I get: > 0000000000003e80 T png_create_info_struct > So it's defined there. > COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/ > LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../:/lib/:/usr/lib/ But this is suspect: 1. ./lib/x86_64-linux-gnu/libpng.a I do not have this on my system, what does nm on this file say (without the "-D" option this time, because it is a static library), maybe it tries to link with the static version (your output does not indicate this, but check it anyway). > P.S. when I do "ldd png_test" [my sample program], I get the following: > linux-vdso.so.1 => (0x00007fff2bbc0000) > libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0 > (0x00007f651a44f000) > libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f651a087000) > libz.so.1 => /usr/local/lib/libz.so.1 (0x00007f6519e6a000) > libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f6519b66000) > /lib64/ld-linux-x86-64.so.2 (0x00007f651a68e000) 2. The libpng here seems to be in /lib/..., where the former one was in /usr/lib, could you check if this is the same file (symbolic/hard link?) Does the file in lib has the symbol as well (check this as well with nm)? Which packages do these files belong to, are these in the same one? Kind regards Bernhard ------------------------------------------------------------------------------ Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk