【问题标题】:FFMPEG won't configure for iPhoneFFMPEG 不会为 iPhone 配置
【发布时间】:2010-12-28 08:44:04
【问题描述】:

我已经通过 svn 下载了 FFMPEG,并将气体预处理器放入 usr/local/bin。但是,当我尝试将以下代码发布到终端时,它会显示:-bash: ./configure: No such file or directory

这是代码:

./配置 --cc=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc --as='gas-preprocessor.pl /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc' --sysroot=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.sdk --enable-cross-compile --target-os=darwin --arch=arm --cpu=arm1176jzf-s -- disable-pic --enable-gpl --enable-postproc --disable-debug --disable-stripping --enable-avfilter --enable-avfilter-lavf --extra-cflags='-arch armv6' --extra- ldflags='-arch armv6'

我使用的是雪豹 10.6.1。我做错了什么?

【问题讨论】:

    标签: iphone osx-snow-leopard ffmpeg configure


    【解决方案1】:

    有时,您尝试运行的 shell 脚本在文件顶部的 hashbang 路径有误(然后会正确报告,但会模棱两可地作为丢失的文件)。打开配置脚本并检查它试图运行的路径。

    例如,看看这个配置脚本的顶部:

    [on mymachine in directory sqsh-2.1.5]$ head -3 configure
    #! /bin/sh
    # Guess values for system-dependent variables and create Makefiles.
    # Generated by GNU Autoconf 2.59.
    

    如果由于某种原因/bin/sh 不存在,您将收到文件未找到错误。

    【讨论】:

    • 如果你在谈论 ffmpeg 配置脚本,一旦打开它就会说它在它所在的目录中。此外,代码中的所有目录都包含项目。 (例如,Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.sdki 是 iPhone OS 3.1 sdk 的正确目录)
    【解决方案2】:

    错误是它没有在 shell 的当前目录中找到“配置”。运行此程序时,您当前的工作目录是什么?

    【讨论】:

    • 要详细了解 NSR 的要求,请键入 pwd。结果应该是放置 ffmpeg 的同一目录。如果没有,那就搬到那里。
    • 当我输入pwn时,它会说ffmpeg所在的目录,所以那里没有问题。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-09-02
    • 2012-03-08
    • 1970-01-01
    • 2011-02-17
    • 2011-08-01
    • 2014-09-16
    • 1970-01-01
    相关资源
    最近更新 更多