[Interest] Issues building Qt 5.4.0 on CentOS 5.
Simon Matthews
simon at matthews.eu
Tue Feb 10 07:07:19 CET 2015
I am trying to build Qt5 (5.4.0) on CentOS 5, so far without success. I
would appreciate any advice on getting the build to work.
I found packages for xcb-util, xcb-util-devel, libxcb-devel and xcb-proto
in the Atrpms repository and installed these.
The configuration stage is successful. My configuration command is:
./configure -v -opensource -qt-libpng -qt-zlib -qt-libjpeg -nomake
examples -qt-sql-sqlite -confirm-license -prefix
/usr/lib/Qt/Qt-5.4.0-x86_64 -widgets -no-openssl -debug-and-release
-no-opengl
However, the make step fails with:
g++ -c -include .pch/Qt5Test -pipe -O2 -fvisibility=hidden
-fvisibility-inlines-hidden -std=c++0x -Wall -W -D_REENTRANT -fPIC
-DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_XKB -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++
-I. -I../../include -I../../include/QtTest -I../../include/QtTest/5.4.0
-I../../include/QtTest/5.4.0/QtTest -I../../include/QtCore/5.4.0
-I../../include/QtCore/5.4.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:53:
/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
`/tmp/qt-everywhere-opensource-src-5.4.0/qtbase/src/testlib'
gmake[2]: *** [sub-testlib-make_first] Error 2
gmake[2]: Leaving directory
`/tmp/qt-everywhere-opensource-src-5.4.0/qtbase/src'
gmake[1]: *** [sub-src-make_first] Error 2
gmake[1]: Leaving directory
`/tmp/qt-everywhere-opensource-src-5.4.0/qtbase'
gmake: *** [module-qtbase-make_first] Error 2
Simon
More information about the Interest
mailing list