PDA

View Full Version : QT errors in compiling



athlonthunder
04-08-2003, 04:58 PM
why an i getting this qt error when trying to compile a qt program?

i have qt2 and qt3 installed


... [compiling statements] ...

checking for extra includes... no
checking for extra libs... no
checking for libz... -lz
checking for libpng... -lpng -lz -lm
checking for libjpeg6b... no
checking for libjpeg... -ljpeg
checking for Qt... libraries /usr/lib/qt3, headers /usr/include/qt3 using -mt
checking for moc... not found
configure: error: No Qt meta object compiler (moc) found!
Please check whether you installed Qt correctly.
You need to have a running moc binary.
configure tried to run and the test didn't
succeed. If configure shouldn't have tried this one, set
the environment variable MOC to the right one before running
configure.

zzyzx
04-08-2003, 05:27 PM
checking for QT 3.x libraries... /usr/lib
checking for QT 3.x includes... no
configure: error:

I can't find the QT header files.

Install the QT development package, or if you have them installed, override
this check with the --with-qt-includes=... argument, and I'll take your word
for it.


I get the same error, this is from gambas. It compiles fine in Knoppix 1-1-2003. I notice I can install everything with synaptic except libqt3-dev files. apt-get is broken on that one I guess. I that necessary? libqt3-headers are installed.

Please reply here!!!!!!!!!!!!!

Viro
04-08-2003, 05:33 PM
If apt-get is broken, you could always go straight to the packages website and search for the qt libs. Here's the page you're looking for. http://packages.debian.org/cgi-bin/search_packages.pl?keywords=libqt3&searchon=names&subword=1&version=all&release=all

MetaLLmaN
07-20-2003, 08:50 AM
why an i getting this qt error when trying to compile a qt program?

i have qt2 and qt3 installed


... [compiling statements] ...

checking for extra includes... no
checking for extra libs... no
checking for libz... -lz
checking for libpng... -lpng -lz -lm
checking for libjpeg6b... no
checking for libjpeg... -ljpeg
checking for Qt... libraries /usr/lib/qt3, headers /usr/include/qt3 using -mt
checking for moc... not found
configure: error: No Qt meta object compiler (moc) found!
Please check whether you installed Qt correctly.
You need to have a running moc binary.
configure tried to run and the test didn't
succeed. If configure shouldn't have tried this one, set
the environment variable MOC to the right one before running
configure.

I've got this messages too. What should I do ? :roll:

Shaneful
11-12-2003, 06:36 PM
export MOC=/usr/share/qt3/bin/moc && configure --with-qt-dir=/usr --with-qt-includes=/usr/include/qt3 -with-qt-libraries=/usr/lib/qt3 --enable-mt


hope this helps