码迷,mamicode.com
首页 > Web开发 > 详细

Qt for WebAssembly测试记录

时间:2020-06-14 19:07:26      阅读:150      评论:0      收藏:0      [点我收藏+]

标签:source   github   config   was   form   ref   get   not   sse   

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测试记录

标签:source   github   config   was   form   ref   get   not   sse   

原文地址:https://www.cnblogs.com/maoruimas/p/13125912.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!