c++ - Qt creator cannot find dependent library when running the app -
i have qt application project depends on qt library project. have following in application pro file include library.
win32:config(release, debug|release): libs += -l$$pwd/../../commonlibs/build/debug/mylib/release/ -lmylib else:win32:config(debug, debug|release): libs += -l$$pwd/../../commonlibs/build/debug/mylib/debug/ -lmylib else:unix: libs += -l$$pwd/../../commonlibs/build/debug/mylib/ -lmylib includepath += $$pwd/../../commonlibs/mylib dependpath += $$pwd/../../commonlibs/mylib
until today, application compiled , run, debug application through qtcreator. suddenly, though can compile application, cannot run through qtcreator. when try run it, qtcreator reports application exited if put breakpoint in main()
, doesn't hit.
if manually copy dependent library dll file directory application exe exists, can run through qtcreator.
i checked build environment project setting in qtcreator , lib path exists in path
variable.
i cannot remember significant action did have created issue.
can give me solution?
the issue library library mentioned in question depends on. have newly created library , made mentioned library depend on it.
to able run application, had add dependency of new library application .pro
file. then, worked fine.
Comments
Post a Comment