Tour Preview

Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!


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.