Can't find stdlib.h included in cstdlib.
-
@egg.nut Hi!
Did you read http://doc.qt.io/qt-5/androidgs.html ?
And you did not say what exactly you're trying to do?
Are you trying to build a Qt application for android?
Do you use QtCreator?@jsulm
the SDK Manager pops a window:Fetching http://dl-ssl.google.com/android/repository/addons_list-2.xml
Fetched Add-ons List successfully
Fetching URL: http://dl-ssl.google.com/android/repository/repository-10.xml
Done loading packages.
Fetching http://dl-ssl.google.com/android/repository/addons_list-2.xml
Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-2.xml, reason: Connection to http://dl-ssl.google.com refused
Fetched Add-ons List successfully
Fetching URL: http://dl-ssl.google.com/android/repository/repository-10.xml -
@egg.nut Hi!
Did you read http://doc.qt.io/qt-5/androidgs.html ?
And you did not say what exactly you're trying to do?
Are you trying to build a Qt application for android?
Do you use QtCreator?@jsulm
I set the INCLUDEPATH,
make links of many files.
and it works...
But there must be something wrong:why these paths goes wrong.that's what I did:
xiaodan@xiaodan-G41M-ES2L:~/qtproj/build-test_android-Android_for_armeabi_GCC_4_9_Qt_5_5_0-Debug$ ll lrwxrwxrwx 1 xiaodan xiaodan 85 7月 19 17:52 crtbegin_so.o -> /home/xiaodan/libs/android-ndk-r10/platforms/android-L/arch-arm/usr/lib/crtbegin_so.o lrwxrwxrwx 1 xiaodan xiaodan 83 7月 19 17:52 crtend_so.o -> /home/xiaodan/libs/android-ndk-r10/platforms/android-L/arch-arm/usr/lib/crtend_so.o xiaodan@xiaodan-G41M-ES2L:~/libs/android-ndk-r10/prebuilt$ ll lrwxrwxrwx 1 xiaodan xiaodan 14 7月 19 17:58 android-arm -> android-arm64//
-
@jsulm
I set the INCLUDEPATH,
make links of many files.
and it works...
But there must be something wrong:why these paths goes wrong.that's what I did:
xiaodan@xiaodan-G41M-ES2L:~/qtproj/build-test_android-Android_for_armeabi_GCC_4_9_Qt_5_5_0-Debug$ ll lrwxrwxrwx 1 xiaodan xiaodan 85 7月 19 17:52 crtbegin_so.o -> /home/xiaodan/libs/android-ndk-r10/platforms/android-L/arch-arm/usr/lib/crtbegin_so.o lrwxrwxrwx 1 xiaodan xiaodan 83 7月 19 17:52 crtend_so.o -> /home/xiaodan/libs/android-ndk-r10/platforms/android-L/arch-arm/usr/lib/crtend_so.o xiaodan@xiaodan-G41M-ES2L:~/libs/android-ndk-r10/prebuilt$ ll lrwxrwxrwx 1 xiaodan xiaodan 14 7月 19 17:58 android-arm -> android-arm64//
@egg.nut Did you configure QtCreator properly? Last time I did something for Android everything was working just fine after setting up SDK/NDK/QtCreator (and Qt for Android).
This one looks strange: android-arm -> android-arm64
Are you trying to build for arm64? -
@egg.nut Did you configure QtCreator properly? Last time I did something for Android everything was working just fine after setting up SDK/NDK/QtCreator (and Qt for Android).
This one looks strange: android-arm -> android-arm64
Are you trying to build for arm64? -
@egg.nut Did you configure QtCreator properly? Last time I did something for Android everything was working just fine after setting up SDK/NDK/QtCreator (and Qt for Android).
This one looks strange: android-arm -> android-arm64
Are you trying to build for arm64? -
@jsulm
I've seen a warning in Android Setting:
Qt versions for 3 architectures are missing.
Does this matters? -
@egg.nut If you have Qt for the architecture you want to use then you can ignore all the other
-
@jsulm
Not knowing what exactly is going wrong, it works.
Thanks a lot for your help.
I hope you could do me a hand again when other error occurs. -
I'm a green hand at Qt on Android. I ran into some problems in my first try.
Error/home/***/libs/android-ndk-r10/sources/cxx-stl/gnu-libstdc++/4.9/include/cstdlib:72: error: stdlib.h: No such file or directory #include <stdlib.h> ^
Other output
/bin/sh: 1: /home/***/libs/android-ndk-r10/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc: not found /bin/sh: 1: /home/***/libs/android-ndk-r10/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc: not found /bin/sh: 1: /home/***/libs/android-ndk-r10/toolchains/x86-4.8/prebuilt/linux-x86_64/bin/i686-linux-android-gcc: not found
Kids
- Ubuntu 16.04
- Qt for Android 5.5
- openjdk 80
- ndk r23
- ndk r10
In fact, I've tried to include the .h files manually.
The missing-header error disappeared,but,many more other errors came up.
I thought I've set ndk incorrectly,but,I've no idea about how it should be arranged.
It's such a mess.Could you tell me how to solve it or any docs or blogs that I need?