OGRE Wiki
Support and community documentation for Ogre3D
Ogre Forums
ogre3d.org
Log in
Username:
Password:
CapsLock is on.
Remember me (for 1 year)
Log in
Home
Tutorials
Tutorials Home
Basic Tutorials
Intermediate Tutorials
Mad Marx Tutorials
In Depth Tutorials
Older Tutorials
External Tutorials
Cookbook
Cookbook Home
CodeBank
Snippets
Experiences
Ogre Articles
Libraries
Libraries Home
Alternative Languages
Assembling A Toolset
Development Tools
OGRE Libraries
List of Libraries
Tools
Tools Home
DCC Tools
DCC Tutorials
DCC Articles
DCC Resources
Assembling a production pipeline
Development
Development Home
Roadmap
Building Ogre
Installing the Ogre SDK
Setting Up An Application
Ogre Wiki Tutorial Framework
Frequently Asked Questions
Google Summer Of Code
Help Requested
Ogre Core Articles
Community
Community Home
Projects Using Ogre
Recommended Reading
Contractors
Wiki
Immediate Wiki Tasklist
Wiki Ideas
Wiki Guidelines
Article Writing Guidelines
Wiki Styles
Wiki Page Tracker
Ogre Wiki Help
Ogre Wiki Help Overview
Help - Basic Syntax
Help - Images
Help - Pages and Structures
Help - Wiki Plugins
Toolbox
Freetags
Categories
List Pages
Structures
Trackers
Statistics
Rankings
List Galleries
Ogre Lexicon
Comments
History: How to build PyOgre on linux
View page
Source of version: 3
(current)
This page is for sharing knowledge on the process of building PyOgre from source on various linux distributions. If you've successfully installed pyogre on your distribution and don't see it represented here, put down what any pitfalls and/or solutions you encountered while getting it to work. Eventually we hope that this will help people package PyOgre for each distro. {maketoc} !!All linux distributions * Checkout the PyOgre trunk from here: [https://developer.berlios.de/svn/?group_id=3464] by installing Subversion and running this command: {MONO()} # Checkout this branch to get the current development branch ~np~svn checkout http://svn.berlios.de/svnroot/repos/pyogre/branches/dev-1.2.0~/np~ # Checkout the trunk if you intend to use Ogre 1.0.6 ~np~svn checkout http://svn.berlios.de/svnroot/repos/pyogre/trunk~/np~{MONO} !!!Build Ogre with GLX Ogre will by default configure to use SDL, but as seen in [http://www.ogre3d.org/phpBB2addons/viewtopic.php?p=2440#2440|this post], SDL isn't working perfectly with pyogre. Reported symptoms range from mild (program crashes on quit) to severe (program won't launch). To be safe, make sure to configure your ogre build using: {CODE(wrap="1", colors="bash")}$ ./configure --with-platform=GLX{CODE} In the same post, it's said that pyogre may not play well with ATI graphics cards either, though this has yet to be confirmed. The svn trunk is a liitle bit out-of-date, as it seems. I don't know anything about it and apologize in advance. However [https://developer.berlios.de/patch/index.php?func=detailpatch&patch_id=1359&group_id=3464|this patch] allow for the compilation and successful installation. !!!Correct and link to the plugins.cfg file There's a plugins.cfg file in the pyogre directory, but one line needs to be corrected, and you need to make links to it from any folder from which you want to run the demos. In the current (30 Jan 2006) svn version of pyogre, pyogre/plugins.cfg looks like this: {CODE(wrap="1", colors="ini")} # Define plugin folder PluginFolder=. # Define D3D rendering implementation plugin Plugin=RenderSystem_GL.so Plugin=Plugin_ParticleFX.so Plugin=Plugin_BSPSceneManager.so Plugin=Plugin_OctreeSceneManager.so Plugin=Plugin_CgProgramManager.so{CODE} You'll need to change the plugin folder to point to where all those plugin .so's actually are, namely /usr/local/lib/OGRE: {CODE(wrap="1", colors="ini")} # Define plugin folder PluginFolder=/usr/local/lib/OGRE # Define D3D rendering implementation plugin Plugin=RenderSystem_GL.so Plugin=Plugin_ParticleFX.so Plugin=Plugin_BSPSceneManager.so Plugin=Plugin_OctreeSceneManager.so Plugin=Plugin_CgProgramManager.so{CODE} Finally, you'll need to link to this plugins.cfg file from any folder you intend to run pyogre from. For example, to run the demos from the demos/ogre/ folder, do the following {CODE(wrap="1", colors="bash")} $ cd demos/ogre $ ln -s ../../pyogre/plugins.cfg{CODE} !!!"python setup.py clean" is not enough To recompile pyogre after a failed compile attempt, running "python setup.py clean" is not enough. You must also manually remove the ogre_wrap.cxx and ogre_wrap.h files from pyogre/ogre/, and cegui_wrap.cxx and cegui_wrap.h files from pyogre/cegui, if they were generated. !!Ubuntu 5.10 ("breezy") While all of the required external libraries exist in the apt-get repositories, a few of them are too old to be compatible with pyogre. You will need to deinstall these if you have them, and download and compile the most recent sources. These include * ogre (use 1.0.6) * cegui * swig If your cegui was out of date, you'll need to recompile ogre with the new cegui. To help the demos find the shared libraries, you'll need to do the following: * $ cd /etc * If there's no text file there called ld.so.conf, create one. Ubuntu doesn't come with this file. * In ld.so.conf, add the following lines: {CODE(wrap="1")} /lib/ /usr/lib/ /usr/local/lib/ /usr/X11R6/lib/{CODE} * $ sudo ldconfig !!Ubuntu (Dapper Drake) Here's how I got PyOgre 1.0.6 working on Dapper Drake... Get the dependencies: {CODE(wrap="1", colors="bash")}$ sudo apt-get install build-essential $ sudo apt-get install python-dev $ sudo apt-get install libogre-dev $ sudo apt-get install libcegui-mk2-dev $ sudo apt-get install swig{CODE} NOTE: You'll need the Universe repository for some of these. As of when I wrote this, Ubuntu will install OGRE 1.0.6; This won't work if you want to use the Ogre 1.2 features. * $ cd /etc * If there's no text file there called ld.so.conf, create one. Ubuntu doesn't come with this file. * In ld.so.conf, add the following lines: {CODE(wrap="1")} /lib/ /usr/lib/ /usr/local/lib/ /usr/X11R6/lib/{CODE}~/pp~ * $ sudo ldconfig The CEGUI Package provided in Dapper Drake seems to be missing the CEGUI OpenGL Renderer, so disable it: The following changes can be found as a [http://www.physik.uni-freiburg.de/~zklaus/RemoveCEGUIOpenGLRenderer.patch|patch here]. In setup.py, find this line: {MONO()}pkg_config_module='CEGUI CEGUI-OPENGL CEGUI-OGRE',{MONO} Change it to this: {MONO()}pkg_config_module='CEGUI CEGUI-OGRE',{MONO} In (pyogre/cegui/)cegui.i, comment out this line: {MONO()}%include CEGUIOpenGLRenderer.i{MONO} like this: {MONO()}//%include CEGUIOpenGLRenderer.i{MONO} Then run setup.py: {CODE(wrap="1", colors="bash")}$ sudo python setup.py install{CODE}
Search by Tags
Search Wiki by Freetags
Latest Changes
Minimal Ogre Collision
Artifex Terra
OpenMB
Advanced Mogre Framework
MogreSocks
Critter AI
Mogre Add-ons
MOGRE
Mogre MyGUI wrapper
MOGRE Editable Terrain Manager
...more
Search
Find
Advanced
Search Help
Online Users
20 online users