Qt for WebAssembly测试记录
2021-02-05 10:18
标签:source github config was form ref get not sse Ubuntu 16, 阿里云 Qt for WebAssembly测试记录 标签:source github config was form ref get not sse 原文地址:https://www.cnblogs.com/maoruimas/p/13125912.html
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测试记录
文章链接:http://soscw.com/index.php/essay/51296.html