PDA

View Full Version : Am I the only one with "make" error ?



probine
13th February 2006, 12:21
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 ?

Cesar
13th February 2006, 12:54
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