Installing PythonMagick on OS X
brew install boost
- will take a lot of time and make your Mac hotbrew install --with-magick-plus-plus imagemagick
cd <path_to_PythonMagick_source>
./configure --with-boost=<path_to_boost_root>
make
make install
python -c "import PythonMagick"
If PythonMagick build fails saying that it couldn't find -lboost_python
navigate to <path_to_boost_root>/lib/
, ln -s libboost_python-mt.dylib libboost_python.dylib
and run make again.
Tested on 10.6.8 with Python 2.6.7 (custom build). Should work with Lion running stock 2.7.
NOTE: Looks like I was too quick to call it done. The module imports but raises exceptions when used. Bummer.
CXX libpymagick_la-_Image.lo
_Image.cpp:400:92: error: no member named 'alphaColor' in 'Magick::Image'
.def("alphaColor", (void (Magick::Image::)(const Magick::Color&) )&Magick::Image::alphaColor)
~~~~~~~~~~~~~~~^
_Image.cpp:401:86: error: no member named 'alphaColor' in 'Magick::Image'
.def("alphaColor", (Magick::Color (Magick::Image::)() const)&Magick::Image::alphaColor)
~~~~~~~~~~~~~~~^
2 errors generated.
make[1]: *** [libpymagick_la-_Image.lo] Error 1
make: *** [all-recursive] Error 1
Anyone getting these errors?