[MacPorts] #50680: gimp @2.8.16 +gmic but gmic is not available

MacPorts noreply at macports.org
Thu Mar 3 11:48:00 PST 2016


#50680: gimp @2.8.16 +gmic but gmic is not available
-------------------------+----------------------
  Reporter:  kurn@…      |      Owner:  devans@…
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:
      Port:  gmic gimp2  |
-------------------------+----------------------
Changes (by devans@…):

 * cc: assemlal@… (added)
 * port:  gimp => gmic gimp2


Comment:

 Sorry for not getting back to you on this.  I had it in my mind that the
 issue was resolved but I see it is not.  So thanks for the nudge.

 It appears that you have two or maybe parts of three different
 installations of gimp on your machine only one of which is the MacPorts
 version and there may be some interaction between them.

 As your `which` command shows, port gimp2 installs the basic GIMP
 application itself as
 {{{
 /opt/local/bin/gimp
 }}}
 You can see where it is installed by using the command
 {{{
 $ port contents gimp2
 }}}

 The corresponding plugins directory is
 {{{
 /opt/local/lib/gimp/2.0/plug-ins/
 }}}
 Using a similar command you can see that gmic installs its plugin as
 {{{
 /opt/local/lib/gimp/2.0/plug-ins/gmic_gimp
 }}}

 This is correct and you should be able launch the GIMP app from the
 command line as
 {{{
 $ gimp
 }}}

 If all this is correct, then GIMP should start up and you will see the
 gmic plugin under the Filters menu.

 Unfortunately, it appears that gmic is always compiled using gtk2 +x11 and
 so fails to load when using it with a clean +quartz build of gimp2
 {{{
 $ gimp
 dyld: Library not loaded: /opt/local/lib/libgtk-x11-2.0.0.dylib
   Referenced from: /opt/local/lib/gimp/2.0/plug-ins/gmic_gimp
   Reason: image not found

 (gimp:9174): LibGimpBase-WARNING **: gimp: gimp_wire_read(): error
 }}}

 This is an issue with the gmic port itself.  Appears it needs a +quartz
 variant to properly configure a build using gtk2 +quartz.  I'm copying the
 owner of that port and will file a ticket against gmic as soon as I finish
 a bit more testing.

 Concerning the app bundle, it is installed by port `gimp-app` and is the
 one found at
 {{{
 /Applications/MacPorts/GIMP.app
 }}}

 It is just a script so start up /opt/local/bin/gimp in a Mac friendly way.
 You should see that
 {{{
 /Applications/MacPorts/GIMP.app/Contents/Resources/bin
 }}}

 is just a link to
 {{{
 /opt/local/bin
 }}}

 Finally, on startup, GIMP will create some configuration files in
 {{{
 ~/Library/Application Support/GIMP/2.8
 }}}

 If you remove these, GIMP will recreate them with default values on the
 next startup.

 Beyond these paths and directories, anything that looks like GIMP is not
 the MacPorts version and I would recommend removing them to avoid
 confusion or any adverse interactions with MacPorts.

 The port `gimp` is just a "meta port", one that just installs a list of
 other ports, namely, those above and some extra filters, etc.

 Hope this clarifies the issue.  Let me know if you have any questions.

 As I mentioned above, other than understanding which GIMP is which, the
 solution to this problem is to fix the gmic port to build using gtk2
 +quartz in a +quartz environment.

 Working on this.

-- 
Ticket URL: <https://trac.macports.org/ticket/50680#comment:4>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list