c++ - Compiling static TagLib 1.6.3 libraries for Windows -
i having super hard time compiling , using taglib 1.6.3 in qt project. i've tried can think of. taglib claims supported through cmake i'm not having luck. furthermore, i'm confused kinds of files need qt libs!
i've built *.a files, *.lib, , *.dll. understand far... believe since i'm working in windows *.lib want. no matter do, end "undefined references" taglib functions try use when try compile qt project. have tried mingw32, msys, visual studio 2008, , cross-compiling windows on linux. turning nothing.
what makes less sense me if compile same taglib source qt on mac (g++ think?) works fine! somewhere in windows compilation procedures have going wrong. have been smacking face on desk 30 (on , off) hours trying figure out.
since qt uses mingw must compile taglib same compiler?
if compile *.lib's visual studio not compatible?
are *.a libraries usable in windows? (assuming mingw)
i'm still trying handle on c++ stuff, after reading countless forum threads , other questions i'm still coming short. here have been working in cmake currently...
cmake -g "mingw makefiles" -denable_static=on -dhave_zlib=0 -dwith_mp4=1 -dmake_taglib_lib=1 cmake --build ./
this generates single *.a file of ~2mb in size. working library on mac ~3mb, , *.lib visual studio ~4mb in release mode. please save me c++ cross platform command line madness because @ wit's end. pay compiling me %!$#&ing libraries. thanks.
since mac works you, i'm talking win32.
ok, taglib.pro , excerpt of project.pro: https://gist.github.com/449ea81ce92f52399f41. check them out. taglib may bit outdated, take care, files may have missing there. take care of relative paths. relative .pro file.
i ran cmake .
inside taglib directory. should result in config.h
, taglib_config.h
you definitly need libtaglib.a
when use qtcreator , mingw-gcc. *.lib msvc specific!
Comments
Post a Comment