Linux texturepacker static linking fails
#1
Kodi 15.0a1 on Arch Linux (x86_64).

It looks like Texturepacker is failing to link statically, I got no issue if I remove the static linking (# sed '/--enable-static/d' -i tools/depends/native/TexturePacker/Makefile).

Code:
g++ -DTARGET_POSIX -DUSE_LZO_PACKING  -g -D_DEBUG -Wall -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -std=gnu++11 -llzo2 -ljpeg -lgif  -lpng16 -lm -lz -lm  -L/tmp/archlinux-pkgbuilds/kodi-devel/src/kodi-15.0a1-Isengard/tools/depends/native/libsquish-native/squish-install/lib -lsquish  -static -Wl,-O1,--sort-common,--as-needed,-z,relro -o TexturePacker md5.o XBTFWriter.o TexturePacker.o DecoderManager.o decoder/PNGDecoder.o decoder/JPGDecoder.o decoder/GifHelper.o decoder/GIFDecoder.o XBTF.o  -llzo2 -ljpeg -lgif  -lpng16 -lm -lz -lm  -L/tmp/archlinux-pkgbuilds/kodi-devel/src/kodi-15.0a1-Isengard/tools/depends/native/libsquish-native/squish-install/lib -lsquish
/usr/bin/ld: cannot find -llzo2
/usr/bin/ld: cannot find -ljpeg
/usr/bin/ld: cannot find -lgif
/usr/bin/ld: cannot find -lpng16
/usr/bin/ld: cannot find -llzo2
/usr/bin/ld: cannot find -ljpeg
/usr/bin/ld: cannot find -lgif
/usr/bin/ld: cannot find -lpng16
collect2: error: ld returned 1 exit status
Makefile:423: recipe for target 'TexturePacker' failed
make[2]: *** [TexturePacker] Error 1
make[2]: Leaving directory '/tmp/archlinux-pkgbuilds/kodi-devel/src/kodi-15.0a1-Isengard/tools/depends/native/TexturePacker/native'
Makefile:313: recipe for target 'all' failed
make[1]: *** [all] Error 2

See full build log: https://dl.dropboxusercontent.com/u/6902...0305-1.log
Reply
#2
do you have static versions of those libs?
Reply
#3
@wsnipex

I don't think so.
Are these static libs supposed to be generated by Kodi's build tree ? (at tools/depends/native/{liblzo2-native, libpng-native ...} or tools/depends/target/{liblzo2-native, libpng-native ...} )
Reply
#4
(of course I do have these as shared libs, installed as separated packages).
Reply
#5
yes, we do build them in unified deps. But it'll work with system libs as well, e.g. it builds fine on ubuntu.
Reply

Logout Mark Read Team Forum Stats Members Help
texturepacker static linking fails0