Solved Emscripten : ERROR_ON_UNDEFINED_SYMBOLS=0
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
and when i edit and change it to ERROR_ON_UNDEFINED_SYMBOLS=1
it gives no output on web page but compiles fine.
Can you see the result of this warning ? Please suggest.
no answers!! Is there no one who can guide ?
resolved myself once again!!
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.