Opened 10 years ago

Closed 3 years ago

#45624 closed defect (fixed)

Failed to install gimp-jp2

Reported by: axmg@… Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 2.3.2
Keywords: Cc: jeabraham, hapaguy (Brian Kurt Fujikawa), EnekoGotzon, xujiyong@…, hubsif, tombombadil@…
Port: gimp-jp2

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Using yosemite OX 10.10 and after installing macport according to the OS I try to install gimp. (sudo port install gimp) and have the message:

Error: org.macports.build for port gimp-jp2 returned: command execution failed
Error: Failed to install gimp-jp2
Please see the log file for port gimp-jp2 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_gimp-jp2/gimp-jp2/main.log
Error: The following dependencies were not installed: gimp-jp2 gimp-lqr-plugin liblqr gtk-nodoka-engine gutenprint icns-gimp ufraw cfitsio dcraw gtkimageview xsane sane-backends libusb-compat libusb net-snmp
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port gimp failed

I try to run gimp. gimp is running

Attachments (1)

main.log (9.7 KB) - added by axmg@… 10 years ago.
main.log

Download all attachments as: .zip

Change History (12)

comment:1 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: gimp-jp2 removed
Owner: changed from macports-tickets@… to devans@…
Port: gimp-jp2 added; gimp removed
Type: requestdefect

Please attach the main.log file.

Changed 10 years ago by axmg@…

Attachment: main.log added

main.log

comment:2 in reply to:  1 Changed 10 years ago by axmg@…

Replying to ryandesign@…:

Please attach the main.log file.

main.log attached

comment:3 Changed 9 years ago by steve@…

Had this same problem. It turns out that openjpeg.h is no longer found in "/opt/local/include", but rather in a version specific subdirectory of the include tree. For me, just copying the file from the appropriate location to "/opt/local/include" fixed the issue. That is (as root):

cp /opt/local/include/openjpeg-1.5/openjpeg.h /opt/local/include/.

Of course, you should likely replace 1.5 with whatever version you have installed (see what's in "/opt/local/include/openjpeg-*" first):

ls /opt/local/include/openjpeg-*

Also note that more recent versions of openjpeg have "sub-includes" included within the openjpeg.h include file (residing in the same directory), so you may have to copy those files similarly.

I'm not sure if this should be considered a bug with gimp-jp2 (improperly configured -I directive) or with openjpeg (improperly placed .h files). I suspect the former, but who knows?

comment:4 Changed 9 years ago by jeabraham

Cc: jea@… added

Cc Me!

comment:5 Changed 9 years ago by hapaguy (Brian Kurt Fujikawa)

Cc: brian.fujikawa@… added

Cc Me!

comment:6 Changed 9 years ago by EnekoGotzon

Cc: enekogotzon@… added

Cc Me!

comment:7 Changed 9 years ago by xujiyong@…

Cc: xujiyong@… added

Cc Me!

comment:8 in reply to:  3 Changed 9 years ago by renaud.pacalet@…

Replying to steve@…:

Had this same problem. It turns out that openjpeg.h is no longer found in "/opt/local/include", but rather in a version specific subdirectory of the include tree. For me, just copying the file from the appropriate location to "/opt/local/include" fixed the issue. That is (as root):

cp /opt/local/include/openjpeg-1.5/openjpeg.h /opt/local/include/.

Of course, you should likely replace 1.5 with whatever version you have installed (see what's in "/opt/local/include/openjpeg-*" first):

ls /opt/local/include/openjpeg-*

Also note that more recent versions of openjpeg have "sub-includes" included within the openjpeg.h include file (residing in the same directory), so you may have to copy those files similarly.

I'm not sure if this should be considered a bug with gimp-jp2 (improperly configured -I directive) or with openjpeg (improperly placed .h files). I suspect the former, but who knows?

Works with openjpeg-1.5 (openjpeg.h only), not with openjpeg-2.1 (openjpeg.h, opj_config.h and opj_stdint.h). Creating links in /opt/local/include for the 3 latter does not solve the issue. My guess is that gimp-jp2 is compatible with openjpeg-1.5 only. As the header files of openjpeg have been moved in /opt/local/include sub-dirs to allow the co-existence of several incompatible versions, and gimp-jp2 ignores this, gimp-jp2 cannot be built...

comment:9 Changed 9 years ago by hubsif

Cc: hubsif@… added

Cc Me!

comment:10 Changed 9 years ago by tombombadil@…

Cc: tombombadil@… added

Cc Me!

comment:11 Changed 3 years ago by mascguy (Christopher Nielsen)

Resolution: fixed
Status: newclosed

This ticket is seven years old, and relates to port gimp-jp2 which no longer exists. Closing.

Note: See TracTickets for help on using tickets.