[MacPorts] #54613: ffmpeg @3.3.3_0 +gpl2+nonfree Failure configuring: libopenjpeg not found (max version 2.1 searched for)

MacPorts noreply at macports.org
Tue Aug 15 11:45:11 UTC 2017


#54613: ffmpeg @3.3.3_0 +gpl2+nonfree Failure configuring: libopenjpeg not found
(max version 2.1 searched for)
----------------------+--------------------
 Reporter:  anowacki  |      Owner:
     Type:  defect    |     Status:  new
 Priority:  Normal    |  Milestone:
Component:  ports     |    Version:  2.4.99
 Keywords:            |       Port:  ffmpeg
----------------------+--------------------
 Trying to upgrade {{{ffmpeg @3.3.2_0+gpl2+nonfree}}} via a {{{port upgrade
 ffmpeg}}} errors at the configuration stage (config.log and main.log
 attached):

 {{{
 /opt/local/var/macports/build/_Users_nowacki_Applications_macports-
 ports_multimedia_ffmpeg/ffmpeg/work/.tmp/ffconf.wdI5LRy9.c:1:10: fatal
 error: 'openjpeg.h' file not found
 #include <openjpeg.h>
          ^
 1 error generated.
 ERROR: libopenjpeg not found
 }}}

 {{{openjpeg @2.2.0_0}}} is installed, and this is the problem.

 The error arises because the configure process only searches for versions
 of openjpeg up to 2.1, and the headers live in
 {{{$prefix/include/openjpeg-$version}}}, which is
 {{{/opt/local/include/openjpeg-2.2}}} in this case.  (See lines like
 config.log:12310-12323:
 {{{
 BEGIN /opt/local/var/macports/build/_Users_nowacki_Applications_macports-
 ports_multimedia_ffmpeg/ffmpeg/work/.tmp/ffconf.wdI5LRy9.c
     1   #include <openjpeg-2.1/openjpeg.h>
     2   #include <stdint.h>
     3   long check_opj_version(void) { return (long) opj_version; }
     4   int main(void) { int ret = 0;
     5    ret |= ((intptr_t)check_opj_version) & 0xFFFF;
     6   return ret; }
 END /opt/local/var/macports/build/_Users_nowacki_Applications_macports-
 ports_multimedia_ffmpeg/ffmpeg/work/.tmp/ffconf.wdI5LRy9.c
 /usr/bin/clang -I/opt/local/include -D_ISOC99_SOURCE
 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
 -I$(SRC_PATH)/compat/dispatch_semaphore -DPIC -pipe -Os -DHAVE_LRINTF
 -I/opt/local/include -arch x86_64 -std=c11 -fomit-frame-pointer -fPIC
 -pthread -I/opt/local/include/p11-kit-1 -I/opt/local/include/freetype2
 -I/opt/local/include/fribidi -I/opt/local/include/glib-2.0
 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/freetype2
 -I/opt/local/include/freetype2 -I/opt/local/include/freetype2
 -I/opt/local/include/fribidi -I/opt/local/include/glib-2.0
 -I/opt/local/lib/glib-2.0/include -c -o /opt/local/var/macports/build
 /_Users_nowacki_Applications_macports-
 ports_multimedia_ffmpeg/ffmpeg/work/.tmp/ffconf.aVC8CXhR.o
 /opt/local/var/macports/build/_Users_nowacki_Applications_macports-
 ports_multimedia_ffmpeg/ffmpeg/work/.tmp/ffconf.wdI5LRy9.c
 /opt/local/var/macports/build/_Users_nowacki_Applications_macports-
 ports_multimedia_ffmpeg/ffmpeg/work/.tmp/ffconf.wdI5LRy9.c:1:10: fatal
 error: 'openjpeg-2.1/openjpeg.h' file not found
 #include <openjpeg-2.1/openjpeg.h>
          ^
 1 error generated.
 }}}
 )

 Apologies for not attaching a fix: I'm afraid I'm too short on time at the
 moment.

--
Ticket URL: <https://trac.macports.org/ticket/54613>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list