-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use generator expressions for target locations; add LLVM/clang toolchain support. #27
Conversation
Fix issue LaurentGomila#26: - Replace the use of LOCATION properties by generator expressions to acquire dependency target locations. - Add an extra file(GENERATOR) call to evaluate generator expressions at build time.
Added support for the LLVM/clang toolchain. Since NDK r19, it seems to be the default and androiddeployqt fails when trying to use the gcc tool and toolchain paths. |
This branch has support for the newest LLVM toolchain Waiting on the pr of LaurentGomila/qt-android-cmake#27
Instead of the (DEBUG_)LOCATION property, use generator expressions to determine the app's target file path (main shared library). Fixes issues with generator expressions in the target's source files.
Instead of the (DEBUG_)LOCATION property, use generator expressions to determine the app's target file path (main shared library). Fixes issues with generator expressions in the target's source files.
Hey all!! Love the work! This project has been extremely helpful!! I have come across a problem that has stumped me. I am trying to build a qt-android-ndk-cmake project and I am using Qt5.10.0, android-ndk-r19b, Android-19, and the latest version of CMake under windows 10. r19b has to be build using clang (I believe gcc is depreciated in this release). So I keep getting this error where the hyphen "-" is added to the paths for the toolchain prebuilts like it would when using gcc. eg. instead of having a folder named "llvm". it might be "x86-4.9" or "x86_64-4.9".
I have double check everything and made sure I was wondering if I am missing something silly or if this is an issue with either ndk, skd, or qt? I will add more info if needed. Cheers, Simon |
@Simon-Maddison-fd Could you check/post how the generated "qtdeploy.json.in" and "qtdeploy.json" files look in your case? |
Hey freekee1! Sorry I am not sure what you mean by "Stange if you use these fixes". I found myself here because I saw a commit on fixing windows issue. But after looking around I think I may have asked this question is the wrong spot. I am still really new to the android ndk and your help is greatly appreciated. I have been setting the ANDROID_USE_LLVM to true and I did check my qtdeploy.json to see if qtdeploy.json
qtdeploy.json.in
Here is everything else: I have set up a fresh build environment on another computer with sdk{android;19,build-tools;28.0.3} ndk-r18b, Qt5.9.0, jdk-8u201-windows-x64. ,and these are the results I am getting. I This is my command for building for x86 with clang/llvm
This is the output I get after running that.
And this is what I get after running make.
As you can see in the above log. It is still looking for "llvm-". Thanks for looking!! Regards, Simon M. |
@Simon-Maddison-fd
(The Qt 5.9.0 platform configurations also don't contain "clang" for any supported android platform. And the getting started guide states:
Which doesn't sound like Qt 5.9 will work with anything other than r10e? Maybe you could try getting the required versions together according to the docs, then see what happens? Another small thing, again I don't know if it's a problem or not, but on a windows host I use the MinGW generator (cmake -G"MinGW Makefiles"). Hope that gives you at least some starting points for more trial&error. |
@freekee1 Thanks so much for the suggestions. I will be sure to try the different variations. I will let you know if I solve it. Thanks again for your time in replying to me. Cheers, SM. |
Hey @freekee1, I just wanted to say thanks for your time and opinion. I ended up being able to build the project using clang! The problem was an issue between the ndk and qt versions. Cheers, SM. |
@Simon-Maddison-fd cheers |
Closing this PR as all its commits are part of #25. |
Fix issue #26: