qmake is using wrong path to clang++
-
wrote on 28 Oct 2019, 11:27 last edited by Strohhut
Hi,
I am using Qt 5.12.2
when building my android app I get an Error Message:
Cannot run target compiler '/home/me/android-ndk-r10e/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++'
When I look at the path, qmake trys to use clang++ from I not existing folder (llvm does not exist, its called llvm-3.6). I then took a look at the folder specified in the Kit and there the path to the clang++ is set right. Why does it use a different one that the one set in the Kit?
Edit
After adding a manual Kit and new manual clang++ compiler to make sure the paths are right, qmake uses the right compiler but a new error appears:Wrong Format libQt5Quick.so
So I still can not build my application.
-
Hi,
I am using Qt 5.12.2
when building my android app I get an Error Message:
Cannot run target compiler '/home/me/android-ndk-r10e/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++'
When I look at the path, qmake trys to use clang++ from I not existing folder (llvm does not exist, its called llvm-3.6). I then took a look at the folder specified in the Kit and there the path to the clang++ is set right. Why does it use a different one that the one set in the Kit?
Edit
After adding a manual Kit and new manual clang++ compiler to make sure the paths are right, qmake uses the right compiler but a new error appears:Wrong Format libQt5Quick.so
So I still can not build my application.
@Strohhut what is the NDK version you're using?
-
wrote on 28 Oct 2019, 11:46 last edited by Strohhut
@J-Hilk I am using NDK r10e but also tried with r14b and the latest version r20
-
@Strohhut 5.12 requieres at least ndk-r18b (IIRC)
also you need to completely delete and rebuild your shadow build folder after changing the ndk -
@Strohhut 5.12 requieres at least ndk-r18b (IIRC)
also you need to completely delete and rebuild your shadow build folder after changing the ndkwrote on 28 Oct 2019, 11:56 last edited by@J-Hilk oh thanks i did not know that thanks!
I think I am getting closer or not ... now i have 11 Errors:
skipping incompatible /home/me/Qt/5.12.2/android_armv7/lib/(11 libs here)
-
@J-Hilk oh thanks i did not know that thanks!
I think I am getting closer or not ... now i have 11 Errors:
skipping incompatible /home/me/Qt/5.12.2/android_armv7/lib/(11 libs here)
@Strohhut
mmh, can you post the actual error message ?
And I would suggest to update to the lastest 5.12 release (5.12.5) if you can -
@Strohhut
mmh, can you post the actual error message ?
And I would suggest to update to the lastest 5.12 release (5.12.5) if you canwrote on 28 Oct 2019, 12:55 last edited by@J-Hilk I updated to Qt 5.12.5 now I just have one error:
/home/me/Qt/5.12.5/android_armv7/lib/libQt5Quick.so:-1: error: error adding symbols: File in wrong format
-
@Strohhut
mmh, can you post the actual error message ?
And I would suggest to update to the lastest 5.12 release (5.12.5) if you canwrote on 28 Oct 2019, 13:08 last edited by@J-Hilk After updating and reinstalling basically everything it is working now ... I dont exactly know why but it does.
Thank you very much for your help!
-
@J-Hilk After updating and reinstalling basically everything it is working now ... I dont exactly know why but it does.
Thank you very much for your help!
@Strohhut
no problem, I was close to the end of my suggestions...
So great it's not working !Setting up a working android toolchain can be cumbersome 🙈
Son't forget to use the topic tools to set the topic to solved :)
9/9