linker - Problems with libturbojpeg compiling love-0.9.2 -


just starting löve , i'm loving it! i'm testing under ubuntu 14.04.

i able compile love 0.8.0 no trouble, i'm having problems compiling 0.9.2 bitbucket. seems, might have been eaten grue...

i got error when linking, due libturbojpeg:

/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libturbojpeg.a(libturbojpeg_la-turbojpeg.o): relocation r_x86_64_32 against `.data' can not used when making shared object; recompile -fpic 

according this stackoverflow entry, seems default libturbojpeg binary installed in ubuntu via apt-get:

tomas@ubuntu:~/tomas/love/love-0.9.2-bitbucket$ dpkg -l libjpeg-turbo8-dev | grep libturbojpeg.a /usr/lib/x86_64-linux-gnu/libturbojpeg.a tomas@ubuntu:~/tomas/love/love-0.9.2-bitbucket$ dpkg -l libjpeg-turbo8-dev desired=unknown/install/remove/purge/hold | status=not/inst/conf-files/unpacked/half-conf/half-inst/trig-await/trig-pend |/ err?=(none)/reinst-required (status,err: uppercase=bad) ||/ name                               version                architecture           description +++-==================================-======================-======================-========================================================================= ii  libjpeg-turbo8-dev:amd64           1.3.0-0ubuntu2         amd64                  development files ijg jpeg library 

is not compiled -fpic, guess i'll have source code, recompile option, , modify in build procedure of löve point compiled one.

am going in right direction, or may have missed something?

regards, tom

pd: i'm wondering why should library need compiled -fpic in specific case...

   -fpic        if supported target machine, emit position-independent code, suitable dynamic linking , avoiding limit on size of        global offset table.  option makes difference on m68k, powerpc , sparc. 

well, seems updating 0.9.2 tag made work:

hg update 0.9.2 ./platform/unix/automagic  ./configure make 

check here issue on bitbucket.

alex szpakowski: doesn't exact problem, lÖve 0.9.2 doesn't depend on or link libturbojpeg. latest code in lÖve repository 0.10.0, has different dependencies 0.9.2 (and isn't complete/released yet.) if want compile 0.9.2 linux (rather using .deb or ppa) should download source here: https://bitbucket.org/rude/love/downloads/love-0.9.2-linux-src.tar.gz , or update 0.9.2 tag in mercurial repository , run automagic etc.


Comments

Popular posts from this blog

c# - SharpSsh Command Execution -

python - Specify path of savefig with pylab or matplotlib -

How to run C# code using mono without Xamarin in Android? -