[Techtalk] Can't get there from here

Kathryn Hogg kjh at flyballdogs.com
Fri Mar 29 12:21:43 EST 2002


> Are you using rpms or debs? (As opposed to tarballs?) Rpms (and I
> *think* debs) split the contents of the package into foo.rpm and
> foo-devel.rpm.
>
> You need foo to run programs it contains.
> You need foo-devel to compile new stuff which requires foo. They
> contain headers. I don't know what these are, but I know you need
> them for compiling.

I would guess that she has everything on her system because her compile got
past the stage where headers are required and assuming that the qt stuff is
all shared libs, you would need those parts at run time.

BTW, since we know that KDE uses Qt, we can use some the tools at hand to
figure out what may be necessary:

I've never used KDE but I know that alot of the tools start with 'k' and it
probably has a mail client:

# which kmail
/usr/bin/kmail

# ldd /usr/bin/kmail
libkhtml.so.3 => /usr/lib/libkhtml.so.3 (0x40018000)
libkjava.so.1 => /usr/lib/libkjava.so.1 (0x40235000)
libkdeprint.so.0 => /usr/lib/libkdeprint.so.0 (0x40253000)
libkparts.so.1 => /usr/lib/libkparts.so.1 (0x402cc000)
libkfile.so.3 => /usr/lib/libkfile.so.3 (0x402fb000)
libksycoca.so.3 => /usr/lib/libksycoca.so.3 (0x40395000)
libkio.so.3 => /usr/lib/libkio.so.3 (0x4045c000)
libkdesu.so.1 => /usr/lib/libkdesu.so.1 (0x4051d000)
libutil.so.1 => /lib/libutil.so.1 (0x4055a000)
libkssl.so.2 => /usr/lib/libkssl.so.2 (0x4055d000)
libfam.so.0 => /usr/lib/libfam.so.0 (0x40586000)
libkdenetwork.so.1 => /usr/lib/libkdenetwork.so.1 (0x40598000)
libkspell.so.3 => /usr/lib/libkspell.so.3 (0x405f7000)
libmimelib.so.1 => /usr/lib/libmimelib.so.1 (0x40616000)
libkab.so.3 => /usr/lib/libkab.so.3 (0x40642000)
libkdeui.so.3 => /usr/lib/libkdeui.so.3 (0x40673000)
libkdecore.so.3 => /usr/lib/libkdecore.so.3 (0x4088e000)
libdl.so.2 => /lib/libdl.so.2 (0x40a2b000)
libDCOP.so.1 => /usr/lib/libDCOP.so.1 (0x40a2f000)
libqt.so.2 => /usr/lib/qt-2.3.1/lib/libqt.so.2 (0x40a67000)
libpng.so.2 => /usr/lib/libpng.so.2 (0x40f31000)
libz.so.1 => /usr/lib/libz.so.1 (0x40f52000)
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40f60000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x40f7f000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40f8d000)
libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x4106c000)
libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x41075000)
libresolv.so.2 => /lib/libresolv.so.2 (0x4108c000)
libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3 (0x4109e000)
libm.so.6 => /lib/i686/libm.so.6 (0x410e0000)
libc.so.6 => /lib/i686/libc.so.6 (0x41103000)
libXft.so.1 => /usr/X11R6/lib/libXft.so.1 (0x4123f000)
libmng.so.1 => /usr/lib/libmng.so.1 (0x41269000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
libXrender.so.1 => /usr/X11R6/lib/libXrender.so.1 (0x412a9000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x412ae000)

So on my system I would minimally need to add the following:

g++ -o testme testme.C -L/usr/lib/qt-2.3.1/lib -lqt

But I would expect that I very well may need to add other libraries as well
unless gcc is really good about picking up dependent shared libs.

--
Kathryn





More information about the Techtalk mailing list