Qt-interest Archive, April 2007
Using static libs on Mac OSX - binary still looks for non-existant dylib.
Message 1 in thread
HI all. I'm using 4.2.3 Commercial. I started off using Frameworks
(installed from the binary distribution), but have need to link
statically against Qt, so I downloaded the source code and compiled/
installed from there.
I initially left off the -static flag when compiling and installing,
so I had to erase the "Trolltech" directory and try again. Now I
have the Frameworks from the binary dist. installed alongside the
static (.a) libs in /usr/local/Trolltech/Qt-4.2.3/lib directory.
Despite building my project using the appropriate qmake (in the
Trolltech/Qt-4.2.3/bin directory), when I run otool -L against the
executable, I get the folllowing:
/usr/local/Trolltech/Qt-4.2.3/lib/libQtGui.4.dylib (compatibility
version 4.2.0, current version 4.2.3)
/usr/local/Trolltech/Qt-4.2.3/lib/libQtCore.4.dylib (compatibility
version 4.2.0, current version 4.2.3)
Both files do not exist, only their static versions live in that
directory:
/usr/local/Trolltech/Qt-4.2.3/lib/libQtGui.a
/usr/local/Trolltech/Qt-4.2.3/lib/libQtCore.a
I see nothing obvious in the relevant qmake.conf. What gives?!
Thanks,
Bruno
--
[ signature omitted ]