qt - QtCreator: static library but still asking for DLL -


i'm using qtcreator , got 2 projects, each own pro file.
the viewer normal qt app. other one, let's call utilities, supposed static library used in viewer.

however when compile , run viewer (everything compiles fine), error message telling me utilities.dll not found.

this first part of pro-file utilities:

 qt       -= core gui  target = utilities template = lib config += staticlib warn_on $$(qmakespec) 

shouldn't work way?

why compiling utilities.a file fine asking me dll @ runtime? it's supposed static library :(
since did not specify needed libraries in utilities.pro, apparently did not link you'd expect static library.

my platform w7-x64, latest qt sdk , mingw 4.4 bundled it. hope can :/

thanks!

the config += staticlib request your target library static lib not entire dependency chain ... pretty sure .a lib require mingw dlls run ...

if want reduce dependencies try msvc tool chain (qt provide pre-compiled package that) end 1 or 2 mandatory dll dependencies. or can link again static mingw sdk (you have build your-self ...).


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -