Hello Vadim,
On 06/10/18 15:08, Vadim Peretokin wrote:
I'm trying to compile Qt 5.12.0 for webassembly, but it has compile
errors: https://hastebin.com/vovisayapi.bash
This is on Ubuntu 18.04, emcc 1.38.12 (commit
0d8576c0e8f5ee09a36120b9d44184b5da2f2e7a), gcc 7.3.0. Any ideas what's
going wrong?
For the 5.12-beta1 package, you need this patch:
https://codereview.qt-project.org/#/c/241987/ to get through the wasm
build for qtnetworkauth
(also attached)
(I wouldn't mind trying the latest Qt sources, except that "Getting the
code <https://wiki.qt.io/Qt_for_WebAssembly#Getting_the_code>"
instructions are ambigious: what am I supposed to with 3 different
directories?)
For just Qt, you only need qtbase, really. If you want to develop with
QtQuick/Qml, you will need qtdeclarative as well.
git clone -b 5.12 https://code.qt.io/qt/qtbase.git
There are only a few modules we have tested for wasm - qmqtt, qtwebsockets.
There is a pending patch for qtsensors support (basically just accel,
but others for firefox)
https://codereview.qt-project.org/#/c/217457/
-
Lorn
>From aad8e3392ac04d416838924b560f50bd6eea6c5a Mon Sep 17 00:00:00 2001
From: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfe...@qt.io>
Date: Fri, 5 Oct 2018 12:38:03 +0200
Subject: [PATCH] Fix compilation when QT_NO_HTTP is defined
The feature macros are defined in a header, so it has to be included
first.
Change-Id: I3ed7c4978cb9cdde23ed37d0e963a24a6b07f335
---
src/oauth/qabstractoauth2.cpp | 2 ++
src/oauth/qabstractoauthreplyhandler.cpp | 2 ++
src/oauth/qoauth1.cpp | 2 ++
src/oauth/qoauthhttpserverreplyhandler.cpp | 2 ++
4 files changed, 8 insertions(+)
diff --git a/src/oauth/qabstractoauth2.cpp b/src/oauth/qabstractoauth2.cpp
index a3cbc04..96d338d 100644
--- a/src/oauth/qabstractoauth2.cpp
+++ b/src/oauth/qabstractoauth2.cpp
@@ -27,6 +27,8 @@
**
****************************************************************************/
+#include <QtNetwork/qtnetwork-config.h>
+
#ifndef QT_NO_HTTP
#include <qabstractoauth2.h>
diff --git a/src/oauth/qabstractoauthreplyhandler.cpp b/src/oauth/qabstractoauthreplyhandler.cpp
index b37dffc..7a87ac4 100644
--- a/src/oauth/qabstractoauthreplyhandler.cpp
+++ b/src/oauth/qabstractoauthreplyhandler.cpp
@@ -27,6 +27,8 @@
**
****************************************************************************/
+#include <QtNetwork/qtnetwork-config.h>
+
#ifndef QT_NO_HTTP
#include "qabstractoauthreplyhandler.h"
diff --git a/src/oauth/qoauth1.cpp b/src/oauth/qoauth1.cpp
index 928418e..9713a30 100644
--- a/src/oauth/qoauth1.cpp
+++ b/src/oauth/qoauth1.cpp
@@ -27,6 +27,8 @@
**
****************************************************************************/
+#include <QtNetwork/qtnetwork-config.h>
+
#ifndef QT_NO_HTTP
#include "qoauth1.h"
diff --git a/src/oauth/qoauthhttpserverreplyhandler.cpp b/src/oauth/qoauthhttpserverreplyhandler.cpp
index f07df96..dca4671 100644
--- a/src/oauth/qoauthhttpserverreplyhandler.cpp
+++ b/src/oauth/qoauthhttpserverreplyhandler.cpp
@@ -27,6 +27,8 @@
**
****************************************************************************/
+#include <QtNetwork/qtnetwork-config.h>
+
#ifndef QT_NO_HTTP
#include <qabstractoauth.h>
--
2.17.1
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest