ffmpeg error

Siwoo Pak·2021년 6월 14일
0

Node.js

목록 보기
2/5
  • 와따시노 맥북노 사양
    • MAC OS: 10.13.6
    • XCODE-SELECT: 2349
    • clang: 1000.10.44.4
  • 에러내용
==> Downloading https://ffmpeg.org/releases/ffmpeg-4.4.tar.xz
Already downloaded: /Users/siwoo/Library/Caches/Homebrew/downloads/837c094bbbd62f9664825da5b8206acd9a27ed63510f91410034a4a1572d3750--ffmpeg-4.4.tar.xz
==> Installing dependencies for ffmpeg: rust, libgit2, cargo-c, rav1e, flac, libsndfile, libsamplerate, rubberband, sdl2, swig, llvm, snappy, speex, srt, giflib, leptonica, tesseract, theora, isl, mpfr, libmpc, zstd, gcc, x264, xvid, boost, source-highlight, asciidoc, libsodium, zeromq and zimg
==> Installing ffmpeg dependency: rust
==> ./configure --prefix=/usr/local/Cellar/rust/1.52.1 --release-channel=stable
==> make
Last 15 lines from /Users/siwoo/Library/Logs/Homebrew/rust/02.make:
      ~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:325:9: error: no member named 'isunordered' in the global namespace
using ::isunordered;
      ~~^
13 errors generated.
ninja: build stopped: subcommand failed.
thread 'main' panicked at '
command did not execute successfully, got: exit code: 1

build script failed, must exit now', /Users/siwoo/Library/Caches/Homebrew/cargo_cache/registry/src/github.com-1ecc6299db9ec823/cmake-0.1.44/src/lib.rs:885:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
        finished in 188.539 seconds
failed to run: /private/tmp/rust-20210614-24663-u0yi1b/rustc-1.52.1-src/build/bootstrap/debug/bootstrap build --stage 2
Build completed unsuccessfully in 0:13:47
make: *** [all] Error 1

Do not report this issue to Homebrew/brew or Homebrew/core!

These open issues may also help:
Rust-dependent formulae on Apple Silicon - upstream issue tracker https://github.com/Homebrew/homebrew-core/issues/68301

Error: You are using macOS 10.13.
We (and Apple) do not provide support for this old version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
old version.
  • 이거 말고 처음엔 theora 쪽에서 에러가 나서 그 부분은
    brew edit theora에 url 주소만 다른 걸로 바꿔서 해결했는데
    이건 내 맥북이 구버전이라 컴파일러 도중에 못 찾는 것 같다.
  • 우선 xcode-select를 지우고 다시 설치한 다음에 다시 brew로 설치해 보았다. 하지만 역시 실패... 이래서 빨리 18년형 맥북이라도 사야...

이것저것 시도하다 결국 직접 받아서 빌드하는식으로 해 보았다. (지금 시간 새벽 5시경...)

$ git clone https://github.com/FFmpeg/FFmpeg
$ cd FFmpeg
$ ./configure
$ make && make install

빌드 및 설치는 정상적으로 되었음.

직접 서버를 구동해서 youtube clone 코딩한 내용을
테스트 해 보았다. 서버는 정상적으로 작동했고,
썸네일 이미지도 썸네일 폴더에 정상적으로 저장됐는데...
썸네일 생성에 실패했다고 알림이 뜸..
찾아보니 오타가.. 제정신으로 코딩한 게 아니었다지만...
클라이언트 쪽 오타를 잡고 더 이상 알림은 안 뜨지만..
동영상을 드랍존에 드랍하든가 파일 경로를 지정했는데
드랍존 옆에 썸네일이 뜨지 않는다.
console.log로 보니 썸네일의 경로를 가져오지 않는..
이게 뭔..,,,,
그리고 수차례 오타찾기 끝에 성공!

행복한데.. 쓰리다..

참고 : FFmpeg - 개발역사와 기본 빌드 (1)

profile
'하루를 참고 인내하면 열흘을 벌 수 있고 사흘을 참고 견디면 30일을, 30일을 견디면 3년을 벌 수 있다.'

0개의 댓글