Opened 12 years ago

Closed 4 years ago

#38430 closed defect (wontfix)

opencv: error: dispatch/dispatch.h: No such file or directory

Reported by: amontinari@… Owned by: stromnov (Andrey Stromnov)
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: cooljeanius (Eric Gallager), udbraumann
Port: opencv

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Not sure why, but I cannot import the opencv libraries. What do I need to do to complete the installation correctly?
I am running a MACOSX 10.5.8 with XCode 3.1.4 and python 2.7
Here is the full log:

Attachments (1)

main.log.bz2 (10.6 KB) - added by ryandesign (Ryan Carsten Schmidt) 12 years ago.

Download all attachments as: .zip

Change History (16)

comment:1 Changed 12 years ago by amontinari@…

Cc: amontinari@… added

Cc Me!

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

Cc: amontinari@… removed
Description: modified (diff)
Keywords: opencv removed
Port: opencv added
Summary: Error: Processing of port opencv failedopencv: error: dispatch/dispatch.h: No such file or directory
Type: requestdefect

Please use WikiFormatting and preview before submitting. Attach voluminous output instead of pasting it. Put the port name in the Port field, not the Keywords field. You do not need to Cc yourself when you are the reporter. This is a bug report, not a port request.

The relevant error seems to be:

:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.4/modules/core/src/parallel.cpp:106:39: error: dispatch/dispatch.h: No such file or directory

Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: main.log.bz2 added

comment:3 in reply to:  2 ; Changed 12 years ago by cooljeanius (Eric Gallager)

Replying to ryandesign@…:

The relevant error seems to be:

:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.4/modules/core/src/parallel.cpp:106:39: error: dispatch/dispatch.h: No such file or directory

That makes sense, considering that dispatch/dispatch.h is part of Grand Central Dispatch, which was introduced in 10.6, and apparently OP is only 10.5. I can think of two solutions: either prevent OpenCV from building on 10.5, or create a port for libdispatch that runs on 10.5. I actually already know of an implementation of libdispatch that runs on 10.5: http://daagaak.github.com/WiganWallgate/

comment:4 in reply to:  3 ; Changed 12 years ago by larryv (Lawrence Velázquez)

Replying to egall@…:

That makes sense, considering that dispatch/dispatch.h is part of Grand Central Dispatch, which was introduced in 10.6, and apparently OP is only 10.5. I can think of two solutions: either prevent OpenCV from building on 10.5, or create a port for libdispatch that runs on 10.5. I actually already know of an implementation of libdispatch that runs on 10.5: http://daagaak.github.com/WiganWallgate/

Or patch it so it doesn’t try to use GCD.

comment:5 in reply to:  4 Changed 12 years ago by cooljeanius (Eric Gallager)

Replying to larryv@…:

Replying to egall@…:

That makes sense, considering that dispatch/dispatch.h is part of Grand Central Dispatch, which was introduced in 10.6, and apparently OP is only 10.5. I can think of two solutions: either prevent OpenCV from building on 10.5, or create a port for libdispatch that runs on 10.5. I actually already know of an implementation of libdispatch that runs on 10.5: http://daagaak.github.com/WiganWallgate/

Or patch it so it doesn’t try to use GCD.

Or that, or add a configure check to test to see if GCD is available.

comment:6 Changed 12 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to stromnov@…

Please remember to Cc the maintainer.

comment:7 Changed 12 years ago by stromnov (Andrey Stromnov)

You can try this: https://github.com/stromnov/mports/commit/81d7f4b34087d19b949ff4d16bca7bb709a35661 (with GCD patch), or just rebuild with +tbb variant.

comment:8 in reply to:  7 Changed 12 years ago by cooljeanius (Eric Gallager)

Replying to stromnov@…:

or just rebuild with +tbb variant.

Just a warning though, the +tbb variant doesn't work with +universal: #37320

comment:9 Changed 12 years ago by cooljeanius (Eric Gallager)

The GCD patch got pushed in r104569

comment:10 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:11 in reply to:  9 Changed 8 years ago by udbraumann

Replying to egall@…:

The GCD patch got pushed in r104569

Now, 3 years later, this patch is no longer in the Portfile, and the problem reoccurs.

comment:12 Changed 8 years ago by udbraumann

Cc: braumann@… added

Cc Me!

comment:13 Changed 4 years ago by mascguy (Christopher Nielsen)

Is there still a need to support MacOS 10.5?

comment:14 Changed 4 years ago by mascguy (Christopher Nielsen)

This ticket is no longer relevant, as we don't have an OpenCV 2 port. Can someone close?

comment:15 Changed 4 years ago by mf2k (Frank Schima)

Resolution: wontfix
Status: newclosed
Note: See TracTickets for help on using tickets.