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. "The command line is too long" when building the app
QtWS25 Last Chance

"The command line is too long" when building the app

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
webassemblyline too longemsdk
3 Posts 2 Posters 776 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.
  • M Offline
    M Offline
    M1losz
    wrote on 28 Dec 2021, 19:32 last edited by
    #1

    I'm trying to build an example "coffee" using Qt 6.2.2. I installed emsdk version 2.0.13 and configured both Qt creator using this tutorial https://doc.qt.io/qtcreator/creator-setup-webassembly.html and environment variables to make it possible to use command line. I tried to build the project using these two ways and I was always getting an error:

    The command line is too long.
    mingw32-make: *** [Makefile:87: .\coffee.js] Error 1
    20:23:22: The process "C:\Qt\Tools\mingw900_64\bin\mingw32-make.exe" exited with code 2.
    Error while building/deploying project coffee (kit: Qt 6.2.2 WebAssembly)
    When executing step "Make"
    

    The "Make" step consists out of two commands:

    1. qmake.bat coffee.pro
    2. mingw32-make.exe -j4 in C:\Qt\Examples\Qt-6.2.2\demos\build-coffee-Qt_6_2_2_WebAssembly-Debug
    
    1 Reply Last reply
    2
    • M Offline
      M Offline
      M1losz
      wrote on 29 Dec 2021, 19:51 last edited by
      #2

      I managed to compile examples, but only when using Qt version 5.15.2 and emscripten 1.39.7

      1 Reply Last reply
      0
      • L Offline
        L Offline
        lorn.potter
        wrote on 29 Dec 2021, 22:19 last edited by
        #3

        https://bugreports.qt.io/browse/QTBUG-84392

        With Qt 6.2, you can use qt-cmake to build examples, which does not have this issue.

        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
        0

        1/3

        28 Dec 2021, 19:32

        • Login

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