Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 02/03/2006, à 09:08

sliderone

Problème de compilation avec Qt

J'ai installé http://fr.wikipedia.org/wiki/Qt sur mon pc i386 sous ubuntu sans problème avec l'archive suivante :

http://www.trolltech.com/download/qt/x11.html qt-x11-opensource-src-4.1.1.tar.gz


Avec ubuntu sur mon iBook PowerPc, j'ai a chaque fois la même erreur :

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 suc h 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 suc h file or directory
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:252: error: ‘Colormap’ does not n ame a type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:253: error: ISO C++ forbids decla ration of ‘Visual’ with no type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:253: error: expected ‘;’ before ‘ *’ token
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:266: error: ‘Window’ does not nam e a type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:269: error: ‘Window’ has not been  declared
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:270: error: ‘Window’ has not been  declared
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:270: error: ‘Atom’ has not been d eclared
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:271: error: ‘Atom’ has not been d eclared
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:272: error: ‘Window’ has not been  declared
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:272: error: ‘Atom’ has not been d eclared
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:283: error: expected ‘,’ or ‘...’  before ‘*’ token
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:283: error: ISO C++ forbids decla ration of ‘XSelectionRequestEvent’ with no type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:285: error: ‘Atom’ has not been d eclared
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:286: error: ‘Atom’ does not name a type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:334: error: ISO C++ forbids decla ration of ‘Atom’ with no type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:334: error: expected ‘;’ before ‘ *’ token
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:336: error: ISO C++ forbids decla ration of ‘Window’ with no type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:336: error: expected ‘;’ before ‘ *’ token
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:338: error: ‘Window’ does not nam e a type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:344: error: ‘Time’ does not name a type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:345: error: ‘Time’ does not name a type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:371: error: ISO C++ forbids decla ration of ‘Visual’ with no type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:371: error: expected ‘;’ before ‘ *’ token
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:372: error: ‘Colormap’ does not n ame a type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:524: error: ‘Atom’ does not name a type
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:534: error: ‘FocusOut’ was not de clared in this scope
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:535: error: ‘FocusIn’ was not dec lared in this scope
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:536: error: ‘KeyPress’ was not de clared in this scope
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:537: error: ‘KeyRelease’ was not declared in this scope
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:538: error: ‘None’ was not declar ed in this scope
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:539: error: ‘RevertToParent’ was not declared in this scope
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:540: error: ‘GrayScale’ was not d eclared in this scope
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:541: error: ‘CursorShape’ was not  declared in this scope
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:556: error: ‘XPoint’ was not decl ared in this scope
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:556: error: template argument 1 i s invalid
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:556: error: explicit specializati on of non-template ‘<type error>’
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:557: error: ‘XRectangle’ was not declared in this scope
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:557: error: template argument 1 i s invalid
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:557: error: explicit specializati on of non-template ‘<type error>’
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:558: error: ‘XChar2b’ was not dec lared in this scope
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:558: error: template argument 1 i s invalid
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:558: error: explicit specializati on 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[2]: *** [debug-all] Error 2
make[1]: *** [sub-gui-make_default-ordered] Error 2
make: *** [sub-src-make_default-ordered] Error 2

D'ou viennent ces erreurs ?
Merci d'avance, j'ai besoin de bosser avec Qt sous ubuntu

Dernière modification par sliderone (Le 02/03/2006, à 09:23)

Hors ligne

#2 Le 02/03/2006, à 12:22

batmrou

Re : Problème de compilation avec Qt

Ca ressemble assez à un lien symbolique manquant.

Essaie ceci :

 cd /usr/include
ln -sf /usr/X11/include/X11 X11

(solution trouvée sur le net et que je n'ai malheureusement pas pu tester... hmm)

Hors ligne