2014-03-19 79 views
2

我正在致力於https://github.com/guardianproject/android-ffmpeg項目。 在這個項目中,它使用ffmpeg版本0.11.1。 如何使用最新的ffmpeg版本構建此項目?如何在github上爲android-ffmpeg項目構建最新的ffmpeg

我嘗試刪除此項目中的ffmpeg文件夾。在url中檢出最新的ffmpeg版本:[git://git.videolan.org/ffmpeg.git]。在那之後,我跑命令./configure_make_everything.sh正常的,但我得到的錯誤:

File to patch: 
Skip this patch? [y] 
Skipping patch. 
3 out of 3 hunks ignored 
patching file libavutil/arm/intmath.h 
Reversed (or previously applied) patch detected! Skipping patch. 
3 out of 3 hunks ignored 
patching file configure 
Reversed (or previously applied) patch detected! Skipping patch. 
1 out of 1 hunk ignored 
~/workspace/android-ffmpeg/ffmpeg ~/workspace/android-ffmpeg ~/workspace/android-ffmpeg 
**ERROR: freetype2 not found** 

If you think configure made a mistake, make sure you are using the latest 
version from Git. If the latest version fails, report the problem to the 
[email protected] mailing list or IRC#ffmpeg on irc.freenode.net. 
Include the log file "config.log" produced by configure as this will help 
solving the problem. 
~/workspace/android-ffmpeg ~/workspace/android-ffmpeg 
~/workspace/android-ffmpeg 
~/workspace/android-ffmpeg ~/workspace/android-ffmpeg 
~/workspace/android-ffmpeg/ffmpeg ~/workspace/android-ffmpeg ~/workspace/android-ffmpeg 
Makefile:2: config.mak: No such file or directory 
Makefile:53: /common.mak: No such file or directory 
Makefile:93: /libavutil/Makefile: No such file or directory 
Makefile:93: /library.mak: No such file or directory 
Makefile:95: /doc/Makefile: No such file or directory 
Makefile:178: /tests/Makefile: No such file or directory 
make: *** No rule to make target `/tests/Makefile'. Stop. 
Makefile:2: config.mak: No such file or directory 
Makefile:53: /common.mak: No such file or directory 
Makefile:93: /libavutil/Makefile: No such file or directory 
Makefile:93: /library.mak: No such file or directory 
Makefile:95: /doc/Makefile: No such file or directory 
Makefile:178: /tests/Makefile: No such file or directory 
make: *** No rule to make target `/tests/Makefile'. Stop. 
~/workspace/android-ffmpeg ~/workspace/android-ffmpeg 
~/workspace/android-ffmpeg 
[email protected]:~/workspace/android-ffmpeg$ 

我得到了錯誤:對FreeType2沒有找到,但如果我與原來的ffmpeg在此建項目包括,這個錯誤不會發生。

我該如何解決?請幫助

回答

1

我在爲桌面構建ffmpeg時遇到了同樣的問題。在我的情況下,ffmpeg正在尋找/ usr/include/freetype中的freetype2頭文件而不是/ usr/include/freetype2。

該解決方案是醜陋的,但我創建了一個符號鏈接

sudo ln -s /usr/include/freetype2/ /usr/include/freetype

隨後的./configure是succesfull。

您可能能夠實現通過修補ffmpeg的相同與

#include <freetype2/config/ftheader.h>

它看起來像這樣,以取代

#include <freetype/config/ftheader.h>

所有實例只是在libavfilter/vf_drawtext .c

由於y您可能需要爲適用於您架構的freetype2修改適當位置的路徑,以便爲不同的CPU構建。

1

這差不多一年前了,所以我假設你不是在等待答案,但我有一個。我分出了監護人項目並更新了子模塊條目。

https://github.com/touchlab/android-ffmpeg

你需要手動編輯根據頂部的音符ffmpeg的/配置。忽略關於ffmpeg/libavutil/arm/intmath.h的部分。

我用ndk r10c構建了這個。

+0

不幸的是,我希望這個修復它,但它已經應用在當前的起源。我也有同樣的問題,因爲ndk 10 –

+0

我也應用在當前的代碼,但它不工作! –

相關問題