VoiSmart / pjsip-android-builder

Complete Android build environment for PJSIP with OpenSSL, OpenH264, Opus and G.729
225 stars 135 forks source link

libyuv compilation error with Android API 18 #12

Closed datso closed 8 years ago

datso commented 8 years ago

Hello, I'm trying to build pjsip as described in README, but build fails on libyuv library.

vagrant@pjsip-android-builder:/pjsip-android-builder$ ./build Clear final build folder ... Creating config site file for Android ... Compile PJSIP for arch armeabi ... cp: cannot stat '/pjsip-android-builder/libyuv-android/libs/armeabi/libyuv.so': No such file or directory

vagrant_up_log.zip

BTW, thanks for the work!

gotev commented 8 years ago

libyuv android repo has been updated from r1255 to r1580 recently, and that's the cause. Some changes are needed to be able to compile with API 18. Specifically, the bulld has to be made only for non 64 bit builds.

gotev commented 8 years ago

Had to disable mips build with Android API 18 due to this compilation error:

[mips] SharedLibrary  : libyuv.so
./obj/local/mips/objs/yuv/source/convert.o: In function `libyuv::CopyPlane2(unsigned char const*, int, int, unsigned char*, int, int, int)':
/pjsip-android-builder/libyuv-android/jni/source/convert.cc:212: undefined reference to `CopyRow_MIPS'
./obj/local/mips/objs/yuv/source/planar_functions.o: In function `CopyPlane':
/pjsip-android-builder/libyuv-android/jni/source/planar_functions.cc:66: undefined reference to `CopyRow_MIPS'
/pjsip-android-builder/libyuv-android/jni/source/planar_functions.cc:66: undefined reference to `CopyRow_MIPS'
/pjsip-android-builder/libyuv-android/jni/source/planar_functions.cc:66: undefined reference to `CopyRow_MIPS'
/pjsip-android-builder/libyuv-android/jni/source/planar_functions.cc:66: undefined reference to `CopyRow_MIPS'
./obj/local/mips/objs/yuv/source/planar_functions.o:/pjsip-android-builder/libyuv-android/jni/source/planar_functions.cc:66: more undefined references to `CopyRow_MIPS' follow
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [obj/local/mips/libyuv.so] Error 1

If someone has any clues on how to resolve that, send me a pull request.

neutronstein commented 8 years ago

still not working :(

gotev commented 8 years ago

@NeutronStein unless someone has an idea on how to resolve the mentioned error with a patch, it's not going to work.

yuvaraj119 commented 7 years ago

I am also not able to build for arm64-v8a android architecture. libyuv library dosent have the arm64-v8a. how to update this or any other solution. i am using API 21. Error while build Compile PJSIP for arch arm64-v8a ... cp: cannot stat ‘/home/vagrant/libyuv-android/libs/arm64-v8a/libyuv.so’: No such file or directory