#39161 closed defect (fixed)
ffmpeg-1.2.1 + openjpeg-2.0.0 conflict + proposed fix
Reported by: | davidfavor (David Favor) | Owned by: | dbevans (David B. Evans) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.3 |
Keywords: | Cc: | nonstop.server@…, f.calboli@…, djart@…, whcordis@…, raimue (Rainer Müller), jeremyhu (Jeremy Huddleston Sequoia), cooljeanius (Eric Gallager) | |
Port: | ffmpeg |
Description
Problem occurs during normal 'port upgrade ffmpeg' since openjpeg-2.0.0 was released.
Problem surfaces as "ERROR: libopenjpeg not found" in the configure step, because ffmpeg appears to use the openjpeg-1.5 API which appears to conflict with the openjpeg-2.0 API.
https://ffmpeg.org/trac/ffmpeg/ticket/2016 talks about this.
While I'm unable to find the ticket that fixed this in ffmpeg devel, I'm building the latest git pull of ffmpeg on an Ubuntu box and this build picks up either openjpeg 1.5 or 2.0 (whichever is installed).
This suggests that current ffmpeg-1.2.1 Portfile depends_lib changes from port:openjpeg to port:openjpeg15.
Then when ffmpeg-1.2.2 releases change this to port:openjpeg which picks up openjpeg-2.0.0 (which is the version the unqualified openjpeg port references).
This also suggest that both openjpeg + openjpeg15 must have a conflicts statement added (conflicting with each other), so only one version of openjpeg can be installed.
Change History (16)
comment:1 follow-up: 4 Changed 11 years ago by raimue (Rainer Müller)
Cc: | devans@… removed |
---|---|
Owner: | changed from macports-tickets@… to devans@… |
comment:3 Changed 11 years ago by mf2k (Frank Schima)
Cc: | f.calboli@… djart@… added |
---|
Cc'ing people from duplicate #39158.
comment:4 Changed 11 years ago by f.calboli@…
comment:6 Changed 11 years ago by whcordis@…
I was able to install openjpeg15 in addition to the 2.0 and so far no problems.
comment:7 Changed 11 years ago by mf2k (Frank Schima)
Isn't this fixed? Is there something else to do here?
comment:8 Changed 11 years ago by mf2k (Frank Schima)
Cc: | raimue@… added |
---|
comment:9 Changed 11 years ago by djart@…
I also confirm that it works if/when you install openjpeg15 (which mysteriously was absent as a package at the time this bug was filed, it showed up after a selfupdate some hours later, hm who knows).
Perhaps the ffmpeg package dependency should change to point to openjpeg15 just to be politically correct ...
comment:10 Changed 11 years ago by mf2k (Frank Schima)
Cc: | jeremyhu@… added |
---|
It already does depend on openjpeg15, that was the change mentioned in comment:1
comment:11 Changed 11 years ago by djart@…
You are right, my bad, I hadn't noticed. I guess then that it's totally safe to call it fixed.
comment:12 Changed 11 years ago by dbevans (David B. Evans)
Resolution: | → fixed |
---|---|
Status: | new → closed |
This was fixed with the r106244 commit as stated above
comment:14 follow-up: 15 Changed 11 years ago by llamafilm
Can someone please explain how this is fixed? I still get the error when compiling ffmpeg "libopenjpeg not found". I have version 2.0 installed via MacPorts.
comment:15 Changed 11 years ago by raimue (Rainer Müller)
Replying to elliottbalsley@…:
Can someone please explain how this is fixed? I still get the error when compiling ffmpeg "libopenjpeg not found". I have version 2.0 installed via MacPorts.
Are you building the ffmpeg port or outside of MacPorts? As stated above, ffmpeg needs openjpeg 1.5.x, which is provided in the openjpeg15 port and ffmpeg also depends on this port.
comment:16 Changed 7 years ago by mrkapqa
Had also do install "Openjpeg15" manually by "sudo port install openjpeg15" to install MPV on Lion 10.7.5 because ffmpeg was complaining of "libopenjpeg not found" . Glad i found this thread here.
edit: the same accounts for snow leopard; one has to fix manually ffmpeg by installing via macports "openjpeg15" to get rid of above error "libopenjpeg not found" for ffmpeg-3.3.3_0+gpl2.darwin_10.x86_64.tbz2
I discovered the problem with ffmpeg and openjpeg independently of this ticket. As of r106244, ffmpeg depends on openjpeg15.