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. error: to_string is not a member of std while building an Android App.
Forum Updated to NodeBB v4.3 + New Features

error: to_string is not a member of std while building an Android App.

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
5 Posts 3 Posters 2.1k Views 1 Watching
  • 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.
  • M Offline
    M Offline
    mit_cruze
    wrote on 21 Jun 2017, 05:21 last edited by
    #1

    I am building an Android application on Qt Creator 4.0.2 based on Qt 5.7.0 which uses third party libraries like SDL2, OpenSSL and FFMPEG. I built all those for Android platform and made .so and .a. I am using Android for armeabi-V7a. All files in project are in C++.
    My Questions are as follows:

    1. Do I need Android.mk files in my project directory? If yes, where would be its location? What would be its content?

    2. What is difference between Ant and Gradle build?

    3. I am getting error like this while building app. Error: ti_string is not a member of std.

    Please help. I am new to Android App building on QT.

    J 1 Reply Last reply 21 Jun 2017, 11:07
    0
    • M Offline
      M Offline
      mvuori
      wrote on 21 Jun 2017, 09:11 last edited by
      #2
      1. No.
      2. Just different tool...
      3. to_string() is supposed to be supported by the compiler, but apparently NDK's compiler doesn't. You can implement it yourself, see
        https://stackoverflow.com/questions/22774009/android-ndk-stdto-string-support
      M 1 Reply Last reply 22 Jun 2017, 10:47
      0
      • M mit_cruze
        21 Jun 2017, 05:21

        I am building an Android application on Qt Creator 4.0.2 based on Qt 5.7.0 which uses third party libraries like SDL2, OpenSSL and FFMPEG. I built all those for Android platform and made .so and .a. I am using Android for armeabi-V7a. All files in project are in C++.
        My Questions are as follows:

        1. Do I need Android.mk files in my project directory? If yes, where would be its location? What would be its content?

        2. What is difference between Ant and Gradle build?

        3. I am getting error like this while building app. Error: ti_string is not a member of std.

        Please help. I am new to Android App building on QT.

        J Offline
        J Offline
        jsulm
        Lifetime Qt Champion
        wrote on 21 Jun 2017, 11:07 last edited by
        #3

        @mit_cruze You should use Gradle it is the default as far as I know. Ant can cause problems.

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

        M 1 Reply Last reply 22 Jun 2017, 10:47
        0
        • M mvuori
          21 Jun 2017, 09:11
          1. No.
          2. Just different tool...
          3. to_string() is supposed to be supported by the compiler, but apparently NDK's compiler doesn't. You can implement it yourself, see
            https://stackoverflow.com/questions/22774009/android-ndk-stdto-string-support
          M Offline
          M Offline
          mit_cruze
          wrote on 22 Jun 2017, 10:47 last edited by
          #4

          @mvuori thanks

          1 Reply Last reply
          0
          • J jsulm
            21 Jun 2017, 11:07

            @mit_cruze You should use Gradle it is the default as far as I know. Ant can cause problems.

            M Offline
            M Offline
            mit_cruze
            wrote on 22 Jun 2017, 10:47 last edited by
            #5

            @jsulm thanks

            1 Reply Last reply
            0

            1/5

            21 Jun 2017, 05:21

            • Login

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