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.
  • mit_cruzeM Offline
    mit_cruzeM Offline
    mit_cruze
    wrote on 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.

    jsulmJ 1 Reply Last reply
    0
    • M Offline
      M Offline
      mvuori
      wrote on 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
      mit_cruzeM 1 Reply Last reply
      0
      • mit_cruzeM mit_cruze

        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.

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on 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

        mit_cruzeM 1 Reply Last reply
        0
        • M mvuori
          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
          mit_cruzeM Offline
          mit_cruzeM Offline
          mit_cruze
          wrote on last edited by
          #4

          @mvuori thanks

          1 Reply Last reply
          0
          • jsulmJ jsulm

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

            mit_cruzeM Offline
            mit_cruzeM Offline
            mit_cruze
            wrote on last edited by
            #5

            @jsulm thanks

            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