WindowsBuild

From PyWiki

Jump to: navigation, search

Contents

Incomplete

This page is work in progress -- an older page is available Building_From_Source that might also be helpful..

Introduction

Building Python-Ogre is a straight forward, if slightly lengthy process consisting of a few basic steps.

  • Download the base source files
  • Apply patches as appropiate
  • Build the various libraries (OGRE, OIS, etc)
  • Create the Python-Ogre wrapper code
  • Compile the Python-Ogre modules

Python-Ogre has been compiled under Windows with VC7.1 and VC8 (the free version) with the current development using VC8.

There are a number of Linux shell scripts in the PythonOgre/scripts directory (from the SVN) that, while they obviously don't run under Windows, can server as good reference points if you have issues on any platform

WORK IN PROGRESS

You will need to have subversion (svn) and CVS installed as command line utilities:

http://subversion.tigris.org/files/documents/15/41687/svn-1.4.6-setup.exe
http://prdownloads.sourceforge.net/cvsgui/WinCvs2_0_9.zip?download
http://getgnuwin32.sourceforge.net/
http://www.cmake.org/files/v2.4/cmake-2.4.8-win32-x86.exe

On to our Python-Ogre install by creating a master development directory somewhere suitable (under your home directory is a good place) and checkout Python-Ogre from the SVN.

cd ~
mkdir development
cd development
svn co -r 557 https://python-ogre.svn.sourceforge.net/svnroot/python-ogre/trunk/python-ogre python-ogre

Ensure you have the necessary prerequisites installed. This is the only part of the build that you will need the superuser password Note if you are running a non Debian Linux (one with out apt-get) then you'll have to look at the script and work out for yourself that you have what is needed.

cp python-ogre/scripts/00-PreReqs.sh .
sh ./00-PreReqs.sh

Also note that with Automake versions above 1.9 (like 1.10), the OIS library fails to compile, causing many other parts to fail. In Ubuntu, remove the automake package and install the automake-1.9 package in its stead.

Step 1

Create yourself a master development directory somewhere suitable and checkout Python-Ogre from the SVN

svn co https://python-ogre.svn.sourceforge.net/svnroot/python-ogre/trunk/python-ogre python-ogre

Other libraries you will need (THESE NEED TO BE CHANGED TO THE WINDOWS ONES) include:

http://developer.download.nvidia.com/cg/Cg_1.5/1.5.0/0022/Cg-1.5_Aug2007_x86.tar.gz 
http://www.cmake.org/files/v2.4/cmake-2.4.6-Linux-i386.tar.gz 
http://prdownloads.sourceforge.net/freeimage/FreeImage393.zip  
http://prdownloads.sourceforge.net/crayzedsgui/CEGUI-0.5.0b.tar.gz  
http://prdownloads.sourceforge.net/wgois/ois-1.0RC1.tar.gz  
http://prdownloads.sourceforge.net/boost/boost-jam-3.1.13-1-linuxx86.tgz 
http://prdownloads.sourceforge.net/scons/scons-0.96.96.tar.gz 
http://downloads.sourceforge.net/scons/scons-0.97.0d20070918.tar.gz
http://prdownloads.sourceforge.net/ogre/ogre-linux_osx-v1-4-5.tar.bz2 
http://prdownloads.sourceforge.net/opende/ode-src-0.8.zip 
http://downloads.sourceforge.net/boost/boost_1_34_0.tar.bz2 
http://www.newtondynamics.com/downloads/newtonLinux-1.53.tar.gz 
http://www.openal.org/openal_webstf/downloads/openal-0.0.8.tar.gz
http://www.openal.org/openal_webstf/downloads/freealut-1.1.0.tar.gz 
http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz
http://downloads.xiph.org/releases/vorbis/libvorbis-1.2.0.tar.gz
http://downloads.sourceforge.net/zziplib/zziplib-0.13.49.tar.bz2
svn co https://pygccxml.svn.sourceforge.net/svnroot/pygccxml pygccxml 
cvs -z3 -q -d :pserver:anoncvs@www.gccxml.org:/cvsroot/GCC_XML co gccxml 
cvs -z3 -q -d :pserver:anonymous@cvs.ogre3d.org:/cvsroot/ogre co -P ogreaddons/ogreode
cvs -z3 -q -d :pserver:anonymous@cvs.ogre3d.org:/cvsroot/ogre co -P ogreaddons/ogrenewt

Step 2 - Build libraries

First have a look in the python-ogre/patch directory and apply any patches you find there to their appropiate libraries xcopy the python-ogre/boost directory over your boost dircetory

<<<<< TO BE COMPLETED >>>>>>>>>>>