Skip to content
This repository has been archived by the owner on May 27, 2022. It is now read-only.

Use clang as default compiler #12

Closed
m-kuhn opened this issue Jun 7, 2016 · 2 comments
Closed

Use clang as default compiler #12

m-kuhn opened this issue Jun 7, 2016 · 2 comments

Comments

@m-kuhn
Copy link
Member

m-kuhn commented Jun 7, 2016

With android ndk 11, gcc is deprecated and clang is recommended.

Sidenotes:
These notes are not directly related to clang but to an update of the toolchain.

  • Qt 5.7 requires C++11 features, which must be enabled within cmake
  • Qt 5.6 seems to require gcc-4.8 which is only shipped up to ndk 10. If gcc-4.8 is not present qscintilla will fail to compile.
@m-kuhn
Copy link
Member Author

m-kuhn commented Jul 9, 2016

Keep an eye on these toolchains:

https://github.com/OSVR/android-cmake/tree/libcxx

@ghost
Copy link

ghost commented Oct 28, 2016

Hello,

for qscintilla under Qt5.6, you can force ANDROID_NDK_TOOLCHAIN_VERSION variable to match TOOLCHAIN_VERSION. This seems to work for Qt5.6.1 and NDK 13 (at least, it does compile qscintilla): qmake use 4.9 toolchain directory instead of default 4.8.

@m-kuhn m-kuhn closed this as completed Sep 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant