Re: Compiling kpovmodeler-0.2 on Mandrake 8.2, KDE 3.0.3

Andreas Zehender <[email protected]>
Newsgroups gmane.comp.kde.devel.kpovmodeler
Message-ID <[email protected]>
Hi!

On Saturday 07 September 2002 14:56, Harri Pasanen wrote:
[...]
> So I removed the kde2.2.2 and qt2 development packages, did  'make
> distclean', and started from beginning.
>
> Now pretty much everything seems to compile, but at linktime I'm getting
>
> /usr//bin/ld: cannot find -lqt
> collect2: ld returned 1 exit status
>
> To my knowledge qt3 does not have libqt, it has libqt-mt
>
> I noticed that kpovmodeler/kdoc.rules does have '-lqt', so I removed
> that and started again from the beginning.  (Although the comment seems
> to indicate that file is used only during documentation generation).

Yes, that's only to generate the API documentation.

> Unfortunately, it still complains about the missing -lqt.  I grepped the
> makefiles, but could not figure out where that comes from - everything
> in makefiles seems to refer to -lqt-mt.
>
> I suspect it is some remaining relic of kde2.2.2 that spits out -lqt at
> make time.

I have not really an idea. The Makefile should contain a line
LIB_QT = -lqt-mt  $(LIBPNG) -lXext $(LIB_X11) $(LIBSM) -lpthread

And make sure that a libqt-mt.so.3 is in the library path. My qt is in 
/usr/lib/qt3 and therefore I need a symlink 
libqt-mt.so.3 -> qt3/lib/libqt-mt.so.3 in /usr/lib.

I still have a libqt.so that points to a qt2 version and have no problems.

Andreas

-- 
--------------------------------------------------
 Andreas Zehender, Dipl. Ing. (BA)
 Student, 10th semester computer science
 http://www.azweb.de
 [email protected] | [email protected]      
--------------------------------------------------


List archive and information: http://mail.kde.org/mailman/listinfo/kpovmodeler-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.