how to view all linker errors instead of a few while using qmake for wasm
Unsolved
Qt for WebAssembly
-
I am getting linker error message which ends with
wasm-ld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
How to enable viewing of all errors. What flag do I need to set in the .pro file?wasm-ld: error: MyGLCanvas.o: undefined symbol: gluPerspective wasm-ld: error: MyGLCanvas.o: undefined symbol: glShadeModel wasm-ld: error: MyGLCanvas.o: undefined symbol: glLightModelfv wasm-ld: error: MyGLCanvas.o: undefined symbol: glLightfv .... wasm-ld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
-
@shome I would say:
QMAKE_LFLAGS=-error-limit=0
https://doc.qt.io/qt-6/qmake-variable-reference.html#qmake-lflags
-
@jsulm I tried the above flag in the .pro file. But I still get the same message:
wasm-ld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)My .pro has QMAKE_LFLAGS += -error-limit=0 at the beginning. I also tried QMAKE_LFLAGS=-error-limit=0. But same effect.
TEMPLATE = app # Minimum required CMake version CONFIG += c++17 # Set compiler options QMAKE_CXXFLAGS += -fPIC QMAKE_LFLAGS += -error-limit=0
Should I put the QMAKE_LFLAGS at any particular position to make it work? I am using qt6.6.2 and emscripten 3.1.37
-
This worked for me:
QMAKE_LFLAGS += -Wl,-error-limit=0