Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android build (on Mac) fails with compiler error #45

Open
corliss opened this issue Dec 23, 2017 · 1 comment
Open

Android build (on Mac) fails with compiler error #45

corliss opened this issue Dec 23, 2017 · 1 comment

Comments

@corliss
Copy link

corliss commented Dec 23, 2017

I tried running rust/android/build.sh --verbose on macOS. It seems to compile the dependencies just fine. But in (what I think is) the last step of compiling servobridge, the build stops with this error:

note: /Users/corliss/Library/Developer/Xamarin/android-ndk/android-ndk-r11c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/ld: error: 
cannot find -lc++
          collect2: error: ld returned 1 exit status
          toolchain: /Users/corliss/Library/Developer/Xamarin/android-ndk/android-ndk-r11c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin
          libs dir: /Users/corliss/Library/Developer/Xamarin/android-ndk/android-ndk-r11c/sources/cxx-stl/llvm-libc++/libs/armeabi-v7a
          sysroot: /Users/corliss/Library/Developer/Xamarin/android-ndk/android-ndk-r11c/platforms/android-18/arch-arm
          targetdir: /Users/corliss/Library/Developer/Xamarin/android-ndk/android-ndk-r11c/sources/cxx-stl/llvm-libc++/libs/armeabi-v7a

It looks like the compiler cannot locate the standard C++ library, lc++.
Any idea what could be causing this?

@paulrouget
Copy link
Owner

paulrouget commented Jan 3, 2018

Make sure to use NDK version 12 or 12b. Other than that, I'm not sure. Is the library libc++.so in the ndk?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants