Thanks for explanation. Change now merged and submitted to svn/trunk.
On 7 September 2013 09:51, Wang Rui <[email protected]> wrote: > Hi Robert, > > The Python header pyconfig.h will automatically link to libraries under > MSVC, using the following lines: > # if defined(_MSC_VER) > # if defined(_DEBUG) > # pragma comment(lib,"python32_d.lib") > # elif defined(Py_LIMITED_API) > # pragma comment(lib,"python3.lib") > # else > # pragma comment(lib,"python32.lib") > # endif /* _DEBUG */ > # endif /* _MSC_VER */ > > And those set from CMake's TARGET_LINK_LIBRARIES will be ignored. Also > default Python library under Windows does not provide the debug file > python32_d.lib. So under MSVC we will simply fail to link to Python in > Debug mode, no matter we specify the library path in CMake or not. > > I provide this fix so developers can set their own Python library path in > such situation. > > Wang Rui > > > > > > 2013/9/7 Robert Osfield <[email protected]> > >> Hi Rui, >> >> Could you explain in more details what is going on under WIndows, from >> your text I couldn't work out what might be going wrong and what the fix >> might do to help. >> >> Thanks, >> Robert. >> >> >> On 7 September 2013 09:18, Wang Rui <[email protected]> wrote: >> >>> Hi Robert, >>> >>> The Python header will look for its libraries using "#pragma >>> comment(lib,"python32_d.lib")" for MSVC. So user-specified libraries will >>> not really be set for the osgdb_python plugin. This small fix may help >>> locate the Python libraries after putting the CMakeLists.txt into >>> src/osgPlugins/python >>> >>> Cheers, >>> >>> Wang Rui >>> >>> >>> >>> _______________________________________________ >>> osg-submissions mailing list >>> [email protected] >>> >>> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org >>> >>> >> >> _______________________________________________ >> osg-submissions mailing list >> [email protected] >> >> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org >> >> > > _______________________________________________ > osg-submissions mailing list > [email protected] > > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org > >
_______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
