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: 118
Joined: Thu Jun 05, 2008 3:26 am
Location: Thames, New Zealand
x 6

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

Post by glennr » Fri Feb 15, 2019 3:20 am

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.
0 x

paroj
OGRE Team Member
OGRE Team Member
Posts: 897
Joined: Sun Mar 30, 2014 2:51 pm
x 190
Contact:

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

Post by paroj » Fri Feb 15, 2019 11:34 am

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

they should end up in lib/pythonx.y
0 x

niubaty
Kobold
Posts: 27
Joined: Thu Jan 10, 2019 2:19 pm
x 1

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

Post by niubaty » Fri Feb 15, 2019 6:05 pm

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
0 x

glennr
Greenskin
Posts: 118
Joined: Thu Jun 05, 2008 3:26 am
Location: Thames, New Zealand
x 6

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

Post by glennr » 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?
0 x

niubaty
Kobold
Posts: 27
Joined: Thu Jan 10, 2019 2:19 pm
x 1

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

Post by niubaty » Mon Feb 18, 2019 2:42 am

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
0 x

glennr
Greenskin
Posts: 118
Joined: Thu Jun 05, 2008 3:26 am
Location: Thames, New Zealand
x 6

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

Post by glennr » 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.
0 x

niubaty
Kobold
Posts: 27
Joined: Thu Jan 10, 2019 2:19 pm
x 1

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

Post by niubaty » Tue Feb 19, 2019 5:47 am

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 220 times
0 x

Post Reply