EricssonResearch / cerbero

OpenWebRTC cerbero fork
GNU Lesser General Public License v2.1
19 stars 58 forks source link

Compare to support armv7 and arm64 together. #58

Open Jimmygio opened 7 years ago

Jimmygio commented 7 years ago

Hi sir:

I want to support armv7 and arm64 together and I found you have a solution at : https://github.com/EricssonResearch/cerbero/commit/27be5963f619e392910b1f74d13125482b308588?diff=unified

But the newest cerbero master version still link to https://github.com/atgreen/libffi.git, not link to https://github.com/NativeScript/libffi.git

So I need to directly edit the libffi.recipe and libffi/0001-libffi-Don-t-be-smart-about-toolexeclibdir.patch by myself and compile to support armv7 and arm64 together, right?

But I met a error during compile. Could you help me? Thinks.

[(13/23) libffi -> extract ] HEAD is now at 6ba2a49 Merge pull request #222 from freakboy3742/t181 fatal: A branch named 'cerbero_build' already exists. Already on 'cerbero_build' HEAD is now at 6ba2a49 Merge pull request #222 from freakboy3742/t181 Cloning into '.'... done. jimmygio@me.com Jimmy Chang Applying: Modified arm/sysv.S to remove directives not allowed by clang. .git/rebase-apply/patch:79: space before tab in indent. .arch armv5t error: patch failed: src/arm/sysv.S:52 error: src/arm/sysv.S: patch does not apply Patch failed at 0001 Modified arm/sysv.S to remove directives not allowed by clang. The copy of the patch that failed is found in: .git/rebase-apply/patch When you have resolved this problem, run "git am --continue". If you prefer to skip this patch, run "git am --skip" instead. To restore the original branch and stop patching, run "git am --abort". Running command 'git reset --hard 6ba2a49e226b859ddde9a37c34973cf85380c525' Running command 'git branch cerbero_build' Running command 'git checkout cerbero_build' Running command 'git reset --hard 6ba2a49e226b859ddde9a37c34973cf85380c525' Running command 'git clone /Users/jimmychang/cerbero/build/sources/local/libffi -s -b cerbero_build .' Running command 'git config user.email' Running command 'git config user.name' Running command 'git submodule init' Running command 'git submodule sync' Running command 'git submodule update' Running command 'git submodule sync' Running command 'git am --ignore-whitespace /Users/jimmychang/cerbero/recipes/libffi/0001-libffi-Don-t-be-smart-about-toolexeclibdir.patch'

Recipe 'libffi' failed at the build step 'extract' Select an action to proceed: [0] Enter the shell [1] Rebuild the recipe from scratch [2] Rebuild starting from the failed step [3] Skip recipe [4] Abort

ford-prefect commented 7 years ago

We very recently added a universal Android build to Cerbero master (https://cgit.freedesktop.org/gstreamer/cerbero/tree/config/cross-android-universal.cbc). It should be possible to cherry-pick those onto the Cerbero tree and use that to get a build for multiple arches simultaneously.

@slomo has uploaded a tarball for the gstreamer package already at https://gstreamer.freedesktop.org/data/pkg/android/1.9.2/gstreamer-1.0-android-universal-1.9.2.tar.bz2

The corresponding app-side build changes look like this -- https://cgit.freedesktop.org/gstreamer/gst-examples/commit/?id=a5cdde9119f038a1eb365aca20faa9741a38e788

Jimmygio commented 7 years ago

Thinks for your reply. But I forget to say I want to build iOS framework...