Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, June 2007
Linking to qtiff plugin


Message 1 in thread

Hello,
I'm using Qt 4.3.0 and am having trouble getting the plugin to
statically link with the app. I have qt configured with -static, and
the .a file for qtiff exists. I've added Q_IMPORT_PLUGIN(qtiff) to the
top of my app and added qtiff to my PLUGIN qmake var, however, when I
try to link, I get:
g++  -o images main.o
-L/usr/local/Trolltech/Qt-4.3.0-real-apbuild/lib -lQtGui
-L/usr/local/Trolltech/Qt-4.3.0-real-apbuild/lib -L/usr/X11R6/lib
-lpng -lSM -lICE -pthread -pthread -lXrender -lXrandr -lXfixes
-lXcursor -lXinerama -lfreetype -lfontconfig -lXext -lX11 -lQtCore -lz
-lm -pthread -lgthread-2.0 -lglib-2.0 -lrt -ldl -lqtiff -lpthread
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../i486-slackware-linux/bin/ld:
cannot find -lqtiff

Basically, I'm not getting a -L entry for plugins/imageformats. I can
obviously work around this by adding the absolute path to the .a to
LIBS, but that seems like a hack to me. Any ideas what I'm doing
wrong?

Thanks!
- Taj

-- 
 [ signature omitted ]