Taglib Library
-
Hi,
One other thing that you can try is to link directly to the static .a library. Use the full path to that file using $$PWD.
-
@lucas_1603
renametaglib.dll.a
totaglib.a
Also read this
-
As already suggested, try with
LIBS += -l$$PWD/myTagLib/libtag.dll.a
-
@raven-worx
After rename, I got these:
And in .pro file, I wrote:
INCLUDEPATH += $$PWD/myTaglib DEPENDPATH += $$PWD/myTaglib LIBS += -L$$PWD/myTaglib -ltag
But I still got some errors:
-
@lucas_1603 said in Taglib Library:
But I still got some errors:
your problem is not that it can't find the lib but that it finds it already and says it is incompatible.
So you need to change the compiler in either of your 2 compilations. -
@sgaist
I tried it out but it still didn't work, here is what I got:
I don't know why libtag.dll.a was in the same folder as my project (Drive E) but it said "cannot find..." -
@raven-worx
I built taglib with MinGW and I also did that for my project.
I built taglib by this code block (followed by this tutorial):cd $TAGLIB mkdir build cd build cmake -G "MinGW Makefiles" -D CMAKE_CXX_COMPILER=g++.exe -D CMAKE_MAKE_PROGRAM=mingw32-make.exe -DBUILD_SHARED_LIBS=ON -DENABLE_STATIC_RUNTIME=OFF ..
And here is the compiler of my project:
-
@lucas_1603 Come on, your lib is called libtag.a not libtag.dll.a, so please change it to
LIBS += -l$$PWD/myTagLib/libtag.a
-
@jsulm
As @raven-worx suggested, I renamedlibtag.dll.a
tolibtag.a
and then I tried withLIBS += -l$$PWD/myTaglib/libtag.a
as you said but it still didn't work, here is what I got:
Even though I hadlibtag.a
in mymyTaglib
folder but the linker said "cannot find..."