Forums

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

Viewing 3 posts - 1 through 3 (of 3 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
Viewing 3 posts - 1 through 3 (of 3 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
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support