mac下ffmpeg集成clion

这篇文章写得很详细

关于cmakelists.txt的描述


下面是安装时的日志:


Last login: Mon Oct 17 09:56:49 on ttys001

bogon:~ lawson$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

==> This script will install:

/usr/local/bin/brew

/usr/local/share/doc/homebrew

/usr/local/share/man/man1/brew.1

/usr/local/share/zsh/site-functions/_brew

/usr/local/etc/bash_completion.d/brew

/usr/local/Homebrew

==> The following existing directories will be made group writable:

/usr/local/share/man/man7

==> The following existing directories will have their owner set tolawson:

/usr/local/share/man/man7

==> The following new directories will be created:

/usr/local/Homebrew

/usr/local/Frameworks

/usr/local/sbin

/usr/local/share/zsh

/usr/local/share/zsh/site-functions

/usr/local/var


Press RETURN to continue or any other key to abort

==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/share/man/man7

Password:

==> /usr/bin/sudo /usr/sbin/chown lawson /usr/local/share/man/man7

==> /usr/bin/sudo /bin/mkdir -p /usr/local/Homebrew /usr/local/Frameworks /usr/local/sbin /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var

==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/Homebrew /usr/local/Frameworks /usr/local/sbin /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var

==> /usr/bin/sudo /bin/chmod u+rwx share/zsh share/zsh/site-functions

==> /usr/bin/sudo /usr/sbin/chown lawson /usr/local/Homebrew /usr/local/Frameworks /usr/local/sbin /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var

==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/Homebrew /usr/local/Frameworks /usr/local/sbin /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var

==> /usr/bin/sudo /bin/mkdir -p /Users/lawson/Library/Caches/Homebrew

==> /usr/bin/sudo /bin/chmod g+rwx /Users/lawson/Library/Caches/Homebrew

==> /usr/bin/sudo /usr/sbin/chown lawson /Users/lawson/Library/Caches/Homebrew

==> Downloading and installing Homebrew...

remote: Counting objects: 3459, done.

remote: Compressing objects: 100% (2445/2445), done.

remote: Total 3459 (delta 1605), reused 2206 (delta 877), pack-reused 0

Receiving objects: 100% (3459/3459), 2.20 MiB | 447.00 KiB/s, done.

Resolving deltas: 100% (1605/1605), done.

From https://github.com/Homebrew/brew

 * [new branch]      master     -> origin/master

 * [new tag]         0.1        -> 0.1

 * [new tag]         0.2        -> 0.2

 * [new tag]         0.3        -> 0.3

 * [new tag]         0.4        -> 0.4

 * [new tag]         0.5        -> 0.5

 * [new tag]         0.6        -> 0.6

 * [new tag]         0.7        -> 0.7

 * [new tag]         0.7.1      -> 0.7.1

 * [new tag]         0.8        -> 0.8

 * [new tag]         0.8.1      -> 0.8.1

 * [new tag]         0.9        -> 0.9

 * [new tag]         0.9.1      -> 0.9.1

 * [new tag]         0.9.2      -> 0.9.2

 * [new tag]         0.9.3      -> 0.9.3

 * [new tag]         0.9.4      -> 0.9.4

 * [new tag]         0.9.5      -> 0.9.5

 * [new tag]         0.9.8      -> 0.9.8

 * [new tag]         0.9.9      -> 0.9.9

 * [new tag]         1.0.0      -> 1.0.0

 * [new tag]         1.0.1      -> 1.0.1

 * [new tag]         1.0.2      -> 1.0.2

 * [new tag]         1.0.3      -> 1.0.3

 * [new tag]         1.0.4      -> 1.0.4

 * [new tag]         1.0.5      -> 1.0.5

 * [new tag]         1.0.6      -> 1.0.6

 * [new tag]         1.0.7      -> 1.0.7

HEAD is now at de880f1 Merge pull request #1298 from tdsmith/no-no-bad-unicode

==> Homebrew has enabled anonymous aggregate user behaviour analytics

Read the analytics documentation (and how to opt-out) here:

  https://git.io/brew-analytics

==> Tapping homebrew/core

Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'...

remote: Counting objects: 3742, done.

remote: Compressing objects: 100% (3632/3632), done.

remote: Total 3742 (delta 12), reused 305 (delta 1), pack-reused 0

Receiving objects: 100% (3742/3742), 2.99 MiB | 669.00 KiB/s, done.

Resolving deltas: 100% (12/12), done.

Checking connectivity... done.

Tapped 3621 formulae (3,769 files, 9.3M)

==> Cleaning up /Library/Caches/Homebrew...

Removing: /Library/Caches/Homebrew/makedepend-1.0.5.yosemite.bottle.tar.gz... (29K)

Removing: /Library/Caches/Homebrew/openssl-1.0.2d_1.yosemite.bottle.tar.gz... (3.6M)

Removing: /Library/Caches/Homebrew/pkg-config-0.28.yosemite.bottle.2.tar.gz... (220.1K)

Removing: /Library/Caches/Homebrew/readline-6.3.8.yosemite.bottle.tar.gz... (741.5K)

Removing: /Library/Caches/Homebrew/scons-2.3.5.yosemite.bottle.tar.gz... (489.0K)

Removing: /Library/Caches/Homebrew/sqlite-3.8.10.2.tar.gz... (2.0M)

Removing: /Library/Caches/Homebrew/subversion-1.8.13.yosemite.bottle.1.tar.gz... (2.8M)

==> Migrating /Library/Caches/Homebrew to /Users/lawson/Library/Caches/Homebrew.

==> Deleting /Library/Caches/Homebrew...

Warning: Failed to delete /Library/Caches/Homebrew.

Please do so manually.

Already up-to-date.

Error: Could not link:

/usr/local/share/doc/homebrew


Please delete these paths and run `brew update`.

Error: Could not link:

/usr/local/share/man/man1/brew.1


Please delete these paths and run `brew update`.

==> Installation successful!

==> Next steps

Run `brew help` to get started

Further documentation: https://git.io/brew-docs

bogon:~ lawson$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

==> This script will install:

/usr/local/bin/brew

/usr/local/share/doc/homebrew

/usr/local/share/man/man1/brew.1

/usr/local/share/zsh/site-functions/_brew

/usr/local/etc/bash_completion.d/brew

/usr/local/Homebrew


Press RETURN to continue or any other key to abort

==> Downloading and installing Homebrew...

remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0

HEAD is now at de880f1 Merge pull request #1298 from tdsmith/no-no-bad-unicode

Already up-to-date.

Error: Could not link:

/usr/local/share/doc/homebrew


Please delete these paths and run `brew update`.

Error: Could not link:

/usr/local/share/man/man1/brew.1


Please delete these paths and run `brew update`.

==> Installation successful!

==> Next steps

Run `brew help` to get started

Further documentation: https://git.io/brew-docs

bogon:~ lawson$ brew update

Already up-to-date.

bogon:~ lawson$ brew install ffmpeg --with-fdk-aac --with-ffplay --with-freetype --with-libass --with-libquvi --with-libvorbis --with-libvpx --with-opus --with-x265

==> Installing dependencies for ffmpeg:sdl, pkg-config, gettext,texi2html, yasm,x264, lame,xvid, libpng,freetype, libogg,libvorbis, libvpx,libffi, pcre,glib, fribidi,fontconfig, pixman,cairo, gobject-introspection,icu4c, harfbuzz,libass, fdk-aac,opus, x265

==> Installing ffmpeg dependency:sdl

==> Downloading https://homebrew.bintray.com/bottles/sdl-1.2.15.yosemite.bottle.

######################################################################## 100.0%

==> Pouring sdl-1.2.15.yosemite.bottle.2.tar.gz

��  /usr/local/Cellar/sdl/1.2.15: 224 files, 1.5M

==> Installing ffmpeg dependency:pkg-config

==> Downloading https://homebrew.bintray.com/bottles/pkg-config-0.29.1_2.yosemit

######################################################################## 100.0%

==> Pouring pkg-config-0.29.1_2.yosemite.bottle.tar.gz

Error: The `brew link` step did not complete successfully

The formula built, but is not symlinked into /usr/local

Could not symlink bin/pkg-config

Target /usr/local/bin/pkg-config

is a symlink belonging to pkg-config. You can unlink it:

  brew unlink pkg-config


To force the link and overwrite all conflicting files:

  brew link --overwrite pkg-config


To list all files that would be deleted:

  brew link --overwrite --dry-run pkg-config


Possible conflicting files are:

/usr/local/bin/pkg-config -> /usr/local/Cellar/pkg-config/0.28/bin/pkg-config

/usr/local/share/aclocal/pkg.m4 -> /usr/local/Cellar/pkg-config/0.28/share/aclocal/pkg.m4

/usr/local/share/doc/pkg-config/pkg-config-guide.html

/usr/local/share/doc/pkg-config/pkg-config-guide.html

/usr/local/share/man/man1/pkg-config.1 -> /usr/local/Cellar/pkg-config/0.28/share/man/man1/pkg-config.1

==> Summary

��  /usr/local/Cellar/pkg-config/0.29.1_2: 10 files, 627.4K

==> Installing ffmpeg dependency:gettext

==> Downloading https://homebrew.bintray.com/bottles/gettext-0.19.8.1.yosemite.b

######################################################################## 100.0%

==> Pouring gettext-0.19.8.1.yosemite.bottle.tar.gz

==> Caveats

This formula is keg-only, which means it was not symlinked into /usr/local.


macOS provides the BSD gettext library and some software gets confused if both are in the library path.


Generally there are no consequences of this for you. If you build your

own software and it requires this formula, you'll need to add to your

build variables:


    LDFLAGS:  -L/usr/local/opt/gettext/lib

    CPPFLAGS: -I/usr/local/opt/gettext/include


==> Summary

��  /usr/local/Cellar/gettext/0.19.8.1: 1,934 files, 17.0M

==> Installing ffmpeg dependency:texi2html

==> Downloading https://homebrew.bintray.com/bottles/texi2html-5.0.yosemite.bott


curl: (7) Failed to connect to akamai.bintray.com port 443: Connection refused

Error: Failed to download resource "texi2html"

Download failed: https://homebrew.bintray.com/bottles/texi2html-5.0.yosemite.bottle.tar.gz

Warning: Bottle installation failed: building from source.

==> Using the sandbox

==> Downloading https://download.savannah.gnu.org/releases/texi2html/texi2html-5

==> Downloading from http://download-mirror.savannah.gnu.org/releases//texi2html

######################################################################## 100.0%

==> ./configure --prefix=/usr/local/Cellar/texi2html/5.0 --mandir=/usr/local/Cel

==> make install

��  /usr/local/Cellar/texi2html/5.0: 279 files, 6.2M, built in 21 minutes 26 seconds

==> Installing ffmpeg dependency:yasm

==> Downloading https://homebrew.bintray.com/bottles/yasm-1.3.0.yosemite.bottle.

######################################################################## 100.0%

==> Pouring yasm-1.3.0.yosemite.bottle.2.tar.gz

Error: The `brew link` step did not complete successfully

The formula built, but is not symlinked into /usr/local

Could not symlink bin/vsyasm

Target /usr/local/bin/vsyasm

already exists. You may want to remove it:

  rm '/usr/local/bin/vsyasm'


To force the link and overwrite all conflicting files:

  brew link --overwrite yasm


To list all files that would be deleted:

  brew link --overwrite --dry-run yasm


Possible conflicting files are:

/usr/local/bin/vsyasm

/usr/local/bin/yasm

/usr/local/bin/ytasm

/usr/local/include/libyasm/arch.h

/usr/local/include/libyasm/assocdat.h

/usr/local/include/libyasm/bitvect.h

/usr/local/include/libyasm/bytecode.h

/usr/local/include/libyasm/compat-queue.h

/usr/local/include/libyasm/coretype.h

/usr/local/include/libyasm/dbgfmt.h

/usr/local/include/libyasm/errwarn.h

/usr/local/include/libyasm/expr.h

/usr/local/include/libyasm/file.h

/usr/local/include/libyasm/floatnum.h

/usr/local/include/libyasm/hamt.h

/usr/local/include/libyasm/insn.h

/usr/local/include/libyasm/intnum.h

/usr/local/include/libyasm/inttree.h

/usr/local/include/libyasm/linemap.h

/usr/local/include/libyasm/listfmt.h

/usr/local/include/libyasm/md5.h

/usr/local/include/libyasm/module.h

/usr/local/include/libyasm/objfmt.h

/usr/local/include/libyasm/parser.h

/usr/local/include/libyasm/phash.h

/usr/local/include/libyasm/preproc.h

/usr/local/include/libyasm/section.h

/usr/local/include/libyasm/symrec.h

/usr/local/include/libyasm/valparam.h

/usr/local/include/libyasm/value.h

/usr/local/include/libyasm-stdint.h

/usr/local/include/libyasm.h

/usr/local/share/man/man1/yasm.1

/usr/local/share/man/man7/yasm_arch.7

/usr/local/share/man/man7/yasm_dbgfmts.7

/usr/local/share/man/man7/yasm_objfmts.7

/usr/local/share/man/man7/yasm_parsers.7

/usr/local/lib/libyasm.a

==> Summary

��  /usr/local/Cellar/yasm/1.3.0: 44 files, 3.1M

==> Installing ffmpeg dependency:x264

==> Downloading https://homebrew.bintray.com/bottles/x264-r2699.yosemite.bottle.

######################################################################## 100.0%

==> Pouring x264-r2699.yosemite.bottle.tar.gz

��  /usr/local/Cellar/x264/r2699: 10 files, 3.3M

==> Installing ffmpeg dependency:lame

==> Downloading https://homebrew.bintray.com/bottles/lame-3.99.5.yosemite.bottle

######################################################################## 100.0%

==> Pouring lame-3.99.5.yosemite.bottle.1.tar.gz

��  /usr/local/Cellar/lame/3.99.5: 26 files, 2M

==> Installing ffmpeg dependency:xvid

==> Downloading https://homebrew.bintray.com/bottles/xvid-1.3.4.yosemite.bottle.

######################################################################## 100.0%

==> Pouring xvid-1.3.4.yosemite.bottle.tar.gz

��  /usr/local/Cellar/xvid/1.3.4: 9 files, 1.3M

==> Installing ffmpeg dependency:libpng

==> Downloading https://homebrew.bintray.com/bottles/libpng-1.6.25.yosemite.bott

######################################################################## 100.0%

==> Pouring libpng-1.6.25.yosemite.bottle.tar.gz

��  /usr/local/Cellar/libpng/1.6.25: 25 files, 1.2M

==> Installing ffmpeg dependency:freetype

==> Downloading https://homebrew.bintray.com/bottles/freetype-2.7.yosemite.bottl

######################################################################## 100.0%

==> Pouring freetype-2.7.yosemite.bottle.tar.gz

��  /usr/local/Cellar/freetype/2.7: 61 files, 2.4M

==> Installing ffmpeg dependency:libogg

==> Downloading https://homebrew.bintray.com/bottles/libogg-1.3.2.yosemite.bottl

######################################################################## 100.0%

==> Pouring libogg-1.3.2.yosemite.bottle.tar.gz

��  /usr/local/Cellar/libogg/1.3.2: 96 files, 460.1K

==> Installing ffmpeg dependency:libvorbis

==> Downloading https://homebrew.bintray.com/bottles/libvorbis-1.3.5.yosemite.bo

######################################################################## 100.0%

==> Pouring libvorbis-1.3.5.yosemite.bottle.tar.gz

��  /usr/local/Cellar/libvorbis/1.3.5: 158 files, 2.3M

==> Installing ffmpeg dependency:libvpx

==> Downloading https://homebrew.bintray.com/bottles/libvpx-1.6.0.yosemite.bottl

######################################################################## 100.0%

==> Pouring libvpx-1.6.0.yosemite.bottle.tar.gz

��  /usr/local/Cellar/libvpx/1.6.0: 16 files, 2.2M

==> Installing ffmpeg dependency:libffi

==> Downloading https://homebrew.bintray.com/bottles/libffi-3.0.13.yosemite.bott

######################################################################## 100.0%

==> Pouring libffi-3.0.13.yosemite.bottle.tar.gz

==> Caveats

This formula is keg-only, which means it was not symlinked into /usr/local.


Some formulae require a newer version of libffi.


Generally there are no consequences of this for you. If you build your

own software and it requires this formula, you'll need to add to your

build variables:


    LDFLAGS:  -L/usr/local/opt/libffi/lib

    PKG_CONFIG_PATH: /usr/local/opt/libffi/lib/pkgconfig


==> Summary

��  /usr/local/Cellar/libffi/3.0.13: 15 files, 377.2K

==> Installing ffmpeg dependency:pcre

==> Downloading https://homebrew.bintray.com/bottles/pcre-8.39.yosemite.bottle.t

######################################################################## 100.0%

==> Pouring pcre-8.39.yosemite.bottle.tar.gz

��  /usr/local/Cellar/pcre/8.39: 203 files, 5.4M

==> Installing ffmpeg dependency:glib

==> Downloading https://homebrew.bintray.com/bottles/glib-2.50.1.yosemite.bottle

######################################################################## 100.0%

==> Pouring glib-2.50.1.yosemite.bottle.tar.gz

��  /usr/local/Cellar/glib/2.50.1: 427 files, 22.4M

==> Installing ffmpeg dependency:fribidi

==> Downloading https://homebrew.bintray.com/bottles/fribidi-0.19.7_1.yosemite.b

######################################################################## 100.0%

==> Pouring fribidi-0.19.7_1.yosemite.bottle.tar.gz

��  /usr/local/Cellar/fribidi/0.19.7_1: 61 files, 381.6K

==> Installing ffmpeg dependency:fontconfig

==> Downloading https://homebrew.bintray.com/bottles/fontconfig-2.12.1_2.yosemit

######################################################################## 100.0%

==> Pouring fontconfig-2.12.1_2.yosemite.bottle.tar.gz

==> Regenerating font cache, this may take a while

==> /usr/local/Cellar/fontconfig/2.12.1_2/bin/fc-cache -frv

��  /usr/local/Cellar/fontconfig/2.12.1_2: 468 files, 3M

==> Installing ffmpeg dependency:pixman

==> Downloading https://homebrew.bintray.com/bottles/pixman-0.34.0.yosemite.bott

######################################################################## 100.0%

==> Pouring pixman-0.34.0.yosemite.bottle.tar.gz

��  /usr/local/Cellar/pixman/0.34.0: 12 files, 1.2M

==> Installing ffmpeg dependency:cairo

==> Downloading https://homebrew.bintray.com/bottles/cairo-1.14.6_1.yosemite.bot

######################################################################## 100.0%

==> Pouring cairo-1.14.6_1.yosemite.bottle.tar.gz

��  /usr/local/Cellar/cairo/1.14.6_1: 118 files, 5.9M

==> Installing ffmpeg dependency:gobject-introspection

==> Downloading https://homebrew.bintray.com/bottles/gobject-introspection-1.50.

######################################################################## 100.0%

==> Pouring gobject-introspection-1.50.0.yosemite.bottle.tar.gz

��  /usr/local/Cellar/gobject-introspection/1.50.0: 172 files, 9.6M

==> Installing ffmpeg dependency:icu4c

==> Downloading https://homebrew.bintray.com/bottles/icu4c-57.1.yosemite.bottle.

######################################################################## 100.0%

==> Pouring icu4c-57.1.yosemite.bottle.tar.gz

==> Caveats

This formula is keg-only, which means it was not symlinked into /usr/local.


macOS provides libicucore.dylib (but nothing else).


Generally there are no consequences of this for you. If you build your

own software and it requires this formula, you'll need to add to your

build variables:


    LDFLAGS:  -L/usr/local/opt/icu4c/lib

    CPPFLAGS: -I/usr/local/opt/icu4c/include

    PKG_CONFIG_PATH: /usr/local/opt/icu4c/lib/pkgconfig


==> Summary

��  /usr/local/Cellar/icu4c/57.1: 265 files, 65M

==> Installing ffmpeg dependency:harfbuzz

==> Downloading https://homebrew.bintray.com/bottles/harfbuzz-1.3.2.yosemite.bot

######################################################################## 100.0%

==> Pouring harfbuzz-1.3.2.yosemite.bottle.tar.gz

��  /usr/local/Cellar/harfbuzz/1.3.2: 122 files, 4.3M

==> Installing ffmpeg dependency:libass

==> Downloading https://homebrew.bintray.com/bottles/libass-0.13.4.yosemite.bott

######################################################################## 100.0%

==> Pouring libass-0.13.4.yosemite.bottle.tar.gz

��  /usr/local/Cellar/libass/0.13.4: 10 files, 512.6K

==> Installing ffmpeg dependency:fdk-aac

==> Downloading https://homebrew.bintray.com/bottles/fdk-aac-0.1.4.yosemite.bott

######################################################################## 100.0%

==> Pouring fdk-aac-0.1.4.yosemite.bottle.1.tar.gz

��  /usr/local/Cellar/fdk-aac/0.1.4: 13 files, 1.8M

==> Installing ffmpeg dependency:opus

==> Downloading https://homebrew.bintray.com/bottles/opus-1.1.3.yosemite.bottle.

######################################################################## 100.0%

==> Pouring opus-1.1.3.yosemite.bottle.tar.gz

��  /usr/local/Cellar/opus/1.1.3: 15 files, 861.7K

==> Installing ffmpeg dependency:x265

==> Downloading https://homebrew.bintray.com/bottles/x265-2.1.yosemite.bottle.ta

######################################################################## 100.0%

==> Pouring x265-2.1.yosemite.bottle.tar.gz

��  /usr/local/Cellar/x265/2.1: 11 files, 7.7M

Warning: ffmpeg: --with-ffplay was deprecated; using --with-sdl instead!

==> Installing ffmpeg

==> Downloading https://ffmpeg.org/releases/ffmpeg-3.1.4.tar.bz2

######################################################################## 100.0%

==> ./configure --prefix=/usr/local/Cellar/ffmpeg/3.1.4 --enable-shared --enable

==> make install

==> Caveats

The native FFmpeg AAC encoder has been stable since FFmpeg 3.0. If you

were using libvo-aacenc or libaacplus, both of which have been dropped in

FFmpeg 3.0, please consider switching to the native encoder (-c:a aac),

fdk-aac (-c:a libfdk_aac, ffmpeg needs to be installed with the

--with-fdk-aac option), or faac (-c:a libfaac, ffmpeg needs to be

installed with the --with-faac option).


See the announcement

https://ffmpeg.org/index.html#removing_external_aac_encoders for details,

and https://trac.ffmpeg.org/wiki/Encode/AAC on best practices of encoding

AAC with FFmpeg.

==> Summary

��  /usr/local/Cellar/ffmpeg/3.1.4: 242 files, 54.5M, built in 11 minutes 53 seconds

bogon:~ lawson$ 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值