build job does not create .html file (Message: file not found)
-
Hi,
after a fresh installation of Qt/QtCreator and emscripten, the kit and build configuration in QtCreator was successfully finished.
Then I created a simple Console App with a simple cout command. The build process has done without any errors but when the app should be started in browser, the response shown is:
"Error code: 404 Message: File not found: C:<pathremoved><page>html.".
The desired .html was not created by QTCreator, all other files (wasm, js) but yet. cmake was used.
So this needed .html was not created anywhere on disk. How is it possible to let generate in QTCreator?Here is the screenshot of the message:
Versions installed:
Qt 6.2.4
emcc 3.1.10 -
If you used cmake, in your CMakeLists.txt, you need to change
add_executable
to qt_add_executable -
@lorn.potter Thanks for your response. With the above named setting done, now an other message appears:
Unsupported option --bind
for the line
#include "mainwindow.h"
....Do you now why?
I am going to try qmake instead... -
I am experiencing the exact same issue - no .html file after a build that finished with no errors.
Qt 6.3.1 - fresh install
emcc 3.1.13changing add_executable to qt_add_executable gives error "unknown CMake command"
This is both with system cmake and Qt cmake 3.21.1
Any solution?