PyOgreExecutable        
Print

{{Out of date}}

Dagon(1.3)|None

That is what you normally would do using py2exe:

0.) first please install python 2.4, pyogre and py2exe

1.) the pyOgre example to turn into a running executbale is:
C:\Python24\pyogre\demos\TextureFXDemo.py

2.) content of setup.py, which must be placed at C:\Python24\pyogre\demos\setup.py:

 from distutils.core import setup 
 import py2exe 
 setup(console=["TextureFXDemo.py"]) 

3.) execute this command in console:
 cd C:\Python24\pyogre\demos python setup.py py2exe

4.) py2exe generates a "built" and "dist" folder; the "dist" folder contains the executable "TextureFXDemo.exe"

5.) Copy C:\Python24\pyogre\demos\Media to C:\Python24\pyogre\demos\dist\Media

6.) starting the executable:

 C:\Python24\pyogre\demos>cd dist
 C:\Python24\pyogre\demos\dist>TextureFXDemo 
    Traceback (most recent call last): 
    File "TextureFXDemo.py", line 46, in ? 
    File "SampleFramework.pyc", line 23, in go 
    File "SampleFramework.pyc", line 33, in _setUp 
    File "pyogre\ogre.pyc", line 10230, in __init__ 
    TypeError: argument number 1: null reference of type 'Ogre::String' was received

Remark: Some files are missing and must be copied manually to the distribution folder C:\Python24\pyogre\demos\dist\

7.) copy all *.pkg, *.dll and *.cfg from following folders into the distribution folder C:\Python24\pyogre\demos\dist* C:\Python24\pyogre\demos => C:\Python24\pyogre\demos\dist* C:\Python24\Lib\site-packages\pyogre => C:\Python24\pyogre\demos\dist
8.) goto C:\Python24\pyogre\demos\dist\ and start the executable, it should run now

 C:\Python24\pyogre\demos\dist>TextureFXDemo


Contributors to this page: jacmoe60863 points  and Spacegaier1859 points  .
Page last modified on Thursday 31 of December, 2009 03:24:16 GMT by jacmoe60863 points .


The content on this page is licensed under the terms of the Creative Commons Attribution-ShareAlike License.
As an exception, any source code contributed within the content is released into the Public Domain.