Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Can't find stdlib.h included in cstdlib.
Forum Updated to NodeBB v4.3 + New Features

Can't find stdlib.h included in cstdlib.

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
headerndksolved
13 Posts 3 Posters 10.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J jsulm
    14 Jul 2016, 04:50

    @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?

    E Offline
    E Offline
    egg.nut
    wrote on 19 Jul 2016, 09:18 last edited by
    #3

    @jsulm
    In fact, I had been following http://doc.qt.io/qt-5/androidgs.html.
    To build an android app.
    With QtCreator.
    Only ONE THING went wrong that the SDK Manager couldn't fetch any file and said there were nothing to install or update.
    But,I don't think it causes this problem.
    Dose it?
    ╮(╯▽╰)╭

    1 Reply Last reply
    0
    • J jsulm
      14 Jul 2016, 04:50

      @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?

      E Offline
      E Offline
      egg.nut
      wrote on 19 Jul 2016, 09:27 last edited by
      #4

      @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

      1 Reply Last reply
      0
      • E Offline
        E Offline
        egg.nut
        wrote on 19 Jul 2016, 09:34 last edited by
        #5

        I manually changed the INCLUDEPATH, Qt found the headers but said:

        cannot open crtbegin_so.o: No such file or directory
        cannot open crtend_so.o: No such file or directory

        followed by many other errors.

        1 Reply Last reply
        0
        • J jsulm
          14 Jul 2016, 04:50

          @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?

          E Offline
          E Offline
          egg.nut
          wrote on 19 Jul 2016, 10:03 last edited by
          #6

          @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//
          
          J 1 Reply Last reply 19 Jul 2016, 10:08
          0
          • E egg.nut
            19 Jul 2016, 10:03

            @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//
            
            J Offline
            J Offline
            jsulm
            Lifetime Qt Champion
            wrote on 19 Jul 2016, 10:08 last edited by
            #7

            @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?

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            E 2 Replies Last reply 19 Jul 2016, 10:28
            0
            • J jsulm
              19 Jul 2016, 10:08

              @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?

              E Offline
              E Offline
              egg.nut
              wrote on 19 Jul 2016, 10:28 last edited by
              #8

              @jsulm
              Firstly,I did set the kits and it seems all right.
              Secondly,there no android-arm fold under ndk/prebuild so I gave it a link.
              Thirdly,It really works...

              Everything is wrong, and it turns to be fine.

              It struck me that I only set the Qt.Is there anything to set in SDK or NDK?

              1 Reply Last reply
              0
              • J jsulm
                19 Jul 2016, 10:08

                @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?

                E Offline
                E Offline
                egg.nut
                wrote on 19 Jul 2016, 10:36 last edited by
                #9

                @jsulm
                I've seen a warning in Android Setting:
                Qt versions for 3 architectures are missing.
                Does this matters?

                J 1 Reply Last reply 19 Jul 2016, 10:38
                0
                • E egg.nut
                  19 Jul 2016, 10:36

                  @jsulm
                  I've seen a warning in Android Setting:
                  Qt versions for 3 architectures are missing.
                  Does this matters?

                  J Offline
                  J Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on 19 Jul 2016, 10:38 last edited by
                  #10

                  @egg.nut If you have Qt for the architecture you want to use then you can ignore all the other

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  E 1 Reply Last reply 19 Jul 2016, 10:53
                  0
                  • J jsulm
                    19 Jul 2016, 10:38

                    @egg.nut If you have Qt for the architecture you want to use then you can ignore all the other

                    E Offline
                    E Offline
                    egg.nut
                    wrote on 19 Jul 2016, 10:53 last edited by
                    #11

                    @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.

                    J 1 Reply Last reply 19 Jul 2016, 10:54
                    0
                    • E egg.nut
                      19 Jul 2016, 10:53

                      @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.

                      J Offline
                      J Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on 19 Jul 2016, 10:54 last edited by
                      #12

                      @egg.nut Sure, I will help if I can

                      https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0
                      • E egg.nut
                        14 Jul 2016, 03:11

                        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?

                        lm365cnL Offline
                        lm365cnL Offline
                        lm365cn
                        wrote on 9 Aug 2016, 13:43 last edited by
                        #13

                        @egg.nut I met the same question,how do you solve it?

                        1 Reply Last reply
                        0

                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved