2012-09-21 52 views
7

我知道這可能是重複的一些問題。但這些線索的答案並不能幫助我。Bambuser ffmpeg - 「arm-linux-androideabi-gcc無法創建可執行文件。」

我想使用Bambuser的ffmpeg爲android編譯ffmpeg庫。
我從bambuser下載了Archive for client versions 1.3.7 to 1.6.0.

我遵循REAME中給出的指令。 的config.log
在運行運行./build.sh我碰到下面的錯誤

arm-linux-androideabi-gcc is unable to create an executable file. 
C compiler test failed. 

If you think configure made a mistake, make sure you are using the latest 
version from SVN. 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. 

這裏是最後幾行中TMP FFmpeg的

mktemp is /bin/mktemp 
check_ld 
check_cc 
BEGIN /tmp/ffconf.qflVj27Q.c 
    1 int main(void){ return 0; } 
END /tmp/ffconf.qflVj27Q.c 
arm-linux-androideabi-gcc --sysroot=/home/chaitanya/android/android-ndk-r5b/platforms/android-8/arch-arm -c -o /tmp/ffconf.gc6um0Ki.o /tmp/ffconf.qflVj27Q.c 
arm-linux-androideabi-gcc: error trying to exec 'cc1': execvp: No such file or directory 
C compiler test failed. 

我沒有找到任何的相關文件夾或文件按照config.log說「ffconf.qflVj27Q.c」。

我對
1.這樣做的Ubuntu 11.10
2的OpenJDK 6
3. Android的NDK-R5B

注意
我只有API-10安裝Eclipse。 (如果它很重要:D)

有什麼可以解決這個問題?

+0

找到解決方案了嗎? – Pramod

+3

在Windows中面臨同樣的問題 – DeltaCap

+0

@AZone您是否在Windows中找到解決方案? –

回答

11

當我面對同樣的問題時,終於找到了設置問題......看着arm-build.sh腳本,我開始關注腳本。注意「TOOLCHAIN = ...」路徑。

原來的路徑是: TOOLCHAIN = echo $NDK/toolchains/arm-linux-androideabi-4.6/prebuilt/*-x86

當我去驗證這個路徑存在,我發現事實並非如此。 我認爲原因是我有一個64位構建。

我的路其實是: ... /工具鏈/ ARM-Linux的androideabi-4.6 /預建/ Linux的x86_64的

我最終什麼事做被複制的文件夾中,並重命名爲「Linux的x86「,現在都在編譯。

希望這可以幫助別人!

+0

這是幫助我)謝謝! – Sirelon

+0

是否可以編輯build.sh文件(將* -x86更改爲* -x86_64)? –

1

我今天早上也遇到了這個問題,並嘗試瞭解決類似問題的解決方案。但沒有任何解決方案爲我工作。

但最後我解決了它。就我而言,這是Android NDK軟件包的問題。我的系統是64位ubuntu,我的ndk pkg也是linux-64bit。但是當我使用ndk-linux-x86時,這個問題就解決了。我希望這可以幫助別人。

相關問題