Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QML Live



  • Hi,
    im trying to test QMLLive

    i did :

    qmake 
    mingw32-make
    mingw32-make install
    

    so files are generated in qt install dir :

    C:\Qt\5.12.2\mingw73_64\bin     >> qmllive5.dll and libqmllive5.a 
    C:\Qt\5.12.2\mingw73_64\include >> qmllive folder with the files
    

    i added to my pro :

    INCLUDEPATH += c:\qt\5.12.2\mingw73_64\include\qmllive
    LIBS += -Lc:\qt\5.12.2\mingw73_64\bin -lqmllive5
    DEFINES += SRCDIR=\\\"$$PWD/\\\"
    

    but when i try to compile my project i have the following output :

    C:\Users\lev\Documents\dev\MComponents\main.cpp:27: erreur : undefined reference to `_imp___ZN14LiveNodeEngineC1EP7QObject'
    C:\Users\lev\Documents\dev\MComponents\main.cpp:30: erreur : undefined reference to `_imp___ZN14LiveNodeEngine12setQmlEngineEP10QQmlEngine'
    C:\Users\lev\Documents\dev\MComponents\main.cpp:34: erreur : undefined reference to `_imp___ZN14LiveNodeEngine15setFallbackViewEP10QQuickView'
    C:\Users\lev\Documents\dev\MComponents\main.cpp:37: erreur : undefined reference to `_imp___ZN14LiveNodeEngine12setWorkspaceERK7QString6QFlagsINS_15WorkspaceOptionEE'
    C:\Users\lev\Documents\dev\MComponents\main.cpp:41: erreur : undefined reference to `_imp___ZN14RemoteReceiverC1EP7QObject'
    C:\Users\lev\Documents\dev\MComponents\main.cpp:42: erreur : undefined reference to `_imp___ZN14RemoteReceiver12registerNodeEP14LiveNodeEngine'
    C:\Users\lev\Documents\dev\MComponents\main.cpp:43: erreur : undefined reference to `_imp___ZN14RemoteReceiver6listenEi6QFlagsINS_16ConnectionOptionEE'
    C:\Users\lev\Documents\dev\MComponents\main.cpp:50: erreur : undefined reference to `_imp___ZN14LiveNodeEngine20usePreloadedDocumentERK7QStringP12QQuickWindowRK5QListI9QQmlErrorE'
    C:\Users\lev\Documents\dev\MComponents\main.cpp:27: erreur : undefined reference to `_imp___ZN14LiveNodeEngineD1Ev'
    C:\Users\levDocuments\dev\MComponents\main.cpp:27: erreur : undefined reference to `_imp___ZN14LiveNodeEngineD1Ev'
    C:\Users\lev\Documents\dev\build-MComponents-Desktop_Qt_5_12_2_MinGW_32_bit-Debug\debug\main.o:-1: In function `ZN14RemoteReceiverD1Ev':
    c:\qt\5.12.2\mingw73_64\include\qmllive\remotereceiver.h:49: erreur : undefined reference to `_imp___ZTV14RemoteReceiver'
    

    Can someone help please ?


  • Lifetime Qt Champion

    @LeLev Don't use \ in paths, use /
    Also as far as I know on Windows you need *.lib files for linking not *.dll.
    If it doesn't help post the linker output.



  • @jsulm
    somehow everything started working after i only restart qt creator clean / rebuild ..
    I think my qt creator was running while i was installing QML Live so i had to at least restart my qt creator maybe
    thank you!



  • This post is deleted!

Log in to reply