设置 WebAssembly 开发环境

为 WebAssembly 设置开发环境:

  1. 访问Preferences >SDKs >WebAssembly
  2. Emscripten SDK path 中,输入安装emsdk 的根目录。
  3. Qt Creator 如果你的 Qt for WebAssembly 版本支持emsdk ,Qt XML 会为你配置Emscripten SDK environment

    SDK 偏好设置中的 WebAssembly 选项卡

  4. 转到Preferences >Kits ,检查Qt Creator 创建的 WebAssembly 工具包。如果C/C++ 没有显示要使用的 Emscripten 编译器,请检查 emscripten 是否设置正确。

    在 "工具包 "偏好设置的 "工具包 "选项卡中选择 WebAssembly 工具包

另请参阅 为 Web 构建应用程序》、《如何为WebAssembly 开发》和《启用WebAssembly》:为 WebAssembly 开发》和《启用和禁用插件》。

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.