Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 2 Support (Qt 5) › error compiling for android: cannot find -lc++

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #21924

    jrrobles79

    Hi, Im trying to compile my app on android, and Im getting this error:

     

    android-ndk-r20/toolchains/x86-4.9/prebuilt/darwin-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin/ld: error: cannot find -lc++

    clang++: error: linker command failed with exit code 1 (use -v to see invocation)

     

    I dont know if Im using the wrong device, or if is the NDK version, on desktop my app work just fine, so I don’t know what is missing.

    #21932

    jrrobles79

    I don’t know if this is a correct response to my own problem, since Im very new to development on android, but I found this:

     

    https://bugreports.qt.io/browse/QTBUG-76293

     

    and solved (for now, since it’s still getting me some errors), on the app.pro file go to the android section and add:

     

    android{
    
    
      QMAKE_LFLAGS += -nostdlib++
    }

     

     

     

     

     

     

     

     

    #21960

    Alex
    Felgo Team
    #21978

    jrrobles79

    Hello Alex, thanks for answering, so, do I ignore r20? (I believe it is the latest version)

    #22042

    Alex
    Felgo Team

    Hi,

    if your fix works without side-effects, it is fine to use of course. But we recommend using NDK 19c, as this is also recommended by Qt and tested successfully.

    Cheers,
    Alex

Viewing 5 posts - 1 through 5 (of 5 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded