Qt for WebAssembly测试记录
Posted maoruimas
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Qt for WebAssembly测试记录相关的知识,希望对你有一定的参考价值。
Ubuntu 16, 阿里云
Emscripten
# Get the emsdk repo
git clone https://github.com/emscripten-core/emsdk.git
# Enter that directory
cd emsdk
# Fetch the latest version of the emsdk (not needed the first time you clone)
git pull
# install
./emsdk install sdk-fastcomp-1.38.27-64bit
./emsdk activate --embedded sdk-fastcomp-1.38.27-64bit
# Activate PATH and other environment variables in the current terminal
source ./emsdk_env.sh
Qt
# Download Qt source 5.14.2
wget http://download.qt.io/archive/qt/5.14/5.14.2/single/qt-everywhere-src-5.14.2.tar.xz
# Unpack the archive
xz -d qt-everywhere-src-5.14.2.tar.xz
tar -xvf qt-everywhere-src-5.14.2.tar
# Configure Qt as a cross-compile build for the "wasm-emscripten" platform
./configure -xplatform wasm-emscripten -nomake examples -prefix $PWD/qtbase
# make
make
Test
以上是关于Qt for WebAssembly测试记录的主要内容,如果未能解决你的问题,请参考以下文章
Ubuntu20.04+Qt5.15.2+Webassembly+qmqtt模块构建Web端物联网平台
将 QT WebAssembly 与 Emscripten 关联
Qt 也要拥抱 WebAssembly!将在 5.11.0 版本中正式支持
错误记录Kotlin 编译报错 ( Not nullable value required to call an ‘iterator()‘ method on for-loop range )(代码片