Adding QMAKE_CXXFLAGS += -std=c++0x to Pro file make c++ - Internal compiler error : segmentation fault
-
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 -
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?
-
[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]
-
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! -
[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.
-
The problem it's not only includes, some objects like QMessageBox, after fixing the includes are still not recognized as well.