Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
5.9.0, 5.9.1
-
None
-
[navid@workstation lib]$ cat /etc/redhat-release
Fedora release 25 (Twenty Five)
[navid@workstation lib]$ uname -a
Linux workstation 4.11.7-200.fc25.x86_64 #1 SMP Mon Jun 26 15:58:22 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Description
After 2 hour of discussion in #qt @ freenode we found out there is bug in QMake (or its configuration) which does not allow to build QtCore in linux based system (I don't know about other systems, but I think it would be the same).
Careful this bug only affects android-clang toolchain. Since google depracated gcc we should focus more on Clang instead of gcc from now on.
../configure -opensource -confirm-license -xplatform android-clang -android-ndk /opt/android-sdk/ndk-bundle -android-sdk /opt/android-sdk -android-ndk-host linux-x86_64 -android-arch x86 -android-toolchain-version 4.9 -nomake tests -nomake examples -android-ndk-platform android-22 -no-gui -static
this is the command I was building qtCore. But sergio did it with other configs and got same error. The error is something wired. But after tweaking QMake script I found out it is linker error and QMake cannot compile sample program correctly so it stops build process right at first.
I fixed (hacked) my ndk like this :
I copied all the libraries from :
/opt/android-sdk/ndk-bundle/toolchains/x86-4.9/prebuilt/linux-x86_64/lib/
to
/opt/android-sdk/ndk-bundle/platforms/android-22/arch-x86/usr/lib
As you might notice this would only works for specific platform version and is not right way to do it.
Attachments
Issue Links
- duplicates
-
QTBUG-61735 Shadow build for android clang++ fails directly after building qmake on 'Maybe you forgot to setup the environment?'
- Closed