Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#54613 closed defect (fixed)

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

Reported by: anowacki (Andy Nowacki) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.4.99
Keywords: Cc: dbevans (David B. Evans), jeremyhu (Jeremy Huddleston Sequoia)
Port: ffmpeg

Description

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.

Attachments (2)

config.log (479.6 KB) - added by anowacki (Andy Nowacki) 7 years ago.
ffmpeg @3.3.3_0 config log
main.log (16.1 KB) - added by anowacki (Andy Nowacki) 7 years ago.
ffmpeg @3.3.3_0 main log

Download all attachments as: .zip

Change History (7)

Changed 7 years ago by anowacki (Andy Nowacki)

Attachment: config.log added

ffmpeg @3.3.3_0 config log

Changed 7 years ago by anowacki (Andy Nowacki)

Attachment: main.log added

ffmpeg @3.3.3_0 main log

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

Owner: set to ryandesign
Status: newaccepted

comment:2 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: acceptedclosed

In 8801597f1cd9d80644ec42c763805c0c527c2488/macports-ports:

ffmpeg: Fix build failure with openjpeg 2.2

Closes: #54613

comment:3 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

The revbump is to ensure we weren't inadvertently linked with an already installed openjpeg15 port.

comment:4 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

In 8801597f1cd9d80644ec42c763805c0c527c2488/macports-ports:

ffmpeg: Fix build failure with openjpeg 2.2

Closes: #54613

comment:5 Changed 7 years ago by jeremyhu (Jeremy Huddleston Sequoia)

See #55023 for followup.

Note: See TracTickets for help on using tickets.