yuriythebest
28-11-2007 22:57:12
right, I followed the instructions at
http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=3293
I am using vc8 btw
my directory structure looks like so
D:\OgreSDK145 - contains ogre core
D:\OgreSDK145\vorbis
D:\OgreSDK145\ogg
D:\OgreSDK145\OgreAL
the error I get is during the building of ogreAl- ogg and vorbis were all error-less
3>LINK : fatal error LNK1104: cannot open file 'OgreMain_d.lib'
also I'm a little confused by this phrase :
Run the OpenAL SDK installer and unzip the freealut package.
what is the freealut package?
in
D:\OgreSDK145\OgreAL
I put:
https://ogreal.svn.sourceforge.net/svnr ... eAL-Eihort
CaseyB
29-11-2007 00:33:42
freealut is an old dependency. You don't need it any more, but I apparently forgot to remove that bit from the instructions! Sorry about the confusion, I've fixed the instructions now.
You're using the OgreSDK, right? Can you make sure that when you installed the SDK you got an environment variable that was called OGRE_HOME and pointed to the folder you installed the SDK into? And verify that in that folder the is a lib folder that contains OgreMain_d.lib.
yuriythebest
29-11-2007 06:55:29
yes, I did exactly that, still get the same error.
and in case it helps my full error output:
1>------ Rebuild All started: Project: OgreAL, Configuration: Debug Win32 ------
1>Deleting intermediate and output files for project 'OgreAL', configuration 'Debug|Win32'
1>Compiling...
1>OgreALException.cpp
1>OgreALListener.cpp
1>OgreALOggSound.cpp
1>d:\ogresdk145\ogreal\src\ogrealoggsound.cpp(301) : warning C4018: '<' : signed/unsigned mismatch
1>OgreALSound.cpp
1>OgreALSoundManager.cpp
1>OgreALWavSound.cpp
1>d:\ogresdk145\ogreal\src\ogrealwavsound.cpp(303) : warning C4018: '>' : signed/unsigned mismatch
1>Generating Code...
1>Compiling manifest to resources...
1>Linking...
1> Creating library D:\OgreSDK145\OgreAL\lib\Debug\OgreAL_d.lib and object D:\OgreSDK145\OgreAL\lib\Debug\OgreAL_d.exp
1>LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other libs; use /NODEFAULTLIB:library
1>Embedding manifest...
1>Performing Post-Build Event...
1> 1 file(s) copied.
1>Project : warning PRJ0018 : The following environment variables were not found:
1>$(OGRE_SRC)
1>Build log was saved at "file://d:\OgreSDK145\OgreAL\OgreAL\Debug\BuildLog.htm"
1>OgreAL - 0 error(s), 3 warning(s)
2>------ Rebuild All started: Project: Basic_Demo, Configuration: Debug Win32 ------
2>Deleting intermediate and output files for project 'Basic_Demo', configuration 'Debug|Win32'
3>------ Rebuild All started: Project: Directional_Demo, Configuration: Debug Win32 ------
3>Deleting intermediate and output files for project 'Directional_Demo', configuration 'Debug|Win32'
2>Compiling...
3>Compiling...
3>Listener.cpp
2>Listener.cpp
2>main.cpp
3>main.cpp
2>OgreApp.cpp
3>OgreApp.cpp
2>Generating Code...
3>Generating Code...
2>Compiling manifest to resources...
3>Compiling manifest to resources...
3>Linking...
2>Linking...
2>LINK : fatal error LNK1104: cannot open file 'OgreMain_d.lib'
3>LINK : fatal error LNK1104: cannot open file 'OgreMain_d.lib'
2>Project : warning PRJ0018 : The following environment variables were not found:
2>$(OGRE_SRC)
2>$(ALUT_BIN)
2>Build log was saved at "file://d:\OgreSDK145\OgreAL\Demos\Basic_Demo\Debug\BuildLog.htm"
2>Basic_Demo - 1 error(s), 0 warning(s)
3>Project : warning PRJ0018 : The following environment variables were not found:
3>$(OGRE_SRC)
3>$(ALUT_BIN)
3>Build log was saved at "file://d:\OgreSDK145\OgreAL\Demos\Directional_Demo\Debug\BuildLog.htm"
3>Directional_Demo - 1 error(s), 0 warning(s)
4>------ Rebuild All started: Project: Doppler_Demo, Configuration: Debug Win32 ------
4>Deleting intermediate and output files for project 'Doppler_Demo', configuration 'Debug|Win32'
4>Compiling...
5>------ Rebuild All started: Project: MultiChannel_Demo, Configuration: Debug Win32 ------
5>Deleting intermediate and output files for project 'MultiChannel_Demo', configuration 'Debug|Win32'
5>Compiling...
4>BetaGUI.cpp
5>Listener.cpp
4>Listener.cpp
5>main.cpp
4>main.cpp
5>OgreApp.cpp
4>OgreApp.cpp
5>Generating Code...
5>Compiling manifest to resources...
5>Linking...
5>LINK : fatal error LNK1104: cannot open file 'OgreMain_d.lib'
4>Generating Code...
5>Project : warning PRJ0018 : The following environment variables were not found:
5>$(OGRE_SRC)
5>$(ALUT_BIN)
5>Build log was saved at "file://d:\OgreSDK145\OgreAL\Demos\MultiChannel_Demo\Debug\BuildLog.htm"
5>MultiChannel_Demo - 1 error(s), 0 warning(s)
4>Compiling manifest to resources...
4>Linking...
4>LINK : fatal error LNK1104: cannot open file 'OgreMain_d.lib'
4>Project : warning PRJ0018 : The following environment variables were not found:
4>$(OGRE_SRC)
4>$(ALUT_BIN)
4>Build log was saved at "file://d:\OgreSDK145\OgreAL\Demos\Doppler_Demo\Debug\BuildLog.htm"
4>Doppler_Demo - 1 error(s), 0 warning(s)
========== Rebuild All: 1 succeeded, 4 failed, 0 skipped ==========
yuriythebest
29-11-2007 13:01:27
right, after I remembered how to link it now finds OgreMain_d.lib however I get these errors:
2>Listener.obj : error LNK2019: unresolved external symbol "public: static class OIS::InputManager * __cdecl OIS::InputManager::createInputSystem(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<class std::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> > > > > &)" (?createInputSystem@InputManager@OIS@@SAPAV12@AAV?$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) referenced in function "public: __thiscall DeviceListener::DeviceListener(class Ogre::RenderWindow *,class Ogre::Camera *,class Ogre::SceneManager *)" (??0DeviceListener@@QAE@PAVRenderWindow@Ogre@@PAVCamera@2@PAVSceneManager@2@@Z)
2>Listener.obj : error LNK2019: unresolved external symbol "public: static void __cdecl OIS::InputManager::destroyInputSystem(class OIS::InputManager *)" (?destroyInputSystem@InputManager@OIS@@SAXPAV12@@Z) referenced in function "public: virtual void __thiscall DeviceListener::windowClosed(class Ogre::RenderWindow *)" (?windowClosed@DeviceListener@@UAEXPAVRenderWindow@Ogre@@@Z)
2>D:\OgreSDK145\OgreAL\Demos\Directional_Demo\Debug\Directional_Demo.exe : fatal error LNK1120: 2 unresolved externals
3>Listener.obj : error LNK2019: unresolved external symbol "public: static class OIS::InputManager * __cdecl OIS::InputManager::createInputSystem(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<class std::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> > > > > &)" (?createInputSystem@InputManager@OIS@@SAPAV12@AAV?$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) referenced in function "public: __thiscall DeviceListener::DeviceListener(class Ogre::RenderWindow *,class Ogre::Camera *,class Ogre::SceneManager *)" (??0DeviceListener@@QAE@PAVRenderWindow@Ogre@@PAVCamera@2@PAVSceneManager@2@@Z)
3>Listener.obj : error LNK2019: unresolved external symbol "public: static void __cdecl OIS::InputManager::destroyInputSystem(class OIS::InputManager *)" (?destroyInputSystem@InputManager@OIS@@SAXPAV12@@Z) referenced in function "public: virtual void __thiscall DeviceListener::windowClosed(class Ogre::RenderWindow *)" (?windowClosed@DeviceListener@@UAEXPAVRenderWindow@Ogre@@@Z)
3>D:\OgreSDK145\OgreAL\Demos\Basic_Demo\Debug\Basic_Demo.exe : fatal error LNK1120: 2 unresolved externals
2>Project : warning PRJ0018 : The following environment variables were not found:
in the wiki all I found was
You need to link against OIS.lib or OIS_d.lib.
but they're in the same folder as OgreMain_d.lib!!
CaseyB
29-11-2007 19:33:05
I'm glad to see you got it working though I'm not sure what would cause the issues you seeing!