Page 1 of 1

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

Posted: Fri Feb 15, 2019 3:20 am
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.

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

Posted: Fri Feb 15, 2019 11:34 am
by paroj
compare with https://bintray.com/ogrecave/ogre/downl ... 15-x64.zip

they should end up in lib/pythonx.y

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

Posted: Fri Feb 15, 2019 6:05 pm
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

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

Posted: Sun Feb 17, 2019 8:53 pm
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?

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

Posted: Mon Feb 18, 2019 2:42 am
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

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

Posted: Mon Feb 18, 2019 9:41 pm
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.

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

Posted: Tue Feb 19, 2019 5:47 am
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.