Is there any way to know if my archives are complete?

Alvyn Liang sacch.liang at msa.hinet.net
Wed Apr 7 21:05:13 CEST 2004


As I tried to compile a basic program provided by Qt3 tutorial I found there is a file tree missing in Qt3.2

$ ls -al
total 2
drwx------+   4 mcdikcl2 None            0 Apr  7 18:01 .
drwx------+  18 mcdikcl2 None            0 Apr  7 12:32 ..
drwx------+   3 mcdikcl2 None            0 Apr  7 12:32 .moc
drwx------+   3 mcdikcl2 None            0 Apr  7 12:32 .obj
-rwx------+   1 mcdikcl2 None          426 Apr  7 18:01 main.cpp

mcdi at Alvyn /usr/local/qt/tutorial/t1
$ qmake -project

mcdi at Alvyn /usr/local/qt/tutorial/t1
$ qmake
Could not find mkspecs for your QMAKESPEC after trying:
        /opt/qt/3.2/mkspecs
        /opt/qt/3.2/mkspecs
        /opt/qt/3.2/mkspecs
        /opt/qt/3.2
        /opt/qt/3.2
Error processing project file: /usr/local/qt/tutorial/t1/t1.pro



>From the information in another webpage, I quote here

--------------------------------------------------------------------
To: misc AT openbsd DOT org
Subject: qt3 Package Problem
From: Dave Feustel <dfeustel AT mindspring DOT com>
Date: Tue, 13 May 2003 19:07:11 -0500
User-Agent: KMail/1.4.3
I have installed the 3.2 package qt3-0.5.tgz and qt3-examples-0.5.
I have in my .profile
export QTDIR=/usr/local/lib/qt3
but I still cannot run qmake successfully.

/usr/local/lib/qt3/examples/hello}qmake hello.pro
Could not find mkspecs for your QMAKESPEC after trying:
        /usr/local/lib/qt3
Error processing project file: hello.pro

A google search on 'openbsd mkspecs" leads me
to believe that there should be a directory
with (partial) name mkspecs. in the filesystem
but here is no directory or file with name mkspecs.except for
the following:

/usr/local/lib/qt3/examples/hello}find / -name '*mkspecs*'
/usr/src/ports/x11/qt3/patches/patch-mkspecs_openbsd-g++_qmake_conf
/usr/ports/x11/qt3/patches/patch-mkspecs_openbsd-g++_qmake_conf
/usr/local/lib/qt3/examples/hello}

What additional configuration do I need to make qmake work?

Thanks,
Dave Feustel

--------------------------------------------------------------------

But in my case it seems not the same case with this one. The folder /opt/qt/3.2/mkspecs/cygwin-g++/ does have files in it.
I checked my files with mkspecs under cygwin folder appeared

$ find / -name '*mkspecs*'
/opt/qt/3.2/mkspecs
/usr/local/qt/mkspecs

including my previous install location. I suspect there maybe something has been lost in 'mkspecs' directory. I started to put the
QT3 'mkspecs' sub-folders of '/usr/local/qt/mkspecs' into the new 'mkspecs' folder of '/opt/qt/3.2/mkspecs'. It resolved a problem.
The qmake passed in this stage.

Unfortunately, there comes another.
When I typed 'make' it appeared

g++-2 -c -pipe -Wall -W -O2  -DQT_NO_DEBUG -I/opt/qt/3.2/mkspecs/default -I. -I. -I-I/usr/local/include -I/opt/qt/3.2/include -o
main.o main
.cpp
g++-2 -Wl,--disable-runtime-pseudo-reloc -Wl,--export-all-symbols  -Wl,-rpath,-L/usr/local/lib  -Wl,-rpath,/opt/qt/3.2/lib -o t1
main.o   -L
-L/usr/local/lib -L/opt/qt/3.2/lib -L/usr/X11R6/lib -lqt -lGL -lXext -lX11
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-10/../../../../i686-pc-cygwin/bin/ld: cannot find -lqt
collect2: ld returned 1 exit status
make: *** [t1] Error 1

Seems that it cannot find the position of libqt.lib or libqt.dll.a...........

I typed

$ find / -name '*libqt*'
/opt/kde2/lib/libqtmcop.dll.a
/opt/kde2/lib/libqtmcop.la
/opt/kde3/lib/libqtnotfier.a
/opt/kde3/lib/libqtnotfier.la
/opt/qt/3.2/lib/libqt-mt.dll.a
/usr/local/lib/qt1/lib/libqt.dll.a
/usr/local/lib/qt2/lib/libqt.dll.a
/usr/local/qt/lib/libqt.dll
/usr/local/qt/src/libqt.map

to find out where is my 'libqt' files.

This is really frustrating that the qmake does not make a proper setting of 'Makefile'. :-(

The $LIB of Makefile seems normal. I cannot find out what's wrong with it.

INCPATH  = -I/opt/qt/3.2/mkspecs/default -I. -I. -I-I/usr/local/include -I$(QTDIR)/include
LIBS     = $(SUBLIBS) -L-L/usr/local/lib -L$(QTDIR)/lib -L/usr/X11R6/lib -lqt -lGL -lXext -lX11

Do I miss anything??





More information about the kde-cygwin mailing list