[bt-devel] FreeBSD compile failure

Martin Gruner bt-devel@crosswire.org
Wed, 20 Mar 2002 20:31:02 +0100


Alright. I think I know.
Do the following:

cd /usr/X11R6/lib
ln -s libqt2.so libq.so

-lqt needs a libqt.* insteat of a libqt2.* file. A symlink should be enough.

Evil KDE autotools macro package! ;)

Martin


> I tried this:
>
> ./configure --with-qt-libraries=/usr/X11R6/lib
> --with-qt-includes=/usr/X11R6/include/qt2
>
> with the same results:
>
> "configure: error: Qt (>= Qt 2.2.2) (libraries) not found. Please check
> your installation!"
>
> Here are the applicable contents of /usr/X11R6/lib:
>
> lrwxr-xr-x   1 root  wheel       29 Mar 19 23:36 libqt2-mt.so ->
> /usr/X11R6/lib/libqt2-mt.so.4
> -r-xr-xr-x   1 root  wheel  4940712 Mar 19 23:36 libqt2-mt.so.4
> lrwxr-xr-x   1 root  wheel       26 Mar 19 23:36 libqt2.so ->
> /usr/X11R6/lib/libqt2.so.4
> -r-xr-xr-x   1 root  wheel  4924744 Mar 19 23:36 libqt2.so.4
> lrwxr-xr-x   1 root  wheel       27 Mar 19 23:36 libqtgl.so ->
> /usr/X11R6/lib/libqtgl.so.4
> -r-xr-xr-x   1 root  wheel  4955888 Mar 19 23:36 libqtgl.so.4
> lrwxr-xr-x   1 root  wheel       28 Mar 19 23:36 libqutil.so ->
> /usr/X11R6/lib/libqutil.so.1
> -r-xr-xr-x   1 root  wheel    25008 Mar 19 23:36 libqutil.so.1
>
> Using the FreeBSD ports collection, I have confirmed that qt version 2.3.1
> is installed.
>
> Martin Gruner wrote:
> > Hello Bob,
> >
> > I am no expert. But i guess your system has qt2 installed in
> > /usr/X11R6/qt2, configure finds the headers correctly.
> > Try
> > configure --with-qt-dir=/usr/lib/X11R6/qt2
> >
> > There is obviously a but in the configure script, because it does not
> > check for this dir, instead it checks for /usr/lib/X11R6/lib twice.
> > You can also try --with-qt-libs.
> >
> > hth, blessings,
> >
> > Marin
> >
> > > I am attempting to compile BibleTime under FreeBSD 4.5.  I have tried
> > > BibleTime 1.03 and 1.1beta1 with the exact same results.  Prior to
> > > attempting the compile, I installed sword 1.5.2 and kdelibs 2.2.2,
> > > which installed qt 2.3.1 as a dependency, so I was hopefully that a
> > > proper foundation had been laid.
> > >
> > > The failure is occurring when I run the .configure script.  Here is
> > > what I see:
> > >
> > > configure:7913: checking for Qt
> > > configure: 7973: /usr/lib/qt2/include/qstyle.h
> > > configure: 7973: /usr/lib/qt2/qstyle.h
> > > configure: 7973: /usr/lib/qt/include/qstyle.h
> > > configure: 7973: /usr/lib/qt/qstyle.h
> > > configure: 7973: /usr/local/qt/include/qstyle.h
> > > configure: 7973: /usr/include/qt/qstyle.h
> > > configure: 7973: /usr/include/qstyle.h
> > > configure: 7973: /usr/X11R6/include/X11/qt/qstyle.h
> > > configure: 7973: /usr/X11R6/include/qt/qstyle.h
> > > configure: 7973: /usr/X11R6/include/qt2/qstyle.h
> > > taking that
> > > tried NO
> > > tried /usr/lib/qt2/lib
> > > tried /usr/lib/qt2
> > > tried /usr/lib/qt/lib
> > > tried /usr/lib/qt
> > > tried /usr/X11R6/lib
> > > tried /usr/lib
> > > tried /usr/local/qt/lib
> > > tried /usr/X11R6/lib
> > > configure:8065: rm -rf SunWS_cache; g++ -o conftest -O2 -fno-exceptions
> > > -fno-che
> > > ck-new -I/usr/X11R6/include/qt2 -I/usr/X11R6/include   -LNONE
> > > -L/usr/X11R6/lib
> > > conftest.cc  -lqt    -lXext -lX11 -lSM -lICE  1>&5
> > > /usr/libexec/elf/ld: cannot find -lqt
> > > configure:8068: $? = 1
> > >
> > > The qt libraries are installed in /usr/X11R6/lib
> > >
> > > Any help would be greatly appreciated!