[Comm] QT3 and make: can't load libraries

Maria Shakhova =?iso-8859-1?q?inlvenok_=CE=C1_mail=2Eru?=
Пт Апр 11 00:47:16 MSD 2003


Уважаемое комьюнити!

Решила научиться работать в QT3 Designer, и для этого -- посмотреть примеры, 
приведенные в доке к нему. Дабы их собрать, было необходимо прописать в 
.bash_profile export QTDIR="/usr/lib/qt3"и после этого - make. 
Make пишет:

[lvenochek на localhost examples]$ make
cd aclock && make -f Makefile
make[1]: Вход в каталог `/home/lvenochek/examples/aclock'
g++ -c -pipe -fno-exceptions -I/usr/include/pgsql/ -I/usr/include/mysql/ 
-I/usr/
include/Xft2 -I/usr/include/fontconfig -Wall -W -pipe -Wall -O2 
-fexpensive-opti
mizations -march=i586 -mcpu=i686 -DGLX_GLXEXT_LEGACY -fno-use-cxa-atexit 
-fno-ex
ceptions -D_REENTRANT  -DQT_NO_DEBUG -DQT_THREAD_SUPPORT 
-I/usr/lib/qt3//mkspecs
/linux-g++ -I. -I/usr/include/freetype2 
-I/home/zerg/RPM/BUILD/qt-x11-free-3.1.1
/include -I/usr/X11R6/include -I/usr/X11R6/include -I.moc/release-shared-mt/ 
-o 
.obj/release-shared-mt/aclock.o aclock.cpp
In file included from aclock.cpp:11:
aclock.h:14:21: qwidget.h: No such file or directory
aclock.h:15:23: qdatetime.h: No such file or directory
In file included from aclock.cpp:11:
aclock.h:19: parse error before `{' token
aclock.h:25: parse error before `public'
aclock.h:30: `QPaintEvent' was not declared in this scope
aclock.h:30: parse error before `)' token
aclock.h:31: `QMouseEvent' was not declared in this scope
aclock.h:31: parse error before `)' token
aclock.h:32: `QMouseEvent' was not declared in this scope
aclock.h:32: parse error before `)' token
aclock.h:38: parse error before `private'
aclock.h:40: 'QTime' is used as a type, but is not defined as a type.
aclock.h:41: parse error before `}' token
aclock.cpp:12:20: qtimer.h: No such file or directory
aclock.cpp:13:22: qpainter.h: No such file or directory
aclock.cpp:14:21: qbitmap.h: No such file or directory
aclock.cpp:20: `QWidget' was not declared in this scope
aclock.cpp:20: `parent' was not declared in this scope
aclock.cpp:20: parse error before `char'
aclock.cpp:21: invalid use of undefined type `class AnalogClock'
aclock.h:18: forward declaration of `class AnalogClock'
aclock.cpp: In constructor `AnalogClock::AnalogClock(...)':
aclock.cpp:21: `parent' undeclared (first use this function)
aclock.cpp:21: (Each undeclared identifier is reported only once for each 
functi
on it appears in.)
aclock.cpp:21: `name' undeclared (first use this function)
aclock.cpp:21: class `AnalogClock' does not have any field named `QWidget'
aclock.cpp:23: `time' undeclared (first use this function)
aclock.cpp:23: `QTime' undeclared (first use this function)
aclock.cpp:23: parse error before `::' token
aclock.cpp:24: `QTimer' undeclared (first use this function)
aclock.cpp:24: `internalTimer' undeclared (first use this function)
aclock.cpp:24: parse error before `(' token
aclock.cpp:25: `SIGNAL' undeclared (first use this function)
aclock.cpp:25: `SLOT' undeclared (first use this function)
aclock.cpp:25: `connect' undeclared (first use this function)
aclock.cpp: At global scope:
aclock.cpp:29: `QMouseEvent' was not declared in this scope
aclock.cpp:29: `e' was not declared in this scope
aclock.cpp:30: invalid use of undefined type `class AnalogClock'
aclock.h:18: forward declaration of `class AnalogClock'
aclock.cpp:30: invalid declarator
aclock.cpp:30: syntax error before `{' token
aclock.cpp:35: `QMouseEvent' was not declared in this scope
aclock.cpp:35: `e' was not declared in this scope
aclock.cpp:36: invalid use of undefined type `class AnalogClock'
aclock.h:18: forward declaration of `class AnalogClock'
aclock.cpp:36: invalid declarator
aclock.cpp:36: syntax error before `{' token
aclock.cpp:41: parse error before `&' token
aclock.cpp:42: invalid use of undefined type `class AnalogClock'
aclock.h:18: forward declaration of `class AnalogClock'
aclock.cpp: In member function `void AnalogClock::setTime(...)':
aclock.cpp:43: `t' undeclared (first use this function)
aclock.cpp: At global scope:
aclock.cpp:52: invalid use of undefined type `class AnalogClock'
aclock.h:18: forward declaration of `class AnalogClock'
aclock.cpp: In member function `void AnalogClock::timeout()':
aclock.cpp:53: `QTime' undeclared (first use this function)
aclock.cpp:53: parse error before `=' token
aclock.cpp:55: `new_time' undeclared (first use this function)
aclock.cpp:56: `autoMask' undeclared (first use this function)
aclock.cpp:57: `updateMask' undeclared (first use this function)
aclock.cpp:59: `update' undeclared (first use this function)
aclock.cpp: At global scope:
aclock.cpp:64: `QPaintEvent' was not declared in this scope
aclock.cpp:64: parse error before `)' token
aclock.cpp:65: invalid use of undefined type `class AnalogClock'
aclock.h:18: forward declaration of `class AnalogClock'
aclock.cpp: In member function `void AnalogClock::paintEvent(...)':
aclock.cpp:68: `QPainter' undeclared (first use this function)
aclock.cpp:68: parse error before `(' token
aclock.cpp:69: `paint' undeclared (first use this function)
cpp:70: `drawClock' undeclared (first use this function)
aclock.aclock.cpp: At global scope:
aclock.cpp:77: invalid use of undefined type `class AnalogClock'
aclock.h:18: forward declaration of `class AnalogClock'
aclock.cpp: In member function `void AnalogClock::updateMask()':
aclock.cpp:78: `QBitmap' undeclared (first use this function)
aclock.cpp:78: parse error before `(' token
aclock.cpp:79: `bm' undeclared (first use this function)
aclock.cpp:79: `color0' undeclared (first use this function)
aclock.cpp:81: parse error before `;' token
aclock.cpp:83: `color1' undeclared (first use this function)
aclock.cpp:89: `setMask' undeclared (first use this function)
aclock.cpp: At global scope:
aclock.cpp:98: invalid use of undefined type `class AnalogClock'
aclock.h:18: forward declaration of `class AnalogClock'
aclock.cpp:98: invalid declarator
aclock.cpp:98: syntax error before `{' token
aclock.cpp:101: syntax error before `->' token
aclock.cpp:103: parse error before `=' token
aclock.cpp:104: `v' was not declared in this scope
aclock.cpp:104: `v' was not declared in this scope
aclock.cpp:104: `QMIN' was not declared in this scope
aclock.cpp:105: syntax error before `->' token
aclock.cpp:109: 'QPointArray' is used as a type, but is not defined as a type.
aclock.cpp:111: syntax error before `->' token
aclock.cpp:112: syntax error before `->' token
aclock.cpp:113: syntax error before `.' token
aclock.cpp:114: syntax error before `->' token
aclock.cpp:115: syntax error before `->' token
aclock.cpp:117: syntax error before `->' token
aclock.cpp:118: syntax error before `->' token
aclock.cpp:119: syntax error before `.' token
aclock.cpp:120: syntax error before `->' token
aclock.cpp:121: syntax error before `->' token
aclock.cpp:123: parse error before `;' token
aclock.cpp:123: syntax error before `++' token
aclock.cpp:125: syntax error before `->' token
aclock.cpp:128: syntax error before `->' token
aclock.cpp:133: invalid use of undefined type `class AnalogClock'
aclock.h:18: forward declaration of `class AnalogClock'
aclock.cpp: In member function `void AnalogClock::setAutoMask(bool)':
aclock.cpp:135: `PaletteForeground' undeclared (first use this function)
aclock.cpp:135: `setBackgroundMode' undeclared (first use this function)
aclock.cpp:137: `PaletteBackground' undeclared (first use this function)
aclock.cpp:138: `QWidget' undeclared (first use this function)
aclock.cpp:138: parse error before `::' token
make[1]: *** [.obj/release-shared-mt/aclock.o] Ошибка 1
make[1]: Выход из каталог `/home/lvenochek/examples/aclock'
make: *** [sub-aclock] Ошибка 2

Вроде все пакеты воэможные к QT3 поставлены... Почему не собирается?

Заранее спасибо,

--

Maria Shakhova




Подробная информация о списке рассылки community