I'm trying to make Demo project with qmake
but I'm getting this error:
Code: Select all
/usr/bin/rcc -name DemoResources resources/DemoResources.qrc -o qrc_DemoResources.cpp
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I. -I./include -I/usr/local/include/OGRE -I/usr/local/include/QtOgre -o qrc_DemoResources.o qrc_DemoResources.cpp
g++ -Wl,-O1 -o Demo ChooseMeshWidget.o DemoGameLogic.o main.o MainMenu.o moc_ChooseMeshWidget.o moc_MainMenu.o qrc_DemoResources.o -L/usr/lib -lOgreMain -lQtOgre -lQtXml -lQtGui -lQtCore -lpthread
/usr/local/lib/libQtOgre.a(Application.cpp.o): In function `QtOgre::Application::initialiseOgre()':
Application.cpp:(.text+0x10a3): undefined reference to `Ogre::Root::initialise(bool, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/local/lib/libQtOgre.a(Application.cpp.o): In function `Ogre::NedAllocPolicy::allocateBytes(unsigned int, char const*, int, char const*)':
Application.cpp:(.text._ZN4Ogre14NedAllocPolicy13allocateBytesEjPKciS2_[Ogre::NedAllocPolicy::allocateBytes(unsigned int, char const*, int, char const*)]+0x22): undefined reference to `Ogre::NedAllocImpl::allocBytes(unsigned int, char const*, int, char const*)'
/usr/local/lib/libQtOgre.a(Application.cpp.o): In function `Ogre::NedAllocPolicy::deallocateBytes(void*)':
Application.cpp:(.text._ZN4Ogre14NedAllocPolicy15deallocateBytesEPv[Ogre::NedAllocPolicy::deallocateBytes(void*)]+0xd): undefined reference to `Ogre::NedAllocImpl::deallocBytes(void*)'
/usr/local/lib/libQtOgre.a(OgreWidget.cpp.o): In function `QtOgre::OgreWidget::paintEvent(QPaintEvent*)':
OgreWidget.cpp:(.text+0xe91): undefined reference to `Ogre::Root::_fireFrameRenderingQueued()'
collect2: ld returned 1 exit status
make: *** [Demo] Error 1
undefined reference to `Ogre::Root::initialise(bool, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
undefined reference to `Ogre::NedAllocImpl::allocBytes(unsigned int, char const*, int, char const*)'
undefined reference to `Ogre::NedAllocImpl::deallocBytes(void*)'
undefined reference to `Ogre::Root::_fireFrameRenderingQueued()'
should I modify the QtOgre source code before installing? or Am I just doing something in wrong way..
This is out of my skills..