Opened 13 years ago

Closed 13 years ago

#31818 closed update (fixed)

opencv: update to 2.3.1a

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: andrew.c.stewart@…, trog24 (Frank J. R. Hanstick)
Port: opencv

Description

opencv should be updated to the latest version, currently 2.3.1. I have been working on this update; I'll attach my patch.

Attachments (1)

main.log (828.2 KB) - added by trog24 (Frank J. R. Hanstick) 13 years ago.
build failure log file

Download all attachments as: .zip

Change History (11)

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

Resolution: fixed
Status: newclosed

I was able to resolve the issues I had with this update; committed in r86726.

The issues that held up the update were:

  • The build failed, but this turned out to be because I had opencv 2.2 installed and it was using parts of it; I made the port instruct users to deactivate old versions before building the new one
  • The install_name of the libraries was wrong; I found the offending lines in the CMakeLists.txt files that were overwriting our install_name instructions and removed them

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

Resolution: fixed
Status: closedreopened

Oh great, since I started working on this, they deleted the 2.3.1 tarball from sourceforge and uploaded a new 2.3.1a tarball. Let's see how it differs...

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

Resolution: fixed
Status: reopenedclosed
Summary: opencv: update to 2.3.1opencv: update to 2.3.1a

Not by a lot, it turns out. The diff is only 60 lines long. Updated in r86729.

comment:4 Changed 13 years ago by andrew.c.stewart@…

So does this mean 2.3.1 is on mac ports now? Because I only see 2.2 when I do a 'port info opencv'

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

Cc: andrew.c.stewart@… added

Yes, I updated to 2.3.1a yesterday. Run "sudo port selfupdate" to receive this and other updates.

comment:6 Changed 13 years ago by andrew.c.stewart@…

Any idea what this is about??

--->  Configuring opencv
Error: Target org.macports.configure returned: configure failure: 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

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

I would need to see the log file. Please file a new ticket and attach the log file to it.

comment:8 Changed 13 years ago by trog24 (Frank J. R. Hanstick)

Resolution: fixed
Status: closedreopened

I started out with the same cannot be built error:

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>

I then deactivated opencv and continued the upgrade of outdated. Opencv did not update.

I then tried sudo port install opencv and got the following error:

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: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

I thought that it remnants remained from the previous attempt and did the following: sudo port clean opencv

Before reattempting the install, I thought that it may be better if I uninstalled opencv.

I then made another attempt at installing and got the following error:

--->  Computing dependencies for opencv
--->  Fetching archive for opencv
--->  Attempting to fetch opencv-2.3.1a_1.darwin_9.ppc.tgz from http://packages.macports.org/opencv
--->  Fetching opencv
--->  Verifying checksum(s) for opencv
--->  Extracting opencv
--->  Applying patches to opencv
--->  Configuring 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: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Attached is the log file from the failure. Please note that this is the PowerPC version.

comment:9 Changed 13 years ago by trog24 (Frank J. R. Hanstick)

Cc: trog24@… added

Cc Me!

Changed 13 years ago by trog24 (Frank J. R. Hanstick)

Attachment: main.log added

build failure log file

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

Resolution: fixed
Status: reopenedclosed

Once again, and as it says above, please file a new ticket for your new problem. This ticket was about the need to update the port to version 2.3.1/2.3.1a, which was accomplished in r86726/r86729 and this ticket is therefore closed. Please do not re-open existing closed tickets.

Note: See TracTickets for help on using tickets.