Solved Libtag on windows, no rule to make target ?
-
I have put release like it is said here : https://github.com/taglib/taglib/blob/master/INSTALL
And let also
As said in the first link line 143.
then i have make and install
finally put the include there
And the amazing taglib.a created with cmake here :
Then I have created an external static library with the .a file in qt-creator. I have now this in the .pro file :
win32: LIBS += -L$$PWD/../lib/ -ltag INCLUDEPATH += $$PWD/../include DEPENDPATH += $$PWD/../include win32:!win32-g++: PRE_TARGETDEPS += $$PWD/../lib/tag.lib else:win32-g++: PRE_TARGETDEPS += $$PWD/../lib/libtag.a
And with these includes
#include "taglib/tag.h" #include "taglib/fileref.h" #include "taglib/tstring.h" #include <tag.h> #include <stdlib.h> #include <QFileInfo>
I got this release Issue :
15:25:53: Running steps for project ihm2_client... 15:25:53: Configuration unchanged, skipping qmake step. 15:25:53: Starting: "D:\Qt\Tools\mingw530_32\bin\mingw32-make.exe" D:/Qt/Tools/mingw530_32/bin/mingw32-make -f Makefile.Release mingw32-make[1]: Entering directory 'C:/Users/simon/Documents/git_ihm5/build-ihm2_client-Desktop_Qt_5_8_0_MinGW_32bit-Release' g++ -c -pipe -fno-keep-inline-dllexport -O2 -std=gnu++11 -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I..\Client -I. -I..\include -ID:\Qt\5.8\mingw53_32\include -ID:\Qt\5.8\mingw53_32\include\QtWidgets -ID:\Qt\5.8\mingw53_32\include\QtGui -ID:\Qt\5.8\mingw53_32\include\QtANGLE -ID:\Qt\5.8\mingw53_32\include\QtNetwork -ID:\Qt\5.8\mingw53_32\include\QtCore -Irelease -I. -ID:\Qt\5.8\mingw53_32\mkspecs\win32-g++ -o release\mainwindow.o ..\Client\mainwindow.cpp g++ -Wl,-s -Wl,-subsystem,windows -mthreads -o release\ihm2.exe object_script.ihm2.Release -lmingw32 -LD:\Qt\5.8\mingw53_32\lib D:\Qt\5.8\mingw53_32\lib\libqtmain.a -LC:\utils\my_sql\my_sql\lib -LC:\utils\postgresql\pgsql\lib -lshell32 -LC:\Users\simon\Documents\git_ihm5\lib -ltag D:\Qt\5.8\mingw53_32\lib\libQt5Widgets.a D:\Qt\5.8\mingw53_32\lib\libQt5Gui.a D:\Qt\5.8\mingw53_32\lib\libQt5Network.a D:\Qt\5.8\mingw53_32\lib\libQt5Core.a ./release\mainwindow.o:mainwindow.cpp:(.text+0xc15): undefined reference to `_imp___ZN6TagLib8FileNameC1EPKc' ./release\mainwindow.o:mainwindow.cpp:(.text+0xc3a): undefined reference to `_imp___ZN6TagLib7FileRefC1ENS_8FileNameEbNS_15AudioProperties9ReadStyleE' ./release\mainwindow.o:mainwindow.cpp:(.text+0xc7c): undefined reference to `_imp___ZNK6TagLib7FileRef6isNullEv' ./release\mainwindow.o:mainwindow.cpp:(.text+0xc90): undefined reference to `_imp___ZN6TagLib7FileRefD1Ev' ./release\mainwindow.o:mainwindow.cpp:(.text+0xeb8): undefined reference to `_imp___ZNK6TagLib7FileRef3tagEv' ./release\mainwindow.o:mainwindow.cpp:(.text+0xedd): undefined reference to `_imp___ZNK6TagLib6String9toCStringEb' ./release\mainwindow.o:mainwindow.cpp:(.text+0xf28): undefined reference to `_imp___ZN6TagLib6StringD1Ev' ./release\mainwindow.o:mainwindow.cpp:(.text+0x1292): undefined reference to `_imp___ZN6TagLib7FileRefD1Ev' ./release\mainwindow.o:mainwindow.cpp:(.text+0x12e3): undefined reference to `_imp___ZN6TagLib6StringD1Ev' collect2.exe: error: ld returned 1 exit status mingw32-make[1]: *** [release\ihm2.exe] Error 1
Why is this always not working ? I have done everything said.. :o
-
Check whether you have built it in 64bit.
-
I think this taglib.a is 32 bits
C:\Users\simon\Documents\git_ihm5\lib>objdump -a libtag.a In archive libtag.a: mpegfile.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 20133 Apr 23 15:15 2017 mpegfile.cpp.obj mpegproperties.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 9696 Apr 23 15:15 2017 mpegproperties.cpp.obj mpegheader.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 12031 Apr 23 15:15 2017 mpegheader.cpp.obj xingheader.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 5590 Apr 23 15:15 2017 xingheader.cpp.obj id3v1tag.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 15918 Apr 23 15:15 2017 id3v1tag.cpp.obj id3v1genres.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 17739 Apr 23 15:15 2017 id3v1genres.cpp.obj id3v2framefactory.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 27564 Apr 23 15:15 2017 id3v2framefactory.cpp.obj id3v2synchdata.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 3414 Apr 23 15:15 2017 id3v2synchdata.cpp.obj id3v2tag.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 77990 Apr 23 15:15 2017 id3v2tag.cpp.obj id3v2header.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 8617 Apr 23 15:15 2017 id3v2header.cpp.obj id3v2frame.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 53161 Apr 23 15:15 2017 id3v2frame.cpp.obj id3v2footer.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 3158 Apr 23 15:15 2017 id3v2footer.cpp.obj id3v2extendedheader.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 3848 Apr 23 15:15 2017 id3v2extendedheader.cpp.obj attachedpictureframe.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 17518 Apr 23 15:15 2017 attachedpictureframe.cpp.obj commentsframe.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 17348 Apr 23 15:15 2017 commentsframe.cpp.obj eventtimingcodesframe.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 11782 Apr 23 15:15 2017 eventtimingcodesframe.cpp.obj generalencapsulatedobjectframe.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 12799 Apr 23 15:15 2017 generalencapsulatedobjectframe.cpp.obj ownershipframe.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 11131 Apr 23 15:15 2017 ownershipframe.cpp.obj popularimeterframe.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 9427 Apr 23 15:15 2017 popularimeterframe.cpp.obj privateframe.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 8593 Apr 23 15:15 2017 privateframe.cpp.obj relativevolumeframe.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 31962 Apr 23 15:15 2017 relativevolumeframe.cpp.obj synchronizedlyricsframe.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 16935 Apr 23 15:15 2017 synchronizedlyricsframe.cpp.obj textidentificationframe.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 52404 Apr 23 15:15 2017 textidentificationframe.cpp.obj uniquefileidentifierframe.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 14383 Apr 23 15:15 2017 uniquefileidentifierframe.cpp.obj unknownframe.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 5597 Apr 23 15:15 2017 unknownframe.cpp.obj unsynchronizedlyricsframe.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 17891 Apr 23 15:15 2017 unsynchronizedlyricsframe.cpp.obj urllinkframe.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 22454 Apr 23 15:15 2017 urllinkframe.cpp.obj chapterframe.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 37465 Apr 23 15:15 2017 chapterframe.cpp.obj tableofcontentsframe.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 38450 Apr 23 15:15 2017 tableofcontentsframe.cpp.obj podcastframe.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 5802 Apr 23 15:15 2017 podcastframe.cpp.obj oggfile.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 27529 Apr 23 15:15 2017 oggfile.cpp.obj oggpage.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 18766 Apr 23 15:15 2017 oggpage.cpp.obj oggpageheader.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 11750 Apr 23 15:15 2017 oggpageheader.cpp.obj xiphcomment.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 60329 Apr 23 15:15 2017 xiphcomment.cpp.obj vorbisfile.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 8287 Apr 23 15:15 2017 vorbisfile.cpp.obj vorbisproperties.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 7781 Apr 23 15:15 2017 vorbisproperties.cpp.obj oggflacfile.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 21736 Apr 23 15:16 2017 oggflacfile.cpp.obj mpcfile.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 13178 Apr 23 15:16 2017 mpcfile.cpp.obj mpcproperties.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 11763 Apr 23 15:16 2017 mpcproperties.cpp.obj apetag.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 55268 Apr 23 15:16 2017 apetag.cpp.obj apefooter.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 7261 Apr 23 15:16 2017 apefooter.cpp.obj apeitem.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 15301 Apr 23 15:16 2017 apeitem.cpp.obj apefile.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 12340 Apr 23 15:16 2017 apefile.cpp.obj apeproperties.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 10278 Apr 23 15:16 2017 apeproperties.cpp.obj tstring.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 43090 Apr 23 15:16 2017 tstring.cpp.obj tstringlist.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 11215 Apr 23 15:16 2017 tstringlist.cpp.obj tbytevector.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 40368 Apr 23 15:16 2017 tbytevector.cpp.obj tbytevectorlist.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 9669 Apr 23 15:16 2017 tbytevectorlist.cpp.obj tbytevectorstream.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 8259 Apr 23 15:16 2017 tbytevectorstream.cpp.obj tiostream.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 7138 Apr 23 15:16 2017 tiostream.cpp.obj tfile.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 26137 Apr 23 15:16 2017 tfile.cpp.obj tfilestream.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 14629 Apr 23 15:16 2017 tfilestream.cpp.obj tdebug.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 1431 Apr 23 15:16 2017 tdebug.cpp.obj tpropertymap.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 31299 Apr 23 15:16 2017 tpropertymap.cpp.obj trefcounter.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 2228 Apr 23 15:16 2017 trefcounter.cpp.obj tdebuglistener.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 5022 Apr 23 15:16 2017 tdebuglistener.cpp.obj tzlib.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 1522 Apr 23 15:16 2017 tzlib.cpp.obj flacfile.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 28418 Apr 23 15:16 2017 flacfile.cpp.obj flacpicture.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 11030 Apr 23 15:16 2017 flacpicture.cpp.obj flacproperties.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 8012 Apr 23 15:16 2017 flacproperties.cpp.obj flacmetadatablock.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 2548 Apr 23 15:16 2017 flacmetadatablock.cpp.obj flacunknownmetadatablock.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 5050 Apr 23 15:16 2017 flacunknownmetadatablock.cpp.obj wavpackfile.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 11733 Apr 23 15:16 2017 wavpackfile.cpp.obj wavpackproperties.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 8744 Apr 23 15:16 2017 wavpackproperties.cpp.obj speexfile.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 7957 Apr 23 15:16 2017 speexfile.cpp.obj speexproperties.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 7082 Apr 23 15:16 2017 speexproperties.cpp.obj trueaudiofile.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 14030 Apr 23 15:16 2017 trueaudiofile.cpp.obj trueaudioproperties.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 7662 Apr 23 15:16 2017 trueaudioproperties.cpp.obj rifffile.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 18090 Apr 23 15:16 2017 rifffile.cpp.obj aifffile.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 9628 Apr 23 15:16 2017 aifffile.cpp.obj aiffproperties.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 10185 Apr 23 15:16 2017 aiffproperties.cpp.obj wavfile.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 15311 Apr 23 15:16 2017 wavfile.cpp.obj wavproperties.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 9851 Apr 23 15:16 2017 wavproperties.cpp.obj infotag.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 30085 Apr 23 15:16 2017 infotag.cpp.obj asftag.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 63612 Apr 23 15:16 2017 asftag.cpp.obj asffile.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 75089 Apr 23 15:16 2017 asffile.cpp.obj asfproperties.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 7326 Apr 23 15:16 2017 asfproperties.cpp.obj asfattribute.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 23261 Apr 23 15:16 2017 asfattribute.cpp.obj asfpicture.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 12042 Apr 23 15:16 2017 asfpicture.cpp.obj mp4file.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 8643 Apr 23 15:16 2017 mp4file.cpp.obj mp4atom.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 12076 Apr 23 15:16 2017 mp4atom.cpp.obj mp4tag.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 120781 Apr 23 15:16 2017 mp4tag.cpp.obj mp4item.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 14888 Apr 23 15:16 2017 mp4item.cpp.obj mp4properties.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 12532 Apr 23 15:16 2017 mp4properties.cpp.obj mp4coverart.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 6084 Apr 23 15:16 2017 mp4coverart.cpp.obj modfilebase.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 8191 Apr 23 15:16 2017 modfilebase.cpp.obj modfile.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 13632 Apr 23 15:16 2017 modfile.cpp.obj modtag.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 10892 Apr 23 15:16 2017 modtag.cpp.obj modproperties.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 4235 Apr 23 15:16 2017 modproperties.cpp.obj s3mfile.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 13568 Apr 23 15:16 2017 s3mfile.cpp.obj s3mproperties.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 6214 Apr 23 15:16 2017 s3mproperties.cpp.obj itfile.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 17647 Apr 23 15:16 2017 itfile.cpp.obj itproperties.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 6949 Apr 23 15:16 2017 itproperties.cpp.obj xmfile.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 37586 Apr 23 15:16 2017 xmfile.cpp.obj xmproperties.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 6352 Apr 23 15:16 2017 xmproperties.cpp.obj opusfile.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 8789 Apr 23 15:16 2017 opusfile.cpp.obj opusproperties.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 6685 Apr 23 15:16 2017 opusproperties.cpp.obj tag.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 14059 Apr 23 15:16 2017 tag.cpp.obj tagunion.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 21335 Apr 23 15:16 2017 tagunion.cpp.obj fileref.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 32283 Apr 23 15:16 2017 fileref.cpp.obj audioproperties.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 13643 Apr 23 15:16 2017 audioproperties.cpp.obj tagutils.cpp.obj: file format pe-i386 rw-rw-rw- 0/0 3345 Apr 23 15:16 2017 tagutils.cpp.obj
But this is ok no ? Because I have mingGW 32bit2 ?
-
That's good indeed.
Just to be sure, you used the same MinGW to build taglib ?
-
I have this one on the compilers
And the cmake
And I used D:/Qt/Tools/mingw530_32/bin/g++.exe
cf :
So... Yes I think this is probably the same ?
-
The upload feature is currently broken.
You can find here how to share images.
-
@SGaist said in Libtag on windows, no rule to make target ?:
The upload feature is currently broken.
You can find here how to share images.
??? But we can see every image I have shared.. ? (I have try with an other qt account)
-
-
Okay, I'm sorry ! I will do it for the next.
Now I m on Linux, I think I will have more help with it.
So I have here my librarie :
https://postimg.org/image/xub51veer/
I'm suprise that there is a *.a and *_c.a file.. But ok so I have included them in my .pro like this :#------------------------------------------------- # # Project created by QtCreator 2017-04-12T20:10:01 # #------------------------------------------------- QT += core gui network greaterThan(QT_MAJOR_VERSION, 4): QT += widgets TARGET = ihm2 TEMPLATE = app # The following define makes your compiler emit warnings if you use # any feature of Qt which as been marked as deprecated (the exact warnings # depend on your compiler). Please consult the documentation of the # deprecated API in order to know how to port your code away from it. DEFINES += QT_DEPRECATED_WARNINGS # You can also make your code fail to compile if you use deprecated APIs. # In order to do so, uncomment the following line. # You can also select to disable deprecated APIs only up to a certain version of Qt. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 SOURCES += main.cpp\ mainwindow.cpp \ playbutton.cpp \ audioprogressbar.cpp \ volumecontroller.cpp \ client.cpp HEADERS += mainwindow.h \ playbutton.h \ audioprogressbar.h \ volumecontroller.h \ client.h \ ../constantes.h FORMS += mainwindow.ui RESOURCES += \ images.qrc CONFIG += c++11 LIBS += -lz LIBS += -ldrm LIBS += -lboost_system unix: LIBS += -L$$PWD/../lib/ -ltag INCLUDEPATH += $$PWD/../include DEPENDPATH += $$PWD/../include unix: PRE_TARGETDEPS += $$PWD/../lib/libtag.a unix: LIBS += -L$$PWD/../lib/ -ltag_c INCLUDEPATH += $$PWD/../include DEPENDPATH += $$PWD/../include unix: PRE_TARGETDEPS += $$PWD/../lib/libtag_c.a
And now unfortenuately I get this message error :
15:36:05: Running steps for project ihm2_client... 15:36:05: Configuration unchanged, skipping qmake step. 15:36:05: Starting: "/usr/bin/make" /home/shamery/Qt/5.8/gcc_64/bin/qmake -o Makefile ../Client/ihm2_client.pro -spec linux-g++ g++ -Wl,-O1 -Wl,-rpath,/home/shamery/Qt/5.8/gcc_64/lib -o ihm2 main.o mainwindow.o playbutton.o audioprogressbar.o volumecontroller.o client.o qrc_images.o moc_mainwindow.o moc_playbutton.o moc_audioprogressbar.o moc_volumecontroller.o moc_client.o -lz -ldrm -L/home/shamery/git_ihm/Client/../lib/ -ltag -L/home/shamery/Qt/5.8/gcc_64/lib -lQt5Widgets -lQt5Gui -lQt5Network -lQt5Core -lGL -lpthread /usr/bin/ld: /home/shamery/git_ihm/Client/../lib//libtag.a(tzlib.cpp.o): référence au symbole non défini «inflate» /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libz.so: error adding symbols: DSO missing from command line Makefile:263 : la recette pour la cible « ihm2 » a échouée collect2: error: ld returned 1 exit status make: *** [ihm2] Erreur 1 15:36:05: The process "/usr/bin/make" exited with code 2. Error while building/deploying project ihm2_client (kit: Desktop Qt 5.8.0 GCC 64bit) When executing step "Make" 15:36:05: Elapsed time: 00:00.
Hope you will see the image this time.
I guess in this line
/usr/bin/ld: /home/shamery/git_ihm/Client/../lib//libtag.a(tzlib.cpp.o): référence au symbole non défini «inflate»
I see // but I don't know where I should correct that...
-
My colleague has found a solution, I guess this is because of the libtag.a wich was not good
-
@Shamzic
what was the solution ?
It seems it says that
tzlib.cpp has No inflate function so maybe the zlib is not expected version? -
@mrjj said in Libtag on windows, no rule to make target ?:
It seems it says that
tzlib.cpp has No inflate function so maybe the zlib is not expected version?I have just copied his code and his librarie and it worked...
#------------------------------------------------- # # Project created by QtCreator 2017-04-12T20:10:01 # #------------------------------------------------- QT += core gui network greaterThan(QT_MAJOR_VERSION, 4): QT += widgets TARGET = ihm2 TEMPLATE = app # The following define makes your compiler emit warnings if you use # any feature of Qt which as been marked as deprecated (the exact warnings # depend on your compiler). Please consult the documentation of the # deprecated API in order to know how to port your code away from it. DEFINES += QT_DEPRECATED_WARNINGS # You can also make your code fail to compile if you use deprecated APIs. # In order to do so, uncomment the following line. # You can also select to disable deprecated APIs only up to a certain version of Qt. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 SOURCES += main.cpp\ mainwindow.cpp \ playbutton.cpp \ audioprogressbar.cpp \ volumecontroller.cpp \ client.cpp HEADERS += mainwindow.h \ playbutton.h \ audioprogressbar.h \ volumecontroller.h \ client.h \ ../constantes.h FORMS += mainwindow.ui RESOURCES += \ images.qrc CONFIG += c++11 LIBS += -ldrm unix|win32: LIBS += -L$$PWD/../lib/ -ltag INCLUDEPATH += $$PWD/../include DEPENDPATH += $$PWD/../include win32:!win32-g++: PRE_TARGETDEPS += $$PWD/../lib/tag.lib else:unix|win32-g++: PRE_TARGETDEPS += $$PWD/../lib/libtag.a
-
@Shamzic
ok so maybe he used other zlib to build it :) -
@mrjj He used CMAKE like this :
cmake -DCMAKE_INSTALL_PREFIX=/home/<username>/Documents/project -DCMAKE_BUILD_TYPE=Release .
-
@Shamzic
ok, but you also copied some binary files from his pc to make it work ?
Or was using cmake enough ? -
I have just copied his directory "lib" and "include" he did with command just above and the .pro file.. And that's it !
I'm so angry to got all of theses problems and then my colleague try and it works in 30 minutes... :o -
@Shamzic
Well if he tried it before, its much easier.
So i think he used other zlib to avoid the error.
or something. -
As for your compiler question, on Windows, yes it's very important. You can't mix and match C++ libraries built with different compilers. The only current exception being VS2017 which is compatible with VS2015.