Hi , I'm a newbye working with Ogre 1.9, mingw and CodeBlocks on Windows 8. I setup the project build options as suggested in the tutorial but
the build does not end well. I have attached my complete build log. Here I post the part of the log I think is relevant :
mingw32-g++.exe -LE:\programs\OgreSDK_vc11_v1-9-0\bin\Debug -LE:\programs\OgreSDK_vc11_v1-9-0\boost\lib -o bin\Debug\OgreProject1.exe obj\Debug\BaseApplication.o obj\Debug\TutorialApplication.o -Wl,--enable-auto-image-base -Wl,--add-stdcall-alias -Wl,--enable-auto-import -lOgreMain_d -lOIS_d
obj\Debug\BaseApplication.o: In function `ZN15BaseApplicationC2Ev':
E:/ogre-examples/OgreProject1/BaseApplication.cpp:40: undefined reference to `Ogre::StringUtil::BLANK'
E:/ogre-examples/OgreProject1/BaseApplication.cpp:40: undefined reference to `Ogre::StringUtil::BLANK'
obj\Debug\BaseApplication.o: In function `ZN15BaseApplicationD2Ev':
E:/ogre-examples/OgreProject1/BaseApplication.cpp:57: undefined reference to `Ogre::WindowEventUtilities::removeWindowEventListener(Ogre::RenderWindow*, Ogre::WindowEventListener*)'
E:/ogre-examples/OgreProject1/BaseApplication.cpp:59: undefined reference to `Ogre::Root::~Root()'
obj\Debug\BaseApplication.o: In function `ZN15BaseApplication9configureEv':
E:/ogre-examples/OgreProject1/BaseApplication.cpp:68: undefined reference to `Ogre::Root::showConfigDialog()'
E:/ogre-examples/OgreProject1/BaseApplication.cpp:72: undefined reference to `Ogre::StringUtil::BLANK'
E:/ogre-examples/OgreProject1/BaseApplication.cpp:72: undefined reference to `Ogre::Root::initialise(bool, std::string const&, std::string const&)'
Please help I'm completely stuck! What I understand is that the single compilations have gone well while the linking fails for
reasons behind my knowledge.
Problem building the Tutorial Application
-
- Gnoblar
- Posts: 2
- Joined: Sat May 28, 2016 3:51 pm
Problem building the Tutorial Application
- Attachments
-
- att1.txt
- (82.05 KiB) Downloaded 13 times
-
- Gnoblar
- Posts: 2
- Joined: Sat May 28, 2016 3:51 pm
-
- Orc Shaman
- Posts: 737
- Joined: Fri May 31, 2013 2:28 am
- x 65
Re: Problem building the Tutorial Application
http://www.ogre3d.org/forums/viewtopic.php?f=16&t=81984
ogre official support for mingw is discontinued due to hustle of maintaining version compatibility
now, if you still insist on mingw...please use another ide- eclipse/netBeans/qtCreator
the linking error can result from a mismatch in mingw version( codeBlocks use mingw-tdm which is a problematic fork of mingw ) or version number
dont use the sourceForge download( unless you are using msvc ) its old...
either move to visualStudio or compile Ogre yourself with the same compiler you use for compiling ogre tutorial/app
edit: or can be just a faulty path definition
where's ogre's Lib path? -LE:/programs/OgreSDK_vc11_v1-9-0/Lib/Debug
ogre official support for mingw is discontinued due to hustle of maintaining version compatibility
now, if you still insist on mingw...please use another ide- eclipse/netBeans/qtCreator
the linking error can result from a mismatch in mingw version( codeBlocks use mingw-tdm which is a problematic fork of mingw ) or version number
dont use the sourceForge download( unless you are using msvc ) its old...
either move to visualStudio or compile Ogre yourself with the same compiler you use for compiling ogre tutorial/app
edit: or can be just a faulty path definition
where's ogre's Lib path? -LE:/programs/OgreSDK_vc11_v1-9-0/Lib/Debug
Last edited by frostbyte on Fri Jun 03, 2016 2:40 am, edited 4 times in total.
the woods are lovely dark and deep
but i have promises to keep
and miles to code before i sleep
and miles to code before i sleep..
coolest videos link( two minutes paper )...
https://www.youtube.com/user/keeroyz/videos
but i have promises to keep
and miles to code before i sleep
and miles to code before i sleep..
coolest videos link( two minutes paper )...
https://www.youtube.com/user/keeroyz/videos
- Kohedlo
- Orc
- Posts: 435
- Joined: Fri Nov 27, 2009 3:34 pm
- Location: Ukraine, Sumy
- x 32
- Contact:
Re: Problem building the Tutorial Application
let change Ogre::StringUtil::BLANK value link to "" or "NULL" string value;
c++ game developer.
current project: Imperial Game Engine 2.5
current project: Imperial Game Engine 2.5
-
- Orc Shaman
- Posts: 737
- Joined: Fri May 31, 2013 2:28 am
- x 65
Re: Problem building the Tutorial Application
mingw32-g++.exe -LE:programsOgreSDK_vc11_v1-9-0binDebug...
ok now i see it...is that ..."VC11_v1-9...." together with "mingw" in the same sentence???( lol )
man, you are trying to link to visualStudio c++ libraries from Mingw....
that won't work( will work only for C abi not c++ abi )
you will need to download/use VisualStudio 2012 experss or build ogre from source using BlocksCode( not recommended )
(-:
ok now i see it...is that ..."VC11_v1-9...." together with "mingw" in the same sentence???( lol )
man, you are trying to link to visualStudio c++ libraries from Mingw....
that won't work( will work only for C abi not c++ abi )
you will need to download/use VisualStudio 2012 experss or build ogre from source using BlocksCode( not recommended )
(-:
the woods are lovely dark and deep
but i have promises to keep
and miles to code before i sleep
and miles to code before i sleep..
coolest videos link( two minutes paper )...
https://www.youtube.com/user/keeroyz/videos
but i have promises to keep
and miles to code before i sleep
and miles to code before i sleep..
coolest videos link( two minutes paper )...
https://www.youtube.com/user/keeroyz/videos