Problem building Ogre

Problems building or running the engine, queries about how to use features etc.
Post Reply
Leglait
Gnoblar
Posts: 1
Joined: Sat Jan 16, 2016 10:28 am

Problem building Ogre

Post by Leglait »

Hi,
I'm trying to install Ogre 1.8.1 and I have the next error when I make. I'm using Debian.

Code: Select all

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.
User avatar
Corporal
Gnoblar
Posts: 22
Joined: Thu Aug 06, 2015 4:33 pm
Location: Russian Federation
x 1

Re: Problem building Ogre

Post by Corporal »

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
User avatar
c6burns
Beholder
Posts: 1512
Joined: Fri Feb 22, 2013 4:44 am
Location: Deep behind enemy lines
x 138

Re: Problem building Ogre

Post by c6burns »

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.
Post Reply