|
楼主 |
发表于 2005-11-16 21:46:12
|
显示全部楼层
yunfan,这是我查看软件包安装情况时的输出:
[code:1]
$ pkg_info qt3-mt
Information for qt3-mt-3.4p3
Comment:
C++ X11 GUI toolkit
Required by:
kdepim-3.4.2p1
arts-1.4.2
kdenetwork-3.4.2
kdeadmin-3.4.2
kde-i18n-zh_CN-3.4.2p1
kdebase-3.4.2p0
kdelibs-3.4.2p0
Description:
Qt is a toolkit for building a GUI for X in C++.
There are some user documentation files in /usr/local/share/doc/qt3, but
the main documentation is in the qt3-html package,
or on the web (http://www.trolltech.com/qt/).
There is also a qt3-examples package, that contains a tutorial and
simple example programs (source + binaries).
There are database plugins: qt3-mysql and qt3-postgresql.
People who want to use qt3 to compile applications outside the ports tree
should note that qt3's installation conforms to OpenBSD habits, not
TrollTech's recommendations.
Accordingly:
- libs are separated from includes.
- moc is installed as /usr/local/bin/moc3, in order not to conflict
with other qt versions.
- uic is installed as /usr/local/bin/uic3
Generally, it's just a question of invoking
env MOC=moc3 UIC=uic3 configure --with-qt-includes=/usr/local/include/X11/qt3
--with-qt-libraries=/usr/local/lib/qt3
Or to force MOC/UIC in your make/gmake invocation:
make MOC=moc3 UIC=uic3
will override the Makefile contents.
Warning: the qt3 library also appears under /usr/local/lib, but you
*must* make sure your application sees /usr/local/lib/qt3 *first*, because
/usr/local/lib may also contain a later incarnation of Qt, in which case
the linker will pick up the most recent library.
Maintainer: Marc Espie <[email protected]>
[/code:1]
所以我在编译时加上了这些选项:
[code:1]
$ ./configure --prefix=/usr/local --with-qt-includes=/usr/local/include/X11/qt3 --with-qt-libraries=/usr/local/lib/qt3 --enable-mt --enable-thread
[/code:1]
但是仍然无法通过,错误依然是:
[code:1]
checking for Qt... configure: error: Qt (>= Qt 3.0) (library qt-mt) not found. Please check your installation!
For more details about this problem, look at the end of config.log.
Make sure that you have compiled Qt with thread support!
[/code:1] |
|