I'm trying to build a Qt application on Mac that statically links third-party libraries (i.e. boost, libjpeg).
I'm getting this linker warning for each library:
...
ld: warning: in ../../extern/libexif-0.6.19/libexif/.libs/libexif.a, file was built for unsupported file format which is not the architecture being linked (i386)
Undefined symbols:
"_exif_get_long", referenced from:
ExifTagParser:arseEntry(_ExifEntry*, ExifByteOrder) in sbexifinfo.o
...
So even though it's only a warning the linker refuses to use the library and ends up with undefined symbols.
I've downloaded and compiled the libraries with the default configuration on my Macbook Pro running Snow Leopard. Here are the relevant bits from my .pro file:
...
TEMPLATE = app
CONFIG += x86 debug_and_release qt warn_on thread
QT += network xml
LIBS += ../../extern/libexif-0.6.19/libexif/.libs/libexif.a
...
This happens with all static libraries I try to link. Anybody have an idea how to fix that?
Thanks much!
Holger
Bookmarks