Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

ffmpeg was built successfully with --use-clang. 2336-10.7 #8815

Closed
jankkhvej opened this issue Nov 27, 2011 · 45 comments
Closed

ffmpeg was built successfully with --use-clang. 2336-10.7 #8815

jankkhvej opened this issue Nov 27, 2011 · 45 comments

Comments

@jankkhvej
Copy link

I have successfully built ffmpeg with --use-clang on the Mac OS 10.7.2 and Xcode Version 4.2.1. Thus filing a "bug" as requested by brew with this info:

2336-10.7

@pwoolcoc
Copy link

This also worked for me. brew upgrade ffmpeg --use-clang

@Abai
Copy link

Abai commented Nov 29, 2011

Also works on Mac OS 10.6.8 Xcode Version 4.2 (4C199). 2336-10.6

@keithws
Copy link
Contributor

keithws commented Nov 30, 2011

Also worked for me on Mac OS X 10.7.2 with Xcode 4.2.1.

@levinalex
Copy link

+1

brew install ffmpeg does not work. brew install ffmpeg --use-gcc does not work (as there is no GCC) brew install ffmpeg --use-clang does work.

@adamv
Copy link
Contributor

adamv commented Nov 30, 2011

MacPorts has code in several ports that explicitly switches the compiler to clang if llvm-gcc-42 is detected (on the assumption that the Xcode w/ llvm-gcc-42 also provides clang, which it does).

We need to start doing something like that in these cases too.

@drmjc
Copy link

drmjc commented Dec 1, 2011

+1
I have the same system setup as keithws, and same findings as levinalex

@towynlin
Copy link

towynlin commented Dec 2, 2011

Hm. With OS X 10.7.2 and Xcode _4.1_ ffmpeg fails to build with all three of LLVM (build 2335), Clang (2.1-163.7.1), and GCC (4.2 build 5666). Downloading Xcode 4.2.1 now...

edit: not strictly true, macports conflicts, keep reading below...

@Sharpie
Copy link
Contributor

Sharpie commented Dec 2, 2011

@towynlin

FFmpeg definitely builds under XCode 4.1 if the --use-gcc flag is passed. You could be experiencing some other issue.

@towynlin
Copy link

towynlin commented Dec 2, 2011

@Sharpie

Thanks for the reality check. I'm gradually migrating from macports; in fact, this ffmpeg install was a choice to switch to homebrew rather than upgrade the port. In any case, --use-clang worked (still with Xcode 4.1) only after I completely moved macports out of the way. Default LLVM failed, but I'm guessing gcc would work too now that macports is out of the way.

As an intermediate step, I tried default, clang, and gcc with the system pkg-config (rather than the macports one) by moving macports to the end of my PATH, which still failed in all three cases. According to brew doctor, any of the following config scripts could have been the problem:

cppunit-config curl-config freetype-config gdlib-config icu-config libpng-config libpng14-config ncurses5-config ncursesw5-config nspr-config pcap-config pcre-config php-config pkg-config python-config python2.7-config rarian-sk-config scrollkeeper-config sdl-config xml2-config xslt-config

@sway
Copy link

sway commented Dec 4, 2011

ffmpeg 0.8.7 successfully built on XCode 4.2.1, OS X 10.7.2 using --use-clang
did not work without the --use-clang flag

@gerrit
Copy link

gerrit commented Dec 4, 2011

Mac OSX 10.7.2, fresh install of Xcode 4.2, brew-installed gcc-4.6 symlinked to /usr/local/bin/gcc, fails with brew install ffmpeg, brew install ffmpeg --use-gcc and brew install ffmpeg --use-clang

@dkam
Copy link

dkam commented Dec 6, 2011

This worked for me also: brew upgrade ffmpeg --use-clang

Result: 2335-10.7

@jcf
Copy link
Contributor

jcf commented Dec 6, 2011

Worked here with brew install ffmpeg --use-clang.

Result: 2336-10.7

@huwge
Copy link

huwge commented Dec 8, 2011

Worked with --use-clang on 10.7.2

Result: 2335-10.7

@casallas
Copy link
Contributor

casallas commented Dec 8, 2011

Also worked here with --use-clang on OS X 10.6.8

Result: 2336-10.6

@tetherit
Copy link

Works here with --use-clang too on 10.7.2

@franciscoj
Copy link
Contributor

+1 for --use-clang

@RSully
Copy link

RSully commented Dec 12, 2011

verified, works with --use-clang today

@gerrit
Copy link

gerrit commented Dec 12, 2011

2336-10.7

brew install ffmpeg --use-clang works now @ bb99486

@dickoff
Copy link
Contributor

dickoff commented Dec 13, 2011

Failed with brew upgrade ffmpeg --use-clang on 10.7.2 and XCode 4.2.1
brew doctor doesn't come up with any errors.

Result: 2336-10.7

https://gist.github.com/1470712

Appears to be an upstream issue? The configure fails on ERROR: libx264 version must be >= 0.118. Looking in my /usr/local/lib I have
libx264.116.dylib libx264.dylib

@mistydemeo
Copy link
Member

@mdickoff You need to brew upgrade x264. The most recent version in Homebrew is the version that ffmpeg is looking for.

@dickoff
Copy link
Contributor

dickoff commented Dec 13, 2011

@mistydemeo , hmm, I had tried this, however, brew upgrade x264 wasn't doing the trick. I needed to do a brew uninstall x264 and then brew install x264 for it to upgrade the libs.

@reco
Copy link

reco commented Dec 13, 2011

brew upgrade ffmpeg --use-clang dint work for me 10.7.2 Xcode 4.2.1

Error: Failed executing: ./configure --prefix=/usr/local/Cellar/ffmpeg/0.9 --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --cc=/usr/bin/clang --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libxvid --disable-ffplay

@mistydemeo
Copy link
Member

@reco Please open a new issue and gist the complete failure log.

@exiva
Copy link
Contributor

exiva commented Dec 18, 2011

@reco look up higher in the output, I think you may have run into the x264 issue @mdickoff pointed out. Just tried it with --use-clang and it worked perfectly.

@jredville
Copy link

Success: 2335-10.7

@mdickoff Thanks for the suggestion. --use-clang was failing for me, but once I did brew uninstall x264 it worked.

@dannyarcher
Copy link

--use-clang
worked

@olistik
Copy link

olistik commented Dec 28, 2011

brew install ffmpeg --use-clang

worked for me.

environment

@nilcolor
Copy link

2336-10.7

--use-clang option helps.

==> Environment
HOMEBREW_VERSION: 0.8.1
HEAD: 7ccf6fedd08f728e1b8e445b6a7c464365d5c6f8
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
Hardware: dual-core 64-bit penryn
OS X: 10.7.2
Kernel Architecture: x86_64
Ruby: 1.8.7-249
/usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
Xcode: 4.2
GCC-4.0: N/A
GCC-4.2: build 5666
LLVM: build 2336
Clang: 3.0-211.10.1
MacPorts or Fink? false
X11 installed? true

@ghost
Copy link

ghost commented Dec 31, 2011

brew cleanup; brew install ffmpeg --use-clang;

nice work!!

@ghost
Copy link

ghost commented Dec 31, 2011

hm
Segmentation fault: 11

@gmcdev
Copy link

gmcdev commented Jan 3, 2012

also getting a Segmentation fault: 11

@ghost
Copy link

ghost commented Jan 3, 2012

clang bad idea Virtual Machine down perfomace

http://www.phoronix.com/scan.php?page=article&item=gcc_llvm_clang

@emory
Copy link

emory commented Jan 6, 2012

==> ./configure --prefix=/usr/local/Cellar/ffmpeg/0.9 --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-libfreetype --cc=/usr/bin/llvm-gcc --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libxvid --disable-ffplay ./configure --prefix=/usr/local/Cellar/ffmpeg/0.9 --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-libfreetype --cc=/usr/bin/llvm-gcc --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libxvid --disable-ffplay
ERROR: libmp3lame >= 3.98.3 not found

Huh. There is no libmp3lame formula at this time.

Just did a brew update at 201201061718 US/Central.

@jacknagel
Copy link
Contributor

libmp3lame is part of the lame package.

@fguillen
Copy link

Doesn't work for me:

brew install ffmpeg
brew install ffmpeg --use-clang 
brew install ffmpeg --use-gcc

Neither with the trick:

brew remove --force x264
brew install x264

https://gist.github.com/1653583

OSX 10.7

@mistydemeo
Copy link
Member

@fguillen Can you please gist your brew --config and brew doctor output?

@mistydemeo
Copy link
Member

It looks like you have Macports installed. Having both Macports and Homebrew active at the same time can cause problems. Try removing Macports from your path, then install ffmpeg again.

If that doesn't work, uninstall and reinstall pkg-config with Homebrew.

@egermano
Copy link

Hi, i got a same error here.

I post a question here: http://stackoverflow.com/questions/8965639/ffmpeg-install-fail-osx-10-7-2

Anyone can help me?

I really need instal this to test codes in sites...

Plzzz

@mistydemeo
Copy link
Member

@egermano Did you read the message brew doctor gave you? Did you try following its advice?

@Sharpie
Copy link
Contributor

Sharpie commented Jan 23, 2012

@egermano

Looks like the error has to do with libmp3lame:

ERROR: libmp3lame >= 3.98.3 not found

This is also one of the unbrewed dylibs flagged by brew doctor.

@fguillen
Copy link

@mistydemeo: thanks for the suggestion, but even brew is an awesome tool I still depend on MacPorts for installing several tools that are not available in brew.

I tried to uninstall MacPorts just to make the test your asked me, but it ended with several errors and I was worry to compromise my system and in consequence my work productivity.

@egermano
Copy link

Hi everyone,

I read with more attention my brew doctor and fix all thing they that warn, but i could not install with success.

I found the article where the author build a script to install the ffmpeg and all dependency and thats works.

http://hunterford.me/compiling-ffmpeg-on-mac-os-x/

Pity that the brew did not work well in my environment.

Thank for all

@jacknagel
Copy link
Contributor

Just a note: build failures should be reported by filing new issues, complete with the information requested on the new issue checklist, found on the wiki.

@Homebrew Homebrew locked and limited conversation to collaborators Feb 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests