Skip to content

Instantly share code, notes, and snippets.

@iceequal
iceequal / clang
Last active August 29, 2015 14:01
manually compiling ffmpeg.c on 10.9.2 (alternately using clang and gcc)
% clang ffmpeg.c -I/usr/local/Cellar/ffmpeg/2.2.2/include -L/usr/local/Cellar/ffmpeg/2.2.2/lib -lavformat
ffmpeg.c:350:19: warning: 'avcodec_alloc_frame' is deprecated
[-Wdeprecated-declarations]
AVFrame *frame = avcodec_alloc_frame();
^
/usr/local/Cellar/ffmpeg/2.2.2/include/libavcodec/avcodec.h:3422:10: note:
'avcodec_alloc_frame' declared here
AVFrame *avcodec_alloc_frame(void);
^
ffmpeg.c:366:5: warning: 'avcodec_free_frame' is deprecated
@iceequal
iceequal / (configure step)
Created May 10, 2014 06:27
successful MANUAL building of cmus f7dfe9d3f1 against homebrew's ffmpeg stable 2.2.2 bottled
% ./configure prefix=$HOME/cmus
checking for program gcc... /usr/bin/gcc
checking for program gcc... /usr/bin/gcc
checking for CFLAGS -std=gnu99 -pipe -Wall -Wshadow -Wcast-align -Wpointer-arith -Wwrite-strings -Wundef -Wmissing-prototypes -Wredundant-decls -Wextra -Wno-sign-compare -Wformat-security... yes
checking for CFLAGS -Wdeclaration-after-statement... yes
checking for CFLAGS -Wold-style-definition... yes
checking for CFLAGS -Wno-pointer-sign... yes
checking for CFLAGS -Werror-implicit-function-declaration... yes
checking for CFLAGS -Wno-unused-parameter... yes
checking if CC can generate dependency information... yes
@iceequal
iceequal / gist:11246799
Created April 24, 2014 08:40
cc /Users/me/Downloads/itunes_notify.c -framework CoreFoundation -o itunes-notify
/Users/me/Downloads/itunes_notify.c:1:1: error: expected identifier or
'('
```c
^
/Users/me/Downloads/itunes_notify.c:108:1: error: expected identifier or
'('
```
^
2 errors generated.
@iceequal
iceequal / 02.make
Created January 23, 2014 08:20
ifuse not working with osxfuse
Making install in docs
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/Cellar/ifuse/1.1.2/share/man/man1" || .././install-sh -c -d "/usr/local/Cellar/ifuse/1.1.2/share/man/man1"
/usr/bin/install -c -m 644 ifuse.1 '/usr/local/Cellar/ifuse/1.1.2/share/man/man1'
Making install in src
clang -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -D_DARWIN_USE_64_BIT_INODE -I/usr/local/Cellar/osxfuse/2.6.2/include/osxfuse/fuse -I/usr/local/Cellar/libplist/1.10/include -I/usr/local/Cellar/usbmuxd/1.0.8/include -I/usr/local/Cellar/libimobiledevice/1.1.5/include -I/usr/include/libxml2 -I/usr/local/Cellar/libplist/1.10/include -I/usr/include/libxml2 -g -g -O2 -c ifuse.c
clang -D_FILE_OFFSET_BITS=64 -D_DARWIN_USE_64_BIT_INODE -I/usr/local/Cellar/osxfuse/2.6.2/include/osxfuse/fuse -I/usr/local/Cellar/libplist/1.10/include -I/usr/local/Cellar/usbmuxd/1.0.8/include -I/usr/local/Cellar/libimobiledevice/1.1.5/include -I/usr/include/libxml2 -I/usr/local/Cellar/libplist/1.10/include -I/usr/include/libx
@iceequal
iceequal / brew doctor
Created October 27, 2013 06:27
plowshare not installing correctly on 10.9 - debugging information
Your system is ready to brew.
==> Downloading http://downloads.xiph.org/releases/flac/flac-1.3.0.tar.xz
Already downloaded: /Library/Caches/Homebrew/flac-1.3.0.tar.xz
/usr/local/opt/xz/bin/xz -dc "/Library/Caches/Homebrew/flac-1.3.0.tar.xz" | tar xf -
==> ./configure --disable-dependency-tracking --disable-debug --disable-asm-optimizations --enable-sse --enable-static --prefix=/usr/local/Cellar/flac/1.3.0 --mandir=/usr/local/Cellar/flac/1.3.0/share/man
./configure --disable-dependency-tracking --disable-debug --disable-asm-optimizations --enable-sse --enable-static --prefix=/usr/local/Cellar/flac/1.3.0 --mandir=/usr/local/Cellar/flac/1.3.0/share/man
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
@iceequal
iceequal / HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install gnome-doc-utils
Last active December 11, 2015 08:08
gnome-doc-utils failed to build on 10.8.2
Lime:~ arrian$ HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install gnome-doc-utils
/usr/bin/env perl -e use XML::Parser
==> Downloading http://ftp.gnome.org/pub/gnome/sources/gnome-doc-utils/0.20/gnome-doc-utils-0.20.10.tar.xz
Already downloaded: /Library/Caches/Homebrew/gnome-doc-utils-0.20.10.tar.xz
xz -dc "/Library/Caches/Homebrew/gnome-doc-utils-0.20.10.tar.xz" | /usr/bin/tar xf -
==> ./configure --prefix=/usr/local/Cellar/gnome-doc-utils/0.20.10 --disable-scrollkeeper --enable-build-utils=yes
./configure --prefix=/usr/local/Cellar/gnome-doc-utils/0.20.10 --disable-scrollkeeper --enable-build-utils=yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d