PDA

View Full Version : Installation on Fedora Core 4



jcr
23rd December 2006, 15:09
Hello,

I followed the instructions to install Qt on my Fedora Core 4 VPS; gmake starts running to break with the following message.



g++ -c -pipe -g -O2 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_BUILD_GUI_LIB -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_RASTER_IMAGEENGINE -DQT_HAVE_SSE -DFT2_BUILD_LIBRARY -DFT_CONFIG_OPTION_SYSTEM_ZLIB -DQT_NO_OPENTYPE -DQT_NO_STYLE_MAC -DQT_NO_STYLE_WINDOWSXP -DQ_INTERNAL_QAPP_SRC -DQT_NO_DEBUG -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/linux-g++ -I. -I../../include/QtCore -I../../include/QtCore -I../../include -I../../include/QtGui -I../3rdparty/libpng -I../3rdparty/zlib -I../3rdparty/freetype/src -I../3rdparty/freetype/include -I../3rdparty/freetype/builds/unix -I.moc/release-shared -I/usr/X11R6/include -I.uic/release-shared -o .obj/release-shared/qapplication.o kernel/qapplication.cpp
In file included from ../../include/QtGui/private/qt_x11_p.h:1,
from kernel/qapplication.cpp:55:
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:50:22: error: X11/Xlib.h: No such file or directory
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:55:23: error: X11/Xutil.h: No such file or directory
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:56:21: error: X11/Xos.h: No such file or directory
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:63:23: error: X11/Xatom.h: No such file or directory
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:248: error: 'Colormap' does not name a type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:249: error: ISO C++ forbids declaration of 'Visual' with no type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:249: error: expected ';' before '*' token
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:258: error: 'Time' does not name a type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:259: error: 'Window' does not name a type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:260: error: 'Window' does not name a type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:282: error: 'Window' does not name a type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:285: error: 'Window' has not been declared
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:286: error: 'Window' has not been declared
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:286: error: 'Atom' has not been declared
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:287: error: 'Atom' has not been declared
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:288: error: 'Window' has not been declared
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:288: error: 'Atom' has not been declared
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:299: error: expected ',' or '...' before '*' token
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:299: error: ISO C++ forbids declaration of 'XSelectionRequestEvent' with no type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:301: error: 'Atom' has not been declared
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:302: error: 'Atom' does not name a type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:304: error: 'Atom' has not been declared
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:305: error: 'Atom' does not name a type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:306: error: 'Atom' has not been declared
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:307: error: 'Atom' has not been declared
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:307: error: 'Atom' has not been declared
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:308: error: 'Atom' was not declared in this scope
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:308: error: template argument 1 is invalid
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:309: error: 'Atom' has not been declared
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:310: error: 'Atom' does not name a type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:365: error: ISO C++ forbids declaration of 'Atom' with no type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:365: error: expected ';' before '*' token
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:367: error: ISO C++ forbids declaration of 'Window' with no type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:367: error: expected ';' before '*' token
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:369: error: 'Window' does not name a type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:375: error: 'Time' does not name a type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:376: error: 'Time' does not name a type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:402: error: ISO C++ forbids declaration of 'Visual' with no type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:402: error: expected ';' before '*' token
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:403: error: 'Colormap' does not name a type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:563: error: 'Atom' does not name a type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:573: error: 'FocusOut' was not declared in this scope
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:574: error: 'FocusIn' was not declared in this scope
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:575: error: 'KeyPress' was not declared in this scope
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:576: error: 'KeyRelease' was not declared in this scope
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:577: error: 'None' was not declared in this scope
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:578: error: 'RevertToParent' was not declared in this scope
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:579: error: 'GrayScale' was not declared in this scope
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:580: error: 'CursorShape' was not declared in this scope
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:595: error: 'XPoint' was not declared in this scope
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:595: error: template argument 1 is invalid
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:595: error: explicit specialization of non-template '<type error>'
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:596: error: 'XRectangle' was not declared in this scope
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:596: error: template argument 1 is invalid
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:596: error: explicit specialization of non-template '<type error>'
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:597: error: 'XChar2b' was not declared in this scope
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:597: error: template argument 1 is invalid
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:597: error: explicit specialization of non-template '<type error>'
gmake[2]: *** [.obj/release-shared/qapplication.o] Error 1
gmake[2]: Leaving directory `/tmp/qt-x11-opensource-src-4.2.2/src/gui'
gmake[1]: *** [sub-gui-make_default] Error 2
gmake[1]: Leaving directory `/tmp/qt-x11-opensource-src-4.2.2/src'
gmake: *** [sub-src-make_default-ordered] Error 2



I don't know what to do.
Thank you

jacek
23rd December 2006, 15:19
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:50:22: error: X11/Xlib.h: No such file or directory
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:55:23: error: X11/Xutil.h: No such file or directory
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:56:21: error: X11/Xos.h: No such file or directory
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:63:23: error: X11/Xatom.h: No such file or directory
It looks like you are missing some X11 development package. Try installing a package called X11-devel or similar.

jcr
30th December 2006, 01:36
I struggled a little to install those missing packages. In the end, I used yum to install an older version of qt4, which must have installed the missing dependencies, and then I installed 1t 4.2. Everything works fine now.

jkrzemin
29th January 2009, 02:34
hi,
i had same problem on Centos 5.2 with Qt 4.4.3, as Jacek wrote i was missing "some" X11-devel packages precisely xorg-x11-proto-devel in my case (strange name...:confused:)