ffmpeg configure遇到的奇怪問題

今天在對編譯ffmpeg時,首先進行./configure, 結果提示如下錯誤:

    xxx-linux-gcc  is unable to create an executable file.

    C compiler test failed.

 

仔細看configure文件,錯誤信息顯示如下:

# compiler sanity check
check_exec <<EOF
int main(void){ return 0; }
EOF

echo wait..(此爲新增)
if test "$?" != 0; then
    echo "$cc is unable to create an executable file."
    if test -z "$cross_prefix" && ! enabled cross_compile ; then
        echo "If $cc is a cross-compiler, use the --enable-cross-compile option."
        echo "Only do this if you know what cross compiling means."
    fi
    die "C compiler test failed."
fi

 

折騰了好一會兒也沒有解決。偶然發現在腳本中增加一行echo信息: echo wait..    竟然不再提示錯誤信息了。

這是神馬原因??????????????

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章