I'm trying nth time to compile qt from source, this time with option configure -release -platform-win32
but I'm getting errors:
Anyone knows how to fix it?
Thanks.
You can run into this problem when compiling Qt with a MinGW compiler (maybe any gcc compiler) that defaults to compiling C++ programs with the C++11 standard enabled.
The 3rd party library JavaScriptCore tries to define some wrappers that 'normalize' has_trivial_constructor
and related templates, but apparently it hasn't been been updated yet to deal with GCC's updates to incorporate the completed C++11 standard.
The fix is to use a MinGW compiler that doesn't enable C++11 features by default, or to turn them off by editing mkspecs\win32-g++\qmake.conf
to add the -std=gnu++98
option to C++ builds:
QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -std=gnu++98
# ^^^^^^^^^^^^
If you are using gcc 4.7 you have access to most of C++11 if you compile with -std=c++11
or -std=gnu++11
you can check out the supported features under std
namespace here. tr1
sub namespace was for the draft which has been made standard now.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With