Opened 5 years ago

Last modified 16 months ago

#38430 new defect

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

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

Description (last modified by ryandesign (Ryan 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 Schmidt) 5 years ago.

Download all attachments as: .zip

Change History (13)

comment:1 Changed 5 years ago by amontinari@…

  • Cc amontinari@… added

Cc Me!

comment:2 follow-up: Changed 5 years ago by ryandesign (Ryan Schmidt)

  • Cc amontinari@… removed
  • Description modified (diff)
  • Keywords opencv removed
  • Port opencv added
  • Summary changed from Error: Processing of port opencv failed to opencv: error: dispatch/dispatch.h: No such file or directory
  • Type changed from request to defect

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 5 years ago by ryandesign (Ryan Schmidt)

comment:3 in reply to: ↑ 2 ; follow-up: Changed 5 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 ; follow-up: Changed 5 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 5 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 5 years ago by jmroot (Joshua Root)

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

Please remember to Cc the maintainer.

comment:7 follow-up: Changed 5 years ago by stromnov (Andrew 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 5 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 follow-up: Changed 5 years ago by cooljeanius (Eric Gallager)

The GCD patch got pushed in r104569

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

  • Cc egall@… added

Cc Me!

comment:11 in reply to: ↑ 9 Changed 16 months 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 16 months ago by udbraumann

  • Cc braumann@… added

Cc Me!

Note: See TracTickets for help on using tickets.