Qt-creator 3.3.0 : compilation error
-
hi guys
I can't install qt creator latest revision #3.3.0 on rhel 6.5. Here's what I got :
@
codegeneration.cpp: In function ‘void Utils::writeQtIncludeSection(const QStringList&, const QStringList&, bool, bool, QTextStream&)’:
codegeneration.cpp:109: error: expected primary-expression before ‘[’ token
codegeneration.cpp:109: error: expected primary-expression before ‘]’ token
codegeneration.cpp:109: error: expected primary-expression before ‘const’
codegeneration.cpp:109: error: expected ‘;’ before ‘{’ token
codegeneration.cpp:111: error: expected primary-expression before ‘[’ token
codegeneration.cpp:111: error: expected primary-expression before ‘]’ token
codegeneration.cpp:111: error: expected primary-expression before ‘const’
codegeneration.cpp:111: error: expected ‘;’ before ‘{’ token
In file included from codegeneration.cpp:33:
algorithm.h: At global scope:
algorithm.h: In instantiation of ‘C<typename Utils::<unnamed>::RemoveCvAndReference<decltype (declval<F>()(declval<typename Utils::<unnamed>::ContainerType<SC>::ElementType>()))>::type> Utils::transform(const SC&, F) [with C = QSet, SC = QStringList, F = std::function<QString(const QString&)>]’:
codegeneration.cpp:113: instantiated from here
algorithm.h:318: sorry, unimplemented: mangling template_id_expr
algorithm.h:318: sorry, unimplemented: mangling template_id_expr
@I'm using the following :
-
gcc version 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC)
-
qt-everywhere-opensource-src-5.4.,0compiled from sources with the following:
@./configure -opensource -confirm-license -no-dbus -no-xcb@
The configuration I use to compile qt-creator is this one:
@
export LDFLAGS="-Wl,-rpath,'/path/to/qtbase/lib'"export PATH=/path/to/qt/binaries:$PATH
cd qt-creator-opensource-src-3.3.0
qmake -r && make
@Any help appreciated ;)
Thanks
-
-
Hi, gcc 4.4.6 has a problem compiling that template ... auto transform( ... from algorithm.h. think it's "this bug":https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48051 and it's fixed in gcc 4.7