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

Emscripten : ERROR_ON_UNDEFINED_SYMBOLS=0



  • Hello,
    I am working on a project that was build on qt using c++.
    Now i wanted to change it to web solution using web assembly.
    It is compiling, and creates all desired .o files but I am getting following error as i proceed and run
    MAKE:
    ERROR_ON_UNDEFINED_SYMBOLS=0

    and when i edit and change it to ERROR_ON_UNDEFINED_SYMBOLS=1
    it gives no output on web page but compiles fine.
    Please support.



  • 0_1555080208964_Capture.PNG

    Can you see the result of this warning ? Please suggest.



  • no answers!! Is there no one who can guide ?



  • resolved myself once again!!


  • Lifetime Qt Champion

    Hi,

    The web assembly backend is pretty new so there is less likely a big number of people using it, member of this forum and able to answer.

    It's great that you found a solution ! Can you please share it so if it happens to another developer he can benefit from your findings ?



  • I edited my Makefile , included the install folder path like this :

    INCPATH = -I/root/.emscripten_ports/openssl/include -I/usr/local/Qt-5.12.2/mkspecs/wasm-emscripten -I/usr/local/Qt-5.12.2/include/QtQuickControls2 -I/usr/local/Qt-5.12.2/include/QtQml -I/usr/local/Qt-5.12.2/include/QtNetwork -I../qt/src/qt-everywhere-src-5.12.2/qtbase/include -I /home/izza/QcCore -I../qt/src/qt-everywhere-src-5.12.2/qtbase/include/QtGui -I../qt/src/build/qtbase/include -I../qt/src/build/qtbase/include/QtGui

    or else if someone is putting directly from bash
    ypu need to add the following
    -lQt5Qml -lQt5QuickControls2 -lQt5Network -lQt5Gui etc .. whatever modules are missing. and error isnow resolved.


Log in to reply