-
Notifications
You must be signed in to change notification settings - Fork 420
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
Build error with cygwin+NDKr4b #1
Comments
these two libs are wrappers to android native AudioTrack and surface flinger so they couldn't be build in ndk. So I have build them in android build system and copy them into my ffmpeg project. They are in libs dir, if you copy them into 'ndk_dir/out/apps/your_ffmpeg_project_name/ then ggc will link them corectlly' |
Thanks havlenapetr, as what you said, after I copy the two *.so files into \ffmpeg\obj\local\armeabi\objs\ dictory, this build error disappeared. But I still meet a new problem as following: I think this is because __android_log_print need external definition in android source code, but my build environment has only cygwin+NDK. |
sorry I don't know which branch are you building? Try debug branch and __android_log_print is defined in liblog.so which is in NDK, you can see this linkage in my Makefiles (LOCAL_LDLIBS := -llog) |
Dear Havlenapetr, i build this project in the same environment as seasky's, cygwin v2.721 + NDKr4b + Android SDK2.2, but i met some errors as following: I tried to fix these issues, but the final apk doesn't work well. the app can only play some special mp4 files, and the size of libffmpeg_jni.so is only 3,329K Bytes. would you please tell me the right procedure to build this project? |
Hi, I've currently gotten as far as the SharedLibrary : libffmpeg_jni.so error. Have you had any luck in finding a solution with getting the project to run? |
You can try put the liblog.so into the obj directory. Good Luck!
|
Hi,havlenapetr:
When I download your source code and build it in Cygwin + android NDK r4b. I meet a error like "make: *** No rule to make target
/cygdrive/c/android-ndk-r4b/samples/ffmpeg/obj/local/armeabi/libjniaudio.so', needed by
/cygdrive/c/android-ndk-r4b/samples/ffmpeg/obj/local/armeabi/libffmpeg_jni.so'. Stop."
And I check the /jni/jni/Android.mk file, there the libffmpeg_jni will use LOCAL_SHARED_LIBRARIES := libjniaudio libjnivideo, but I do not find which *.mk will create the two shared libraries. Could you tell what's wrong with it, how to resolve this problem. Thanks!
The text was updated successfully, but these errors were encountered: