New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #31991 (closed defect: fixed)

Opened 19 months ago

Last modified 18 months ago

digikam, objectmarker, frei0r-plugins, auto-multiple-choice need revbump following opencv 2.3.x update

Reported by: johannes@… Owned by: ryandesign@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc: jan@…, dan@…, phw@…, clot@…, trog24@…
Port: digikam, objectmarker, frei0r-plugins, auto-multiple-choice

Description

Hi, when upgrading all the outdated ports, the upgrade of opencv fails because

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.

I attach the log for info.

When I manually deactivate opencv and then install the latest version digikam won't start anymore. So there seems to be some inconsistency.

Attachments

main.log (3.8 KB) - added by johannes@… 19 months ago.
log of opencv upgrade attempt
digikam_error.txt (36 bytes) - added by johannes@… 19 months ago.
digikam_2011-11-09-153716_poseidon.crash (37.7 KB) - added by johannes@… 19 months ago.
digikam CrashReport
main.2.log (828.2 KB) - added by trog24@… 18 months ago.
build failure log file

Change History

Changed 19 months ago by johannes@…

log of opencv upgrade attempt

comment:1 Changed 19 months ago by ryandesign@…

The opencv error messages are accurate. You must deactivate old versions of opencv before you can build the new one.

If you then have problems running digikam, please tell us about those. What happens when you start digikam?

Changed 19 months ago by johannes@…

comment:2 Changed 19 months ago by johannes@…

Hi, thank you for looking into this. I have found a solution: First uninstall digikam, then upgrade opencv, then install digikam. Then digikam works again. (The version of digikam stays the same: 2.1.1_0)

It is a bit strange that this is not done automatically by "port upgrade outdated" though; that is when the original error message of opencv occurred. Just deactivating digikam, then upgrading opencv, then activating digikam does not work either; that's when the digikam icon in the dock hops about but instead of the digikam window I get an error message with the newly attached digikam_error details. Digikam appears to need to recompilation.

Anyway, everything seems to be fine for me, now. Thanks again.

comment:3 Changed 19 months ago by ryandesign@…

  • Owner changed from macports-tickets@… to ryandesign@…
  • Cc jan@… added
  • Port changed from opencv to digikam
  • Summary changed from opencv @2.3.1a cannot be built to digikam needs to be recompiled following opencv update

But what happened when you opened digikam before recompiling it? Did it show an error message? Did it crash? (If so, can you attach the crash log, from ~/Library/Logs/CrashReporter)

Changed 19 months ago by johannes@…

digikam CrashReport

comment:4 Changed 19 months ago by johannes@…

I clicked the digikam icon, then the icon in the dock hopped up and down, after while a window opened that asked me whether I wanted to submit a crash report to Apple. The digikam window never appeared. The details of that suggested report to Apple are in the second attachment of this ticket. I am also attaching one of the reports from ~/Library/Logs/CrashReporter. Hope this helps.

comment:5 Changed 19 months ago by ryandesign@…

Ok, the crash log contains what I suspected:

Dyld Error Message:
  Library not loaded: /opt/local/lib/libopencv_core.2.2.dylib
  Referenced from: /opt/local/lib/libkface.1.dylib
  Reason: image not found

So really we should revbump every port that depends on opencv.

comment:6 Changed 19 months ago by ryandesign@…

  • Status changed from new to assigned
  • Cc dan@…, phw@…, clot@… added
  • Port changed from digikam to digikam, objectmarker, frei0r-plugins, auto-multiple-choice
  • Summary changed from digikam needs to be recompiled following opencv update to digikam, objectmarker, frei0r-plugins, auto-multiple-choice need revbump following opencv 2.3.x update

comment:7 Changed 19 months ago by dan@…

FYI, frei0r-plugins is not critically affected since only 2 of its numerous plugins are affected, and each plugin is a separate lib.

comment:8 Changed 19 months ago by ryandesign@…

  • Status changed from assigned to closed
  • Resolution set to fixed

comment:9 Changed 18 months ago by trog24@…

  • Status changed from closed to reopened
  • Resolution fixed deleted

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.

Changed 18 months ago by trog24@…

build failure log file

comment:10 Changed 18 months ago by trog24@…

  • Cc trog24@… added

Cc Me!

comment:11 Changed 18 months ago by ryandesign@…

  • Status changed from reopened to closed
  • Resolution set to fixed

This ticket is about digikam, objectmarker, frei0r-plugins, and auto-multiple-choice needing their revisions increased in order to force a rebuild against the latest opencv. This was accomplished in r87084 and this ticket is therefore closed. You are experiencing a build failure of opencv, which is an unrelated matter. Please open a new ticket for that.

comment:12 Changed 18 months ago by trog24@…

It changed from opencv to digikam for the opening complaint is the same as mine.

Note: See TracTickets for help on using tickets.