Ogre3D + Qt

Problems building or running the engine, queries about how to use features etc.
Post Reply
SanchezPluz
Gnoblar
Posts: 8
Joined: Mon May 12, 2014 5:57 pm

Ogre3D + Qt

Post by SanchezPluz »

Hello everyone!

I want to connect Ogre3D with Qt. But the article on the site is written not correctly. Qt Creator shows compilation error that isn't found user32.lib.
How can I connect Ogre? Maybe there are other articles?
I'm using Qt Creator 5.2.1 with MinGW compiler without VS add-ons.
hydexon
Gremlin
Posts: 164
Joined: Sun Apr 14, 2013 8:51 pm
x 10

Re: Ogre3D + Qt

Post by hydexon »

Did you tried this code?:
https://bitbucket.org/MindCalamity/qtogre

I'm sure you're using a dated implementation of an Qt-Ogre integration.
SanchezPluz
Gnoblar
Posts: 8
Joined: Mon May 12, 2014 5:57 pm

Re: Ogre3D + Qt

Post by SanchezPluz »

hydexon wrote:Did you tried this code?:
https://bitbucket.org/MindCalamity/qtogre

I'm sure you're using a dated implementation of an Qt-Ogre integration.
Hello. I don't use this integration.
I used the instructions that are given on the official website (see first post).
hydexon
Gremlin
Posts: 164
Joined: Sun Apr 14, 2013 8:51 pm
x 10

Re: Ogre3D + Qt

Post by hydexon »

Sorry i didn't see that, but you shouldn't link the user32.lib, i've tested Qt 5 + Ogre3D integration easliy using Qt Creator and without linking that library and that articles is quite old (Uses Qt 4.7) so try to use the code in my prev post, works for me
SanchezPluz
Gnoblar
Posts: 8
Joined: Mon May 12, 2014 5:57 pm

Re: Ogre3D + Qt

Post by SanchezPluz »

So, I used code from prev website, but Qt gave a new error: cannot find -llibboost_system-mgw47-mt-d-1_51.
I know: this is static library *.a from boost/lib. Qt doesn't want to link this libraries.
SanchezPluz
Gnoblar
Posts: 8
Joined: Mon May 12, 2014 5:57 pm

Re: Ogre3D + Qt

Post by SanchezPluz »

Bit changed the code in *.pro-file:

Code: Select all

LIBS += -L$$quote(E:\Programms\Ogre_MinGW\OgreSDK_MinGW_v1-8-1\boost\lib)  \
           -llibboost_system-mgw47-mt-d-1_51.a
So, the program is compiled! But it doesn't start; in console is written: "The program has unexpectedly finished".
What's wrong? :(
Post Reply