简体   繁体   中英

Android Studio cross-compiling static library.

Well, I'm trying to cross-compile a static library (.a format) for Android with this line: ./configure --prefix=$(pwd)/build --host=arm-linux-androideabi \\ --disable-shared

When It's compiling, i get this error: configure: error: libpthread not found!

I'm using Android Studio terminal and Mac OS X. I've used this tutorial, too: http://kvurd.com/blog/compiling-a-cpp-library-for-android-with-android-studio/

Thanks for help.

您可以尝试指定libpthread位置,例如

LD_FLAGS="-L/path/to/libpthread" ./configure --prefix=$(pwd)/build --host=arm-linux-androideabi \ --disable-shared

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM