[MacPorts] #43611: Imagemagick cannot use libopenjpeg

MacPorts noreply at macports.org
Wed May 7 09:54:56 PDT 2014


#43611: Imagemagick cannot use libopenjpeg
--------------------+--------------------------------
 Reporter:  fmw@…   |      Owner:  macports-tickets@…
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:  2.2.1
 Keywords:          |       Port:
--------------------+--------------------------------
 I installed libopenjpeg 2 from MacPorts and installed Imagemagick from
 source (as I usually do rather than using the version from MacPorts).
 Imagemagick cannot find the correct and newly renamed files from OpenJPEG.

 '''OpenJPEG has moved from libopenjpeg to libopenjp2 and libopenjpeg.pc to
 libopenjp2.pc.  Its likely there is an incompatibility with an older
 version of the library.'''

 DETAILS

 I uninstalled openjpeg via MacPort and cleaned out all openjpeg related
 files as well as uninstalling ffmpeg which has a dependency on openjpeg.
 But it seems that ffmpeg wants openjpeg 1.5 at first and so installs it
 and then uninstalls it. But it leaves a few openjpeg 1.5 files around. The
 only ports I have are now:

 openjpeg @2.0.0_0 (active)

 and

  pkgconfig @0.26_0
   pkgconfig @0.26_1
   pkgconfig @0.27.1_1
   pkgconfig @0.28_0 (active)



 cat /opt/local/lib/pkgconfig/libopenjpeg.pc
 prefix=/opt/local
 exec_prefix=${prefix}
 libdir=${exec_prefix}/lib
 includedir=${prefix}/include

 Name: openjpeg
 Description: JPEG2000 library
 URL: http://www.openjpeg.org/
 Version: 1.5.0
 Requires.private:
 Libs: -L${libdir} -lopenjpeg
 Libs.private: -lm
 Cflags: -I${includedir}


 There is no libopenjp2.pc.  So it seems like either MacPorts has some
 conflicts or /opt/local/lib/pkgconfig/libopenjpeg.pc is misconfigured to
 1.5 rather than 2.0.0.

 This would look like a MacPorts issue.

 '''As you can see all the files are still libopenjpeg and not
 libopenjp2'''

 find /opt | grep openjp*

 /opt/local/include/openjpeg-1.5
 /opt/local/include/openjpeg-1.5/openjpeg.h
 /opt/local/include/openjpeg-2.0
 /opt/local/include/openjpeg-2.0/openjpeg.h
 /opt/local/include/openjpeg-2.0/opj_config.h
 /opt/local/include/openjpeg-2.0/opj_stdint.h
 /opt/local/include/openjpeg.h
 /opt/local/lib/libopenjp2.2.0.0.dylib
 /opt/local/lib/libopenjp2.6.dylib
 /opt/local/lib/libopenjp2.dylib
 /opt/local/lib/libopenjpeg.1.dylib
 /opt/local/lib/libopenjpeg.a
 /opt/local/lib/libopenjpeg.dylib
 /opt/local/lib/libopenjpeg.la
 /opt/local/lib/openjpeg-2.0
 /opt/local/lib/openjpeg-2.0/OpenJPEGConfig.cmake
 /opt/local/lib/openjpeg-2.0/OpenJPEGTargets-release.cmake
 /opt/local/lib/openjpeg-2.0/OpenJPEGTargets.cmake
 /opt/local/lib/pkgconfig/libopenjpeg.pc
 /opt/local/lib/pkgconfig/libopenjpeg1.pc
 /opt/local/share/doc/openjpeg-1.5
 /opt/local/share/doc/openjpeg-1.5/CHANGES
 /opt/local/share/doc/openjpeg-1.5/LICENSE
 /opt/local/share/doc/openjpeg-2.0
 /opt/local/share/doc/openjpeg-2.0/CHANGES
 /opt/local/share/doc/openjpeg-2.0/LICENSE
 /opt/local/share/man/man3/jpwl_libopenjpeg.3.gz
 /opt/local/share/man/man3/libopenjp2.3.gz
 /opt/local/share/man/man3/libopenjpeg.3.gz
 find: /opt/local/var/lib/polkit-1: Permission denied
 /opt/local/var/macports/distfiles/openjpeg
 /opt/local/var/macports/distfiles/openjpeg/openjpeg-1.5.0.tar.gz
 /opt/local/var/macports/software/openjpeg
 /opt/local/var/macports/software/openjpeg/openjpeg-2.0.0_0.darwin_10.x86_64.tbz2
 /opt/local/var/macports/software/openjpeg15
 /opt/local/var/macports/software/openjpeg15/openjpeg15-1.5.0_0.darwin_10.x86_64.tbz2
 /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/vxl/files
 /patch-use-embedded-openjpeg2.diff
 /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/graphics/openjpeg
 /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/graphics/openjpeg/Portfile
 /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/graphics/openjpeg15
 /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/graphics/openjpeg15/files
 /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/graphics/openjpeg15/files
 /patch-remove-t1_generate_luts.c-causing-main-symbol.diff
 /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/graphics/openjpeg15/Portfile
 /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/textproc/openjade
 /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/textproc/openjade/files
 /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/textproc/openjade/files
 /openjade-getoptperl.patch
 /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/textproc/openjade/files
 /patch-configure
 /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/textproc/openjade/files
 /patch-GroveApp.h
 /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/textproc/openjade/files
 /patch-GroveBuilder.cxx
 /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/textproc/openjade/files
 /patch-ltmain.sh
 /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/textproc/openjade/files
 /patch-Makefile.lib.in
 /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/textproc/openjade/files
 /patch-Makefile.prog.in
 /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/textproc/openjade/files
 /patch-Node.h
 /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/textproc/openjade/Portfile

-- 
Ticket URL: <https://trac.macports.org/ticket/43611>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list