[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [bos-dev] maemo port



It solved the problem with png... will try the same with libSDL....

2008/3/27, Francois Beerten <francois.beerten@xxxxxxxxxxx>:
> eng. Anatoli Marinov wrote:
>  > failed for png too:
>  >
>  > .sconf_temp/conftest_0.c <-
>  >   |
>  >   |
>  >   |#include "png.h"
>  >   |
>  >   |int
>  >   |main() {
>  >   |..
>  >   |return 0;
>  >   |}
>  >   |
>  > gcc -o .sconf_temp/conftest_0.o -c -fsigned-char -I/usr/include
>  > .sconf_temp/conftest_0.c
>  > gcc -o .sconf_temp/conftest_0 -L/usr/lib .sconf_temp/conftest_0.o
>  > -L/usr/lib -lpng
>  > /scratchbox/compilers/cs2005q3.2-glibc2.5-arm/bin/../lib/gcc/arm-none-linux-gnueabi/3.4.4/../../../../arm-none-linux-gnueabi/bin/ld:
>  > warning: libz.so.1, needed by /usr/lib/libpng.so, not found (try using
>  > -rpath or -rpath-link)
>  > /usr/lib/libpng.so: undefined reference to `deflate'
>  > /usr/lib/libpng.so: undefined reference to `inflate'
>  > /usr/lib/libpng.so: undefined reference to `inflateInit_'
>  > /usr/lib/libpng.so: undefined reference to `crc32'
>  > /usr/lib/libpng.so: undefined reference to `deflateInit2_'
>  > /usr/lib/libpng.so: undefined reference to `inflateReset'
>  > /usr/lib/libpng.so: undefined reference to `deflateReset'
>  > /usr/lib/libpng.so: undefined reference to `inflateEnd'
>  > /usr/lib/libpng.so: undefined reference to `deflateEnd'
>  > collect2: ld returned 1 exit status
>  > scons: Configure: no
>  >
>  > by hand work wonderful:
>  > [sbox-CHINOOK_ARMEL: ~/work/boswars-2.5-src] > gcc -o
>  > .sconf_temp/conftest_0.o -c -fsigned-char -I/usr/include
>  > .sconf_temp/conftest_0.c
>  > [sbox-CHINOOK_ARMEL: ~/work/boswars-2.5-src] > gcc -o
>  > .sconf_temp/conftest_0 -L/usr/lib .sconf_temp/conftest_0.o -L/usr/lib
>  > -lpng
>  > [sbox-CHINOOK_ARMEL: ~/work/boswars-2.5-src] > ldd .sconf_temp/conftest_0
>  >         libpng12.so.0 => /usr/lib/libpng12.so.0 (0x00000000)
>  >         libc.so.6 => /lib/libc.so.6 (0x00000000)
>  >         libz.so.1 => /usr/lib/libz.so.1 (0x00000000)
>  >         libm.so.6 => /lib/libm.so.6 (0x00000000)
>  >         /lib/ld-linux.so.3 => /lib/ld-linux.so.3 (0x00000000)
>  > [sbox-CHINOOK_ARMEL: ~/work/boswars-2.5-src] >
>  >
>  > Where could be the problem? Any ideas?
>  >
>  > Toli
>  >
>  >
>
> Looks like your png lib depends on libz and that the compiler does not
>  add it automatically like it should. You could work around this by
>  getting scons to first detect libz. That way, it will be in the
>  environment when checking for png. You can change when those are
>  detected in the "AutoConfigure(env)" function in SConstruct.
>
>  Feb.
>
>


-- 
Best Regards
eng. Anatoli Marinov