Closed shalinashiyan closed 9 years ago
Did you use branch for ndk-r10? because master branch as is written in documentation do not support ndk r10e.
What was output form ./build_android.sk?
Thanks for your prompt reply. I downloaded android-ndk-r10e-linux-x86_64.bin from https://developer.android.com/ndk/downloads/index.html (I am using ubuntu 14.0.4 64bits). I downloaded your source code like this (as this could download x264 folder in git submodule update). git clone https://github.com/appunite/AndroidFFmpeg.git AndroidFFmpeg cd AndroidFFmpeg git submodule init git submodule sync #if you are updating source code git submodule update cd library-jni cd jni ./fetch.sh ...
I did realize that I did not select ndk-r10e branch from your wiki. I just tried. https://github.com/appunite/AndroidFFmpeg/tree/ndk-r10e. git clone https://review.appunite.com/androidffmpeg AndroidFFmpeg cd AndroidFFmpeg git submodule init git submodule sync #if you are updating source code git submodule update ... However, here I could not download x264. Cloning into 'FFmpegLibrary/jni/x264'... remote: Counting objects: 18269, done. remote: Compressing objects: 100% (3409/3409), done. remote: Total 18269 (delta 15071), reused 18001 (delta 14818) Receiving objects: 100% (18269/18269), 4.34 MiB | 564.00 KiB/s, done. Resolving deltas: 100% (15071/15071), done. Checking connectivity... done. fatal: reference is not a tree: 999b753ff0f4dc872077f4fa90d465e948cbe656 Unable to checkout '999b753ff0f4dc872077f4fa90d465e948cbe656' in submodule path 'FFmpegLibrary/jni/x264' shalina@shalina-Inspiron-1720:~/test/AndroidFFmpeg$
I recall you just fixed that recently (maybe in master branch?). Thanks a lot.
please do not clone from gerrit it is deprecated use github and branch ndk-r10e r10e. or master branch with r8e
Thanks for your time. Sorry. Did you mean git clone from https://github.com/appunite/AndroidFFmpeg.git? I just did but it failed at tropicssl. Submodule path 'library-jni/jni/libyuv': checked out '5abb6d455640d657d35ce79365eaf78efea2a6c0' Cloning into 'library-jni/jni/tropicssl'... fatal: repository 'https://gitorious.org/tropicssl/tropicssl.git/' not found Clone of 'https://gitorious.org/tropicssl/tropicssl.git' into submodule path 'library-jni/jni/tropicssl' failed
All logs below. shalina@shalina-Inspiron-1720:~/test$ git clone https://github.com/appunite/AndroidFFmpeg.git Cloning into 'AndroidFFmpeg'... remote: Counting objects: 1355, done. remote: Compressing objects: 100% (135/135), done. remote: Total 1355 (delta 86), reused 0 (delta 0), pack-reused 1196 Receiving objects: 100% (1355/1355), 801.04 KiB | 609.00 KiB/s, done. Resolving deltas: 100% (645/645), done. Checking connectivity... done. shalina@shalina-Inspiron-1720:~/test$ cd AndroidFFmpeg/ shalina@shalina-Inspiron-1720:~/test/AndroidFFmpeg$ git submodule init Submodule 'library-jni/jni/ffmpeg' (git://source.ffmpeg.org/ffmpeg.git) registered for path 'library-jni/jni/ffmpeg' Submodule 'library-jni/jni/freetype2' (git://git.sv.gnu.org/freetype/freetype2.git) registered for path 'library-jni/jni/freetype2' Submodule 'library-jni/jni/fribidi' (https://github.com/appunite/fribidi.git) registered for path 'library-jni/jni/fribidi' Submodule 'library-jni/jni/libass' (https://github.com/libass/libass.git) registered for path 'library-jni/jni/libass' Submodule 'library-jni/jni/libyuv' (https://git.chromium.org/external/libyuv.git) registered for path 'library-jni/jni/libyuv' Submodule 'library-jni/jni/tropicssl' (https://gitorious.org/tropicssl/tropicssl.git) registered for path 'library-jni/jni/tropicssl' Submodule 'library-jni/jni/vo-aacenc' (git://git.code.sf.net/p/opencore-amr/vo-aacenc) registered for path 'library-jni/jni/vo-aacenc' Submodule 'library-jni/jni/vo-amrwbenc' (git://git.code.sf.net/p/opencore-amr/vo-amrwbenc) registered for path 'library-jni/jni/vo-amrwbenc' Submodule 'library-jni/jni/x264' (git://git.videolan.org/x264.git) registered for path 'library-jni/jni/x264' shalina@shalina-Inspiron-1720:~/test/AndroidFFmpeg$ git submodule sync Synchronizing submodule url for 'library-jni/jni/ffmpeg' Synchronizing submodule url for 'library-jni/jni/freetype2' Synchronizing submodule url for 'library-jni/jni/fribidi' Synchronizing submodule url for 'library-jni/jni/libass' Synchronizing submodule url for 'library-jni/jni/libyuv' Synchronizing submodule url for 'library-jni/jni/tropicssl' Synchronizing submodule url for 'library-jni/jni/vo-aacenc' Synchronizing submodule url for 'library-jni/jni/vo-amrwbenc' Synchronizing submodule url for 'library-jni/jni/x264' shalina@shalina-Inspiron-1720:~/test/AndroidFFmpeg$ git submodule update Cloning into 'library-jni/jni/ffmpeg'... remote: Counting objects: 431761, done. remote: Compressing objects: 100% (92756/92756), done. remote: Total 431761 (delta 343014), reused 426142 (delta 338278) Receiving objects: 100% (431761/431761), 102.31 MiB | 242.00 KiB/s, done. Resolving deltas: 100% (343014/343014), done. Checking connectivity... done. Submodule path 'library-jni/jni/ffmpeg': checked out '82db8ee3211014a38db6b8cae03f1c3246938eee' Cloning into 'library-jni/jni/freetype2'... remote: Counting objects: 52942, done. remote: Compressing objects: 100% (8811/8811), done. remote: Total 52942 (delta 43830), reused 52932 (delta 43825) Receiving objects: 100% (52942/52942), 15.02 MiB | 520.00 KiB/s, done. Resolving deltas: 100% (43830/43830), done. Checking connectivity... done. Submodule path 'library-jni/jni/freetype2': checked out '320613eeb83d0cd704de3e6adfb13dce787861bb' Cloning into 'library-jni/jni/fribidi'... remote: Counting objects: 536, done. remote: Total 536 (delta 0), reused 0 (delta 0), pack-reused 536 Receiving objects: 100% (536/536), 1.80 MiB | 577.00 KiB/s, done. Resolving deltas: 100% (307/307), done. Checking connectivity... done. Submodule path 'library-jni/jni/fribidi': checked out '3b4b2c54f2ba6964bb5e81cbf5dff70b1e0b1d44' Cloning into 'library-jni/jni/libass'... remote: Counting objects: 5538, done. remote: Compressing objects: 100% (9/9), done. remote: Total 5538 (delta 3), reused 0 (delta 0), pack-reused 5529 Receiving objects: 100% (5538/5538), 1.93 MiB | 568.00 KiB/s, done. Resolving deltas: 100% (3598/3598), done. Checking connectivity... done. Submodule path 'library-jni/jni/libass': checked out 'de409235f4a32f6dfa6ab73eeb4bcd8d3b679387' Cloning into 'library-jni/jni/libyuv'... remote: Counting objects: 12385, done. remote: Compressing objects: 100% (1898/1898), done. remote: Total 12385 (delta 10470), reused 12385 (delta 10470) Receiving objects: 100% (12385/12385), 5.78 MiB | 561.00 KiB/s, done. Resolving deltas: 100% (10470/10470), done. Checking connectivity... done. Submodule path 'library-jni/jni/libyuv': checked out '5abb6d455640d657d35ce79365eaf78efea2a6c0' Cloning into 'library-jni/jni/tropicssl'... fatal: repository 'https://gitorious.org/tropicssl/tropicssl.git/' not found Clone of 'https://gitorious.org/tropicssl/tropicssl.git' into submodule path 'library-jni/jni/tropicssl' failed shalina@shalina-Inspiron-1720:~/test/AndroidFFmpeg$
I think I should use git clone https://github.com/appunite/AndroidFFmpeg/tree/ndk-r10e. I am doing that now.
Sorry for several posts. I tried git clone https://github.com/appunite/AndroidFFmpeg AndroidFFmpeg git checkout origin/ndk-r10e ... same error fatal: repository 'https://gitorious.org/tropicssl/tropicssl.git/' not found. Please help.
Full log here. shalina@shalina-Inspiron-1720:~/test$ rm -rf AndroidFFmpeg shalina@shalina-Inspiron-1720:~/test$ git clone https://github.com/appunite/AndroidFFmpeg/tree/ndk-r10e AndroidFFmpeg Cloning into 'AndroidFFmpeg'... fatal: repository 'https://github.com/appunite/AndroidFFmpeg/tree/ndk-r10e/' not found shalina@shalina-Inspiron-1720:~/test$ git clone https://github.com/appunite/AndroidFFmpeg AndroidFFmpeg Cloning into 'AndroidFFmpeg'... remote: Counting objects: 1355, done. remote: Compressing objects: 100% (135/135), done. remote: Total 1355 (delta 86), reused 0 (delta 0), pack-reused 1196 Receiving objects: 100% (1355/1355), 801.04 KiB | 589.00 KiB/s, done. Resolving deltas: 100% (645/645), done. Checking connectivity... done. shalina@shalina-Inspiron-1720:~/test$ cd AndroidFFmpeg/ shalina@shalina-Inspiron-1720:~/test/AndroidFFmpeg$ ls -al total 76 drwxrwxr-x 7 shalina shalina 4096 Jul 7 10:48 . drwxrwxr-x 8 shalina shalina 4096 Jul 7 10:48 .. -rw-rw-r-- 1 shalina shalina 301 Jul 7 10:48 build.gradle drwxrwxr-x 3 shalina shalina 4096 Jul 7 10:48 example drwxrwxr-x 8 shalina shalina 4096 Jul 7 10:48 .git -rw-rw-r-- 1 shalina shalina 239 Jul 7 10:48 .gitignore -rw-rw-r-- 1 shalina shalina 1076 Jul 7 10:48 .gitmodules drwxrwxr-x 3 shalina shalina 4096 Jul 7 10:48 gradle -rwxrwxr-x 1 shalina shalina 5080 Jul 7 10:48 gradlew drwxrwxr-x 3 shalina shalina 4096 Jul 7 10:48 library drwxrwxr-x 3 shalina shalina 4096 Jul 7 10:48 library-jni -rw-rw-r-- 1 shalina shalina 10174 Jul 7 10:48 LICENSE -rw-rw-r-- 1 shalina shalina 4867 Jul 7 10:48 README.md -rw-rw-r-- 1 shalina shalina 38 Jul 7 10:48 settings.gradle -rw-rw-r-- 1 shalina shalina 1435 Jul 7 10:48 .travis.yml shalina@shalina-Inspiron-1720:~/test/AndroidFFmpeg$ git branch -r origin/HEAD -> origin/master origin/hardware-decoding origin/master origin/ndk-r10e shalina@shalina-Inspiron-1720:~/test/AndroidFFmpeg$ cd .. shalina@shalina-Inspiron-1720:~/test$ rm -rf AndroidFFmpeg shalina@shalina-Inspiron-1720:~/test$ git clone https://github.com/appunite/AndroidFFmpeg AndroidFFmpeg Cloning into 'AndroidFFmpeg'... remote: Counting objects: 1355, done. remote: Compressing objects: 100% (135/135), done. remote: Total 1355 (delta 86), reused 0 (delta 0), pack-reused 1196 Receiving objects: 100% (1355/1355), 801.04 KiB | 593.00 KiB/s, done. Resolving deltas: 100% (645/645), done. Checking connectivity... done. shalina@shalina-Inspiron-1720:~/test$ cd AndroidFFmpeg/ shalina@shalina-Inspiron-1720:~/test/AndroidFFmpeg$ git branch -r origin/HEAD -> origin/master origin/hardware-decoding origin/master origin/ndk-r10e shalina@shalina-Inspiron-1720:~/test/AndroidFFmpeg$ git checkout origin/ndk-r10e Note: checking out 'origin/ndk-r10e'.
You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may do so (now or later) by using -b with the checkout command again. Example:
git checkout -b new_branch_name
HEAD is now at 0089d8e... Disable 64' build shalina@shalina-Inspiron-1720:~/test/AndroidFFmpeg$ git status HEAD detached at origin/ndk-r10e nothing to commit, working directory clean shalina@shalina-Inspiron-1720:~/test/AndroidFFmpeg$ git checkout -b ndk-r10e Switched to a new branch 'ndk-r10e' shalina@shalina-Inspiron-1720:~/test/AndroidFFmpeg$ git branch master
shalina@shalina-Inspiron-1720:~/test/AndroidFFmpeg$ git branch -r origin/HEAD -> origin/master origin/hardware-decoding origin/master origin/ndk-r10e shalina@shalina-Inspiron-1720:~/test/AndroidFFmpeg$ ls -al total 76 drwxrwxr-x 7 shalina shalina 4096 Jul 7 10:49 . drwxrwxr-x 8 shalina shalina 4096 Jul 7 10:49 .. -rw-rw-r-- 1 shalina shalina 301 Jul 7 10:49 build.gradle drwxrwxr-x 3 shalina shalina 4096 Jul 7 10:49 example drwxrwxr-x 8 shalina shalina 4096 Jul 7 10:50 .git -rw-rw-r-- 1 shalina shalina 239 Jul 7 10:49 .gitignore -rw-rw-r-- 1 shalina shalina 1076 Jul 7 10:49 .gitmodules drwxrwxr-x 3 shalina shalina 4096 Jul 7 10:49 gradle -rwxrwxr-x 1 shalina shalina 5080 Jul 7 10:49 gradlew drwxrwxr-x 3 shalina shalina 4096 Jul 7 10:49 library drwxrwxr-x 3 shalina shalina 4096 Jul 7 10:49 library-jni -rw-rw-r-- 1 shalina shalina 10174 Jul 7 10:49 LICENSE -rw-rw-r-- 1 shalina shalina 4921 Jul 7 10:49 README.md -rw-rw-r-- 1 shalina shalina 38 Jul 7 10:49 settings.gradle -rw-rw-r-- 1 shalina shalina 1573 Jul 7 10:49 .travis.yml shalina@shalina-Inspiron-1720:~/test/AndroidFFmpeg$ pwd /home/shalina/test/AndroidFFmpeg shalina@shalina-Inspiron-1720:~/test/AndroidFFmpeg$ git branch -r origin/HEAD -> origin/master origin/hardware-decoding origin/master origin/ndk-r10e shalina@shalina-Inspiron-1720:~/test/AndroidFFmpeg$ git branch master
shalina@shalina-Inspiron-1720:~/test/AndroidFFmpeg$ git submodule init Submodule 'library-jni/jni/ffmpeg' (git://source.ffmpeg.org/ffmpeg.git) registered for path 'library-jni/jni/ffmpeg' Submodule 'library-jni/jni/freetype2' (git://git.sv.gnu.org/freetype/freetype2.git) registered for path 'library-jni/jni/freetype2' Submodule 'library-jni/jni/fribidi' (https://github.com/appunite/fribidi.git) registered for path 'library-jni/jni/fribidi' Submodule 'library-jni/jni/libass' (https://github.com/libass/libass.git) registered for path 'library-jni/jni/libass' Submodule 'library-jni/jni/libyuv' (https://git.chromium.org/external/libyuv.git) registered for path 'library-jni/jni/libyuv' Submodule 'library-jni/jni/tropicssl' (https://gitorious.org/tropicssl/tropicssl.git) registered for path 'library-jni/jni/tropicssl' Submodule 'library-jni/jni/vo-aacenc' (git://git.code.sf.net/p/opencore-amr/vo-aacenc) registered for path 'library-jni/jni/vo-aacenc' Submodule 'library-jni/jni/vo-amrwbenc' (git://git.code.sf.net/p/opencore-amr/vo-amrwbenc) registered for path 'library-jni/jni/vo-amrwbenc' Submodule 'library-jni/jni/x264' (git://git.videolan.org/x264.git) registered for path 'library-jni/jni/x264' shalina@shalina-Inspiron-1720:~/test/AndroidFFmpeg$ git submodule sync Synchronizing submodule url for 'library-jni/jni/ffmpeg' Synchronizing submodule url for 'library-jni/jni/freetype2' Synchronizing submodule url for 'library-jni/jni/fribidi' Synchronizing submodule url for 'library-jni/jni/libass' Synchronizing submodule url for 'library-jni/jni/libyuv' Synchronizing submodule url for 'library-jni/jni/tropicssl' Synchronizing submodule url for 'library-jni/jni/vo-aacenc' Synchronizing submodule url for 'library-jni/jni/vo-amrwbenc' Synchronizing submodule url for 'library-jni/jni/x264' shalina@shalina-Inspiron-1720:~/test/AndroidFFmpeg$ git submodule update Cloning into 'library-jni/jni/ffmpeg'... remote: Counting objects: 431761, done. remote: Compressing objects: 100% (92756/92756), done. remote: Total 431761 (delta 343013), reused 426143 (delta 338278) Receiving objects: 100% (431761/431761), 102.31 MiB | 582.00 KiB/s, done. Resolving deltas: 100% (343013/343013), done. Checking connectivity... done. Submodule path 'library-jni/jni/ffmpeg': checked out '82db8ee3211014a38db6b8cae03f1c3246938eee' Cloning into 'library-jni/jni/freetype2'... remote: Counting objects: 52942, done. remote: Compressing objects: 100% (8811/8811), done. remote: Total 52942 (delta 43830), reused 52932 (delta 43825) Receiving objects: 100% (52942/52942), 15.02 MiB | 535.00 KiB/s, done. Resolving deltas: 100% (43830/43830), done. Checking connectivity... done. Submodule path 'library-jni/jni/freetype2': checked out '320613eeb83d0cd704de3e6adfb13dce787861bb' Cloning into 'library-jni/jni/fribidi'... remote: Counting objects: 536, done. remote: Total 536 (delta 0), reused 0 (delta 0), pack-reused 536 Receiving objects: 100% (536/536), 1.80 MiB | 584.00 KiB/s, done. Resolving deltas: 100% (307/307), done. Checking connectivity... done. Submodule path 'library-jni/jni/fribidi': checked out '3b4b2c54f2ba6964bb5e81cbf5dff70b1e0b1d44' Cloning into 'library-jni/jni/libass'... remote: Counting objects: 5538, done. remote: Compressing objects: 100% (9/9), done. remote: Total 5538 (delta 3), reused 0 (delta 0), pack-reused 5529 Receiving objects: 100% (5538/5538), 1.93 MiB | 593.00 KiB/s, done. Resolving deltas: 100% (3598/3598), done. Checking connectivity... done. Submodule path 'library-jni/jni/libass': checked out 'de409235f4a32f6dfa6ab73eeb4bcd8d3b679387' Cloning into 'library-jni/jni/libyuv'... remote: Counting objects: 12385, done. remote: Compressing objects: 100% (1886/1886), done. remote: Total 12385 (delta 10482), reused 12385 (delta 10482) Receiving objects: 100% (12385/12385), 5.77 MiB | 535.00 KiB/s, done. Resolving deltas: 100% (10482/10482), done. Checking connectivity... done. Submodule path 'library-jni/jni/libyuv': checked out '5abb6d455640d657d35ce79365eaf78efea2a6c0' Cloning into 'library-jni/jni/tropicssl'... fatal: repository 'https://gitorious.org/tropicssl/tropicssl.git/' not found Clone of 'https://gitorious.org/tropicssl/tropicssl.git' into submodule path 'library-jni/jni/tropicssl' failed shalina@shalina-Inspiron-1720:~/test/AndroidFFmpeg$
@shalinashiyan You need to wait: https://gitorious.org/tropicssl/ gitorious has some migrations
Changed source of git module
Hi,
AndroidFFmpeg is a great project. I tried to build it from the source code by following the instruction in https://github.com/appunite/AndroidFFmpeg. After successfully running ./build_android.sh using android ndk r10, however, I couldn't find libffmpeg.so being created. In the folder library-jni/jni/ffmpeg-build/armeabi, I can see bin, include, lib, share folders but there is no libffmpeg.so file. Anything else I need to be aware of? Thanks.