跳到內容
  • 版面
  • 最新
  • 標籤
  • 熱門
  • 使用者
  • 群組
  • 搜尋
  • Get Qt Extensions
  • Unsolved
Collapse
品牌標誌
  1. 首頁
  2. Qt Development
  3. Installation and Deployment
  4. [SOLVED] QT and boost : cannot find -llibboost_filesystem...
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] QT and boost : cannot find -llibboost_filesystem...

已排程 已置頂 已鎖定 已移動 Installation and Deployment
29 貼文 4 Posters 15.9k 瀏覽 4 Watching
  • 從舊到新
  • 從新到舊
  • 最多點贊
回覆
  • 在新貼文中回覆
登入後回覆
此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
  • sneubertS sneubert

    I checked my boost lib dir and I do have a libboost_thread-mgw... .dll and .lib so maybe you investigate the build of the boost libraries.

    Z 離線
    Z 離線
    zarachbaal
    寫於 最後由 編輯
    #21

    @sneubert :

    I downloaded and built boost 1.58.
    This time I do have '.a', '.dll' and '.dll.a' for libbost_thread...
    But it does not change anything

    I don't recall doing anything in particular but the errors about 'thread' are not the same anymore.
    They were like :
    undefined reference to _imp___ZN5boost6threadC1Ev'
    undefined reference to _imp___ZN5boost6thread4joinEv'

    And now :
    undefined reference to boost::thread::thread()'
    undefined reference to boost::thread::joinable() const'

    I just noticed that I have another error :
    cc1plus.exe:-1: erreur : note: initialized from here
    file not found : cc1plus.exe

    1 條回覆 最後回覆
    0
    • sneubertS 離線
      sneubertS 離線
      sneubert
      寫於 最後由 編輯
      #22

      cc1plus.exe is the cpp compiler invoked by gcc.
      Do you have another MinGW installation on your system?
      Maybe you have some references in your local or global PATH
      environment variable pointing to the wrong MinGW bin dir?

      1 條回覆 最後回覆
      0
      • Z 離線
        Z 離線
        zarachbaal
        寫於 最後由 編輯
        #23

        I have MinGW installed in C:/MinGW
        And also the one that comes with Qt Creator.

        In my PATH I have set "C:\Qt\qtcreator-2.4.1\mingw\bin"

        Nevermind, this error appeared because I changed the MinGW to use in Project options.
        If I select the MinGW that comes with Qt Creator this error disappears.

        1 條回覆 最後回覆
        0
        • Z 離線
          Z 離線
          zarachbaal
          寫於 最後由 編輯
          #24

          I may have an idea why it's not working.
          I did not see, but I had Strawberry perl installed and it has mingw.
          In my path I had "C:\Strawberry\c\bin" set, so I built boost using this mingw (v4.8.1) and the mingw that comes with Qt creator is v4.4.0

          I removed strawberry from the path.
          I am currently rebuilding boost with the correct mingw, will update tomorrow.

          1 條回覆 最後回覆
          0
          • sneubertS 離線
            sneubertS 離線
            sneubert
            寫於 最後由 編輯
            #25

            I´m curious about it.

            1 條回覆 最後回覆
            0
            • SGaistS 離線
              SGaistS 離線
              SGaist
              Lifetime Qt Champion
              寫於 最後由 編輯
              #26

              Never modify PATH when you are developing (it should also be avoided as much as possible the rest of the time), it's in the same category as developing as root on linux ;)

              More seriously, having MinGW or the Qt bin path in your PATH is an open door to a world of problem since you will be thing you are using one version of a library while in fact using another one. Also, MinGW isn't always compatible between two versions of their compiler. That's probably why you had problem in the first place since you where using two different versions.

              In any case, one rule that you should apply on Windows: Use the same compiler for all your code and dependencies. It's not always possible but it will greatly simplify your life.

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

              1 條回覆 最後回覆
              0
              • Z 離線
                Z 離線
                zarachbaal
                寫於 最後由 編輯
                #27

                That was it, it works fine now !

                @SGaist : I did not notice in the first place that I was using two versions of MinGW.
                When I installed Strawberry some weeks ago he added himself his path to the environement variable PATH.
                So I thought I was compiling boost with the MinGW from Qt Creator, I did not pay enough attention to the 'mg48' in librairies' name that should have been 'mg44'.

                How do I make this subject "solved" ?

                1 條回覆 最後回覆
                0
                • SGaistS 離線
                  SGaistS 離線
                  SGaist
                  Lifetime Qt Champion
                  寫於 最後由 編輯
                  #28

                  Windows can be tricky for that

                  IF you don't have the option in the Topic Tools menu, just edit the thread title and prepend [solved]

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

                  1 條回覆 最後回覆
                  0
                  • Z 離線
                    Z 離線
                    zarachbaal
                    寫於 最後由 編輯
                    #29

                    OK, thank you all for your help :)

                    1 條回覆 最後回覆
                    0

                    • 登入

                    • Login or register to search.
                    • 第一個貼文
                      最後的貼文
                    0
                    • 版面
                    • 最新
                    • 標籤
                    • 熱門
                    • 使用者
                    • 群組
                    • 搜尋
                    • Get Qt Extensions
                    • Unsolved