Compiling/building custom CMake/.pro C++ application in Qt Creator with Qt 5.15.0, 5.15.12 for WebAssembly, Emscripten configured, but compilation and build halts. How to resolve?
-
Re: How to set up the Qt for WebAssembly compiler ?
Hi,
Having installed and configured Emscripten, please see pictures, when running build in Qt Creator, after configured, why ABI detection failed:
ABI:
unknown-unknown-unknown-unknown-unknownand why when launching build in Qt Creator, next:
/opt/Qt/5.15.2/wasm_32/plugins/platforms/libqwasm.a: error adding symbols: File format not recognized
clang-13: error: linker command failed with exit code 1 (use -v to see invocation)with looking good Emscripted configured:
C compiler:/opt/Qt/emsdk/upstream/bin/clang
C++ compiler:/opt/Qt/emsdk/upstream/bin/clang++for second Emscripten version other building error appears.
It is needed to resolve it and to attain full compilation and building for Web Assembly(generate all the output files with .js, etc.) as this topic numerously tried before by many people and not yet fully solved:
https://forum.qt.io/topic/121267/qt-webassembly-compiler-error/4
https://community.esri.com/t5/arcgis-runtime-sdk-for-qt/qt-webassembly-issue/m-p/272329
https://forum.qt.io/topic/117338/webassembly-build-fails/2
https://forum.qt.io/topic/117338/webassembly-build-fails/2
https://www.coder.work/article/7128602Kind Regards,
Coder.
                      
  
-
Re: How to set up the Qt for WebAssembly compiler ?
Hi,
Having installed and configured Emscripten, please see pictures, when running build in Qt Creator, after configured, why ABI detection failed:
ABI:
unknown-unknown-unknown-unknown-unknownand why when launching build in Qt Creator, next:
/opt/Qt/5.15.2/wasm_32/plugins/platforms/libqwasm.a: error adding symbols: File format not recognized
clang-13: error: linker command failed with exit code 1 (use -v to see invocation)with looking good Emscripted configured:
C compiler:/opt/Qt/emsdk/upstream/bin/clang
C++ compiler:/opt/Qt/emsdk/upstream/bin/clang++for second Emscripten version other building error appears.
It is needed to resolve it and to attain full compilation and building for Web Assembly(generate all the output files with .js, etc.) as this topic numerously tried before by many people and not yet fully solved:
https://forum.qt.io/topic/121267/qt-webassembly-compiler-error/4
https://community.esri.com/t5/arcgis-runtime-sdk-for-qt/qt-webassembly-issue/m-p/272329
https://forum.qt.io/topic/117338/webassembly-build-fails/2
https://forum.qt.io/topic/117338/webassembly-build-fails/2
https://www.coder.work/article/7128602Kind Regards,
Coder.
                      
  