c++ - Qt Creator program crash with use of taglib -


i have many problems taglib, qt , msvc2012

first, compiled zlib cmake-gui , msvc2012 then, compiled taglib cmake-gui , msvc2012 after that, opened .sln file in visual studio 2012, built taglib. got .dll, .lib , .exp file. good.

then made following folder-structure in program-folder: program name "mym"

./mym/taglib folders inside (ape, asf, toolkit etc.) ./mym here have tag.dll, tag.lib , "config.h" , "taglib_config.h".

then, in .pro file, added following lines:

win32: libs += -l$$pwd/ -ltag  includepath += $$pwd/taglib dependpath += $$pwd/taglib 

so, built program , says

"tstring.h": no such file or directory 

so searched in google error , found out can add every folder includepath. did this

includepath += $$pwd/taglib/ape includepath += $$pwd/taglib/asf includepath += ... 

...and on

so, build again -> good! clicked "run"-button , program crashes. don't know why , yeah. please me

thank reading :)

just resolved same issue after struggling little.

the taglib requires zlib. nothing said in documentation except @ cmake stage. if didn't linked here it's quite hard guess cause.

link zlib in .pro , won't crash anymore.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -