Results 1 to 4 of 4

Thread: Installation on Fedora Core 4

  1. #1
    Join Date
    Jan 2006
    Posts
    73
    Thanks
    16
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Installation on Fedora Core 4

    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
    Last edited by jacek; 23rd December 2006 at 15:17. Reason: changed [code] to [quote]

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Installation on Fedora Core 4

    Quote Originally Posted by jcr View Post
    ../../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.

  3. #3
    Join Date
    Jan 2006
    Posts
    73
    Thanks
    16
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Installation on Fedora Core 4

    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.

  4. #4
    Join Date
    Jan 2009
    Location
    Poland
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Installation on Fedora Core 4

    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...)

Similar Threads

  1. Upgrading installation
    By Djony in forum Installation and Deployment
    Replies: 2
    Last Post: 30th November 2006, 18:42
  2. do Qt4 installation depends on gcc version
    By quickNitin in forum Installation and Deployment
    Replies: 3
    Last Post: 3rd October 2006, 07:14
  3. Problem of Core Dropped!
    By Stephano in forum General Programming
    Replies: 1
    Last Post: 10th May 2006, 16:59

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.