pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

qt4 and libSM.so.6.0



Hi,

I noticed recently (I don't know how old this issue is but it didn't
happen with qt3 when I used that previously) that when I build a program
with qt4 locally, it won't run because libSM.so.6.0 is not found

eg with the source archive

    http://homepages.rya-online.net/plunky/btpin-qt-1.3.tar.gz

(QTDIR=/usr/pkg/qt4)
% qmake
% make
g % ./bpin-qt Shared object
"libSM.so.6" not found

whereas if I build btpin-qt inside pkgsrc context (eg sysutils/btpin-qt),
the binary does find the library fine.

is this a problem with qt4 installation? (I have the latest pkgrevisions)

looking further, the link phase in the 'local' build uses:

libtool --silent --mode=link c++  -L/usr/pkg/qt4/lib -Wl,-R/usr/pkg/qt4/lib -o 
btpin-qt main.lo  btclient.lo  pindialog.lo
moc_btclient.lo  moc_pindialog.lo    -L/usr/pkg/lib -L/usr/pkg/qt4/lib 
-lbluetooth -lQtGui -lQtCore -pthread

whereas the 'pkgsrc' build uses:

libtool --silent --mode=link c++ -L/usr/pkg/lib -L/usr/pkg/qt4/lib 
-Wl,-R/usr/pkg/qt4/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib
-L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib -L/usr/pkg/qt4/lib -Wl,-R/usr/pkg/qt4/lib 
-o btpin-qt main.lo  btclient.lo  pindialog.lo
moc_btclient.lo  moc_pindialog.lo    -L/usr/pkg/lib -L/usr/pkg/qt4/lib 
-lbluetooth -lQtGui -lQtCore -pthread

any clues on how I should induce qmake to add

        "-L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib"

to the generated Makefile?

I've tried adding various items to the CONFIG line in my .pro file but no
luck.. should it be automatic? the dependency is indirect, my app does not
use that library..

iain


Home | Main Index | Thread Index | Old Index