Boost-Python unresolved external error with Navi Library

foxmulder900

18-07-2008 16:33:20

Hello,
This question is not directly about Python-Ogre, but very related so i am hoping someone in the community can help.
I am currently working on a project using OGRE and Navi GUI(which i know was wrapped for Python-Ogre). I am trying to expose a few of my classes to python so i can do some scripting. I was able to get boost and bjam set up with little problems. However when I try to run bjam on my project to expose the classes, I get 2 unresolved external symbols. I know they are both related to the Navi library but I have both the .libs and headers included.

Here are my project settings in my Jamroot file:

project
: requirements <library>/boost/python//boost_python
<library>"C:/OgreSDK/lib/OgreMain.lib"
<library>"C:/OgreSDK/lib/OIS.lib"
<library>"C:/OgreSDK/lib/EditableTerrainManager.lib"
<library>"C:/Libs/Navi 1.61/Dependencies/win32/astral/lib/Astral.lib"
<library>"C:/Libs/Navi 1.61/Navi/Lib/Navi.lib"
<library>"C:/Documents and Settings/New user/Desktop/YEI3D/trunk/YEI3Dv2/releaselib/YEI3D.lib"
<library>"C:/Libs/audiere-1.9.4-win32/lib/audiere.lib"
<library>"C:/Libs/tinyxml/lib/tinyxml.lib"
<library>"C:/Libs/Hydrax-v0.3/Hydrax/bin/release/Hydrax.lib"
<library>"C:/Libs/PagedGeometry/lib/PagedGeometry.lib"
<library>"C:/Libs/Caelum/trunk/Caelum/lib/release/caelum.lib"
<library-path>"C:/OgreSDK/lib"
<library-path>"C:/Program Files/boost/boost_1_35_0/lib"
<library-path>"C:/Program Files/Microsoft Platform SDK for Windows Server 2003 R2/Lib"
<include>"C:/Documents and Settings/New user/Desktop/YEI3D/trunk/YEI3Dv2/headers"
<include>"C:/OgreSDK/include"
<include>"C:/Libs/Navi 1.61/Navi/Include"
<include>"C:/Libs/Navi 1.61/Dependencies/win32/astral/include"
<include>"C:/Libs/etm-2.2/include"
<include>"C:/Libs/Caelum/trunk/Caelum/main/include"
<include>"C:/Libs/audiere-1.9.4-win32/include"
<include>"C:/Libs/PagedGeometry/include"
<include>"C:/Libs/Hydrax-v0.3/Hydrax/src/Hydrax"
;


and Here are my errors when i try to run bjam:

Navi.lib(NaviMouse.obj) : error LNK2001: unresolved external symbol __imp__ShowCursor@4
Astral.lib(BrowserWindowImpl.obj) : error LNK2001: unresolved external symbol __imp__GetParent@4
bin\msvc-8.0express\debug\threading-multi\pyYEI3D.pyd : fatal error LNK1120: 2 unresolved externals


I am using the MSVC compiler, any suggestions would be greatly appreciated!

foxmulder900

18-07-2008 21:09:52

A user in another forum was able to help me out, all that I was missing was I needed to link user32.lib as well