LinuxNotes
From PyWiki
Contents |
Linux Notes
Current Under Construction, just a scratch pad for all the workarounds and hacks that haven't made into SVN and the associated projects.
Also have a look at this page for information on building linux deb's
INSTALL SCRIPT
I'm testing a very crude shell script to help people build a linux system -- basically make a work directory (~./development) and run this script from there -- it will ensure your system has everything it needs (uses apt-get), download and install all the software..
It does use a prefix for most of the libraries so they won't mess with an existing system (~/development/local...)
If it fails at least you can use this as a reference on what needs to be done :)
You will need to edit python-ogre/PythonOgreConfig_posix.py to set your base directory, AND edit /etc/ld.so.conf to add the 'new' local/lib path (run ldconfig after).
You can get it here
..............
Compilers
- Use GCC 4.1.x
OGRE
* This has been resolved ( I believe )
- You need to fix several static consts that are defined in headers by defining them in the source instead. In addition, commenting out two operator functions is required. There is a patch here
CEGUI
- CEGUIBase must be linked to from all shared libraries. Patch here
- For each Makefile.am you will have a line like this: <TargetNameHere>_la_LIBADD = -l<SomeLibrary> -l<Another Library> You need to append "-lCEGUIBase" to that line. For some targets (like the TinyXML parser module) you won't have that line at all. So you would have to add a line like this: libCEGUITinyXMLParser_la_LIBADD = -lCEGUIBase
- Go into the Makefile.in and find the "<TargetNameHere>_la_LIBADD =" line and make it match the one in the Makefile.am. Every Makefile.in you modify will have that line.
- Repeat 1 and 2 for all the XML parser modules and the WindowRendererSets/Falagard/src directory.
OIS
- You need the 1.0 CVS version
- You need to run a 'grep -irl "static const"' in the OIS source directory to find all static constants that are defined in the headers. Leave the declarations in the headers but move the definitions to the source. Patch available here.
OgreNewt
- I am maintaining a set of scons scripts for OgreNewt. You should see them in the OgreAddons forum.
- One caveat, remove the local boost directory from the OgreNewt distribution. It will lead to problems. Just build with one you have compiled for Python-Ogre.