Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Qt5 and Ogre3D

    General and Desktop
    2
    9
    2037
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      Nihilivin last edited by

      Hi all!

      I know that many threads are already talking about that, but I still didn't find any solution... And I know i'm close to it.

      I made a very simple Qt Project to run an Ogre3D rendered frame through a Qt Widget. I made all I could, and the only thing that misses is including Boost, and I don't know how to do that in the .pro file.

      My error messages are:
      @C:\OgreSDK\boost\boost\system\error_code.hpp:214: erreur : undefined reference to boost::system::generic_category()' C:\OgreSDK\boost\boost\system\error_code.hpp:216: erreur : undefined reference to boost::system::system_category()'@

      According to my researches, those errors are dues to a non-linked dll... If someone is able to give me some help, I'll be grateful :)

      Best regards

      Nihilivin

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi and welcome to devnet,

        You need to link to the boost system library, add

        @LIBS += -lboost_system@

        To your pro file. If it complains it can't be found add

        @LIBS += -LC:/OgreSDK/path/to/boost/lib_files@

        Hope it helps

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • N
          Nihilivin last edited by

          It seems to include Libs correctly, there is no error message added... But no one less too... It seems that nothing had changed

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            Strange, did you try doing a complete rebuild ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply Reply Quote 0
            • N
              Nihilivin last edited by

              I tried a complete rebuild, with the line you specified : @LIBS += -LC:\OgreSDK\boost\lib@
              Nothing new.
              I'm blocked on that step since 4 months... And I'm sure once this problem solved, Ogre3D should work correctly... It's a little bit frustrating!

              1 Reply Last reply Reply Quote 0
              • SGaist
                SGaist Lifetime Qt Champion last edited by

                You should use forward slashes for all platforms when using Qt.

                Can you check the various boost libraries to see if any contains that missing symbol ?

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply Reply Quote 0
                • N
                  Nihilivin last edited by

                  Hello, and sorry of being so long to answer.
                  I already did that research, and this function is described in "libboost_system-mgw47-mt-d-1_51.a".

                  I also replaced all my \ by / as you suggested. Still no changes.... I think I gonna kill myself TT

                  1 Reply Last reply Reply Quote 0
                  • SGaist
                    SGaist Lifetime Qt Champion last edited by

                    Looks like static library, try to link to it directly

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply Reply Quote 0
                    • N
                      Nihilivin last edited by

                      And how can I do that?

                      Edit : I'll Google it... But I think I have already searched about that and I didn't understand.... But let's retry

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post