Qt 5.2 on RHEL 5.8
-
Hi,
I am building Qt 5.2 from source, i have finished compiling on Win 7, RHEL 6 & Ububtu 12.04 without any issue ( after figuring out missing dependencies ;) ).
But on RHEL 5 with gcc 4.8.0 compiler i am having all sorts of issues, first there are lot of missing dependencies which i had to manually install ( http://qt.digia.com/Product/Qt-core-features-functions/supported-platforms/ ) and even after installing all those libs i am still not able to compile.
Below is the error reported during make
@
gcc-4.8 -c -m64 -pipe -O2 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -std=c++0x -Wall -W -D_REENTRANT -DQT_NO_LIBUDEV -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_NO_DATASTREAM -DQT_BUILD_TESTLIB_LIB -DQT_BUILDING_QT -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_CORE_LIB -I../../mkspecs/linux-g++-64 -I. -I../../include -I../../include/QtTest -I../../include/QtTest/5.2.0 -I../../include/QtTest/5.2.0/QtTest -I../../include/QtCore/5.2.0 -I../../include/QtCore/5.2.0/QtCore -I../../include/QtCore -I.moc -o .obj/qbenchmarkperfevents.o qbenchmarkperfevents.cpp
In file included from /usr/include/asm-x86_64/byteorder.h:30:0,
from /usr/include/asm/byteorder.h:5,
from 3rdparty/linux_perf_event_p.h:19,
from qbenchmarkperfevents.cpp:61:
/usr/include/linux/byteorder/little_endian.h:43:19: error: ...__le64... does not name a type
static inline __le64 __cpu_to_le64p(const __u64 *p)
^
/usr/include/linux/byteorder/little_endian.h:47:46: error: ...__le64... does not name a type
static inline __u64 __le64_to_cpup(const __le64 *p)
^
/usr/include/linux/byteorder/little_endian.h:67:19: error: ...__be64... does not name a type
static inline __be64 __cpu_to_be64p(const __u64 *p)
^
/usr/include/linux/byteorder/little_endian.h:71:46: error: ...__be64... does not name a type
static inline __u64 __be64_to_cpup(const __be64 *p)
^
gmake[3]: *** [.obj/qbenchmarkperfevents.o] Error 1
gmake[3]: Leaving directory/home/gfsdev/qt/r9/qtbase/src/testlib' gmake[2]: *** [sub-testlib-make_first] Error 2 gmake[2]: Leaving directory
/home/gfsdev/qt/r9/qtbase/src'
gmake[1]: *** [sub-src-make_first] Error 2
gmake[1]: Leaving directory `/home/gfsdev/qt/r9/qtbase'
gmake: *** [module-qtbase-make_first] Error 2
@configure options:
@
- /home/gfsdev/qt/r9/qtbase/configure -top-level -opensource -confirm-license -prefix /home/gfsdev/qt/build/release -release -static -qt-xcb -no-openssl -opengl -nomake tests -nomake examples
@
Any pointer? i have tried most of the options out there on web, but still not working...
- /home/gfsdev/qt/r9/qtbase/configure -top-level -opensource -confirm-license -prefix /home/gfsdev/qt/build/release -release -static -qt-xcb -no-openssl -opengl -nomake tests -nomake examples
-
Change "-opengl" to "-opengl desktop" or "-opengl es2".
Otherwise, it looks like an error coming from RHEL, not Qt. See "link":http://forums.gentoo.org/viewtopic-t-560239-start-0.html and "link":http://kde-apps.org/content/show.php?content=38195&forumpage=3&PHPSESSID=e5af.
-
I got the same issue. You can bypass it by compiling this file manually and by removing the -std=c++0x option
Hope this can help!