[GH-ISSUE #19] ffmpeg / libav libraries #18

Closed
opened 2026-05-05 15:02:46 -06:00 by gitea-mirror · 14 comments
Owner

Originally created by @McZonk on GitHub (Mar 19, 2014).
Original GitHub issue: https://github.com/zakk4223/CocoaSplit/issues/19

What library in which version do I need to compile the source?

Originally created by @McZonk on GitHub (Mar 19, 2014). Original GitHub issue: https://github.com/zakk4223/CocoaSplit/issues/19 What library in which version do I need to compile the source?
Author
Owner

@Yukon commented on GitHub (Apr 22, 2014):

I too would like to know too as I have been having issues compiling. When running brew install ffmepg and building I get a lot of undefined symbols like "_faacEncClose". When uninstalling ffmepg and installing libav instead I am missing libavformat/avformat.h. So I am a little lost about how to compile.

<!-- gh-comment-id:41005113 --> @Yukon commented on GitHub (Apr 22, 2014): I too would like to know too as I have been having issues compiling. When running `brew install ffmepg` and building I get a lot of undefined symbols like `"_faacEncClose"`. When uninstalling ffmepg and installing libav instead I am missing `libavformat/avformat.h`. So I am a little lost about how to compile.
Author
Owner

@DrabWeb commented on GitHub (Apr 22, 2014):

I tried running with the latest FFMPEG and get like 20 "apple mach-o linker error"s. Help?

<!-- gh-comment-id:41077964 --> @DrabWeb commented on GitHub (Apr 22, 2014): I tried running with the latest FFMPEG and get like 20 "apple mach-o linker error"s. Help?
Author
Owner

@McZonk commented on GitHub (Apr 22, 2014):

I got it running. I have installed ffmpeg myself and faac, xvidcore and iconv via brew. It should be to install ffmpeg via brew too.
I have added a setup that works for me: https://github.com/McZonk/CocoaSplit/tree/mybuildconfig
@YukonAppleGeek The _faacEncClose are obviously the missing faac library.

<!-- gh-comment-id:41079470 --> @McZonk commented on GitHub (Apr 22, 2014): I got it running. I have installed ffmpeg myself and faac, xvidcore and iconv via brew. It should be to install ffmpeg via brew too. I have added a setup that works for me: https://github.com/McZonk/CocoaSplit/tree/mybuildconfig @YukonAppleGeek The _faacEncClose are obviously the missing faac library.
Author
Owner

@Yukon commented on GitHub (Apr 23, 2014):

@McZonk There is nothing different with the branch. Could you write a simple guide or even step by step on getting the dependancies? It may seem stupid but I still have not gotten a working build of ffmpeg after trying so many different things. It may just an issue on my side but I do not know.

<!-- gh-comment-id:41126239 --> @Yukon commented on GitHub (Apr 23, 2014): @McZonk There is nothing different with the branch. Could you write a simple guide or even step by step on getting the dependancies? It may seem stupid but I still have not gotten a working build of ffmpeg after trying so many different things. It may just an issue on my side but I do not know.
Author
Owner

@McZonk commented on GitHub (Apr 23, 2014):

@YukonAppleGeek It is a little bit tricky to write down a manual, because the setup depends on your installed libraries. Check your Xcode if any libraries are not found (red) and just install and add them. Also please note I'm not maintaining this project, I just did a few improvements.

<!-- gh-comment-id:41150122 --> @McZonk commented on GitHub (Apr 23, 2014): @YukonAppleGeek It is a little bit tricky to write down a manual, because the setup depends on your installed libraries. Check your Xcode if any libraries are not found (red) and just install and add them. Also please note I'm not maintaining this project, I just did a few improvements.
Author
Owner

@DrabWeb commented on GitHub (Apr 23, 2014):

Is zakk4223 even still around and could help us?

<!-- gh-comment-id:41198490 --> @DrabWeb commented on GitHub (Apr 23, 2014): Is zakk4223 even still around and could help us?
Author
Owner

@Yukon commented on GitHub (Apr 24, 2014):

I have figured it out finally. To fix compiling you need to edit the other linker flags on both CocoaSplit and CocoaSplitCmd targets and add /usr/local/lib/libfaac.a /usr/local/lib/libxvidcore.a /usr/lib/libiconv.dylib. To get the libraries if you do not already have them run brew install ffmpeg and that will install ffmpeg and its dependences. After you have made those changes it should compile.

<!-- gh-comment-id:41245251 --> @Yukon commented on GitHub (Apr 24, 2014): I have figured it out finally. To fix compiling you need to edit the other linker flags on both `CocoaSplit` and `CocoaSplitCmd` targets and add `/usr/local/lib/libfaac.a /usr/local/lib/libxvidcore.a /usr/lib/libiconv.dylib`. To get the libraries if you do not already have them run `brew install ffmpeg` and that will install ffmpeg and its dependences. After you have made those changes it should compile.
Author
Owner

@McZonk commented on GitHub (Apr 24, 2014):

@YukonAppleGeek It is a typical problem. Your fix works for you, but it wouldn't work for me since you are referencing external libraries …

<!-- gh-comment-id:41247305 --> @McZonk commented on GitHub (Apr 24, 2014): @YukonAppleGeek It is a typical problem. Your fix works for you, but it wouldn't work for me since you are referencing external libraries …
Author
Owner

@Yukon commented on GitHub (Apr 24, 2014):

It should work if you use brew to install the dependences which is the most simple and easy way to do it.

<!-- gh-comment-id:41248008 --> @Yukon commented on GitHub (Apr 24, 2014): It should work if you use brew to install the dependences which is the most simple and easy way to do it.
Author
Owner

@zakk4223 commented on GitHub (Apr 24, 2014):

The actual problem here is I use a fairly minimal ffmpeg build, so I don't even build libfaac or libxvidcore. So it's mostly just an ffmpeg option thing. I believe all I use is --enable-gpl --enable-libx264 --enable-static

<!-- gh-comment-id:41250816 --> @zakk4223 commented on GitHub (Apr 24, 2014): The actual problem here is I use a fairly minimal ffmpeg build, so I don't even build libfaac or libxvidcore. So it's mostly just an ffmpeg option thing. I believe all I use is --enable-gpl --enable-libx264 --enable-static
Author
Owner

@DrabWeb commented on GitHub (Apr 24, 2014):

Sorry if this is a bad question, but how do I set the settings for FFMPEG that zakk has?

<!-- gh-comment-id:41316892 --> @DrabWeb commented on GitHub (Apr 24, 2014): Sorry if this is a bad question, but how do I set the settings for FFMPEG that zakk has?
Author
Owner

@Yukon commented on GitHub (Apr 25, 2014):

@DrabWeb Here is a guide https://trac.ffmpeg.org/wiki/MacOSXCompilationGuide.I am also having issues now with #10 when using my compiled version.

<!-- gh-comment-id:41351962 --> @Yukon commented on GitHub (Apr 25, 2014): @DrabWeb Here is a guide https://trac.ffmpeg.org/wiki/MacOSXCompilationGuide.I am also having issues now with #10 when using my compiled version.
Author
Owner

@Sega-Zero commented on GitHub (Jul 26, 2014):

i solved those issues by uninstalling ffmpeg, faac, upgrading brew and then reinstalling both ffmpeg and faac:
brew rm ffmpeg && brew rm faac && brew update
brew install faac
brew install ffmpeg --without-lame --without-faac --without-xvid --without-opus

in order to fix this error message:
Undefined symbols for architecture x86_64:
"_swr_alloc", referenced from:
_opus_decode_init in libavcodec.a(opusdec.o)

i've added "/usr/local/lib/libswresample.a" to other linking flags.
so now it compiles for me

<!-- gh-comment-id:50225717 --> @Sega-Zero commented on GitHub (Jul 26, 2014): i solved those issues by uninstalling ffmpeg, faac, upgrading brew and then reinstalling both ffmpeg and faac: brew rm ffmpeg && brew rm faac && brew update brew install faac brew install ffmpeg --without-lame --without-faac --without-xvid --without-opus in order to fix this error message: Undefined symbols for architecture x86_64: "_swr_alloc", referenced from: _opus_decode_init in libavcodec.a(opusdec.o) i've added "/usr/local/lib/libswresample.a" to other linking flags. so now it compiles for me
Author
Owner

@cool8jay commented on GitHub (May 11, 2016):

modules xcodeproj 2016-05-11 13-42-26

@Sega-Zero showed me a screenshot of Xcode.

<!-- gh-comment-id:218448157 --> @cool8jay commented on GitHub (May 11, 2016): ![modules xcodeproj 2016-05-11 13-42-26](https://cloud.githubusercontent.com/assets/55504/15181307/1cecba42-17b9-11e6-8414-2b51e011d786.jpg) @Sega-Zero showed me a screenshot of Xcode.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/CocoaSplit#18
No description provided.