I am a c++ programmer. I am interested in ogre. What are libraries needed to compile first of the beginner's tutorial? I already linked 6 .a files. I could not understand the error. Anyone please help. Thanks in advance.
Error:
----- OGRE ( MAIN GCC DEBUG DEBUG_FULL BLITZ WIN32 )
Linking...
Info: resolving Ogre::ResourceGroupManager::AUTODETECT_RESOURCE_GROUP_NAME by linking to __imp___ZN4Ogre20ResourceGroupManager30AUTODETECT_RESOURCE_GRO
UP_NAMEE (auto-import)
Info: resolving Ogre::Quaternion::IDENTITY by linking to __imp___ZN4Ogre10Quaternion8IDENTITYE (auto-import)
Info: resolving Ogre::Vector3::ZERO by linking to __imp___ZN4Ogre7Vector34ZEROE (auto-importc:/program files/codeblocks/mingw/bin/../lib/gcc/mingw32/4.4.
1/../../../../mingw32/bin/ld.exe: warning: auto-importing has been activated without --enable-auto-import specified on the command line.
This should work unless it involves constant data structures referencing symbols from auto-imported DLLs.
C:/upp/out/OGRE/MINGW.Debug.Debug_full.Main\ogre.o: In function `ZN5boost3argILi6EEC1Ev':
C:/OGRESDK/OgreSDK_mingw_v1-7-1/boost_1_42/boost/bind/arg.hpp:(.text+0xd): undefined reference to `BaseApplication::BaseApplication()'
C:/upp/out/OGRE/MINGW.Debug.Debug_full.Main\ogre.o: In function `ZN19TutorialApplicationC1Ev':
C:/MyApps/OGRE/ogre.cpp:9: undefined reference to `BaseApplication::BaseApplication()'
C:/upp/out/OGRE/MINGW.Debug.Debug_full.Main\ogre.o: In function `ZN19TutorialApplicationD2Ev':
C:/MyApps/OGRE/ogre.cpp:15: undefined reference to `BaseApplication::~BaseApplication()'
C:/upp/out/OGRE/MINGW.Debug.Debug_full.Main\ogre.o: In function `ZN19TutorialApplicationD1Ev':
C:/MyApps/OGRE/ogre.cpp:15: undefined reference to `BaseApplication::~BaseApplication()'
C:/upp/out/OGRE/MINGW.Debug.Debug_full.Main\ogre.o: In function `ZN19TutorialApplicationD0Ev':
C:/MyApps/OGRE/ogre.cpp:15: undefined reference to `BaseApplication::~BaseApplication()'
C:/upp/out/OGRE/MINGW.Debug.Debug_full.Main\ogre.o: In function `WinMain@16':
C:/MyApps/OGRE/ogre.cpp:55: undefined reference to `BaseApplication::go()'
C:/upp/out/OGRE/MINGW.Debug.Debug_full.Main\ogre.o: In function `ZN5boost3argILi6EEC1Ev':
C:/OGRESDK/OgreSDK_mingw_v1-7-1/boost_1_42/boost/bind/arg.hpp:(.rdata$_ZTV19TutorialApplication[vtable for TutorialApplication]+0xc): undefined reference to
`BaseApplication::frameRenderingQueued(Ogre::FrameEvent const&)'
C:/OGRESDK/OgreSDK_mingw_v1-7-1/boost_1_42/boost/bind/arg.hpp:(.rdata$_ZTV19TutorialApplication[vtable for TutorialApplication]+0x1c): undefined reference to
`BaseApplication::go()'
C:/OGRESDK/OgreSDK_mingw_v1-7-1/boost_1_42/boost/bind/arg.hpp:(.rdata$_ZTV19TutorialApplication[vtable for TutorialApplication]+0x20): undefined reference to
`BaseApplication::setup()'
C:/OGRESDK/OgreSDK_mingw_v1-7-1/boost_1_42/boost/bind/arg.hpp:(.rdata$_ZTV19TutorialApplication[vtable for TutorialApplication]+0x24): undefined reference to
`BaseApplication::configure()'
C:/OGRESDK/OgreSDK_mingw_v1-7-1/boost_1_42/boost/bind/arg.hpp:(.rdata$_ZTV19TutorialApplication[vtable for TutorialApplication]+0x28): undefined reference to
`BaseApplication::chooseSceneManager()'
C:/OGRESDK/OgreSDK_mingw_v1-7-1/boost_1_42/boost/bind/arg.hpp:(.rdata$_ZTV19TutorialApplication[vtable for TutorialApplication]+0x2c): undefined reference to
`BaseApplication::createCamera()'
C:/OGRESDK/OgreSDK_mingw_v1-7-1/boost_1_42/boost/bind/arg.hpp:(.rdata$_ZTV19TutorialApplication[vtable for TutorialApplication]+0x30): undefined reference to
`BaseApplication::createFrameListener()'
C:/OGRESDK/OgreSDK_mingw_v1-7-1/boost_1_42/boost/bind/arg.hpp:(.rdata$_ZTV19TutorialApplication[vtable for TutorialApplication]+0x38): undefined reference to
`BaseApplication::destroyScene()'
C:/OGRESDK/OgreSDK_mingw_v1-7-1/boost_1_42/boost/bind/arg.hpp:(.rdata$_ZTV19TutorialApplication[vtable for TutorialApplication]+0x3c): undefined reference to
`BaseApplication::createViewports()'
C:/OGRESDK/OgreSDK_mingw_v1-7-1/boost_1_42/boost/bind/arg.hpp:(.rdata$_ZTV19TutorialApplication[vtable for TutorialApplication]+0x40): undefined reference to
`BaseApplication::setupResources()'
C:/upp/out/OGRE/MINGW.Debug.Debug_full.Main\ogre.o: In function `ZN19TutorialApplicationC1Ev':
C:/MyApps/OGRE/ogre.cpp:9: undefined reference to `BaseApplication::createResourceListener()'
C:/MyApps/OGRE/ogre.cpp:9: undefined reference to `BaseApplication::loadResources()'
C:/MyApps/OGRE/ogre.cpp:9: undefined reference to `BaseApplication::keyPressed(OIS::KeyEvent const&)'
C:/MyApps/OGRE/ogre.cpp:9: undefined reference to `BaseApplication::keyReleased(OIS::KeyEvent const&)'
C:/MyApps/OGRE/ogre.cpp:9: undefined reference to `BaseApplication::mouseMoved(OIS::MouseEvent const&)'
C:/MyApps/OGRE/ogre.cpp:9: undefined reference to `BaseApplication::mousePressed(OIS::MouseEvent const&, OIS::MouseButtonID)'
C:/MyApps/OGRE/ogre.cpp:9: undefined reference to `BaseApplication::mouseReleased(OIS::MouseEvent const&, OIS::MouseButtonID)'
C:/MyApps/OGRE/ogre.cpp:9: undefined reference to `BaseApplication::windowResized(Ogre::RenderWindow*)'
C:/MyApps/OGRE/ogre.cpp:9: undefined reference to `BaseApplication::windowClosed(Ogre::RenderWindow*)'
C:/MyApps/OGRE/ogre.cpp:9: undefined reference to `non-virtual thunk to BaseApplication::windowResized(Ogre::RenderWindow*)'
C:/MyApps/OGRE/ogre.cpp:9: undefined reference to `non-virtual thunk to BaseApplication::windowClosed(Ogre::RenderWindow*)'
C:/upp/out/OGRE/MINGW.Debug.Debug_full.Main\ogre.o: In function `ZN19TutorialApplicationD2Ev':
C:/MyApps/OGRE/ogre.cpp:13: undefined reference to `non-virtual thunk to BaseApplication::keyPressed(OIS::KeyEvent const&)'
C:/MyApps/OGRE/ogre.cpp:13: undefined reference to `non-virtual thunk to BaseApplication::keyReleased(OIS::KeyEvent const&)'
C:/MyApps/OGRE/ogre.cpp:13: undefined reference to `non-virtual thunk to BaseApplication::mouseMoved(OIS::MouseEvent const&)'
C:/MyApps/OGRE/ogre.cpp:13: undefined reference to `non-virtual thunk to BaseApplication::mousePressed(OIS::MouseEvent const&, OIS::MouseButtonID)'
C:/MyApps/OGRE/ogre.cpp:13: undefined reference to `non-virtual thunk to BaseApplication::mouseReleased(OIS::MouseEvent const&, OIS::MouseButtonID)
)'
collect2: ld returned 1 exit status
There were errors. (0:01.01)
I am using ultimate++.
ogre.cpp:
#include "SamplePlugin.h"
#include "Grass.h"
using namespace Ogre;
using namespace OgreBites;
#include "TutorialApplication.h"
TutorialApplication::TutorialApplication(void)
{
}
TutorialApplication::~TutorialApplication(void)
{
}
//-------------------------------------------------------------------------------------
void TutorialApplication::createScene(void)
{
Ogre::Entity* ogreHead = mSceneMgr->createEntity("Head", "ogrehead.mesh");
Ogre::SceneNode* headNode = mSceneMgr->getRootSceneNode()->createChildSceneNode();
headNode->attachObject(ogreHead);
// Set ambient light
mSceneMgr->setAmbientLight(Ogre::ColourValue(0.5, 0.5, 0.5));
// Create a light
Ogre::Light* l = mSceneMgr->createLight("MainLight");
l->setPosition(20,80,50);
}
#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
#define WIN32_LEAN_AND_MEAN
#include "windows.h"
#endif
#ifdef __cplusplus
extern "C" {
#endif
#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT )
#else
int main(int argc, char *argv[])
#endif
{
// Create application object
TutorialApplication app;
try
{
app.go();
} catch( Ogre::Exception& e ) {
#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
MessageBox( NULL, e.getFullDescription().c_str(), "An exception has occured!", MB_OK | MB_ICONERROR| MB_TASKMODAL);
#else
std::cerr << "An exception has occured: " << e.getFullDescription().c_str() << std::endl;
#endif
}
return 0;
}
#ifdef __cplusplus
}
#endif
Others are from various parts inside OGRE samples and sources.
Thanx in advance. :-/