if (outdated) Gem repo already cloned to local drive – delete it
cd git
sudo rm -R Gem
get new versions of …
brew uninstall pkg-config automake libtool imagemagick ftgl
brew reinstall pkg-config
automake
libtool
gettext
imagemagick
ftgl
sdl
homebrew/versions/glfw2 — geht nicht!
glfw3
glfw
jpeg
libtiff
[not used: brew link gettext –force] but
/usr/local/opt/gettext/bin/gettextize -f
aclocal -I m4
check this to see if pkg-config knows imagemagick and gettext:
pkg-config –cflags MagickCore
pkg-config –list-all | grep „image“
export LDFLAGS=“-L/usr/local/opt/gettext/lib“
export CPPFLAGS=“-I/usr/local/opt/gettext/include“
export PKG_CONFIG_PATH=/usr/local/Cellar/imagemagick/7.0.8-23_1/lib/pkgconfig
export PKG_CONFIG_PATH=/usr/local/Cellar/ftgl/2.1.3-rc5/lib/pkgconfig
check if export worked:
pkg-config –list-all | grep „image“
pkg-config –list-all | grep „ftgl“
check if right path for make:
pkg-config –cflags MagickCore
pkg-config –cflags ftgl
autoreconf –install –verbose
./configure –with-pd=/Applications/Pd-0.49-1.app/Contents/Resources/ –with-defaultwindow=gemmacoswindow –without-ImageMagick
bzw versuche… (bringt aber auch nix. fehler siehe unten libtool…)
export LDFLAGS=“-L/usr/local/Cellar/imagemagick…/lib“
export CPPFLAGS=“-I/usr/local/Cellar/imagemagick…/include“
(
optional –without-ftgl –without-MagickCore
–with-MagickCore-CFLAGS=“-I/path/to/MagickCore/include/“
compiler flags for MagickCore
–with-MagickCore-LIBS=“-L/path/to/MagickCore/lib/ -lMagick“
linker flags for MagickCore
–without-ImageMagick disable ImageMagick (image loader)
–with-ImageMagick-CFLAGS=“-I/path/to/ImageMagick/include/“
compiler flags for ImageMagick
–with-ImageMagick-LIBS=“-L/path/to/ImageMagick/lib/ -lMagick++“
linker flags for ImageMagick
)
make (macht folgenden error)
clang: error: unsupported option ‚-fopenmp‘
tritt bei imageMAGICK auf 🙁
daher config ohne imageMagick
wenn imageMAGICK deaktiviert, dann folgender error
libtool: error: ‚/opt/local/lib/libXrandr.la‘ is not a valid libtool archive
Making all in modelASSIMP3
make[2]: Nothing to be done for `all-am‘.
Making all in src/Output
/bin/sh ../../libtool –tag=CXX –mode=link g++ -DPD -I/Applications/Pd-0.49-1.app/Contents/Resources/src -D_GNU_SOURCE=1 -D_THREAD_SAFE -I/opt/local/include/SDL -g -O2 -Os -ffast-math -mmmx -fpascal-strings -module -avoid-version -shared -shrext .pd_darwin -L/usr/local/opt/llvm/lib -o gemsdlwindow.la -rpath /usr/local/lib/pd/extra/Gem gemsdlwindow_la-gemsdlwindow.lo -L/Applications/Pd-0.49-1.app/Contents/Resources/bin -L../.. -L/opt/local/lib -lSDLmain -Wl,-framework,AppKit -lSDL -Wl,-framework,Cocoa -ldl -lz -lm
libtool: error: ‚/opt/local/lib/libXrandr.la‘ is not a valid libtool archive
make[1]: *** [gemsdlwindow.la] Error 1
make: *** [all-recursive] Error 1
brew install –with-toolchain llvm
export LDFLAGS=“-L/usr/local/opt/llvm/lib“
export CPPFLAGS=“-I/usr/local/opt/llvm/include“
2019-01-12:
export PKG_CONFIG_PATH=/usr/local/Cellar/ftgl/2.1.3-rc5/lib/pkgconfig
pkg-config –list-all | grep „ftgl“
./configure –with-pd=/Applications/Pd-0.49-1.app/Contents/Resources/ –with-defaultwindow=gemmacoswindow –without-ImageMagick –without-sdl –without-glfw3
make
make install
this installs to /usr/local/lib/pd/extra/Gem
add this path to your pd searchpaths
done 🙂
https://github.com/umlaeute/Gem/wiki/How-to-build-Gem-on-MacOSX-Mavericks