Solved Is it possible to use 3rd party libraries in Qt applications without install the library to the local machine?
-
I've been developing a Qt program which uses poppler library. I installed the library to Linux and MacOS systems easily, but couldn't handle it for Windows. The installation instructions were old and complex. To deploy program, I had to remove the feature that related with poppler library from Windows release. I wonder is it possible to use the library without install it to Windows? Like copying the library folder into the project folder and tweak the .pro file to link it. I tried this but I got an error like "undefined reference to __imp__ZN....".
-
yeah, that will work if the compiler is compatible.
After all, the Qt libraries you use are also build on another system then yours...
Regards
-
Hi,
To link to a library on Windows you need the corresponding .lib file if using MSVC.
What exactly do you have currently ?
-
Hi, I downloaded the library from its source: https://poppler.freedesktop.org/
But it has no .lib file inside it. It consists of some .cpp, .h and .cc files. I'm using MinGW right now, but I can move to MSVC if necessary.
-
@atreidex if you compile the lib yourself, use the same compiler as you use for your app. Otherwise they might not be compatible.
Regards
-
@aha_1980 No, I couldn't compile it. If a I search for a pre-compiled poppler library (but not compiled in my machine), can I use it?
-
yeah, that will work if the compiler is compatible.
After all, the Qt libraries you use are also build on another system then yours...
Regards