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
Forum Updated to NodeBB v4.3 + New Features

"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 802 Views 2 Watching
  • 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 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 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
      • lorn.potterL Offline
        lorn.potterL Offline
        lorn.potter
        wrote on 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

        • Login

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