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

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


    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.



    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:



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


      QMAKE_LFLAGS += -nostdlib++










    Felgo Team


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


    Felgo Team


    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.


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

RSS feed for this thread

You must be logged in to reply to this topic.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
create apps
create games
cross platform
native performance
3rd party services
game network
level editor
easiest to learn
biggest time saving
best support