[MacPorts] #47884: opencv: malformed opencv.pc causes gstreamer1-gst-plugins-bad compilation to fail (was: Compiling gstreamer1-gst-plugins-bad fails)

MacPorts noreply at macports.org
Sat May 30 12:13:13 PDT 2015


#47884: opencv: malformed opencv.pc causes gstreamer1-gst-plugins-bad compilation
to fail
------------------------------------------------+------------------------
  Reporter:  jwhowse4@…                         |      Owner:  stromnov@…
      Type:  defect                             |     Status:  new
  Priority:  Normal                             |  Milestone:
 Component:  ports                              |    Version:  2.3.3
Resolution:                                     |   Keywords:
      Port:  opencv gstreamer1-gst-plugins-bad  |
------------------------------------------------+------------------------
Changes (by devans@…):

 * status:  assigned => new
 * cc: devans@… (added)
 * port:  gstreamer1-gst-plugins-bad => opencv gstreamer1-gst-plugins-bad
 * owner:  devans@… => stromnov@…


Comment:

 I did some fiddling with opencv variants this morning and was able to
 recreate your issue when opencv is built with Qt support either +qt4 or
 +qt5.  In this case, opencv provides Qt OpenGL support using the Apple
 OpenGL framework and builds internally using using the appropriate
 framework arguments
 {{{
 -framework AGL -framework OpenGL
 }}}

 however, when inquiring of opencv using pkgconfig (such as is done by
 gstreamer1-gst-plugins-bad) one receives the following (incorrect) result.
 {{{
 $ pkg-config --libs opencv
 -L/opt/local/lib -L//System/Library/Frameworks -lopencv_calib3d
 -lopencv_contrib -lopencv_core -lopencv_features2d -lopencv_flann
 -lopencv_gpu -lopencv_highgui -lopencv_imgproc -lopencv_legacy -lopencv_ml
 -lopencv_nonfree -lopencv_objdetect -lopencv_photo -lopencv_stitching
 -lopencv_superres -lopencv_ts -lopencv_video -lopencv_videostab -lOpenGL
 -lAGL -ltbb -ltbbmalloc
 }}}

 The entries
 {{{
 -lOpenGL -lAGL
 }}}

 should, in fact, be
 {{{
 -framework AGL -framework OpenGL
 }}}

 So the problem is not with gstreamer1-gst-plugins-bad, per se, but with
 formation of the opencv.pc file by opencv.

 I am reassigning this ticket to the opencv maintainer for further action.

-- 
Ticket URL: <https://trac.macports.org/ticket/47884#comment:3>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list