Скачал Qt 4.8.7 отсюда -
http://download.qt.io/official_releases/qt/4.8/4.8.7/Затем
[user@localhost tmp]$ gunzip qt-everywhere-opensource-src-4.8.7.tar.gz
[user@localhost tmp]$ tar xvf qt-everywhere-opensource-src-4.8.7.tar
[user@localhost tmp]$ cd /tmp/qt-everywhere-opensource-src-4.8.7
[user@localhost tmp]$ su -c "./configure"
В результате получаем вот такое (
WARNING: Failure to find: generated/AuthenticationManagerMessageReceiver.cpp) - только часть, остально вставить не получилось:
Build type: linux-g++
Architecture: x86_64
Platform notes:
- Also available for Linux: linux-kcc linux-icc linux-cxx
Build .................. libs tools examples demos docs translations
Configuration .......... release largefile stl precompile_header mmx 3dnow sse sse2 sse3 ssse3 sse4_1 sse4_2 avx minimal-config small-config medium-config large-config full-config qt3support phonon phonon-backend accessibility shared reduce_exports ipv6 clock-gettime clock-monotonic mremap getaddrinfo ipv6ifname getifaddrs inotify png system-freetype system-zlib nis iconv glib gstreamer x11sm xshape xvideo xsync xrender mitshm fontconfig xkb concurrent xmlpatterns multimedia audio-backend svg script scripttools declarative release
Debug .................. no
Qt 3 compatibility ..... yes
QtDBus module .......... no
QtConcurrent code ...... yes
QtGui module ........... yes
QtScript module ........ yes
QtScriptTools module ... yes
QtXmlPatterns module ... yes
Phonon module .......... yes
Multimedia module ...... auto
SVG module ............. yes
WebKit module .......... yes
JavaScriptCore JIT ..... To be decided by JavaScriptCore
Declarative module ..... yes
Declarative debugging ...yes
Support for S60 ........ no
Symbian DEF files ...... no
STL support ............ yes
PCH support ............ yes
MMX/3DNOW/SSE/SSE2/SSE3. yes/yes/yes/yes/yes
SSSE3/SSE4.1/SSE4.2..... yes/yes/yes
AVX..................... yes
Graphics System ........ default
IPv6 support ........... yes
IPv6 ifname support .... yes
getaddrinfo support .... yes
getifaddrs support ..... yes
Accessibility .......... yes
NIS support ............ yes
CUPS support ........... no
Iconv support .......... yes
Glib support ........... yes
GStreamer support ...... yes
PulseAudio support ..... no
Large File support ..... yes
GIF support ............ plugin
TIFF support ........... plugin (qt)
JPEG support ........... plugin (qt)
PNG support ............ yes (qt)
MNG support ............ plugin (qt)
zlib support ........... system
Session management ..... yes
OpenGL support ......... no
OpenVG support ......... no
NAS sound support ...... no
XShape support ......... yes
XVideo support ......... yes
XSync support .......... yes
Xinerama support ....... runtime
Xcursor support ........ runtime
Xfixes support ......... runtime
Xrandr support ......... runtime
Xrender support ........ yes
Xi support ............. runtime
MIT-SHM support ........ yes
FontConfig support ..... yes
XKB Support ............ yes
immodule support ....... yes
GTK theme support ...... no
SQLite support ......... plugin (qt)
OpenSSL support ........ no
Alsa support ........... no
ICD support ............ no
libICU support ......... no
Use system proxies ..... no
Finding project files. Please wait...
...
for /tmp/qt-everywhere-opensource-src-4.8.7/src/3rdparty/webkit/Source/WebKit/qt/examples/examples.pro
for /tmp/qt-everywhere-opensource-src-4.8.7/src/3rdparty/webkit/Source/WebKit/qt/tests/tests.pro
for /tmp/qt-everywhere-opensource-src-4.8.7/src/3rdparty/webkit/Source/JavaScriptCore/JavaScriptCore.pro
for /tmp/qt-everywhere-opensource-src-4.8.7/src/3rdparty/webkit/Source/WebKit2/DerivedSources.pro
for /tmp/qt-everywhere-opensource-src-4.8.7/src/3rdparty/webkit/Source/WebKit2/UIProcess/API/qt/tests/tests.pro
for /tmp/qt-everywhere-opensource-src-4.8.7/src/3rdparty/webkit/Source/WebKit2/WebKit2.pro
WARNING: Failure to find: generated/AuthenticationManagerMessageReceiver.cpp
WARNING: Failure to find: generated/DownloadProxyMessageReceiver.cpp
WARNING: Failure to find: generated/DrawingAreaMessageReceiver.cpp
WARNING: Failure to find: generated/DrawingAreaProxyMessageReceiver.cpp
WARNING: Failure to find: generated/NPObjectMessageReceiverMessageReceiver.cpp
WARNING: Failure to find: generated/PluginControllerProxyMessageReceiver.cpp
WARNING: Failure to find: generated/PluginProcessMessageReceiver.cpp
WARNING: Failure to find: generated/PluginProcessProxyMessageReceiver.cpp
WARNING: Failure to find: generated/PluginProxyMessageReceiver.cpp
WARNING: Failure to find: generated/WebApplicationCacheManagerMessageReceiver.cpp
WARNING: Failure to find: generated/WebApplicationCacheManagerProxyMessageReceiver.cpp
WARNING: Failure to find: generated/WebContextMessageReceiver.cpp
WARNING: Failure to find: generated/WebCookieManagerMessageReceiver.cpp
WARNING: Failure to find: generated/WebCookieManagerProxyMessageReceiver.cpp
WARNING: Failure to find: generated/WebDatabaseManagerMessageReceiver.cpp
WARNING: Failure to find: generated/WebDatabaseManagerProxyMessageReceiver.cpp
WARNING: Failure to find: generated/WebFullScreenManagerMessageReceiver.cpp
WARNING: Failure to find: generated/WebFullScreenManagerProxyMessageReceiver.cpp
WARNING: Failure to find: generated/WebGeolocationManagerMessageReceiver.cpp
WARNING: Failure to find: generated/WebGeolocationManagerProxyMessageReceiver.cpp
WARNING: Failure to find: generated/WebIconDatabaseMessageReceiver.cpp
WARNING: Failure to find: generated/WebIconDatabaseProxyMessageReceiver.cpp
WARNING: Failure to find: generated/WebInspectorMessageReceiver.cpp
WARNING: Failure to find: generated/WebInspectorProxyMessageReceiver.cpp
WARNING: Failure to find: generated/WebKeyValueStorageManagerMessageReceiver.cpp
WARNING: Failure to find: generated/WebKeyValueStorageManagerProxyMessageReceiver.cpp
WARNING: Failure to find: generated/WebMediaCacheManagerMessageReceiver.cpp
WARNING: Failure to find: generated/WebMediaCacheManagerProxyMessageReceiver.cpp
WARNING: Failure to find: generated/WebPageMessageReceiver.cpp
WARNING: Failure to find: generated/WebPageProxyMessageReceiver.cpp
WARNING: Failure to find: generated/WebProcessConnectionMessageReceiver.cpp
WARNING: Failure to find: generated/WebProcessMessageReceiver.cpp
WARNING: Failure to find: generated/WebProcessProxyMessageReceiver.cpp
WARNING: Failure to find: generated/WebResourceCacheManagerMessageReceiver.cpp
WARNING: Failure to find: generated/WebResourceCacheManagerProxyMessageReceiver.cpp
WARNING: Failure to find: generated/AuthenticationManagerMessages.h
WARNING: Failure to find: generated/DownloadProxyMessages.h
WARNING: Failure to find: generated/NPObjectMessageReceiverMessages.h
WARNING: Failure to find: generated/PluginControllerProxyMessages.h
WARNING: Failure to find: generated/PluginProcessMessages.h
WARNING: Failure to find: generated/PluginProcessProxyMessages.h
WARNING: Failure to find: generated/PluginProxyMessages.h
WARNING: Failure to find: generated/WebApplicationCacheManagerMessages.h
WARNING: Failure to find: generated/WebApplicationCacheManagerProxyMessages.h
WARNING: Failure to find: generated/WebContextMessages.h
WARNING: Failure to find: generated/WebCookieManagerMessages.h
WARNING: Failure to find: generated/WebCookieManagerProxyMessages.h
WARNING: Failure to find: generated/WebDatabaseManagerMessages.h
WARNING: Failure to find: generated/WebDatabaseManagerProxyMessages.h
WARNING: Failure to find: generated/WebFullScreenManagerMessages.h
WARNING: Failure to find: generated/WebFullScreenManagerProxyMessages.h
WARNING: Failure to find: generated/WebGeolocationManagerMessages.h
WARNING: Failure to find: generated/WebGeolocationManagerProxyMessages.h
WARNING: Failure to find: generated/WebIconDatabaseMessages.h
WARNING: Failure to find: generated/WebIconDatabaseProxyMessages.h
WARNING: Failure to find: generated/WebInspectorMessages.h
WARNING: Failure to find: generated/WebInspectorProxyMessages.h
WARNING: Failure to find: generated/WebKeyValueStorageManagerMessages.h
WARNING: Failure to find: generated/WebKeyValueStorageManagerProxyMessages.h
WARNING: Failure to find: generated/WebMediaCacheManagerMessages.h
WARNING: Failure to find: generated/WebMediaCacheManagerProxyMessages.h
WARNING: Failure to find: generated/WebPageMessages.h
WARNING: Failure to find: generated/WebPageProxyMessages.h
WARNING: Failure to find: generated/WebProcessConnectionMessages.h
WARNING: Failure to find: generated/WebProcessMessages.h
WARNING: Failure to find: generated/WebProcessProxyMessages.h
WARNING: Failure to find: generated/WebResourceCacheManagerMessages.h
WARNING: Failure to find: generated/WebResourceCacheManagerProxyMessages.h
for /tmp/qt-everywhere-opensource-src-4.8.7/src/3rdparty/webkit/Source/WebCore/WebCore.pro
for /tmp/qt-everywhere-opensource-src-4.8.7/src/3rdparty/webkit/Source/WebKit.pro
Qt is now configured for building. Just run 'gmake'.
Once everything is built, you must run 'gmake install'.
Qt will be installed into /usr/local/Trolltech/Qt-4.8.7
To reconfigure, run 'gmake confclean' and 'configure'.
Затем запускаем сборку
[user@localhost tmp]$ su -c "gmake"
и получаем кучу вот таких предупреждений:
../JavaScriptCore/wtf/OwnPtr.h:87:66: note: in expansion of macro ‘COMPILE_ASSERT’
template<typename U> bool operator==(const OwnPtr<U>&) { COMPILE_ASSERT(!sizeof(U*), OwnPtrs_should_never_be_equal); return false; }
^
../JavaScriptCore/wtf/OwnPtr.h: In member function ‘bool WTF::OwnPtr<T>::operator!=(const WTF::OwnPtr<U>&)’:
../JavaScriptCore/wtf/Assertions.h:326:47: warning: typedef ‘dummyOwnPtrs_should_never_be_equal’ locally defined but not used [-Wunused-local-typedefs]
#define COMPILE_ASSERT(exp, name) typedef int dummy##name [(exp) ? 1 : -1]
Как это победить и надо ли это делать? Несмотря на отсутствие файлов и предупреждения при сборке все работает ...
Версии ОС и компилятора:
[user@localhost ~]$ gmake --version
GNU Make 3.82
Built for x86_64-redhat-linux-gnu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
[user@localhost ~]$ gcc --version
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-28)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[user@localhost ~]$ cat /etc/redhat-release
CentOS Linux release 7.5.1804 (Core)
[alexegin@localhost ~]$