Anti-Grain Geometry (AGG) は2次元描画ライブラリ。

Mac OS X 10.6 Snow Leopard に agg をインストールしようと思ったけど MacPorts にはパッケージが無かった (Homebrew にはあるみたい)。
なので、ソースコードをダウンロードしてビルドしてみた。


$ wget http://www.antigrain.com/agg-2.5.tar.gz
$ tar zxvf ./agg-2.5.tar.gz
$ cd agg-2.5
$ make
$ ls ./src | grep libagg
libagg.a

ビルド完了。 libagg.a がライブラリファイル。

ビルド方法は agg-2.5/install に書いてあった。 make install は無い。


$ cat ./install
(中略)
On Unix/Linux/MacOS/BeOS/AmigaOS systems you can type "make" to
build src/libagg.a There must be GNU Make utility installed.
Makefiles are very simple, so that if something goes wrong
you could easily fix it. There are no "include files"
dependency suppoeted.
Also note that there's no "make install" option either;
basically the original Makefiles are needed only to build
the examples.

ちなみに、環境。


$ uname -mrsv
Darwin 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun  7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386
 
$ gcc --version
i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Ref. Anti-Grain Geometry -

tags: agg mac_os_x

Posted by NI-Lab. (@nilab)