Libtag on windows, no rule to make target ?



  • Hello it's me again ! ^^

    I have an other problem with my program in wich my colleague on macOS(on his OS it works) has recently add "taglib" and it brings errors in the build...

    There is the message :
    :-1: error: No rule to make target 'C:/Users/simon/Documents/git_ihm5/Serveur/../lib/debug/libtag.a', needed by 'debug\ihm2_serveur.exe'. Stop.

    I checked there is the good file in the good directory ...

    0_1492903368492_upload-b316e843-ea34-42f4-ac50-86ad72343656

    Here there is my .pro file :

    #-------------------------------------------------
    #
    # Project created by QtCreator 2017-04-13T19:24:24
    #
    #-------------------------------------------------
    
    QT       += core network
    QT	-= gui
    
    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
    
    TARGET = ihm2_serveur
    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\
    	serveur.cpp \
        automate.cpp
    
    HEADERS  += \
    	serveur.h \
        automate.h \
        ../constantes.h
    
    CONFIG += c++11
    
    
    LIBS += -lz
    
    win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../lib/release/ -ltag
    else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../lib/debug/ -ltag
    else:unix: LIBS += -L$$PWD/../lib/ -ltag
    
    INCLUDEPATH += $$PWD/../include
    DEPENDPATH += $$PWD/../include
    
    win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/../lib/release/libtag.a
    else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/../lib/debug/libtag.a
    else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/../lib/release/tag.lib
    else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/../lib/debug/tag.lib
    else:unix: PRE_TARGETDEPS += $$PWD/../lib/libtag.a
    

    Why this is not working ? Did I missed something ?

    (Here there is the output )

    01:18:34: Running steps for project ihm2_serveur...
    01:18:34: Configuration unchanged, skipping qmake step.
    01:18:34: Starting: "D:\Qt\Tools\mingw530_32\bin\mingw32-make.exe" 
    D:\Qt\5.8\mingw53_32\bin\qmake.exe -o Makefile ..\Serveur\ihm2_serveur.pro -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug"
    D:/Qt/Tools/mingw530_32/bin/mingw32-make -f Makefile.Debug
    mingw32-make[1]: Entering directory 'C:/Users/simon/Documents/git_ihm5/build-ihm2_serveur-Desktop_Qt_5_8_0_MinGW_32bit-Debug'
    mingw32-make[1]: Leaving directory 'C:/Users/simon/Documents/git_ihm5/build-ihm2_serveur-Desktop_Qt_5_8_0_MinGW_32bit-Debug'
    mingw32-make[1]: *** No rule to make target 'C:/Users/simon/Documents/git_ihm5/Serveur/../lib/debug/libtag.a', needed by 'debug\ihm2_serveur.exe'.  Stop.
    Makefile:34: recipe for target 'debug' failed
    mingw32-make: *** [debug] Error 2
    01:18:36: The process "D:\Qt\Tools\mingw530_32\bin\mingw32-make.exe" exited with code 2.
    Error while building/deploying project ihm2_serveur (kit: Desktop Qt 5.8.0 MinGW 32bit)
    When executing step "Make"
    01:18:36: Elapsed time: 00:01.
    


  • @Shamzic I think it's your PRE_TARGETDEPS stuff. I'm assuming libtag.a was built before your compile was run. If that's the case you don't need those PRE_TARGETDEPS lines as it will already be there.

    If not, then the error is correct. You don't have any build instructions defined to build libtag.a which is what is generating that error.



  • I have tried to build with these lines in commentary :

    #win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/../lib/release/libtag.a
    #else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/../lib/debug/libtag.a
    #else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/../lib/release/tag.lib
    #else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/../lib/debug/tag.lib
    #else:unix: PRE_TARGETDEPS += $$PWD/../lib/libtag.a
    

    But now it gives me this error :

    06:57:37: Running steps for project ihm2_serveur...
    06:57:37: Configuration unchanged, skipping qmake step.
    06:57:37: Starting: "D:\Qt\Tools\mingw530_32\bin\mingw32-make.exe" 
    D:\Qt\5.8\mingw53_32\bin\qmake.exe -o Makefile ..\Serveur\ihm2_serveur.pro -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug"
    D:/Qt/Tools/mingw530_32/bin/mingw32-make -f Makefile.Debug
    mingw32-make[1]: Entering directory 'C:/Users/simon/Documents/git_ihm5/build-ihm2_serveur-Desktop_Qt_5_8_0_MinGW_32bit-Debug'
    g++ -c -pipe -fno-keep-inline-dllexport -g -std=gnu++11 -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_NETWORK_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I..\Serveur -I. -I..\include -ID:\Qt\5.8\mingw53_32\include -ID:\Qt\5.8\mingw53_32\include\QtNetwork -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\QtCore -Idebug -ID:\Qt\5.8\mingw53_32\mkspecs\win32-g++  -o debug\main.o ..\Serveur\main.cpp
    g++ -c -pipe -fno-keep-inline-dllexport -g -std=gnu++11 -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_NETWORK_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I..\Serveur -I. -I..\include -ID:\Qt\5.8\mingw53_32\include -ID:\Qt\5.8\mingw53_32\include\QtNetwork -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\QtCore -Idebug -ID:\Qt\5.8\mingw53_32\mkspecs\win32-g++  -o debug\serveur.o ..\Serveur\serveur.cpp
    g++ -c -pipe -fno-keep-inline-dllexport -g -std=gnu++11 -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_NETWORK_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I..\Serveur -I. -I..\include -ID:\Qt\5.8\mingw53_32\include -ID:\Qt\5.8\mingw53_32\include\QtNetwork -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\QtCore -Idebug -ID:\Qt\5.8\mingw53_32\mkspecs\win32-g++  -o debug\automate.o ..\Serveur\automate.cpp
    g++ -pipe -fno-keep-inline-dllexport -g -std=gnu++11 -frtti -Wall -Wextra -dM -E -o debug\moc_predefs.h D:\Qt\5.8\mingw53_32\mkspecs\features\data\dummy.cpp
    D:\Qt\5.8\mingw53_32\bin\moc.exe -DUNICODE -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_NETWORK_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN --include debug/moc_predefs.h -ID:/Qt/5.8/mingw53_32/mkspecs/win32-g++ -IC:/Users/simon/Documents/git_ihm5/Serveur -IC:/Users/simon/Documents/git_ihm5/include -ID:/Qt/5.8/mingw53_32/include -ID:/Qt/5.8/mingw53_32/include/QtNetwork -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/QtCore -I. -ID:/Qt/Tools/mingw530_32/lib/gcc/i686-w64-mingw32/5.3.0/include -ID:/Qt/Tools/mingw530_32/lib/gcc/i686-w64-mingw32/5.3.0/include-fixed -ID:/Qt/Tools/mingw530_32/i686-w64-mingw32/include -ID:/Qt/Tools/mingw530_32/i686-w64-mingw32/include/c++ -ID:/Qt/Tools/mingw530_32/i686-w64-mingw32/include/c++/i686-w64-mingw32 -ID:/Qt/Tools/mingw530_32/i686-w64-mingw32/include/c++/backward ..\Serveur\serveur.h -o debug\moc_serveur.cpp
    g++ -c -pipe -fno-keep-inline-dllexport -g -std=gnu++11 -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_NETWORK_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I..\Serveur -I. -I..\include -ID:\Qt\5.8\mingw53_32\include -ID:\Qt\5.8\mingw53_32\include\QtNetwork -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\QtCore -Idebug -ID:\Qt\5.8\mingw53_32\mkspecs\win32-g++  -o debug\moc_serveur.o debug\moc_serveur.cpp
    D:\Qt\5.8\mingw53_32\bin\moc.exe -DUNICODE -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_NETWORK_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN --include debug/moc_predefs.h -ID:/Qt/5.8/mingw53_32/mkspecs/win32-g++ -IC:/Users/simon/Documents/git_ihm5/Serveur -IC:/Users/simon/Documents/git_ihm5/include -ID:/Qt/5.8/mingw53_32/include -ID:/Qt/5.8/mingw53_32/include/QtNetwork -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/QtCore -I. -ID:/Qt/Tools/mingw530_32/lib/gcc/i686-w64-mingw32/5.3.0/include -ID:/Qt/Tools/mingw530_32/lib/gcc/i686-w64-mingw32/5.3.0/include-fixed -ID:/Qt/Tools/mingw530_32/i686-w64-mingw32/include -ID:/Qt/Tools/mingw530_32/i686-w64-mingw32/include/c++ -ID:/Qt/Tools/mingw530_32/i686-w64-mingw32/include/c++/i686-w64-mingw32 -ID:/Qt/Tools/mingw530_32/i686-w64-mingw32/include/c++/backward ..\Serveur\automate.h -o debug\moc_automate.cpp
    g++ -c -pipe -fno-keep-inline-dllexport -g -std=gnu++11 -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_NETWORK_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I..\Serveur -I. -I..\include -ID:\Qt\5.8\mingw53_32\include -ID:\Qt\5.8\mingw53_32\include\QtNetwork -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\QtCore -Idebug -ID:\Qt\5.8\mingw53_32\mkspecs\win32-g++  -o debug\moc_automate.o debug\moc_automate.cpp
    g++ -Wl,-subsystem,windows -mthreads -o debug\ihm2_serveur.exe debug/main.o debug/serveur.o debug/automate.o debug/moc_serveur.o debug/moc_automate.o  -lmingw32 -LD:\Qt\5.8\mingw53_32\lib D:\Qt\5.8\mingw53_32\lib\libqtmaind.a -LC:\utils\my_sql\my_sql\lib -LC:\utils\postgresql\pgsql\lib -lshell32 -lz -LC:\Users\simon\Documents\git_ihm5\lib\debug -ltag D:\Qt\5.8\mingw53_32\lib\libQt5Networkd.a D:\Qt\5.8\mingw53_32\lib\libQt5Widgetsd.a D:\Qt\5.8\mingw53_32\lib\libQt5Guid.a D:\Qt\5.8\mingw53_32\lib\libQt5Cored.a 
    D:/Qt/Tools/mingw530_32/bin/../lib/gcc/i686-w64-mingw32/5.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -ltag
    collect2.exe: error: ld returned 1 exit status
    Makefile.Debug:72: recipe for target 'debug\ihm2_serveur.exe' failed
    mingw32-make[1]: Leaving directory 'C:/Users/simon/Documents/git_ihm5/build-ihm2_serveur-Desktop_Qt_5_8_0_MinGW_32bit-Debug'
    Makefile:34: recipe for target 'debug' failed
    mingw32-make[1]: *** [debug\ihm2_serveur.exe] Error 1
    mingw32-make: *** [debug] Error 2
    06:57:49: The process "D:\Qt\Tools\mingw530_32\bin\mingw32-make.exe" exited with code 2.
    Error while building/deploying project ihm2_serveur (kit: Desktop Qt 5.8.0 MinGW 32bit)
    When executing step "Make"
    06:57:49: Elapsed time: 00:12.
    
    

    What about -ltag ??


  • Lifetime Qt Champion

    Hi,

    AFAICS, your libtag.lib files look like they are in $$PWD/../lib but your .pro files sets the search folder in either debug or release subfolders which doesn't seem to exist.



  • @SGaist So I've tried to do like this (without subfolders :

    win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../lib -ltag
    else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../lib -ltag
    else:unix: LIBS += -L$$PWD/../lib/ -ltag
    
    INCLUDEPATH += $$PWD/../include/
    DEPENDPATH += $$PWD/../include/
    
    

    But I got :

    C:\Users\simon\Documents\git_ihm5\lib\libtag.a:-1: error: file not recognized: File format not recognized
    collect2.exe:-1: error: error: ld returned 1 exit status
    

    Could a librarie work on a specific OS and not on an other ?


  • Qt Champions 2016

    @Shamzic
    Hi
    ÿes, any .a / lib / dll that comes with the lib could be meant for some other compiler
    so if the project file do not also build the .a / lib / dll then it wont work.

    so u need to run the project that builds the libtag.a for the windows platform´AND the compiler u are using. ( vs / mingw)



  • @mrjj

    Ok ! So I have finally make the libtag.a for windows

    0_1492945826371_upload-bd61d327-a65f-4e93-a5c3-40b843c28cb1

    And I changed the file .pro like this by adding external librarie with the the lib.a file path :

    win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../taglib-1.11.1/taglib/ -ltag
    else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../taglib-1.11.1/taglib/ -ltagd
    else:unix: LIBS += -L$$PWD/../taglib-1.11.1/taglib/ -ltag
    
    INCLUDEPATH += $$PWD/../taglib-1.11.1/taglib
    DEPENDPATH += $$PWD/../taglib-1.11.1/taglib
    
    

    But the problem is with the option -ltagd

    13:09:33: Running steps for project ihm2_client...
    13:09:33: Configuration unchanged, skipping qmake step.
    13:09:33: Starting: "D:\Qt\Tools\mingw530_32\bin\mingw32-make.exe" 
    D:/Qt/Tools/mingw530_32/bin/mingw32-make -f Makefile.Debug
    mingw32-make[1]: Entering directory 'C:/Users/simon/Documents/git_ihm5/build-ihm2_client-Desktop_Qt_5_8_0_MinGW_32bit-Debug'
    g++ -Wl,-subsystem,windows -mthreads -o debug\ihm2.exe object_script.ihm2.Debug  -lmingw32 -LD:\Qt\5.8\mingw53_32\lib D:\Qt\5.8\mingw53_32\lib\libqtmaind.a -LC:\utils\my_sql\my_sql\lib -LC:\utils\postgresql\pgsql\lib -lshell32 -LC:\Users\simon\Documents\git_ihm5\taglib-1.11.1\taglib -ltagd D:\Qt\5.8\mingw53_32\lib\libQt5Widgetsd.a D:\Qt\5.8\mingw53_32\lib\libQt5Guid.a D:\Qt\5.8\mingw53_32\lib\libQt5Networkd.a D:\Qt\5.8\mingw53_32\lib\libQt5Cored.a 
    D:/Qt/Tools/mingw530_32/bin/../lib/gcc/i686-w64-mingw32/5.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -ltagd
    collect2.exe: error: ld returned 1 exit status
    
    

  • Lifetime Qt Champion

    Did you build taglib for debug and release ?



  • I have put release like it is said here : https://github.com/taglib/taglib/blob/master/INSTALL

    0_1492952697203_upload-0e3c9c22-f6f5-4906-a113-ac9b3961a62d

    And let also

    0_1492952791917_upload-107e1e07-a326-41a1-9c49-448049dab471

    0_1492952828380_upload-b693736f-0d93-4592-9a31-4754041c7cc0

    As said in the first link line 143.

    then i have make and install

    finally put the include there
    0_1492954125080_upload-a6ea4131-1286-4ab1-a68c-00470ad08bcf

    And the amazing taglib.a created with cmake here :
    0_1492954343503_upload-80173953-dcc3-4d6b-be46-a67f7a6c8620

    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


  • Lifetime Qt Champion

    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 ?


  • Lifetime Qt Champion

    That's good indeed.

    Just to be sure, you used the same MinGW to build taglib ?



  • I have this one on the compilers

    0_1492983682414_upload-91357f38-747f-4e40-82c6-de78ee510d3c

    And the cmake

    0_1492983719764_upload-2cc43e07-e4a0-44d9-bf73-674f4febb2aa

    And I used D:/Qt/Tools/mingw530_32/bin/g++.exe
    cf :
    0_1492983994457_upload-82347159-2881-480f-bc6e-6c4911513f63

    So... Yes I think this is probably the same ?


  • Lifetime Qt Champion

    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)


  • Moderators

    @Shamzic Others cannot see you pictures (including me), so please do it as @SGaist suggested.



  • 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


  • Qt Champions 2016

    @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
    
    

  • Qt Champions 2016

    @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 .


  • Qt Champions 2016

    @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


  • Qt Champions 2016

    @Shamzic
    Well if he tried it before, its much easier.
    So i think he used other zlib to avoid the error.
    or something.


  • Lifetime Qt Champion

    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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.