experiences and issues building on fedora 12

kaiserPelagic

27-01-2010 17:21:58

I just successfully built on fedora 12 and wanted to provide my feedback for other users. I used these instructions http://wiki.python-ogre.org/index.php/LinuxBuild to build

PreReqs
these are the fedora packages you need per 00-PreReqs script. You can use yum to grab them:
mesa-libGL-devel, libX11-devel, freeglut-devel, patch, libtool, libXaw-devel, libXxf86vm-devel, libXrandr-devel, libXt-devel, expat-devel, pcre-devel, g++, autoconf, automake1.9, cvs, subversion, python, python-dev, jam

I was unable to find these two libs for fedora but I was still able to build successfully: libfreetype6-dev, python-celementtree

Building Python-Ogre
I followed steps 2-4 without any problems.

During Step 5 I'm got a linking error while compiling python-ogre (python python-ogre/BuildModule.py -g -c ogre)

The error: -L/home/Greg/PythonOgreDev/root/usr/lib -L/usr/lib/python2.6/libs -lboost_python-gcc44-mt -lOgreMain scons: building terminated because of errors.
/usr/bin/ld: cannot find -lboost_python-gcc44-mt

This happened because lboost_python-gcc44-mt was never built on my system. But, I did notice that I have libboost_python in root/usr/lib, similar to what would be on a Mac. This might have something to do with the version of boost (1.41) I used. To fix this I modified the environment.py script to set boost lib to libboost_python (line 683). Once I made this change compilation and installation were successful. I do not know if this is a linux or fedora issue.

dermont

27-01-2010 18:36:14


The error: -L/home/Greg/PythonOgreDev/root/usr/lib -L/usr/lib/python2.6/libs -lboost_python-gcc44-mt -lOgreMain scons: building terminated because of errors.
/usr/bin/ld: cannot find -lboost_python-gcc44-mt

This happened because lboost_python-gcc44-mt was never built on my system. But, I did notice that I have libboost_python in root/usr/lib, similar to what would be on a Mac. This might have something to do with the version of boost (1.41) I used. To fix this I modified the environment.py script to set boost lib to libboost_python (line 683). Once I made this change compilation and installation were successful. I do not know if this is a linux or fedora issue.


Yeah, this was raised before but the old code for boost lib in environment.py was re-instated. With later versions of boost there is a change in the library name, as you indicated above.

You should also be able to copy your PythonOgreConfig_posix.py to PythonOgreConfig_<yourusername>.py and set the library name there if changing environment.py screws your svn updates, something like (can't remember which):


##LIB_Boost ='libboost_python'
LIB_Boost = 'boost_python'