zapoyok wrote:

Le Dimanche 22 Juin 2003 15:19, Troumad a �crit :


yesi wrote:


Le sam 21/06/2003 � 11:56, Troumad a �crit :


Bonjour


salut,



J'ai r�install� mdk 9.1 sur mon PC et je viens d'essayer qmake : il
n'est pas dans le path mais il existe!
Que dois-je faire?
O� est d�fini le PATH?


moi je dirai:
$which qmake
puis si ton chemin n'est pas d�fini dans le path, rajoute ce chemin dans
le path du fichier /etc/profile:

PATH=$PATH:/ton_autre_chemin/
export PATH


PATH=$PATH:/usr/lib/qt3/bin/ devrait avoir son effet lorsque je vais
rebooter

Enfin, en le faisant en ligne de commande, j'arrive toujours au m�me
probl�me :
qmake essai.pro
[EMAIL PROTECTED]/maison/bs/xfconfig]$ make
gcc -c -pipe -Wall -W -O2 -fomit-frame-pointer -pipe -march=i586
-mcpu=pentiumpro -DQT_NO_DEBUG -I/usr/lib/qt3//mkspecs/default -I.
-I/include -I.ui/ -I.moc/ -o .obj/essai.o essai.c
essai.c:1:26: qapplication.h: No such file or directory
essai.c:2:25: qpushbutton.h: No such file or directory
essai.c: In function `main':
essai.c:5: `QApplication' undeclared (first use in this function)
essai.c:5: (Each undeclared identifier is reported only once
essai.c:5: for each function it appears in.)
essai.c:5: parse error before "a"
essai.c:6: `QPushButton' undeclared (first use in this function)
essai.c:7: `hello' undeclared (first use in this function)
essai.c:9: `a' undeclared (first use in this function)
essai.c:3: warning: unused parameter `argc'
essai.c:3: warning: unused parameter `argv'
make: *** [.obj/essai.o] Erreur 1




Essaie de rajouter dans ton fichier essai.pro la ligne :
INCLUDEPATH += /usr/lib/qt3/include
et LIBS += -L/usr/lib/qt3/lib



Jerome




Avec mon nouveau essai.pro :
INCLUDEPATH +=  /usr/lib/qt3/include
LIBS  += -L/usr/lib/qt3/lib
SOURCES += essai.c
unix {
 UI_DIR = .ui
 MOC_DIR = .moc
 OBJECTS_DIR = .obj
}
TEMPLATE        =app
CONFIG  += qt warn_on release
LANGUAGE        = C++


Voici ce que �a donne
[EMAIL PROTECTED]/maison/bs/xfconfig]$ qmake essai.pro
[EMAIL PROTECTED]/maison/bs/xfconfig]$ make
gcc -c -pipe -Wall -W -O2 -fomit-frame-pointer -pipe -march=i586 -mcpu=pentiumpro -DQT_NO_DEBUG -I/usr/lib/qt3//mkspecs/default -I. -I/usr/lib/qt3/include -I/include -I.ui/ -I.moc/ -o .obj/essai.o essai.c
In file included from /usr/lib/qt3/include/qwindowdefs.h:43,
from /usr/lib/qt3/include/qwidget.h:42,
from /usr/lib/qt3/include/qdesktopwidget.h:40,
from /usr/lib/qt3/include/qapplication.h:42,
from essai.c:1:
/usr/lib/qt3/include/qobjectdefs.h:152: parse error before "QObject"
/usr/lib/qt3/include/qobjectdefs.h:152: warning: type defaults to `int' in declaration of `QObject'
/usr/lib/qt3/include/qobjectdefs.h:152: warning: data definition has no type or storage class
/usr/lib/qt3/include/qobjectdefs.h:153: parse error before "QMetaObject"
/usr/lib/qt3/include/qobjectdefs.h:153: warning: type defaults to `int' in declaration of `QMetaObject'
/usr/lib/qt3/include/qobjectdefs.h:153: warning: data definition has no type or storage class
/usr/lib/qt3/include/qobjectdefs.h:154: parse error before "QSignal"
/usr/lib/qt3/include/qobjectdefs.h:154: warning: type defaults to `int' in declaration of `QSignal'
/usr/lib/qt3/include/qobjectdefs.h:154: warning: data definition has no type or storage class
/usr/lib/qt3/include/qobjectdefs.h:155: parse error before "QConnection"
/usr/lib/qt3/include/qobjectdefs.h:155: warning: type defaults to `int' in declaration of `QConnection'
/usr/lib/qt3/include/qobjectdefs.h:155: warning: data definition has no type or storage class
/usr/lib/qt3/include/qobjectdefs.h:156: parse error before "QEvent"
/usr/lib/qt3/include/qobjectdefs.h:156: warning: type defaults to `int' in declaration of `QEvent'
/usr/lib/qt3/include/qobjectdefs.h:156: warning: data definition has no type or storage class
/usr/lib/qt3/include/qobjectdefs.h:158: parse error before "QConnectionList"
...
...
/usr/lib/qt3/include/qstring.h:134: previous declaration of `Vertical'
/usr/lib/qt3/include/qnamespace.h:92: confused by earlier errors, bailing out
make: *** [.obj/essai.o] Erreur 1


--
Amicalement vOOo <http://fr.openoffice.org>tre

Troumad alias Bernard SIAUD
troumad.free.fr <http://troumad.free.fr> : AD&D, math�matiques, WEB, et sectes.




Vous souhaitez acquerir votre Pack ou des Services MandrakeSoft?
Rendez-vous sur "http://www.mandrakestore.com";.

Foire Aux Questions de la liste : http://mdk.mondelinux.org

Répondre à