mooseking24 / gimp-normalmap

Automatically exported from code.google.com/p/gimp-normalmap
Other
0 stars 0 forks source link

Instructions for building on Mac OS X #23

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I'd like to build this on OS X (or consume a binary).

I've installed some of the dependencies through homebrew, and the version of 
Gimp I have is the official Mac binary they provide.

At present as far as I can get compiling gimp-normalmap is if I do 
PKG_CONFIG_PATH=/usr/X11/lib/pkgconfig

Compilation fails with

No package 'gimp-2.0' found
normalmap.c:26:21: error: gtk/gtk.h: No such file or directory
normalmap.c:28:26: error: libgimp/gimp.h: No such file or directory
normalmap.c:29:28: error: libgimp/gimpui.h: No such file or directory

But I don't know where to get/install the gimp development libraries.

I found a post in some corner of the internet which suggested

export 
DYLD_LIBRARY_PATH=/Applications/Gimp.app/Contents/Resources/lib:/System/Library/
Frameworks/ImageIO.framework/Versions/A/Resources:/usr/lib:/opt/local/lib

After this compilation fails with

dyld: Symbol not found: __cg_jpeg_resync_to_restart
  Referenced from: /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
  Expected in: /Applications/Gimp.app/Contents/Resources/lib/libJPEG.dylib
 in /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
normalmap.c:26:21: error: gtk/gtk.h: No such file or directory
normalmap.c:28:26: error: libgimp/gimp.h: No such file or directory
normalmap.c:29:28: error: libgimp/gimpui.h: No such file or directory

I'm not sure if that's progress or not.

Any help would be much appreciated.

Original issue reported on code.google.com by b...@tremby.net on 26 Aug 2013 at 11:37

GoogleCodeExporter commented 8 years ago
have you gotten an answer yet about this issue? I am having problems trying to 
get the right files and/or placement of them on my macbook pro. I run Mavericks 
right now.

Original comment by jsfar...@gmail.com on 16 Nov 2013 at 5:39

GoogleCodeExporter commented 8 years ago
You know -- I *did* get it compiled on Mac, after a lot of trial and error and 
mucking about with libraries. Sadly I did not make notes. It was long enough 
ago that I don't remember what hoops I had to jump through. Sorry. :(

Original comment by b...@tremby.net on 18 Nov 2013 at 6:46

GoogleCodeExporter commented 8 years ago
I can't support Mac OS X builds as I do not have access to any machines to test 
and verify any changes.  Patches are welcome if you have a working solution!

Original comment by ski...@gmail.com on 7 Dec 2013 at 8:28

GoogleCodeExporter commented 8 years ago
I want this plugin on Mac, too. How can I build it?

Original comment by alesalas...@gmail.com on 4 Aug 2015 at 4:58