Hi to everybody,
I'm new to Ogre and first of all I wanted to compliment with you for your work!
Anyway, I'm here because I tryied to compile the dependencies for Ogre in Visual Studio 2010, and I can't do it for the OIS project (I think it's DirectX related, but I installed the DirectX SDK and I've got the correct DXSDK_DIR enviroment variable on my system, I also double checked it and it expands correctly - and yes, I restarted VS 2010 and even rebooted the system to be sure). I read previous post, so I checked also to have DXSDK_LIB (pointing to "%DXSDK_DIR%\Lib\x86") and DXSDK_INCLUDE (pointing to "%DXSDK_DIR%\Include"), but it doesn't happen anything different even with these vars.
I used the repository under "
https://bitbucket.org/cabalistic/ogredeps", but I haven't got any better luck with the here mentioned pre-produced VS projects, so I'll report my situation from the mentioned
.hg repository cloned in my working dir.
After generating the projects with CMake [2.8.4] following the canonical steps, Coinfigure + Configure + Generate, I opened the just created solution called Project.sln and compiled in Debug configuration, optaining the following messages:
Code: Select all
1>------ Build started: Project: OIS, Configuration: Debug Win32 ------
1> Creating library D:/Documents/OpenSource Projects/Ogre 3D/ogredeps/projects/ois/Debug/OIS_d.lib and object D:/Documents/OpenSource Projects/Ogre 3D/ogredeps/projects/ois/Debug/OIS_d.exp
1>Win32ForceFeedback.obj : error LNK2001: unresolved external symbol _GUID_ConstantForce
1>Win32ForceFeedback.obj : error LNK2001: unresolved external symbol _GUID_RampForce
1>Win32ForceFeedback.obj : error LNK2001: unresolved external symbol _GUID_SawtoothDown
1>Win32ForceFeedback.obj : error LNK2001: unresolved external symbol _GUID_SawtoothUp
1>Win32ForceFeedback.obj : error LNK2001: unresolved external symbol _GUID_Sine
1>Win32ForceFeedback.obj : error LNK2001: unresolved external symbol _GUID_Triangle
1>Win32ForceFeedback.obj : error LNK2001: unresolved external symbol _GUID_Square
1>Win32ForceFeedback.obj : error LNK2001: unresolved external symbol _GUID_Spring
1>Win32ForceFeedback.obj : error LNK2001: unresolved external symbol _GUID_Inertia
1>Win32ForceFeedback.obj : error LNK2001: unresolved external symbol _GUID_Damper
1>Win32ForceFeedback.obj : error LNK2001: unresolved external symbol _GUID_Friction
1>Win32ForceFeedback.obj : error LNK2001: unresolved external symbol _GUID_CustomForce
1>Win32InputManager.obj : error LNK2019: unresolved external symbol _DirectInput8Create@20 referenced in function "public: virtual void __thiscall OIS::Win32InputManager::_initialize(class std::multimap<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::less<classstd::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > > &)" (?_initialize@Win32InputManager@OIS@@UAEXAAV?$multimap@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@U?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@@std@@@2@@std@@@Z)
1>Win32InputManager.obj : error LNK2001: unresolved external symbol _IID_IDirectInput8A
1>Win32JoyStick.obj : error LNK2001: unresolved external symbol _c_dfDIJoystick2
1>Win32JoyStick.obj : error LNK2001: unresolved external symbol _GUID_Slider
1>Win32KeyBoard.obj : error LNK2001: unresolved external symbol _c_dfDIKeyboard
1>Win32KeyBoard.obj : error LNK2001: unresolved external symbol _GUID_SysKeyboard
1>Win32Mouse.obj : error LNK2001: unresolved external symbol _c_dfDIMouse2
1>Win32Mouse.obj : error LNK2001: unresolved external symbol _GUID_SysMouse
1>\bin\Debug\OIS_d.dll : fatal error LNK1120: 20 unresolved externals
I use Windows 7 @ 32bit, Visual Studio 2010 Ultimate (from work) - all the other projects are OK (only some warnings for CRT functions usage, no problem).
The point here is that I can't understand what's going on because for my little understading these symbols are somewhat from
dinput8.lib but I can't see it included in the VS project...
I tryed to explicitly add it to the project (
dinput8.lib), but the situation get even worst!
So I was wrong, where are defined these missing symbols? Why they start with an
underscore? What am I missing here?
Thank you very much in advance for the kind support and help
Edoardo