Windows: how do the Ogre Python modules get built/installed? Topic is solved

Problems building or running the engine, queries about how to use features etc.
Post Reply
glennr
Greenskin
Posts: 126
Joined: Thu Jun 05, 2008 3:26 am
Location: Thames, New Zealand
x 9

Windows: how do the Ogre Python modules get built/installed?

Post by glennr »

Ogre Version: :1.11.6:
Operating System: :Windows 10:

How do the Python modules get built?

I have turned on Python in CMake:

Code: Select all

...
-- The following external packages were located on your system.
-- This installation will have the extra features provided by these packages.
+ zlib
+ zziplib
+ freeimage
+ freetype
+ OpenGL
+ OpenGL ES 2.x
+ DirectX9
+ DirectX11
+ cg
+ Python
..
Had to set SWIG_DIR and SWIG_EXECUTABLE manually as CMake couldn't find them, despite swig.exe being in the path.

I've generated VS 2017 project files but the Python module doesn't seem to be getting built.
paroj
OGRE Team Member
OGRE Team Member
Posts: 1994
Joined: Sun Mar 30, 2014 2:51 pm
x 1074
Contact:

Re: Windows: how do the Ogre Python modules get built/installed?

Post by paroj »

compare with https://bintray.com/ogrecave/ogre/downl ... 15-x64.zip

they should end up in lib/pythonx.y
niubaty
Kobold
Posts: 27
Joined: Thu Jan 10, 2019 2:19 pm
x 2

Re: Windows: how do the Ogre Python modules get built/installed?

Post by niubaty »

Both swig.exe and python.exe in your path ?
Cmake tell VS where the python header and lib are.
note: python version must match the VS version
glennr
Greenskin
Posts: 126
Joined: Thu Jun 05, 2008 3:26 am
Location: Thames, New Zealand
x 9

Re: Windows: how do the Ogre Python modules get built/installed?

Post by glennr »

Yes, both Python and SWIG are in my path and CMake finds them.
niubaty wrote: Fri Feb 15, 2019 6:05 pm note: python version must match the VS version
Do you mean that the version of VS I'm building must be the same as the version that Python was built with?
niubaty
Kobold
Posts: 27
Joined: Thu Jan 10, 2019 2:19 pm
x 2

Re: Windows: how do the Ogre Python modules get built/installed?

Post by niubaty »

glennr wrote: Sun Feb 17, 2019 8:53 pm Yes, both Python and SWIG are in my path and CMake finds them.
niubaty wrote: Fri Feb 15, 2019 6:05 pm note: python version must match the VS version
Do you mean that the version of VS I'm building must be the same as the version that Python was built with?
Yes, otherwise there will be different kinds of problems.
More details see my reply in viewtopic.php?f=2&t=94546
glennr
Greenskin
Posts: 126
Joined: Thu Jun 05, 2008 3:26 am
Location: Thames, New Zealand
x 9

Re: Windows: how do the Ogre Python modules get built/installed?

Post by glennr »

I can't see a project file in VS for the Python modules (there are project files for JNI and C#) but when the INSTALL target in run the Python modules appear in the install directory.
niubaty
Kobold
Posts: 27
Joined: Thu Jan 10, 2019 2:19 pm
x 2

Re: Windows: how do the Ogre Python modules get built/installed?

Post by niubaty »

glennr wrote: Mon Feb 18, 2019 9:41 pm I can't see a project file in VS for the Python modules (there are project files for JNI and C#) but when the INSTALL target in run the Python modules appear in the install directory.
See the Attachments of this post.
_Bites
_Ogre
_Overlay
_RTShader
They are the python modules in VS project file.
Attachments
无标题.png
无标题.png (9.68 KiB) Viewed 668 times
Post Reply