IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Qt Discussion :

probleme d integration qt ogre


Sujet :

Qt

  1. #1
    Membre averti
    Profil pro
    Inscrit en
    Novembre 2008
    Messages
    38
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Novembre 2008
    Messages : 38
    Par défaut probleme d integration qt ogre
    bonjour,
    je suis sous qt 4.4.3, et la ca fait trois jours que je suis sur le meme probleme.
    J'aimerais compiler le tuto qt_ogre, mais je pense avoir un probleme de linkage de la librairie c:/OgreSDK/lib. Tout les dossiers sont au bon endroit et je pense avoir bien creer les variables d'environnement.(ha oui je suis sous vista).J ai donc essayer mille truc , sous QDev ou sous QtCreator mais il me sort toujours le meme probleme :

    c:\Qt\4.4.3\bin\qmake.exe -win32 -o Makefile qt_ogre.pro
    C:/Dev-Cpp/bin/make.exe -f Makefile.Debug
    make.exe[1]: Entering directory `C:/Users/Andy_A/Desktop'
    g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-subsystem,console -mthreads -Wl -o debug\qt_ogre.exe debug/main.o debug/ogrewidget.o debug/moc_ogrewidget.o -L"c:\Qt\4.4.3\lib" -Lc:/OgreSDK/bin -lQtGuid4 -lQtCored4
    make.exe[1]: Leaving directory `C:/Users/Andy_A/Desktop'
    debug/ogrewidget.o(.text+0x456): In function `ZN10OgreWidgetD2Ev':
    C:/Users/Andy_A/Desktop/ogrewidget.cpp:24: undefined reference to `Ogre::Root::detachRenderTarget(Ogre::RenderTarget*)'
    debug/ogrewidget.o(.text+0x477):C:/Users/Andy_A/Desktop/ogrewidget.cpp:28: undefined reference to `Ogre::Root::destroySceneManager(Ogre::SceneManager*)'
    debug/ogrewidget.o(.text+0x498):C:/Users/Andy_A/Desktop/ogrewidget.cpp:32: undefined reference to `Ogre::Root::~Root()'
    debug/ogrewidget.o(.text+0x5b8): In function `ZN10OgreWidgetD1Ev':.cpp:107: undefined reference to `Ogre::StringConverter::toString(unsigned int, unsigned short, char, std::_Ios_Fmtflags)'

    ...(j ai couper un peu)

    1199):C:/Users/Andy_A/Desktop/ogrewidget.cpp:117: undefined reference to `Ogre::Root::createRenderWindow(std::string const&, unsigned int, unsigned int, bool, std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > > const*)'
    debug/ogrewidget.o(.text+0x14ae):C:/Users/Andy_A/Desktop/ogrewidget.cpp:123: undefined reference to `Ogre::Viewport::setBackgroundColour(Ogre::ColourValue const&)'
    collect2: ld returned 1 exit status
    make.exe[1]: *** [debug\qt_ogre.exe] Error 1
    make.exe: *** [debug] Error 2


    Les fichiers utilisés pour la compilation de se programme sont ceux qu'il y a sur le tuto qt ogre, et j ai fait en sorte que les variables d environnement et tout le reste correspondent bien a mes dossiers.
    J espere qu'on trouvera une solution(Je n'ai d 'ailleur pas reussi a linker aucune autre librairies sous qt), j'ai vraiment envie de m'amuser avec ces librairies.. Parce que tout recreer tout seul c pa facil.

    Merci d'avance

  2. #2
    yan
    yan est déconnecté
    Rédacteur
    Avatar de yan
    Homme Profil pro
    Ingénieur expert
    Inscrit en
    Mars 2004
    Messages
    10 035
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 43
    Localisation : France, Ille et Vilaine (Bretagne)

    Informations professionnelles :
    Activité : Ingénieur expert
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mars 2004
    Messages : 10 035
    Par défaut
    Salut et bien venue sur le forum.
    1- utilise tu bien une version compilé pour mingw?
    2- peut tu montrer ton .pro?

  3. #3
    Membre averti
    Profil pro
    Inscrit en
    Novembre 2008
    Messages
    38
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Novembre 2008
    Messages : 38
    Par défaut
    voila mon . pro:

    TEMPLATE = app
    CONFIG += console
    TARGET = qt_ogre
    DEPENDPATH += .
    INCLUDEPATH += . C:\OgreSDK\include

    win32 {
    LIBS += -LC:/OgreSDK/lib
    }

    CONFIG(debug, debug|release) {
    LIBS += -lOgreGUIRenderer_d -lOgreMain_d
    }
    CONFIG(release, debug|release) {
    LIBS += -lOgreGUIRenderer -lOgreMain
    }

    # Input
    HEADERS += ogrewidget.h

    SOURCES += main.cpp \
    ogrewidget.cpp



    et voila les erreurs obtenu sur qt creator : (o cas ou ca puisse servir)

    Running build steps for project qt_ogre...
    Configuration unchanged, skipping QMake step.
    Starting: C:/Dev-Cpp/bin/mingw32-make.exe debug -w
    C:\Dev-Cpp\bin\mingw32-make.exe: Entering directory `C:/Users/Andy_A/Desktop'
    C:/Dev-Cpp/bin/mingw32-make.exe -f Makefile.Debug
    mingw32-make.exe[1]: Entering directory `C:/Users/Andy_A/Desktop'
    C:\Qt\4.4.3\bin\moc.exe -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\..\Qt\4.4.3\include\QtCore" -I"..\..\..\Qt\4.4.3\include\QtCore" -I"..\..\..\Qt\4.4.3\include\QtNetwork" -I"..\..\..\Qt\4.4.3\include\QtNetwork" -I"..\..\..\Qt\4.4.3\include\QtGui" -I"..\..\..\Qt\4.4.3\include\QtGui" -I"..\..\..\Qt\4.4.3\include" -I"." -I"..\..\..\OgreSDK\include" -I"c:\Qt\4.4.3\include\ActiveQt" -I"debug" -I"." -I"..\..\..\Qt\4.4.3\mkspecs\win32-g++" -D__GNUC__ -DWIN32 main.cpp -o debug\main.moc
    g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\..\Qt\4.4.3\include\QtCore" -I"..\..\..\Qt\4.4.3\include\QtCore" -I"..\..\..\Qt\4.4.3\include\QtNetwork" -I"..\..\..\Qt\4.4.3\include\QtNetwork" -I"..\..\..\Qt\4.4.3\include\QtGui" -I"..\..\..\Qt\4.4.3\include\QtGui" -I"..\..\..\Qt\4.4.3\include" -I"." -I"..\..\..\OgreSDK\include" -I"c:\Qt\4.4.3\include\ActiveQt" -I"debug" -I"." -I"..\..\..\Qt\4.4.3\mkspecs\win32-g++" -o debug\main.o main.cpp
    In file included from ../../../OgreSDK/include/OgreMemoryAllocatorConfig.h:189,
    from ../../../OgreSDK/include/OgrePrerequisites.h:409,
    from ../../../OgreSDK/include/Ogre.h:32,
    from ogrewidget.h:5,
    from main.cpp:3:
    ../../../OgreSDK/include/OgreMemoryStdAlloc.h: In static member function `static void* Ogre::StdAlignedAllocPolicy::allocateBytes(size_t, const char*, int, const char*)':
    ../../../OgreSDK/include/OgreMemoryStdAlloc.h:116: warning: statement has no effect
    ../../../OgreSDK/include/OgreMemoryStdAlloc.h:116: warning: statement has no effect
    ../../../OgreSDK/include/OgreMemoryStdAlloc.h:116: warning: statement has no effect
    In file included from main.cpp:3:
    ogrewidget.h:35:8: warning: extra tokens at end of #endif directive
    g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\..\Qt\4.4.3\include\QtCore" -I"..\..\..\Qt\4.4.3\include\QtCore" -I"..\..\..\Qt\4.4.3\include\QtNetwork" -I"..\..\..\Qt\4.4.3\include\QtNetwork" -I"..\..\..\Qt\4.4.3\include\QtGui" -I"..\..\..\Qt\4.4.3\include\QtGui" -I"..\..\..\Qt\4.4.3\include" -I"." -I"..\..\..\OgreSDK\include" -I"c:\Qt\4.4.3\include\ActiveQt" -I"debug" -I"." -I"..\..\..\Qt\4.4.3\mkspecs\win32-g++" -o debug\ogrewidget.o ogrewidget.cpp
    In file included from ../../../OgreSDK/include/OgreMemoryAllocatorConfig.h:189,
    from ../../../OgreSDK/include/OgrePrerequisites.h:409,
    from ../../../OgreSDK/include/Ogre.h:32,
    from ogrewidget.h:5,
    from ogrewidget.cpp:3:
    ../../../OgreSDK/include/OgreMemoryStdAlloc.h: In static member function `static void* Ogre::StdAlignedAllocPolicy::allocateBytes(size_t, const char*, int, const char*)':
    ../../../OgreSDK/include/OgreMemoryStdAlloc.h:116: warning: statement has no effect
    ../../../OgreSDK/include/OgreMemoryStdAlloc.h:116: warning: statement has no effect
    ../../../OgreSDK/include/OgreMemoryStdAlloc.h:116: warning: statement has no effect
    In file included from ogrewidget.cpp:3:
    ogrewidget.h:35:8: warning: extra tokens at end of #endif directive
    g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\..\Qt\4.4.3\include\QtCore" -I"..\..\..\Qt\4.4.3\include\QtCore" -I"..\..\..\Qt\4.4.3\include\QtNetwork" -I"..\..\..\Qt\4.4.3\include\QtNetwork" -I"..\..\..\Qt\4.4.3\include\QtGui" -I"..\..\..\Qt\4.4.3\include\QtGui" -I"..\..\..\Qt\4.4.3\include" -I"." -I"..\..\..\OgreSDK\include" -I"c:\Qt\4.4.3\include\ActiveQt" -I"debug" -I"." -I"..\..\..\Qt\4.4.3\mkspecs\win32-g++" -o debug\gdbmacros.o ..\..\..\Qt\QtCreator\bin\gdbmacros\gdbmacros.cpp
    C:\Qt\4.4.3\bin\moc.exe -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\..\Qt\4.4.3\include\QtCore" -I"..\..\..\Qt\4.4.3\include\QtCore" -I"..\..\..\Qt\4.4.3\include\QtNetwork" -I"..\..\..\Qt\4.4.3\include\QtNetwork" -I"..\..\..\Qt\4.4.3\include\QtGui" -I"..\..\..\Qt\4.4.3\include\QtGui" -I"..\..\..\Qt\4.4.3\include" -I"." -I"..\..\..\OgreSDK\include" -I"c:\Qt\4.4.3\include\ActiveQt" -I"debug" -I"." -I"..\..\..\Qt\4.4.3\mkspecs\win32-g++" -D__GNUC__ -DWIN32 ogrewidget.h -o debug\moc_ogrewidget.cpp
    g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\..\Qt\4.4.3\include\QtCore" -I"..\..\..\Qt\4.4.3\include\QtCore" -I"..\..\..\Qt\4.4.3\include\QtNetwork" -I"..\..\..\Qt\4.4.3\include\QtNetwork" -I"..\..\..\Qt\4.4.3\include\QtGui" -I"..\..\..\Qt\4.4.3\include\QtGui" -I"..\..\..\Qt\4.4.3\include" -I"." -I"..\..\..\OgreSDK\include" -I"c:\Qt\4.4.3\include\ActiveQt" -I"debug" -I"." -I"..\..\..\Qt\4.4.3\mkspecs\win32-g++" -o debug\moc_ogrewidget.o debug\moc_ogrewidget.cpp
    In file included from ../../../OgreSDK/include/OgreMemoryAllocatorConfig.h:189,
    from ../../../OgreSDK/include/OgrePrerequisites.h:409,
    from ../../../OgreSDK/include/Ogre.h:32,
    from debug\/../ogrewidget.h:5,
    from debug\moc_ogrewidget.cpp:10:
    ../../../OgreSDK/include/OgreMemoryStdAlloc.h: In static member function `static void* Ogre::StdAlignedAllocPolicy::allocateBytes(size_t, const char*, int, const char*)':
    ../../../OgreSDK/include/OgreMemoryStdAlloc.h:116: warning: statement has no effect
    ../../../OgreSDK/include/OgreMemoryStdAlloc.h:116: warning: statement has no effect
    ../../../OgreSDK/include/OgreMemoryStdAlloc.h:116: warning: statement has no effect
    In file included from debug\moc_ogrewidget.cpp:10:
    debug\/../ogrewidget.h:35:8: warning: extra tokens at end of #endif directive
    g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-subsystem,console -mthreads -Wl -o debug\qt_ogre.exe debug/main.o debug/ogrewidget.o debug/gdbmacros.o debug/moc_ogrewidget.o -L"c:\Qt\4.4.3\lib" -LC:/OgreSDK/lib -lOgreGUIRenderer_d -lOgreMain_d -lQtGuid4 -lQtNetworkd4 -lQtCored4
    mingw32-make.exe[1]: Leaving directory `C:/Users/Andy_A/Desktop'
    C:\Dev-Cpp\bin\mingw32-make.exe: Leaving directory `C:/Users/Andy_A/Desktop'
    debug/ogrewidget.o(.text+0x456): In function `ZN10OgreWidgetD2Ev':
    C:/Users/Andy_A/Desktop/ogrewidget.cpp:24: undefined reference to `Ogre::Root::detachRenderTarget(Ogre::RenderTarget*)'
    debug/ogrewidget.o(.text+0x477):C:/Users/Andy_A/Desktop/ogrewidget.cpp:28: undefined reference to `Ogre::Root::destroySceneManager(Ogre::SceneManager*)'
    debug/ogrewidget.o(.text+0x498):C:/Users/Andy_A/Desktop/ogrewidget.cpp:32: undefined reference to `Ogre::Root::~Root()'
    debug/ogrewidget.o(.text+0x5b8): In function `ZN10OgreWidgetD1Ev':
    C:/Users/Andy_A/Desktop/ogrewidget.cpp:24: undefined reference to `Ogre::Root::detachRenderTarget(Ogre::RenderTarget*)'
    debug/ogrewidget.o(.text+0x5d9):C:/Users/Andy_A/Desktop/ogrewidget.cpp:28: undefined reference to `Ogre::Root::destroySceneManager(Ogre::SceneManager*)'
    debug/ogrewidget.o(.text+0x5fa):C:/Users/Andy_A/Desktop/ogrewidget.cpp:32: undefined reference to `Ogre::Root::~Root()'
    debug/ogrewidget.o(.text+0x71a): In function `ZN10OgreWidgetD0Ev':
    C:/Users/Andy_A/Desktop/ogrewidget.cpp:24: undefined reference to `Ogre::Root::detachRenderTarget(Ogre::RenderTarget*)'
    debug/ogrewidget.o(.text+0x73b):C:/Users/Andy_A/Desktop/ogrewidget.cpp:28: undefined reference to `Ogre::Root::destroySceneManager(Ogre::SceneManager*)'
    debug/ogrewidget.o(.text+0x75c):C:/Users/Andy_A/Desktop/ogrewidget.cpp:32: undefined reference to `Ogre::Root::~Root()'
    debug/ogrewidget.o(.text+0x83c): In function `ZN10OgreWidget18setBackgroundColorE6QColor':
    C:/Users/Andy_A/Desktop/ogrewidget.cpp:40: undefined reference to `Ogre::ColourValue::setAsARGB(unsigned int)'
    debug/ogrewidget.o(.text+0x851):C:/Users/Andy_A/Desktop/ogrewidget.cpp:41: undefined reference to `Ogre::Viewport::setBackgroundColour(Ogre::ColourValue const&)'
    debug/ogrewidget.o(.text+0x8c2): In function `ZN10OgreWidget10paintEventEP11QPaintEvent':
    C:/Users/Andy_A/Desktop/ogrewidget.cpp:58: undefined reference to `Ogre::Root::_fireFrameStarted()'
    debug/ogrewidget.o(.text+0x8f0):C:/Users/Andy_A/Desktop/ogrewidget.cpp:60: undefined reference to `Ogre::Root::_fireFrameEnded()'
    debug/ogrewidget.o(.text+0xb6f): In function `ZN10OgreWidget14initOgreSystemEv':
    C:/Users/Andy_A/Desktop/ogrewidget.cpp:97: undefined reference to `Ogre::Root::Root(std::string const&, std::string const&, std::string const&)'
    debug/ogrewidget.o(.text+0xd7e):C:/Users/Andy_A/Desktop/ogrewidget.cpp:99: undefined reference to `Ogre::Root::getRenderSystemByName(std::string const&)'
    debug/ogrewidget.o(.text+0xe2e):C:/Users/Andy_A/Desktop/ogrewidget.cpp:100: undefined reference to `Ogre::Root::setRenderSystem(Ogre::RenderSystem*)'
    debug/ogrewidget.o(.text+0xe68):C:/Users/Andy_A/Desktop/ogrewidget.cpp:101: undefined reference to `Ogre::StringUtil::BLANK'
    debug/ogrewidget.o(.text+0xe8c):C:/Users/Andy_A/Desktop/ogrewidget.cpp:101: undefined reference to `Ogre::Root::initialise(bool, std::string const&, std::string const&)'
    debug/ogrewidget.o(.text+0xf2b):C:/Users/Andy_A/Desktop/ogrewidget.cpp:103: undefined reference to `Ogre::StringUtil::BLANK'
    debug/ogrewidget.o(.text+0xf4b):C:/Users/Andy_A/Desktop/ogrewidget.cpp:103: undefined reference to `Ogre::Root::createSceneManager(unsigned short, std::string const&)'
    debug/ogrewidget.o(.text+0xfbe):C:/Users/Andy_A/Desktop/ogrewidget.cpp:107: undefined reference to `Ogre::StringConverter::toString(unsigned int, unsigned short, char, std::_Ios_Fmtflags)'
    debug/ogrewidget.o(.text+0x1199):C:/Users/Andy_A/Desktop/ogrewidget.cpp:117: undefined reference to `Ogre::Root::createRenderWindow(std::string const&, unsigned int, unsigned int, bool, std::map, std::allocator > > const*)'
    debug/ogrewidget.o(.text+0x14ae):C:/Users/Andy_A/Desktop/ogrewidget.cpp:123: undefined reference to `Ogre::Viewport::setBackgroundColour(Ogre::ColourValue const&)'
    collect2: ld returned 1 exit status
    mingw32-make.exe[1]: *** [debug\qt_ogre.exe] Error 1
    C:\Dev-Cpp\bin\mingw32-make.exe: *** [debug] Error 2
    Exited with code 2.
    Error while building project qt_ogre
    When executing build step 'Make'


    et j ai bien le repertoire C:\OgreSDK...
    merci de vous occupper de mon pauvre cas...

  4. #4
    yan
    yan est déconnecté
    Rédacteur
    Avatar de yan
    Homme Profil pro
    Ingénieur expert
    Inscrit en
    Mars 2004
    Messages
    10 035
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 43
    Localisation : France, Ille et Vilaine (Bretagne)

    Informations professionnelles :
    Activité : Ingénieur expert
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mars 2004
    Messages : 10 035
    Par défaut
    Tes erreurs vienne d'un problème de link. Vue que tu utilise mingw, as tu bien une version mingw de ogre??
    http://www.ogre3d.org/index.php?opti...411&Itemid=131

  5. #5
    Membre averti
    Profil pro
    Inscrit en
    Novembre 2008
    Messages
    38
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Novembre 2008
    Messages : 38
    Par défaut
    je regarde de suite!!!!

  6. #6
    Membre averti
    Profil pro
    Inscrit en
    Novembre 2008
    Messages
    38
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Novembre 2008
    Messages : 38
    Par défaut
    donc j'ai installer le mingw qui etait dans le pack avec OgreSdk,
    j ai reinstaller OgreSDK,
    je reinstaller qtcreator avec mingw en compilateur(ue j ai pas trouver dotre moyen pour changer le compilateur).
    donc j ai bien le mingw que vou mavez conseillez.
    Les erreurs ont changé mai le probleme reste le même voici les erreurs :
    (Le fichier .pro n a pas changer depuis tout a l heure)

    Running build steps for project qt_ogre...
    Configuration unchanged, skipping QMake step.
    Starting: C:/mingw/bin/mingw32-make.exe debug -w
    mingw32-make: Entering directory `C:/Users/Andy_A/Desktop'
    c:\Qt\QtCreator\qt\bin\qmake.exe -spec ..\..\..\Qt\QtCreator\qt\mkspecs\win32-g++ -win32 CONFIG+=debug_and_release -after SOURCES*=C:/Qt/QtCreator/bin/gdbmacros/gdbmacros.cpp QT*=network -o Makefile qt_ogre.pro
    mingw32-make: Leaving directory `C:/Users/Andy_A/Desktop'
    mingw32-make: Entering directory `C:/Users/Andy_A/Desktop'
    C:/mingw/bin/mingw32-make -f Makefile.Debug
    mingw32-make[1]: Entering directory `C:/Users/Andy_A/Desktop'
    g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-subsystem,console -mthreads -Wl -o debug\qt_ogre.exe debug/main.o debug/ogrewidget.o debug/gdbmacros.o debug/moc_ogrewidget.o -L"c:\Qt\QtCreator\qt\lib" -IC:/OgreSDK/lib -lOgreGUIRenderer -lOgreMain -lQtGuid4 -lQtNetworkd4 -lQtCored4
    mingw32-make[1]: Leaving directory `C:/Users/Andy_A/Desktop'
    mingw32-make: Leaving directory `C:/Users/Andy_A/Desktop'
    C:\mingw\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot find -lOgreGUIRenderer
    collect2: ld returned 1 exit status
    mingw32-make[1]: *** [debug\qt_ogre.exe] Error 1
    mingw32-make: *** [debug] Error 2
    Exited with code 2.
    Error while building project qt_ogre
    When executing build step 'Make'



    ca serait vraiment genial si on arrive a le faire fonctionner..

  7. #7
    yan
    yan est déconnecté
    Rédacteur
    Avatar de yan
    Homme Profil pro
    Ingénieur expert
    Inscrit en
    Mars 2004
    Messages
    10 035
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 43
    Localisation : France, Ille et Vilaine (Bretagne)

    Informations professionnelles :
    Activité : Ingénieur expert
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mars 2004
    Messages : 10 035
    Par défaut
    Alors, j'ai testé de mon côté, et cela fonctionne
    ce que j'ai fait:
    1- installer la version mingw
    2- installer dans le répertoire mingw http://downloads.sourceforge.net/ogr...9&big_mirror=1
    3- modifier le .pro :
    TEMPLATE = app
    CONFIG += console
    TARGET = qt_ogre
    DEPENDPATH += .
    INCLUDEPATH += . C:\OgreSDK\include

    win32 {
    LIBS += -LC:\OgreSDK\bin\debug -LC:\OgreSDK\bin\release
    }

    CONFIG(debug, debug|release) {
    LIBS += -lOgreMain_d
    }
    CONFIG(release, debug|release) {
    LIBS += -lOgreMain
    }

    # Input
    HEADERS += ogrewidget.h

    SOURCES += main.cpp \
    ogrewidget.cpp
    La tu devrais avoir un exe

    Un truc qui ma fait halluciné, gcc peut linker avec une dll

  8. #8
    Membre averti
    Profil pro
    Inscrit en
    Novembre 2008
    Messages
    38
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Novembre 2008
    Messages : 38
    Par défaut
    bonsoir et encore merci pour toute cette attention, donc j'ai bien mon .exe dans le repertoire debug.
    Malheureusement quand je lance l'exe cela ne fonctionne pas.
    Au debut il me demande des dll : donc je les ai ajouter dans debug
    soit :
    zlib1.dll
    OgreMain.dll


    maintenant lors de l'execution du programme (qui foire, comme un segmentation fault),j ai bien la console ki s ' ouvre et j obtient le message suivant :

    OverlayElementFactory for type BorderPanel registered.
    OverlayElementFactory for type TextArea registered.
    Registering ResourceManager for type Font
    ArchiveFactory for archive type FileSystem registered.
    ArchiveFactory for archive type Zip registered.
    FreeImage version: 3.9.3
    This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
    Supported formats : bmp,ico, jpg,.....(jabrege désolé je réecris tout à la main pour plus de clarté)
    DDS codec registering
    Registering ResourceManager for type HighLevelGpuProgram
    Registering ResourceManager for type Compositor
    MovableObjectFactory for type 'Entity' registered.
    MovableObjectFactory for type 'Light' registered.
    MovableObjectFactory for type 'BillboardSet' registered.
    MovableObjectFactory for type 'ManualObject' registered.
    MovableObjectFactory for type 'BillboardChain' registered.
    MovableObjectFactory for type 'RibbonTrail' registered.
    Loading library .RenderSystem_GL_d (//je pense que le pb est la mais bon....)(comme si il n arrivai pas a lire le plugin )

    This application has requested the Runtime to Terminate it in an usual way.
    Please contact the application's support team for more information.



    et voila le plugin :
    # Defines plugins to load

    # Define plugin folder
    PluginFolder=.

    # Define plugins
    Plugin=RenderSystem_GL_d
    Plugin=Plugin_OctreeSceneManager_d



    Merci et svp répondez moi demain ou plus tard, vous devez être fatigué à cet heure la.

  9. #9
    yan
    yan est déconnecté
    Rédacteur
    Avatar de yan
    Homme Profil pro
    Ingénieur expert
    Inscrit en
    Mars 2004
    Messages
    10 035
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 43
    Localisation : France, Ille et Vilaine (Bretagne)

    Informations professionnelles :
    Activité : Ingénieur expert
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mars 2004
    Messages : 10 035
    Par défaut
    Je pense que c'est cela, il ne trouve pas RenderSystem_GL_d.dll

    J'ai ajouté les répertoire des dll debug et release de ogre dans le PATH systeme et je n'ai pas de problème
    Pour des problème avec ogre, je te conseil d'aller ici
    http://www.developpez.net/forums/f73...teurs-3d/ogre/

  10. #10
    Membre averti
    Profil pro
    Inscrit en
    Novembre 2008
    Messages
    38
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Novembre 2008
    Messages : 38
    Par défaut
    bonsoir,
    j'ai rajouter les le bin (debug/release) de ogre dans le path
    ca fonctionne.
    merci beaucoup, le sujet est à présent résolu.

  11. #11
    Membre averti
    Profil pro
    Inscrit en
    Septembre 2006
    Messages
    27
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Septembre 2006
    Messages : 27
    Par défaut
    Bonjour,

    Je suis passé par les mêmes soucis qu'au dessus, c'est pourquoi je poste à la suite, mais j'ai encore une erreur dans la console :

    Creating resource group General
    Creating resource group Internal
    Creating resource group Autodetect
    SceneManagerFactory for type 'DefaultSceneManager' registered.
    Registering ResourceManager for type Material
    Registering ResourceManager for type Mesh
    Registering ResourceManager for type Skeleton
    MovableObjectFactory for type 'ParticleSystem' registered.
    OverlayElementFactory for type Panel registered.
    OverlayElementFactory for type BorderPanel registered.
    OverlayElementFactory for type TextArea registered.
    Registering ResourceManager for type Font
    ArchiveFactory for archive type FileSystem registered.
    ArchiveFactory for archive type Zip registered.
    FreeImage version: 3.9.3
    This program uses FreeImage, a free, open source image library supporting all co
    mmon bitmap formats. See http://freeimage.sourceforge.net for details
    Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,
    pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,
    g3,sgi
    DDS codec registering
    Registering ResourceManager for type HighLevelGpuProgram
    Registering ResourceManager for type Compositor
    MovableObjectFactory for type 'Entity' registered.
    MovableObjectFactory for type 'Light' registered.
    MovableObjectFactory for type 'BillboardSet' registered.
    MovableObjectFactory for type 'ManualObject' registered.
    MovableObjectFactory for type 'BillboardChain' registered.
    MovableObjectFactory for type 'RibbonTrail' registered.
    plugins.cfg not found, automatic plugin loading disabled.
    *-*-* OGRE Initialising
    *-*-* Version 1.6.0 (Shoggoth)

    This application has requested the Runtime to terminate it in an unusual way.
    Please contact the application's support team for more information.
    J'utilise QtCreator, le SDK OGRE MingW

    edit: ah zut j'viens de voir qu'il y avait une balise résolu

  12. #12
    yan
    yan est déconnecté
    Rédacteur
    Avatar de yan
    Homme Profil pro
    Ingénieur expert
    Inscrit en
    Mars 2004
    Messages
    10 035
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 43
    Localisation : France, Ille et Vilaine (Bretagne)

    Informations professionnelles :
    Activité : Ingénieur expert
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mars 2004
    Messages : 10 035
    Par défaut
    Citation Envoyé par Schpitt Voir le message
    Bonjour,

    Je suis passé par les mêmes soucis qu'au dessus, c'est pourquoi je poste à la suite, mais j'ai encore une erreur dans la console :



    J'utilise QtCreator, le SDK OGRE MingW

    edit: ah zut j'viens de voir qu'il y avait une balise résolu
    je pense plus à un problème ogre que Qt.

    Tu devrais voir sur le forum ogre

  13. #13
    Membre averti
    Profil pro
    Inscrit en
    Septembre 2006
    Messages
    27
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Septembre 2006
    Messages : 27
    Par défaut
    En effet. (faut mettre les cfg dans le dossier release (j'ai pas réussi à faire fonctionner en debug))

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. [VBA-E]probleme d'integration de Macro.
    Par Stef784ever dans le forum Macros et VBA Excel
    Réponses: 9
    Dernier message: 08/06/2006, 01h25
  2. probleme d integration php html
    Par gromit83 dans le forum Langage
    Réponses: 6
    Dernier message: 05/05/2006, 11h44
  3. Probleme de "Integration du flash dans .CHM"
    Par fayndee dans le forum Balisage (X)HTML et validation W3C
    Réponses: 1
    Dernier message: 24/04/2006, 22h50
  4. Problème d'integration dans Qt
    Par quantik-revolution dans le forum GLUT
    Réponses: 4
    Dernier message: 02/04/2006, 23h27
  5. [FLASH MX] [PHP] Probleme d'integration
    Par chocobos dans le forum Flash
    Réponses: 8
    Dernier message: 17/08/2005, 17h18

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo