[Qt-interest] Problem with linking external libraries (Win32)

Markus Straub markus.straub.at at gmail.com
Thu Jan 14 14:58:33 CET 2010


Dear list,

I recently bumped into a problem when trying to compile and run a 
project on Win32 which was developed on Linux and fail to solve it.

I seem to be unable to use the DLL provided by InterSense (isense.dll) 
under Win32, whereas I have no problems with libisense.so under Linux.

In both OSes I copied the shared library to the common path, 
/usr/local/lib and c:\windows\system32 respectively. Compiling and 
linking the same code within QtCreator also works fine on both, even 
without the LIBS directive in the .pro file
(win32:LIBS += c:\windows\system32\isense.dll). All required headers are 
included as well.

The problem arises when running the program: on Windows I only get the 
message "Could not load isense", on Linux it just works.


Now I am wondering what I am missing, why is my program not able to find 
the dll at runtime (if that is what the error message means).
A small testprogram compiled with Visual Studio 6 could successfully use 
isense.dll, so I guess the problem is caused by my project configuration.


Any hints would be appreciated.

Best regards,
Markus Straub



More information about the Qt-interest-old mailing list