Hello,
I'm new with Ogre.
I'm trying to integrrate Ogre in Qt.
To do this, i downloaded source from github and built it with github tuto.
After, i make a new Empty project in qtCreator and i followed this tuto: http://wiki.ogre3d.org/QtOgre
First problem is, in my Ogre build, i don't have all libs recquire by .pro (no cg, freeImage, freetype...) and in my folder. So my project don't build. I tried to build by deleting lines in my .pro but it generate error.
So did i miss something while compilation of Ogre? Or it's the tuto which is useless?
Thanks for advice.
Integrate QT in Ogre
-
- Gnoblar
- Posts: 4
- Joined: Sat Jan 06, 2018 6:55 pm
Re: Integrate QT in Ogre
Hi,
I checked this tutorial http://wiki.ogre3d.org/Integrating+Ogre+into+QT5.
I copied the code and i make my .pro like that:
But, when i'm trying to compile, it give me those errors:
undefined reference to `_imp___ZN4Ogre4RootD1Ev'
I understand that it doesn't find the implementation of OgreRoot... But how can i resolve this prb?
Thanks for advice.
I checked this tutorial http://wiki.ogre3d.org/Integrating+Ogre+into+QT5.
I copied the code and i make my .pro like that:
I added all library in my /lib.QT += widgets
QT += opengl
SOURCES += \
main.cpp \
qtogrewindow.cpp
HEADERS += \
qtogrewindow.h \
sdkqtcameraman.h
INCLUDEPATH += "D:\\Ogre\\include\\OGRE"
LIBS += -L"D:\\Ogre\\lib" -lOgreBites
LIBS += -L"D:\\Ogre\\lib" -lOgreGLSupport
LIBS += -L"D:\\Ogre\\lib" -lOgreHLMS
LIBS += -L"D:\\Ogre\\lib" -lOgreMain
LIBS += -L"D:\\Ogre\\lib" -lOgreMeshLOdGenerator
LIBS += -L"D:\\Ogre\\lib" -lOgreOverlay
LIBS += -L"D:\\Ogre\\lib" -lOgrePaging
LIBS += -L"D:\\Ogre\\lib" -lOgreProperty
LIBS += -L"D:\\Ogre\\lib" -lOgreRTShaderSystem
LIBS += -L"D:\\Ogre\\lib" -lOgreTerrain
LIBS += -L"D:\\Ogre\\lib" -lOgreVolume
But, when i'm trying to compile, it give me those errors:
undefined reference to `_imp___ZN4Ogre4RootD1Ev'
I understand that it doesn't find the implementation of OgreRoot... But how can i resolve this prb?
Thanks for advice.