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. qmake why output C:/Users/qt/work/qt/qtbase/build/target/plugins/platforms/libqwasm.a
Forum Updated to NodeBB v4.3 + New Features

qmake why output C:/Users/qt/work/qt/qtbase/build/target/plugins/platforms/libqwasm.a

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
3 Posts 3 Posters 743 Views 1 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.
  • C Offline
    C Offline
    ChunSource
    wrote on last edited by
    #1

    why no check code ,this is path must is dev 's computer env Path,

    ~~```
    #############################################################################

    Makefile for building: .\cccccccc.js

    Generated by qmake (3.1) (Qt 6.4.0)

    Project: ..\cccccccc\cccccccc.pro

    Template: app

    Command: D:\env\qt\6.4.0\mingw_64\bin\qmake.exe -o Makefile ..\cccccccc\cccccccc.pro -qtconf D:/env/qt/6.4.0/wasm_32/bin/target_qt.conf -spec wasm-emscripten

    #############################################################################

    MAKEFILE = Makefile

    EQ = =

    ####### Compiler, tools and options

    CC = emcc
    CXX = em++
    DEFINES = -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB
    CFLAGS = -O2 -Wall -Wextra $(DEFINES)
    CXXFLAGS = -O2 -g -std=gnu++1z -Wall -Wextra $(DEFINES)
    INCPATH = -I..\cccccccc -I. -I....\env\qt\6.4.0\wasm_32\include -I....\env\qt\6.4.0\wasm_32\include\QtWidgets -I....\env\qt\6.4.0\wasm_32\include\QtGui -I....\env\qt\6.4.0\wasm_32\include\QtCore -I. -I. -I/.emscripten_ports/openssl/include -I....\env\qt\6.4.0\wasm_32\mkspecs\wasm-emscripten
    QMAKE = D:\env\qt\6.4.0\mingw_64\bin\qmake.exe
    DEL_FILE = del
    CHK_DIR_EXISTS= if not exist
    MKDIR = mkdir
    COPY = copy /y
    COPY_FILE = copy /y
    COPY_DIR = xcopy /s /q /y /i
    INSTALL_FILE = copy /y
    INSTALL_PROGRAM = copy /y
    INSTALL_DIR = xcopy /s /q /y /i
    QINSTALL = D:\env\qt\6.4.0\mingw_64\bin\qmake.exe -install qinstall
    QINSTALL_PROGRAM = D:\env\qt\6.4.0\mingw_64\bin\qmake.exe -install qinstall -exe
    DEL_FILE = del
    SYMLINK = $(QMAKE) -install ln -f -s
    DEL_DIR = rmdir
    MOVE = move
    TAR =
    COMPRESS =
    DISTNAME = cccccccc.js1.0.0
    DISTDIR = D:\project\build-cccccccc-WebAssembly_Qt_6_4_0-Release.tmp\cccccccc.js1.0.0
    LINK = em++
    LFLAGS = -s WASM=1 -s FULL_ES2=1 -s FULL_ES3=1 -s USE_WEBGL2=1 -s ERROR_ON_UNDEFINED_SYMBOLS=1 -s EXPORTED_RUNTIME_METHODS=[UTF16ToString,stringToUTF16] --bind -s FETCH=1 -s MODULARIZE=1 -s EXPORT_NAME=createQtAppInstance -s WASM_BIGINT=1 -s ALLOW_MEMORY_GROWTH=1 -s INITIAL_MEMORY=50MB D:/env/qt/6.4.0/wasm_32/lib/libQt6BundledFreetype.a D:/env/qt/6.4.0/wasm_32/lib/libQt6BundledLibpng.a
    LIBS = $(SUBLIBS) D:/env/qt/6.4.0/wasm_32/plugins/platforms/libqwasm.a D:/env/qt/6.4.0/wasm_32/lib/objects-Release/QWasmIntegrationPlugin_resources_1/.rcc/qrc_wasmfonts.cpp.o D:/env/qt/6.4.0/wasm_32/lib/objects-Release/Gui_resources_1/.rcc/qrc_qpdf.cpp.o D:/env/qt/6.4.0/wasm_32/lib/objects-Release/Gui_resources_2/.rcc/qrc_gui_shaders.cpp.o C:/Users/qt/work/qt/qtbase/build/target/plugins/platforms/libqwasm.a D:/env/qt/6.4.0/wasm_32/lib/libQt6OpenGL.a D:/env/qt/6.4.0/wasm_32/plugins/iconengines/libqsvgicon.a D:/env/qt/6.4.0/wasm_32/plugins/imageformats/libqgif.a C:/Users/qt/work/qt/qtbase/build/target/plugins/imageformats/libqgif.a D:/env/qt/6.4.0/wasm_32/plugins/imageformats/libqico.a C:/Users/qt/work/qt/qtbase/build/target/plugins/imageformats/libqico.a D:/env/qt/6.4.0/wasm_32/plugins/imageformats/libqjpeg.a C:/Users/qt/work/qt/qtbase/build/target/plugins/imageformats/libqjpeg.a D:/env/qt/6.4.0/wasm_32/lib/libQt6BundledLibjpeg.a D:/env/qt/6.4.0/wasm_32/plugins/imageformats/libqsvg.a D:/env/qt/6.4.0/wasm_32/lib/libQt6Svg.a D:/env/qt/6.4.0/wasm_32/lib/libQt6Widgets.a D:/env/qt/6.4.0/wasm_32/lib/objects-Release/Widgets_resources_1/.rcc/qrc_qstyle.cpp.o D:/env/qt/6.4.0/wasm_32/lib/objects-Release/Widgets_resources_2/.rcc/qrc_qstyle1.cpp.o D:/env/qt/6.4.0/wasm_32/lib/objects-Release/Widgets_resources_3/.rcc/qrc_qmessagebox.cpp.o C:/Users/qt/work/qt/qtbase/build/target/lib/libQt6Widgets.a D:/env/qt/6.4.0/wasm_32/lib/libQt6Gui.a C:/Users/qt/work/qt/qtbase/build/target/lib/libQt6Gui.a D:/env/qt/6.4.0/wasm_32/lib/libQt6BundledHarfbuzz.a D:/env/qt/6.4.0/wasm_32/lib/libQt6BundledFreetype.a D:/env/qt/6.4.0/wasm_32/lib/libQt6BundledLibpng.a D:/env/qt/6.4.0/wasm_32/lib/libQt6Core.a D:/env/qt/6.4.0/wasm_32/lib/libQt6BundledZLIB.a D:/env/qt/6.4.0/wasm_32/lib/libQt6BundledPcre2.a -lembind
    AR = emar cqs
    RANLIB =
    SED = $(QMAKE) -install sed
    STRIP =

    1 Reply Last reply
    0
    • lorn.potterL Offline
      lorn.potterL Offline
      lorn.potter
      wrote on last edited by
      #2

      Known issue with the beta release binaries
      https://bugreports.qt.io/browse/QTBUG-104396

      You can always compile Qt yourself.

      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
      • N Offline
        N Offline
        nodelogic
        wrote on last edited by nodelogic
        #3

        Or you could fix it yourself if you happen to be running linux with GNU bash.. just make a new shell file

        ** WARNING ** may cause your Qt installation to have unexpected behavior as this is not a supported fix but merely a workaround to get the compiler to a state of being able to compile.

        fix_qt_paths.sh

        #!/bin/bash
        
        export QTPATH=/usr/local/qt/6.4.0/wasm_32
        cd $QTPATH
        
        grep -rLi /home/qt/work | xargs -i@ sed -i \
        s+/home/qt/work/qt/qtmultimedia/build/target+` echo $QTPATH`+g @
        
        grep -rLi /home/qt/work | xargs -i@ sed -i \
        s+/home/qt/work/qt/qtdeclarative/build/target+`echo $QTPATH`+g @
        

        Obviously replace QTPATH with the path to the Qt installation you wish to modify.
        and voila all is working.

        This may be an incomplete fix as well.

        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