跳到內容
  • 版面
  • 最新
  • 標籤
  • 熱門
  • 使用者
  • 群組
  • 搜尋
  • Get Qt Extensions
  • Unsolved
Collapse
品牌標誌
  1. 首頁
  2. Qt Development
  3. General and Desktop
  4. Adding QMAKE_CXXFLAGS += -std=c++0x to Pro file make c++ - Internal compiler error : segmentation fault
Forum Updated to NodeBB v4.3 + New Features

Adding QMAKE_CXXFLAGS += -std=c++0x to Pro file make c++ - Internal compiler error : segmentation fault

已排程 已置頂 已鎖定 已移動 General and Desktop
26 貼文 3 Posters 14.2k 瀏覽 1 Watching
  • 從舊到新
  • 從新到舊
  • 最多點贊
回覆
  • 在新貼文中回覆
登入後回覆
此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
  • L 離線
    L 離線
    lgeyer
    寫於 最後由 編輯
    #17

    The latest can be found "here":http://sourceforge.net/projects/mingwbuilds/, the project at Goole Code is outdated.

    1 條回覆 最後回覆
    0
    • G 離線
      G 離線
      GoldenAxe
      寫於 最後由 編輯
      #18

      OK configure work fine with the link you gave me.

      but we back to square one:

      @....\corelib\tools\qlocale_tools.cpp: In function 'char* qdtoa(double, int, int
      , int*, int*, char**, char**)':
      ....\corelib\tools\qlocale_tools.cpp:2257:25: error: '_MCW_EM' was not declared
      in this scope
      ....\corelib\tools\qlocale_tools.cpp:2257:33: error: '_MCW_DN' was not declared
      in this scope
      ....\corelib\tools\qlocale_tools.cpp:2257:41: error: '_MCW_RC' was not declared
      in this scope
      Makefile.Release:5718: recipe for target 'tmp/obj/release_shared/qlocale_tools.o
      ' failed
      mingw32-make[5]: *** [tmp/obj/release_shared/qlocale_tools.o] Error 1
      mingw32-make[5]: Leaving directory 'C:/qt5/2012.11/qtbase/src/tools/bootstrap'
      Makefile:33: recipe for target 'release' failed
      mingw32-make[4]: *** [release] Error 2
      mingw32-make[4]: Leaving directory 'C:/qt5/2012.11/qtbase/src/tools/bootstrap'
      Makefile:41: recipe for target 'sub-tools-bootstrap-make_first' failed
      mingw32-make[3]: *** [sub-tools-bootstrap-make_first] Error 2
      mingw32-make[3]: Leaving directory 'C:/qt5/2012.11/qtbase/src/tools'
      Makefile:50: recipe for target 'sub-tools-make_first' failed
      mingw32-make[2]: *** [sub-tools-make_first] Error 2
      mingw32-make[2]: Leaving directory 'C:/qt5/2012.11/qtbase/src'
      Makefile:39: recipe for target 'sub-src-make_first' failed
      mingw32-make[1]: *** [sub-src-make_first] Error 2
      mingw32-make[1]: Leaving directory 'C:/qt5/2012.11/qtbase'
      makefile:51: recipe for target 'module-qtbase-make_first' failed
      mingw32-make: *** [module-qtbase-make_first] Error 2@

      1 條回覆 最後回覆
      0
      • L 離線
        L 離線
        lgeyer
        寫於 最後由 編輯
        #19

        A quick search revealed that both, MinGW and GCC, come with a <code>float.h</code>. One having those definitions (which should be picked), one not.

        So this might be an GCC / MinGW issue, and not directly related to Qt.

        1 條回覆 最後回覆
        0
        • G 離線
          G 離線
          GoldenAxe
          寫於 最後由 編輯
          #20

          "Yes I found this as well":https://bugreports.qt-project.org/browse/QTBUG-7576

          but it's seems to be old and not working...
          How can I use only MinGW? maybe it other Gcc conflicting!

          1 條回覆 最後回覆
          0
          • G 離線
            G 離線
            GoldenAxe
            寫於 最後由 編輯
            #21

            If I change this line

            _control87(oldbits, _MCW_EM|_MCW_DN|_MCW_RC);

            in qlocale_tools.cpp to

            _control87(oldbits, MCW_EM);

            it's run until I get this error:

            c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lQt5Cored0
            collect2.exe: error: ld returned 1 exit status

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

              I used VS2012 command prompt to build "Qt5Sdk":http://qt.gitorious.org/qtsdk and it's work, but it's not recognize #include <QtGui/QApplication>, #include <QFileDialog> and more...it's does recognize #include <QGui>.

              maybe VS2012 build didn't goes well?
              I added to PATH “C:\qt5\2012.11\qtbase\bin and C:\qt5\2012.11\qtbase\lib".

              • BTW in Windows7 where's are the INCLUDE, LIB and LIBPATH, becaise I can see I can set them from Qt, but when entered windows 7 environment variables there is only PATH?
              1 條回覆 最後回覆
              0
              • L 離線
                L 離線
                lgeyer
                寫於 最後由 編輯
                #23

                [quote author="GoldenAxe" date="1352797811"]> c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lQt5Cored0

                collect2.exe: error: ld returned 1 exit status[/quote]

                See https://codereview.qt-project.org/#change,39385

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

                  Some update:
                  I couldn't able to build qt5 with mingw, but I did succeed doing this with vs2012 command prompt, but since they changed the include trees in qt5, I needed to do a lots of include changes in my project, so I decided not to use qt5. Nevertheless since I wanted good support with c++11, I built qt4.8.x which did succeed with mingw, but c++11 functions like for example stod didn't recognize with it, I was very disappointed, so now I will try build it with vs2012...lets see if this will sort this out!

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

                    [quote author="GoldenAxe" date="1352965521"]... I needed to do a lots of include changes in my project.[/quote]

                    The fixqt4headers.pl script found in qtbase/bin will do that for you.

                    1 條回覆 最後回覆
                    0
                    • G 離線
                      G 離線
                      GoldenAxe
                      寫於 最後由 編輯
                      #26

                      The problem it's not only includes, some objects like QMessageBox, after fixing the includes are still not recognized as well.

                      1 條回覆 最後回覆
                      0

                      • 登入

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