Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for WebAssembly
  4. build job does not create .html file (Message: file not found)
QtWS25 Last Chance

build job does not create .html file (Message: file not found)

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
webassemblyhtmlemscriptenemccbuild
6 Posts 6 Posters 1.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    broko_lee
    wrote on 17 May 2022, 07:27 last edited by broko_lee
    #1

    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:
    23bc2756-2d19-4e8f-a124-1eae04f46330-image.png

    Versions installed:
    Qt 6.2.4
    emcc 3.1.10

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lorn.potter
      wrote on 17 May 2022, 07:55 last edited by
      #2

      If you used cmake, in your CMakeLists.txt, you need to change
      add_executable
      to qt_add_executable

      Freelance Software Engineer, Platform Maintainer QtWebAssembly, Maintainer QtSensors
      Author, Hands-On Mobile and Embedded Development with Qt 5 http://bit.ly/HandsOnMobileEmbedded

      1 Reply Last reply
      1
      • B Offline
        B Offline
        broko_lee
        wrote on 17 May 2022, 10:38 last edited by
        #3

        @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...

        1 Reply Last reply
        0
        • M Offline
          M Offline
          Magi Wanders
          wrote on 18 Jun 2022, 11:28 last edited by
          #4

          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.13

          changing 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?

          1 Reply Last reply
          0
          • C Offline
            C Offline
            coolbrd
            wrote on 17 Sept 2022, 19:47 last edited by
            #5

            Was anyone able to solve this? I'm having the same issue with Qt 5.15.2.

            1 Reply Last reply
            0
            • M Offline
              M Offline
              mmertama
              wrote on 8 Oct 2022, 22:08 last edited by
              #6

              In Qt 6.4 (on macos) Debug build does not generate javascript file...

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved