Skip to content Skip to sidebar Skip to footer

Complile Error Openh264 Using Android Ndk

I am trying to compile the openh264 project for android but facing some trouble. I have setup the android_ndk-r10 properly and able to compile sample apps provided with the ndk. He

Solution 1:

Please see README.md in OpenH264 for instructions on how to build it for android.

The android project that you've found in codec\build\android\dec only builds a test example of a decoder - it doesn't build the codec itself. The main makefile in the root of the project (which README.md describes how to use) will both build the codec itself and the test examples.

Solution 2:

Thanks to mstorsjo I could successfully compile the openh264 libs and also run the android decoder/encoder sample app. The decoding/encoding works great.

The steps to compile the OpenH264 project(using windows) for Android are as mentioned by mstorsjo :-

You need 1) MSYS 2) android-ndk 3) OpenH264 project

Then from within MSYS, do "make OS=android NDKROOT=/unix/path/to/ndk TARGET=9 libopenh264.so". Now you can build the sample projects in codec/build/android just as you tried to do before.

Once the OpenH264 project is built then follow the steps I mentioned in my original question to build the sample android apps for decoder/encoder.

Post a Comment for "Complile Error Openh264 Using Android Ndk"