<posted & mailed>
Gabriel M. Beddingfield wrote:
> I couldn't recreate the bug here. The -lqt shows up in the makefile and
> everything builds just fine.
Aha! I stand corrected. The problem is that your project directory is
called 'qt'. Change to something else ('qt', 'foo', 'mustard') and your
problem will go away.
Whether you report this as a bug is up to you. It's either a bug or an
undocumented feature. ;-)
The following script will recreate the error if you run it without
arguments.
#!/bin/bash
#
# Script to test out qt.
# g. m. beddingfield <[EMAIL PROTECTED]>
# 18JAN2005
#
#
# To repeat issue submitted by Michael Sullivan on gentoo-user
# list (1/18/05), run this script with no arguments:
#
# ./qttest.sh
#
# To work around the issue, run this script with an argument:
#
# ./qttest.sh foo
#
# The problem is that the project directory's name is 'qt'.
# Whether this is a bug or 'feature' depends on Trolltech.
#
TMPDIR=__QT_TMP_DIR
if [ -z $1 ]; then
APPDIR=qt
else
APPDIR=$1
fi
mkdir $TMPDIR
cd $TMPDIR
mkdir $APPDIR
cd $APPDIR
cat > foo.cpp <<EOF
#include <qapplication.h>
#include <qlabel.h>
int main(int argc, char *argv[])
{
QApplication app(argc,argv);
QLabel *label = new QLabel("Hello World!", 0);
app.setMainWidget(label);
label->show();
return app.exec();
}
EOF
qmake -project && qmake && make && ./$APPDIR && echo "It worked. :-)"
#
# END OF SCRIPT
#
--
G a b r i e l M . B e d d i n g f i e l d
--
[email protected] mailing list