Mac OS X 用のパッケージ管理ソフトの Homebrew を使って Mac OS X 10.7.2 Lion に AGG をインストールしてみた。
フォーミュラ (Homebrew ではソフトのパッケージのことを formula と呼ぶ) を検索。
$ brew search agg
aggregate libagg
aggregate と libagg というのが見つかった。
AGG は描画ライブラリなので libagg のほうがそれ。
インストール。
$ brew install libagg
==> Installing libagg dependency: sdl
Warning: Formula will not build with LLVM, using GCC
==> Downloading http://www.libsdl.org/release/SDL-1.2.14.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/sdl/1.2.14 --disable-nasm
==> make install
Warning: m4 macros were installed to "share/aclocal".
Homebrew does not append "/usr/local/share/aclocal"
to "/usr/share/aclocal/dirlist". If an autoconf script you use
requires these m4 macros, you'll need to add this path manually.
==> Summary
/usr/local/Cellar/sdl/1.2.14: 221 files, 2.7M, built in 64 seconds
==> Installing libagg
==> Downloading http://www.antigrain.com/agg-2.5.tar.gz
######################################################################## 100.0%
==> /usr/bin/autoreconf -fi
==> ./configure --disable-debug --prefix=/usr/local/Cellar/libagg/2.5 --disable-
==> make install
Warning: m4 macros were installed to "share/aclocal".
Homebrew does not append "/usr/local/share/aclocal"
to "/usr/share/aclocal/dirlist". If an autoconf script you use
requires these m4 macros, you'll need to add this path manually.
==> Summary
/usr/local/Cellar/libagg/2.5: 147 files, 2.3M, built in 29 seconds
インストール先の確認。
/usr/local/lib や /usr/local/include から /usr/local/Cellar へシンボリックリンクが張られているのがわかる。
$ ls -la /usr/local/include | grep libagg
lrwxr-xr-x 1 hoge admin 33 12 26 04:38 agg2 -> ../Cellar/libagg/2.5/include/agg2
$ ls -la /usr/local/lib | grep libagg
lrwxr-xr-x 1 hoge admin 43 12 26 04:38 libagg.2.0.4.dylib -> ../Cellar/libagg/2.5/lib/libagg.2.0.4.dylib
lrwxr-xr-x 1 hoge admin 39 12 26 04:38 libagg.2.dylib -> ../Cellar/libagg/2.5/lib/libagg.2.dylib
lrwxr-xr-x 1 hoge admin 33 12 26 04:38 libagg.a -> ../Cellar/libagg/2.5/lib/libagg.a
lrwxr-xr-x 1 hoge admin 37 12 26 04:38 libagg.dylib -> ../Cellar/libagg/2.5/lib/libagg.dylib
lrwxr-xr-x 1 hoge admin 55 12 26 04:38 libaggfontfreetype.2.0.4.dylib -> ../Cellar/libagg/2.5/lib/libaggfontfreetype.2.0.4.dylib
lrwxr-xr-x 1 hoge admin 51 12 26 04:38 libaggfontfreetype.2.dylib -> ../Cellar/libagg/2.5/lib/libaggfontfreetype.2.dylib
lrwxr-xr-x 1 hoge admin 45 12 26 04:38 libaggfontfreetype.a -> ../Cellar/libagg/2.5/lib/libaggfontfreetype.a
lrwxr-xr-x 1 hoge admin 49 12 26 04:38 libaggfontfreetype.dylib -> ../Cellar/libagg/2.5/lib/libaggfontfreetype.dylib
ちなみに、環境。
$ uname -mrsv
Darwin 11.2.0 Darwin Kernel Version 11.2.0: Tue Aug 9 20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64 x86_64
$ brew -v
0.8
Ref.
- Anti-Grain Geometry -
- Homebrew — MacPorts driving you to drink? Try Homebrew!
tags: agg mac_os_x homebrew
Posted by NI-Lab. (@nilab)