首页 文章

FFMPEG不会为iPhone配置

提问于
浏览
2

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

这是代码:

./configure --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'

我正在使用Snow Leopard 10.6.1 . 我究竟做错了什么?

2 回答

  • 0

    有时,您尝试运行的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 不存在,您将收到文件未找到错误 .

  • 1

    错误是它没有在shell的当前目录中找到“configure” . 运行此命令时,您当前的工作目录是什么?

相关问题