Opened 13 years ago

Closed 12 years ago

#29967 closed defect (fixed)

OpenCV upgrade to 2.2.0_1 fails with ffmpeg-devel

Reported by: dershow Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc:
Port: opencv

Description

I have opencv 2.2.0_0 installed. There was an upgrade to 2.2.0_1 but it fails for me.

Here is the error:

--->  Building opencv
Error: Target org.macports.build returned: shell command failed (see log for details)
Log for opencv is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_opencv/main.log
Error: Unable to upgrade port: 1
To report a bug, see <http://guide.macports.org/#project.tickets>

I am also attaching the log file.

Attachments (1)

opencv_main.log (1.3 MB) - added by dershow 13 years ago.
Opencv upgrade failure log

Download all attachments as: .zip

Change History (6)

Changed 13 years ago by dershow

Attachment: opencv_main.log added

Opencv upgrade failure log

comment:1 Changed 13 years ago by jmroot (Joshua Root)

Summary: OpenCV upgrade to 2.2.0_1 failsOpenCV upgrade to 2.2.0_1 fails with ffmpeg-devel

comment:2 Changed 13 years ago by olivier.aubert@…

Same issue here (on Leopard). I fixed it with the patches given at https://code.ros.org/trac/opencv/ticket/1020

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

Is this still an issue with 2.3.1, to which the opencv port was just updated?

comment:4 Changed 13 years ago by dershow

In part because of this, I had switched back from ffmpeg-devel to ffmpeg (and also because ffmpeg had a bug of missing filters, that has since been fixed). But, when I just tried this update, I got an error:

--->  Configuring opencv
--->  Building opencv
Error: opencv 2.3.1a cannot be built while opencv 2.2.0 is installed and active.
Error: Please deactivate opencv 2.2.0 first.
Error: Target org.macports.build returned: incompatible opencv version active
Log for opencv is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_opencv/opencv/main.log
Error: Unable to upgrade port: 1
To report a bug, see <http://guide.macports.org/#project.tickets>

So I did deactivated and tried again, and got this:

sudo port deactivate opencv
Password:
--->  Deactivating opencv @2.2.0_1
--->  Cleaning opencv
adamsmacbook-12:~ dersh$ sudo port upgrade opencv
--->  Computing dependencies for opencv
--->  Building opencv
Error: Target org.macports.build returned: shell command failed (see log for details)
Log for opencv is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_opencv/opencv/main.log
Error: Unable to upgrade port: 1
To report a bug, see <http://guide.macports.org/#project.tickets>

I can also post the log if that would be helpful.

comment:5 Changed 12 years ago by raphael-st (Raphael Straub)

Resolution: fixed
Status: newclosed

I don't know when this was fixed, but opencv 2.4.0 compiles fine with ffmpeg-devel 20120329.

Note: See TracTickets for help on using tickets.