Results 1 to 2 of 2

Thread: Am I the only one with "make" error ?

  1. #1
    Join Date
    Jan 2006
    Posts
    185
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Am I the only one with "make" error ?

    I am trying to install a fresh version of Qt-4.1.0. I do not have any previos version of Qt in my computer.

    I have tried to installed it in Mandriva 2006 and Fedora Core 4. In both cases I get the exact same error:

    cd src && make
    make[1]: Entering directory `/home/santiago/programs/qt-x11-opensource-src-4.1.0/src'
    cd tools/moc && make
    make[2]: Entering directory `/home/santiago/programs/qt-x11-opensource-src-4.1.0/src/tools/moc'
    make[2]: Nothing to be done for `first'.
    make[2]: Leaving directory `/home/santiago/programs/qt-x11-opensource-src-4.1.0/src/tools/moc'
    cd tools/rcc && make
    make[2]: Entering directory `/home/santiago/programs/qt-x11-opensource-src-4.1.0/src/tools/rcc'
    make[2]: Nothing to be done for `first'.
    make[2]: Leaving directory `/home/santiago/programs/qt-x11-opensource-src-4.1.0/src/tools/rcc'
    cd tools/uic && make
    make[2]: Entering directory `/home/santiago/programs/qt-x11-opensource-src-4.1.0/src/tools/uic'
    make[2]: Nothing to be done for `first'.
    make[2]: Leaving directory `/home/santiago/programs/qt-x11-opensource-src-4.1.0/src/tools/uic'
    cd corelib && make
    make[2]: Entering directory `/home/santiago/programs/qt-x11-opensource-src-4.1.0/src/corelib'
    make -f Makefile.Debug all
    make[3]: Entering directory `/home/santiago/programs/qt-x11-opensource-src-4.1.0/src/corelib'
    make[3]: Nothing to be done for `all'.
    make[3]: Leaving directory `/home/santiago/programs/qt-x11-opensource-src-4.1.0/src/corelib'
    make -f Makefile.Release all
    make[3]: Entering directory `/home/santiago/programs/qt-x11-opensource-src-4.1.0/src/corelib'
    make[3]: Nothing to be done for `all'.
    make[3]: Leaving directory `/home/santiago/programs/qt-x11-opensource-src-4.1.0/src/corelib'
    make[2]: Leaving directory `/home/santiago/programs/qt-x11-opensource-src-4.1.0/src/corelib'
    cd xml && make
    make[2]: Entering directory `/home/santiago/programs/qt-x11-opensource-src-4.1.0/src/xml'
    make -f Makefile.Debug all
    make[3]: Entering directory `/home/santiago/programs/qt-x11-opensource-src-4.1.0/src/xml'
    make[3]: Nothing to be done for `all'.
    make[3]: Leaving directory `/home/santiago/programs/qt-x11-opensource-src-4.1.0/src/xml'
    make -f Makefile.Release all
    make[3]: Entering directory `/home/santiago/programs/qt-x11-opensource-src-4.1.0/src/xml'
    make[3]: Nothing to be done for `all'.
    make[3]: Leaving directory `/home/santiago/programs/qt-x11-opensource-src-4.1.0/src/xml'
    make[2]: Leaving directory `/home/santiago/programs/qt-x11-opensource-src-4.1.0/src/xml'
    cd gui && make
    make[2]: Entering directory `/home/santiago/programs/qt-x11-opensource-src-4.1.0/src/gui'
    make -f Makefile.Debug all
    make[3]: Entering directory `/home/santiago/programs/qt-x11-opensource-src-4.1.0/src/gui'
    g++ -c -pipe -g -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_EDITION=QT_EDITION_DESKTOP -DQT_BUILD_GUI_LIB -DQT_NO_CAST_TO_ASCII -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_RASTER_IMAGEENGINE -DQT_HAVE_SSE -DQT_PDF_SUPPORT -DQT_NO_STYLE_MAC -DQT_NO_STYLE_WINDOWSXP -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/linux-g++ -I. -I../../include/QtCore -I../../include -I../../include/QtGui -I../3rdparty/libpng -I../3rdparty/zlib -I.moc/debug-shared -I/usr/X11R6/include -I. -o .obj/debug-shared/qapplication.o kernel/qapplication.cpp
    In file included from ../../include/QtGui/private/qt_x11_p.h:1,
    from kernel/qapplication.cpp:51:
    ../../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:57:23: error: X11/Xatom.h: No such file or directory
    ../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:246: error: ‘Colormap’ does not name a type
    ../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:247: error: ISO C++ forbids declaration of ‘Visual’ with no type
    ../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:247: error: expected ‘;’ before ‘*’ token
    ../../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:263: error: ‘Window’ has not been declared
    ../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:264: error: ‘Window’ has not been declared
    ../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:264: error: ‘Atom’ has not been declared
    ../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:265: error: ‘Atom’ has not been declared
    ../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:266: error: ‘Window’ has not been declared
    ../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:266: error: ‘Atom’ has not been declared
    ../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:277: error: expected ‘,’ or ‘...’ before ‘*’ token
    ../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:277: error: ISO C++ forbids declaration of ‘XSelectionRequestEvent’ with no type
    ../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:279: error: ‘Atom’ has not been declared
    ../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:280: error: ‘Atom’ does not name a type
    ../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:328: error: ISO C++ forbids declaration of ‘Atom’ with no type
    ../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:328: error: expected ‘;’ before ‘*’ token
    ../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:330: error: ISO C++ forbids declaration of ‘Window’ with no type
    ../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:330: error: expected ‘;’ before ‘*’ token
    ../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:332: error: ‘Window’ does not name a type
    ../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:338: error: ‘Time’ does not name a type
    ../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:339: error: ‘Time’ does not name a type
    ../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:365: error: ISO C++ forbids declaration of ‘Visual’ 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:366: error: ‘Colormap’ does not name a type
    ../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:518: error: ‘Atom’ does not name a type
    ../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:528: error: ‘FocusOut’ was not declared in this scope
    ../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:529: error: ‘FocusIn’ was not declared in this scope
    ../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:530: error: ‘KeyPress’ was not declared in this scope
    ../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:531: error: ‘KeyRelease’ was not declared in this scope
    ../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:532: error: ‘None’ was not declared in this scope
    ../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:533: error: ‘RevertToParent’ was not declared in this scope
    ../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:534: error: ‘GrayScale’ was not declared in this scope
    ../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:535: error: ‘CursorShape’ was not declared in this scope
    ../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:550: error: ‘XPoint’ was not declared in this scope
    ../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:550: error: template argument 1 is invalid
    ../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:550: error: explicit specialization of non-template ‘<type error>’
    ../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:551: error: ‘XRectangle’ was not declared in this scope
    ../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:551: error: template argument 1 is invalid
    ../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:551: error: explicit specialization of non-template ‘<type error>’
    ../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:552: error: ‘XChar2b’ was not declared in this scope
    ../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:552: error: template argument 1 is invalid
    ../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:552: error: explicit specialization of non-template ‘<type error>’
    kernel/qapplication.cpp: In member function ‘void QApplicationPrivate::initialize()’:
    kernel/qapplication.cpp:724: warning: unused variable ‘q’
    make[3]: *** [.obj/debug-shared/qapplication.o] Error 1
    make[3]: Leaving directory `/home/santiago/programs/qt-x11-opensource-src-4.1.0/src/gui'
    make[2]: *** [debug-all] Error 2
    make[2]: Leaving directory `/home/santiago/programs/qt-x11-opensource-src-4.1.0/src/gui'
    make[1]: *** [sub-gui-make_default-ordered] Error 2
    make[1]: Leaving directory `/home/santiago/programs/qt-x11-opensource-src-4.1.0/src'
    make: *** [sub-src-make_default-ordered] Error 2

    How do I solve this problem ?

  2. #2
    Join Date
    Feb 2006
    Location
    Kirovohrad, Ukraine
    Posts
    72
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Am I the only one with "make" error ?

    Please, take a look at these lines:
    ../../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:57:23: error: X11/Xatom.h: No such file or directory
    The reason of failure is obvious: your system lacks x11-devel files. I don't know the exact names of these, but it should be something like x11-devel-blah-blah.rpm

Similar Threads

  1. Compile 4.4.0
    By LordQt in forum Installation and Deployment
    Replies: 18
    Last Post: 29th May 2008, 14:43
  2. QPSQL driver in windows
    By brevleq in forum Installation and Deployment
    Replies: 31
    Last Post: 14th December 2007, 13:57
  3. Error compiling psql plugin
    By vieraci in forum Installation and Deployment
    Replies: 4
    Last Post: 7th October 2007, 03:49
  4. qt 4.2.2 install on aix
    By try to remember in forum Installation and Deployment
    Replies: 2
    Last Post: 28th March 2007, 13:19
  5. use qpsql
    By raphaelf in forum Installation and Deployment
    Replies: 34
    Last Post: 22nd August 2006, 13:52

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.