Closed imgxx closed 10 years ago
SDL2 libraries need to be installed. This should help:
Thanks.
This packages included in ubuntu 13.10 repos I have installed libsdl2-2.0-0 and libsdl2-dev
Yep - that should work if those are available. Quite a few games are 32-bit so you'll most likely need the i386 versions as well. Thanks Imgxx.
I have installed them before I got this error :) Maybe sdl2 packages in ubuntu compiled without -fPIC option
Is that what this is saying? /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libSDL2.a(SDL_string.o): перемещение R_X86_64_32S для «.rodata» не может использоваться при создании общего объекта; перекомпилируйте с -fPIC
And yes, I'm building SDL with "./configure CFLAGS=-fPIC CPPFLAGS=-fPIC && make -j 8".
Building the 64-bit static library without -fPIC seems wrong to me...
From the internet. I think, this is the same error message. relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
Firstly, I was thinking, that this is about voglperf, but it is already compiled with -fPIC
Yeah - the way that 64-bit libSDL2.a is compiled right now it will only work if linked with the main program. I think that's not entirely useful. More info here: http://www.technovelty.org/c/position-independent-code-and-x86-64-libraries.html We should ask whoever does the upstream sdl packages - but in the meantime you're probably stuck compiling your own SDL. Sorry!
I'm OK with compiling it for now. Thanks
Error at "make voglperf64":
System information: https://gist.github.com/imgxx/9203971