Linking CXX shared library ../lib/libOgreMain.so
/usr/bin/ld: /usr/local/lib/libfreetype.a(ftbase.c.o): relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libfreetype.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
OgreMain/CMakeFiles/OgreMain.dir/build.make:5025: recipe for target 'lib/libOgreMain.so.1.8.1' failed
make[2]: *** [lib/libOgreMain.so.1.8.1] Error 1
CMakeFiles/Makefile2:75: recipe for target 'OgreMain/CMakeFiles/OgreMain.dir/all' failed
make[1]: *** [OgreMain/CMakeFiles/OgreMain.dir/all] Error 2
Makefile:137: recipe for target 'all' failed
make: *** [all] Error 2
Thanks and excuse my english, it isn't my best language.
Here is what I found about the log
Try add a flag "-fPIC".
This library "freetype" seems to me must be linked with OgreOverlay. But I could be wrong. Just try to exclude freetype lib from OgreMain
Corporal wrote:Here is what I found about the log
Try add a flag "-fPIC".
This library "freetype" seems to me must be linked with OgreOverlay. But I could be wrong. Just try to exclude freetype lib from OgreMain
You are not wrong. The Overlay component uses OgreFont which uses freetype in order to create font textures.