Files
build_infra/0_笔记/0_qt/wasm.log
T
2026-06-16 10:23:51 +08:00

125 lines
7.2 KiB
Plaintext

D:\wyc\library\wasm\emsdk-1.39.8>emsdk install 1.39.8
Installing SDK 'sdk-releases-upstream-9e60f34accb4627d7358223862a7e74291886ab6-64bit'..
Installing tool 'node-12.9.1-64bit'..
Downloading: D:/wyc/library/wasm/emsdk-1.39.8/zips/node-v12.9.1-win-x64.zip from https://storage.googleapis.com/webassembly/emscripten-releases-builds/deps/node-v12.9.1-win-x64.zip, 35200117 Bytes
Unpacking 'D:/wyc/library/wasm/emsdk-1.39.8/zips/node-v12.9.1-win-x64.zip' to 'D:/wyc/library/wasm/emsdk-1.39.8/node/12.9.1_64bit'
Done installing tool 'node-12.9.1-64bit'.
Installing tool 'python-3.7.4-64bit'..
Downloading: D:/wyc/library/wasm/emsdk-1.39.8/zips/python-3.7.4-embed-amd64-patched.zip from https://storage.googleapis.com/webassembly/emscripten-releases-builds/deps/python-3.7.4-embed-amd64-patched.zip, 7504212 Bytes
Unpacking 'D:/wyc/library/wasm/emsdk-1.39.8/zips/python-3.7.4-embed-amd64-patched.zip' to 'D:/wyc/library/wasm/emsdk-1.39.8/python/3.7.4_64bit'
Done installing tool 'python-3.7.4-64bit'.
Installing tool 'java-8.152-64bit'..
Downloading: D:/wyc/library/wasm/emsdk-1.39.8/zips/portable_jre_8_update_152_64bit.zip from https://storage.googleapis.com/webassembly/emscripten-releases-builds/deps/portable_jre_8_update_152_64bit.zip, 69241499 Bytes
Unpacking 'D:/wyc/library/wasm/emsdk-1.39.8/zips/portable_jre_8_update_152_64bit.zip' to 'D:/wyc/library/wasm/emsdk-1.39.8/java/8.152_64bit'
Done installing tool 'java-8.152-64bit'.
Installing tool 'releases-upstream-9e60f34accb4627d7358223862a7e74291886ab6-64bit'..
Downloading: D:/wyc/library/wasm/emsdk-1.39.8/zips/9e60f34accb4627d7358223862a7e74291886ab6-wasm-binaries.zip from https://storage.googleapis.com/webassembly/emscripten-releases-builds/win/9e60f34accb4627d7358223862a7e74291886ab6/wasm-binaries.zip, 522793654 Bytes
Unpacking 'D:/wyc/library/wasm/emsdk-1.39.8/zips/9e60f34accb4627d7358223862a7e74291886ab6-wasm-binaries.zip' to 'D:/wyc/library/wasm/emsdk-1.39.8/upstream'
Done installing tool 'releases-upstream-9e60f34accb4627d7358223862a7e74291886ab6-64bit'.
Running post-install step: npm ci ...
Done running: npm ci
Done installing SDK 'sdk-releases-upstream-9e60f34accb4627d7358223862a7e74291886ab6-64bit'.
D:\wyc\library\wasm\emsdk-1.39.8>emsdk activate --embedded 1.39.8
Writing .emscripten configuration file to Emscripten SDK directory D:/wyc/library/wasm/emsdk-1.39.8
The Emscripten configuration file D:\wyc\library\wasm\emsdk-1.39.8\.emscripten has been rewritten with the following contents:
import os
emsdk_path=os.path.dirname(os.environ.get('EM_CONFIG')).replace('\\', '/')
NODE_JS = '' + emsdk_path + '/node/12.9.1_64bit/bin/node.exe'
PYTHON = '' + emsdk_path + '/python/3.7.4_64bit/python.exe'
JAVA = '' + emsdk_path + '/java/8.152_64bit/bin/java.exe'
LLVM_ROOT = '' + emsdk_path + '/upstream/bin'
BINARYEN_ROOT = '' + emsdk_path + '/upstream'
EMSCRIPTEN_ROOT = '' + emsdk_path + '/upstream/emscripten'
TEMP_DIR = '' + emsdk_path + '/tmp'
COMPILER_ENGINE = NODE_JS
JS_ENGINES = [NODE_JS]
Adding directories to PATH:
PATH += D:\wyc\library\wasm\emsdk-1.39.8
PATH += D:\wyc\library\wasm\emsdk-1.39.8\node\12.9.1_64bit\bin
PATH += D:\wyc\library\wasm\emsdk-1.39.8\java\8.152_64bit\bin
PATH += D:\wyc\library\wasm\emsdk-1.39.8\upstream\emscripten
Setting environment variables:
EMSDK = D:/wyc/library/wasm/emsdk-1.39.8
EM_CONFIG = D:\wyc\library\wasm\emsdk-1.39.8\.emscripten
EM_CACHE = D:/wyc/library/wasm/emsdk-1.39.8/.emscripten_cache
EMSDK_NODE = D:\wyc\library\wasm\emsdk-1.39.8\node\12.9.1_64bit\bin\node.exe
EMSDK_PYTHON = D:\wyc\library\wasm\emsdk-1.39.8\python\3.7.4_64bit\python.exe
JAVA_HOME = D:\wyc\library\wasm\emsdk-1.39.8\java\8.152_64bit
Set the following tools as active:
node-12.9.1-64bit
python-3.7.4-64bit
java-8.152-64bit
releases-upstream-9e60f34accb4627d7358223862a7e74291886ab6-64bit
The changes made to environment variables only apply to the currently running shell instance.
Use the 'emsdk_env.bat' to re-enter this environment later, or if you'd like to permanently register
this environment globally to all users in Windows Registry, rerun this command with the option --global.
20:13:08: Checking available ports...
20:13:08: Found 1001 free ports.
20:13:08: Starting D:\wyc\library\wasm\emsdk-1.39.8\python\3.7.4_64bit\python.exe D:/wyc/library/wasm/emsdk-1.39.8/upstream/emscripten/emrun.py --browser chrome --port 30002 --no_emrun_detect --serve_after_close C:/Users/wyc/Documents/web/build/Qt_5_15_2_WebAssembly-Debug/web.html...
Starting browser: C:\Program Files\Google/Chrome/Application/chrome.exe --enable-nacl --enable-pnacl --disable-restore-session-state --enable-webgl --no-default-browser-check --no-first-run --allow-file-access-from-files http://localhost:30002/web.html
20:13:18: D:\wyc\library\wasm\emsdk-1.39.8\python\3.7.4_64bit\python.exe 崩溃。
C:\Qt\5.15.2\wasm_32\bin\qmake.exe -install sed -e s/@APPNAME@/web/g C:/Qt/5.15.2/wasm_32/plugins/platforms/wasm_shell.html
> C:/Users/wyc/Documents/web/build/Qt_5_15_2_WebAssembly-Debug/web.html
copy /y C:\Qt\5.15.2\wasm_32\plugins\platforms\qtloader.js C:\Users\wyc\Documents\web\build\Qt_5_15_2_WebAssembly-Debug
copy /y C:\Qt\5.15.2\wasm_32\plugins\platforms\qtlogo.svg C:\Users\wyc\Documents\web\build\Qt_5_15_2_WebAssembly-Debug
已复制 1 个文件。
已复制 1 个文件。
em++ -s WASM=1 -s FULL_ES2=1 -s FULL_ES3=1 -s USE_WEBGL2=1 -s EXIT_RUNTIME=1 -s ERROR_ON_UNDEFINED_SYMBOLS=1
-s EXTRA_EXPORTED_RUNTIME_METHODS=["UTF16ToString","stringToUTF16"] --bind
-s FETCH=1 -g4
-s WASM=1
-s FULL_ES2=1
-s FULL_ES3=1
-s USE_WEBGL2=1
-s EXIT_RUNTIME=1
-s ERROR_ON_UNDEFINED_SYMBOLS=1
-s EXTRA_EXPORTED_RUNTIME_METHODS=["UTF16ToString","stringToUTF16"] --bind
-s FETCH=1
-s ASSERTIONS=2
-s DEMANGLE_SUPPORT=1
-s GL_DEBUG=1 --profiling-funcs
-s ALLOW_MEMORY_GROWTH=1 --source-map-base http://localhost:8000/
-o .\web.js main.obj mainwindow.obj web.js_plugin_import.obj moc_mainwindow.obj
C:/Qt/5.15.2/wasm_32/plugins/platforms/libqwasm.a
C:/Qt/5.15.2/wasm_32/lib/libQt5EventDispatcherSupport.a
C:/Qt/5.15.2/wasm_32/lib/libQt5FontDatabaseSupport.a
C:/Qt/5.15.2/wasm_32/lib/libqtfreetype.a
C:/Qt/5.15.2/wasm_32/lib/libQt5EglSupport.a
C:/Qt/5.15.2/wasm_32/plugins/imageformats/libqgif.a
C:/Qt/5.15.2/wasm_32/plugins/imageformats/libqicns.a
C:/Qt/5.15.2/wasm_32/plugins/imageformats/libqico.a
C:/Qt/5.15.2/wasm_32/plugins/imageformats/libqjpeg.a
C:/Qt/5.15.2/wasm_32/plugins/imageformats/libqtga.a
C:/Qt/5.15.2/wasm_32/plugins/imageformats/libqtiff.a
C:/Qt/5.15.2/wasm_32/plugins/imageformats/libqwbmp.a
C:/Qt/5.15.2/wasm_32/plugins/imageformats/libqwebp.a
C:/Qt/5.15.2/wasm_32/lib/libQt5Widgets.a
C:/Qt/5.15.2/wasm_32/lib/libQt5Gui.a
C:/Qt/5.15.2/wasm_32/lib/libqtlibpng.a
C:/Qt/5.15.2/wasm_32/lib/libqtharfbuzz.a
C:/Qt/5.15.2/wasm_32/lib/libQt5Core.a
C:/Qt/5.15.2/wasm_32/lib/libqtpcre2.a
cmake
-G "Ninja"
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_TOOLCHAIN_FILE=D:/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake ..
配置
https://blog.csdn.net/u011520181/article/details/134146832
D:\wyc\library\wasm\emsdk-1.39.8;D:\wyc\library\wasm\emsdk-1.39.8\node\12.9.1_64bit\bin;D:\wyc\library\wasm\emsdk-1.39.8\java\8.152_64bit\bin;D:\wyc\library\wasm\emsdk-1.39.8\upstream\emscripten