hellogl2 not working
-
Hi,
I am not able to get the hellogl2 example working with Qt for WebAssembly. This is the example that is found in the
Qt/Examples/Qt-6.11.1/opengl/hellogl2
directory, and also in https://doc.qt.io/qt-6/qtopengl-hellogl2-example.html .It works when I compile it as a regular program, however, when I compile it for WebAssembly, the contents of QOpenGLWidget are not rendered. This example is similar to a program that I am working on and having the same problems.
The following are the steps to reproduce it:
cd ~/Qt/Examples/Qt-6.11.1/opengl/hellogl2 ~/Qt/6.11.1/wasm_singlethread/bin/qmake6 hellogl2.pro make python3 -m http.server 8000Then in the browser:
http://localhost:8000/hellogl2.htmlRoman
-
Try using emrun instead of python http.server. It works fine for me. When i use python http.server it gets stuck at the loading page and there are errors in the browser console. Is that what you're seeing? Or does it finish loading but the widget is blank?