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

libyuv compilation error with Android API 18 #12

Closed
datso opened this issue Mar 21, 2016 · 5 comments
Closed

libyuv compilation error with Android API 18 #12

datso opened this issue Mar 21, 2016 · 5 comments
Labels

Comments

@datso
Copy link

datso commented Mar 21, 2016

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
Copy link
Contributor

gotev commented Mar 21, 2016

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
Copy link
Contributor

gotev commented Mar 21, 2016

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.

@gotev gotev changed the title cannot stat libyuv.so libyuv compilation error with Android API 18 Mar 21, 2016
@gotev gotev closed this as completed Mar 22, 2016
@neutronstein
Copy link

still not working :(

@gotev
Copy link
Contributor

gotev commented Mar 31, 2016

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

@yuvaraj119
Copy link

yuvaraj119 commented Feb 10, 2017

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

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

No branches or pull requests

4 participants