including Qt libs

W. Tasin tasin at e-technik.fh-muenchen.de
Fri Jun 16 13:06:21 BST 2000


OS wrote:
> 
> ...and yet ANOTHER "cannot find Qt library" problem !!!!!!!!
> 
> This is getting tedious (and I don't mean me going on about it !)
> 
> On Thu, 15 Jun 2000, you wrote:
> > I have instaled kdevelop 1.2, but when I try to create a new project that
> > requires tthe Qt libraries (eg: a normal Qt project), I get the following
> > message:
> >
> > configure: error: Qt (>= 1.42 and < 2.0) (libraries) not found. Please
> > check your installation!

What does the config.log in your project´s directory say?
There you should find the command which causes configure to break.
Is it a missing -L flag??

Looking at the acinclude.m4.in of a qt-project created by KDevelop
shows:
--------------------
qt_incdirs="$QTINC /usr/lib/qt/include /usr/local/qt/include
/usr/include/qt /us
r/include /usr/lib/qt2/include /usr/X11R6/include/X11/qt
/usr/X11R6/include/qt $
x_includes"
test -n "$QTDIR" && qt_incdirs="$QTDIR/include $QTDIR $qt_incdirs"
qt_incdirs="$ac_qt_includes $qt_incdirs"

AC_FIND_FILE($kde_qt_header, $qt_incdirs, qt_incdir)
ac_qt_includes="$qt_incdir"

qt_libdirs="$QTLIB /usr/lib/qt/lib /usr/X11R6/lib /usr/lib
/usr/local/qt/lib /us
r/lib/qt /usr/lib/qt2/lib $x_libraries"
test -n "$QTDIR" && qt_libdirs="$QTDIR/lib $QTDIR $qt_libdirs"
if test ! "$ac_qt_libraries" = "NO"; then

test=NONE
qt_libdir=NONE
for dir in $qt_libdirs; do
  try="ls -1 $dir/libqt.*"
  if test -n "`$try 2> /dev/null`"; then qt_libdir=$dir; break; else
echo "tried
 $dir" >&AC_FD_CC ; fi
done

ac_qt_libraries="$qt_libdir"
--------------------

So the libraries should be searched also inside /usr/local/qt/lib
(without any $QTDIR)....
but if you have qt-2-lib in either
$QTDIR/lib or $QTDIR or $QTLIB or /usr/lib/qt/lib or /usr/X11R6/lib or
/usr/lib 
so this would be found first.

If this wouldn´t be the problem I need further informations, like
config.log. 

> >
> > I have the Qt-lib qt-1.44 installed in /usr/local/qt, but what is the
> > command to inform kdevelop where he can find the libs?!
> >
> > kdk is in /usr/local/kdk-1.2
> > kdevelop is in /usr/local/kdk-1.2/kdevelop

Hmmm what do you mean with... kdk is in /usr/local/kdk-1.2??

If you install the applications of KDK these are installed into
kde_bindir (e.g. /usr/kde/bin) directory, all project-templates of
KDevelop are in a application´s kde_datadir subdir (e.g.
/usr/kde/share/apps/kdevelop/templates)?

> > And I'm using Debian 2.1
> >
> > Thanks,
> >
> >       Mario Lemos

Ciao

Walter
--
  The KDevelop project: tasin at kdevelop.de - http://www.kdevelop.org
--
oohhh sveglia.... il mondo e' ammalato, ma x colpa di chi.........
(Zucchero)
:-------W. Tasin, FB
04,FHM-------------------PGP-KeyID:0x7961A645----------:
<Key-Fingerprint: 1610 835F 0080 32F4 6140  6CF7 A7D0 44CD 7961A645>
<http://wwwkeys.pgp.net:11371/pks/lookup?op=index&search=0x7961A645&fingerprint=on>




More information about the KDevelop mailing list