wt 3.3.5 installation problem
I am facing an installation problem linked to libGraphicsMagick on Mint 17.2 ( g 4.8 )
Here the output >>>>>
/usr/bin/ld: /usr/local/lib/libGraphicsMagick.a(magick_libGraphicsMagick_la-blob.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libGraphicsMagick.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make: * [src/libwt.so.3.3.5] Error 1
make: * [src/CMakeFiles/wt.dir/all] Error 2
Any idea ?
Updated by Koen Deforche almost 8 years ago
- Status changed from New to Resolved
- Assignee set to Koen Deforche
I believe you're mixing static and dynamic libraries in an illegal way. You should use the .so version of your graphicsmagick library if you want to link it into a shared .so version of Wt? The underlying reason is that it's not guaranteed that code for a static library can be included in a dynamic library (because on some platforms -fPIC is required during the compilation).