Bug 148955 - [patch] graphics/opencv: use libv4l, fix gcc45 build
Summary: [patch] graphics/opencv: use libv4l, fix gcc45 build
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Alberto Villa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-26 11:40 UTC by swell.k
Modified: 2010-08-27 19:43 UTC (History)
0 users

See Also:


Attachments
a.diff (1.82 KB, patch)
2010-07-26 11:40 UTC, swell.k
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description swell.k 2010-07-26 11:40:03 UTC
When libv4l is installed this ports unconditionally links against it
when V4L option is enabled.

How-To-Repeat: 1. install multimedia/libv4l
2. install graphics/opencv
3. deinstall multimedia/libv4l
4. check ldd

----

  $ make CC=gcc45 CXX=g++45
  ...
  In file included from /a/OpenCV-2.0.0/apps/traincascade/features.h:4:0,
                   from /a/OpenCV-2.0.0/apps/traincascade/cascadeclassifier.h:5,
                   from /a/OpenCV-2.0.0/apps/traincascade/traincascade.cpp:2:
  /a/OpenCV-2.0.0/apps/traincascade/imagestorage.h:27:9: error: 'FILE' does not name a type
  /a/OpenCV-2.0.0/samples/c/image.cpp: In function 'int main(int, char**)':
  /a/OpenCV-2.0.0/samples/c/image.cpp:16:17: error: 'stderr' was not declared in this scope
  /a/OpenCV-2.0.0/samples/c/image.cpp:16:61: error: 'fprintf' was not declared in this scope
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2010-07-26 11:40:21 UTC
Responsible Changed
From-To: freebsd-ports-bugs->avilla

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2010-08-27 19:16:28 UTC
avilla      2010-08-27 18:16:16 UTC

  FreeBSD ports repository

  Modified files:
    graphics/opencv      Makefile distinfo pkg-plist 
  Added files:
    graphics/opencv/files patch-apps-traincascade-imagestorage.h 
                          patch-samples-c-image.cpp 
  Log:
  - Upgrade to 2.1.0.
  - Fix build on 6.X.
  - Fix build with GCC 4.5. [1]
  - Fix dependency on Video4Linux. [1]
  - Add LICENSE.
  - Use bsd.port.options.mk.
  
  PR:             ports/148955 [1]
  Submitted by:   swell.k@gmail.com [1]
  Approved by:    tabthorpe (mentor)
  
  Revision  Changes    Path
  1.23      +57 -32    ports/graphics/opencv/Makefile
  1.4       +3 -3      ports/graphics/opencv/distinfo
  1.1       +10 -0     ports/graphics/opencv/files/patch-apps-traincascade-imagestorage.h (new)
  1.1       +7 -0      ports/graphics/opencv/files/patch-samples-c-image.cpp (new)
  1.5       +6 -5      ports/graphics/opencv/pkg-plist
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Alberto Villa freebsd_committer freebsd_triage 2010-08-27 19:43:20 UTC
State Changed
From-To: open->closed

Committed, with minor changes. Thanks!