Discussion:
QtCreator 4.7.1 / Qt 5.12. Beta 1 (Android, iOS, macOS)
(too old to reply)
ekke
2018-10-13 10:25:15 UTC
Permalink
I'm just testing Qt Creator 4.7.1 / Qt 5.12 Beta 1 with my
QtQuickControls2 Apps for Android / iOS.

macOS also used, but only because testing is really fast on macOS

Xcode 10.0, macOS 10.13.6

---

macOS: getting warnings

Qt has only been tested with version 10.13 of the platform SDK, you're
using 10.14. This is an unsupported configuration. You may experience
build issues, and by usingthe 10.14 SDK you are opting in to new
features that Qt has not been prepared for.Please downgrade the SDK you
use to build your app to version 10.13, or configurewith
CONFIG+=sdk_no_version_check when running qmake to silence this warning.

I'm still on macOS 10.13.6 and don't use any new things as dark mode.

seems to work

---

iOS: got some warning because my target was 10.0. Changed to 11.0:

QMAKE_IOS_DEPLOYMENT_TARGET=11.0

now it works

---

Android: currently I'm using NDK r10e

getting errors and cannot build:

Project ERROR: Cannot run target compiler
'....android-ndk-r10e/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++'.
Output:

===================

/bin/sh:
....android-ndk-r10e/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++:
No such file or directory

===================

what's the recommended NDK to use with 5.12.Beta1 ?

seems that 5.12 Beta 1 now is using clang instead of GCC.

any other things to change in .pro ?

---

QML: some Pages now look different to 5.10.1 / 5.11.2 - per ex. Buttons
placed different

probably because I have to fix some errors like:

"Detected anchors on an item that is managed by a layout. This is
undefined behavior; use Layout.alignment instead."

(As I started Qt development for mobile I wasn't aware that anchors
shouldn't be used inside Layouts,

so now I have to refactor ... fortunately QtCreator checks this now

hopefully this will fix the UI in 5.12 Beta 1 - if not will report an issue

ekke
ekke
2018-10-14 11:07:51 UTC
Permalink
found out from
https://forum.qt.io/topic/95406/qt-5-12-beta-android-clang-app-crash

that NDK r16b is working for Android and Qt 5.12 Beta1

now I can build and deploy again on all my platforms with Qt 5.12B1 :)
Post by ekke
I'm just testing Qt Creator 4.7.1 / Qt 5.12 Beta 1 with my
QtQuickControls2 Apps for Android / iOS.
macOS also used, but only because testing is really fast on macOS
Xcode 10.0, macOS 10.13.6
---
macOS: getting warnings
Qt has only been tested with version 10.13 of the platform SDK, you're
using 10.14. This is an unsupported configuration. You may experience
build issues, and by usingthe 10.14 SDK you are opting in to new
features that Qt has not been prepared for.Please downgrade the SDK
you use to build your app to version 10.13, or configurewith
CONFIG+=sdk_no_version_check when running qmake to silence this warning.
I'm still on macOS 10.13.6 and don't use any new things as dark mode.
seems to work
---
QMAKE_IOS_DEPLOYMENT_TARGET=11.0
now it works
BTW: got many warnings like this deploying the app to iOS device without
changing deployment target to 11.0:

warning: object file (.../5.12.0/ios/lib/libQt5Core_debug.a(qglobal.o))
was built for newer iOS version (11.0) than being linked (10.0)

so I expect we must use 11.0 ?
Post by ekke
---
Android: currently I'm using NDK r10e
Project ERROR: Cannot run target compiler
'....android-ndk-r10e/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++'.
===================
No such file or directory
===================
what's the recommended NDK to use with 5.12.Beta1 ?
seems that 5.12 Beta 1 now is using clang instead of GCC.
any other things to change in .pro ?
---
QML: some Pages now look different to 5.10.1 / 5.11.2 - per ex.
Buttons placed different
"Detected anchors on an item that is managed by a layout. This is
undefined behavior; use Layout.alignment instead."
(As I started Qt development for mobile I wasn't aware that anchors
shouldn't be used inside Layouts,
so now I have to refactor ... fortunately QtCreator checks this now
hopefully this will fix the UI in 5.12 Beta 1 - if not will report an issue
ekke
_______________________________________________
Qt-creator mailing list
http://lists.qt-project.org/mailman/listinfo/qt-creator
--
Jason H
2018-10-17 15:00:46 UTC
Permalink
_______________________________________________
Qt-creator mailing list
Qt-***@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator

ekke
2018-10-15 06:49:38 UTC
Permalink
Post by ekke
I'm just testing Qt Creator 4.7.1 / Qt 5.12 Beta 1 with my
QtQuickControls2 Apps for Android / iOS.
macOS also used, but only because testing is really fast on macOS
Xcode 10.0, macOS 10.13.6
---
macOS: getting warnings
Qt has only been tested with version 10.13 of the platform SDK,
you're using 10.14. This is an unsupported configuration. You may
experience build issues, and by usingthe 10.14 SDK you are opting in
to new features that Qt has not been prepared for.Please downgrade
the SDK you use to build your app to version 10.13, or configurewith
CONFIG+=sdk_no_version_check when running qmake to silence this warning.
I'm still on macOS 10.13.6 and don't use any new things as dark mode.
Not sure, but does Xcode on 10.13.6 already support the SDK 10.14? If
so, that may be your answer then.
you're right: XCode 10 includes SDK 10.14 and runs on macOS 10.13.6 or later
https://developer.apple.com/documentation/xcode_release_notes/xcode_10_release_notes
To add to that: I re-compiled my QWidget based application on macOS
10.14 (Mojave), using latest Qt 5.12 Beta and latest everything
(Xcode, Qt Creator)...
Did not modify my *.pro (qmake) files and got the same warning (so
yes, I was using the latest SDK 10.14).
Bravely ignored the warning and launched the application. Runs fine,
even the toolbar is rendered „dark“ (when macOS „dark mode“ is
enabled). Nice. Haven‘t done extensive testing yet, such as toggling
dark mode. But the (simple: QGraphicsView, QWidgets, the usual
QContainers, no other fancy Qt modules) application behaves as expected.
I also ignored this warning and my QtQuickControls2 App works fine on
10.13.6

ekke
FWIW.
Cheers,
  Oliver
Loading...