Building mogre from source / wrapping ogre plugins

hoecker

21-05-2011 15:58:24

Hi there,

first of all let me thank you for this great wrapper of ogre. I used plain c++ ogre and mogre now several times and am quite happy with its performance.

What I'm trying to do next is to wrap ogre plugins to mogre. So what I needed are the modified e.g. autogenerated headers. I tried to follow the instructions inside the mogre\BUILD file. I built the dependencies, fixed the the "_ITERATOR_DEBUG_LEVEL" problem by rebuilding (this worked for me). Upon the build of Mogre_vs2010.sln I get the following linker error:


1>MogrePVRTCCodec.obj : error LNK2028: unresolved token (0A0001BF) "public: static void __cdecl Ogre::PVRTCCodec::shutdown(void)" (?shutdown@PVRTCCodec@Ogre@@$$FSAXXZ) referenced in function "public: static void __clrcall Mogre::PVRTCCodec::Shutdown(void)" (?Shutdown@PVRTCCodec@Mogre@@$$FSMXXZ)
1>MogrePVRTCCodec.obj : error LNK2028: unresolved token (0A0001C0) "public: static void __cdecl Ogre::PVRTCCodec::startup(void)" (?startup@PVRTCCodec@Ogre@@$$FSAXXZ) referenced in function "public: static void __clrcall Mogre::PVRTCCodec::Startup(void)" (?Startup@PVRTCCodec@Mogre@@$$FSMXXZ)
1>MogrePVRTCCodec.obj : error LNK2019: unresolved external symbol "public: static void __cdecl Ogre::PVRTCCodec::startup(void)" (?startup@PVRTCCodec@Ogre@@$$FSAXXZ) referenced in function "public: static void __clrcall Mogre::PVRTCCodec::Startup(void)" (?Startup@PVRTCCodec@Mogre@@$$FSMXXZ)
1>MogrePVRTCCodec.obj : error LNK2019: unresolved external symbol "public: static void __cdecl Ogre::PVRTCCodec::shutdown(void)" (?shutdown@PVRTCCodec@Ogre@@$$FSAXXZ) referenced in function "public: static void __clrcall Mogre::PVRTCCodec::Shutdown(void)" (?Shutdown@PVRTCCodec@Mogre@@$$FSMXXZ)
1>lib\Release\Mogre.dll : fatal error LNK1120: 4 unresolved externals
1>Done Building Project "D:\Bibliotheken\mogre\Main\Mogre_vs2010.vcxproj" (build target(s)) -- FAILED.


What's missing here?

GantZ

21-05-2011 19:00:52

hi,

This happen when you have OGRE_CONFIG_ENABLE_PVRTC switched to ON in the OgreConfig.h file, and that you haven't the OgrePVRTCCodec files included in your ogre visual studio solution, I got this problem countless time before because I always forget adding these files :)