Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Dec 2012 10:45:02 +0100
From:      Marcus von Appen <mva@FreeBSD.org>
To:        Thomas Mueller <mueller23@insightbb.com>
Cc:        jhale@freebsd.org, freebsd-ports@freebsd.org
Subject:   Re: graphics/opencv apparently broken, also out of date: update
Message-ID:  <20121223094502.GB1994@medusa.sysfault.org>
In-Reply-To: <BC.FD.25232.5D7C6D05@smtp01.insight.synacor.com>
References:  <BC.FD.25232.5D7C6D05@smtp01.insight.synacor.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--nVMJ2NtxeReIH9PS
Content-Type: multipart/mixed; boundary="SUOF0GtieIMvvwua"
Content-Disposition: inline


--SUOF0GtieIMvvwua
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On, Sun Dec 23, 2012, Thomas Mueller wrote:

> I originally sent this early last November, but nothing happened, and
> now the ports freeze is over.
>
>
> I had great difficulty using send-pr when submitting the problem with graphics/gnash, couldn't set MAIL_AGENT to what I use (msmtp) with sendmail not set up: just got error messages.  Try again?
>
> I am snagged in graphics/opencv in my massive upgrade of ports, and see error
> messages in the log file indicating errors in the C code.  I also see there is
> a newer version of openCV out.  But I was able to pigeonhole graphics/opencv
> and four other ports that depend on opencv and complete the rest of the massive
> upgrade of ports.

I think, I sent you some instructions on how to fix it, in case it is a
Python-related issue that I struggled into as well.


[...]

> Scanning dependencies of target opencv_python
> [ 63%] Building CXX object modules/python/CMakeFiles/opencv_python.dir/src2/cv2.o
[...]

Yes, it is Python, which causes it. Find a patch attached, which should
fix the issue. Please apply it as follows:

# cd /usr/ports/graphics/opencv
# patch -p0 < /path/to/the/opencv.patch
# rm Makefile.orig files/extra-patch-opencv_nopython.orig

After you have patched it, you can try to build and install graphics/opencv
again. Let me know, if this solves the issue for you.

Cheers
Marcus

--SUOF0GtieIMvvwua
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="opencv.patch"
Content-Transfer-Encoding: quoted-printable

Index: Makefile
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- Makefile	(revision 309416)
+++ Makefile	(working copy)
@@ -30,7 +30,8 @@
 PLIST_SUB+=3D	VERSION=3D${DISTVERSION}
=20
 .if !defined(_BUILDING_OPENCV_CORE) && !defined(_BUILDING_OPENCV_PYTHON)
-EXTRA_PATCHES+=3D	${FILESDIR}/extra-patch-opencv
+EXTRA_PATCHES+=3D	${FILESDIR}/extra-patch-opencv \
+		${FILESDIR}/extra-patch-opencv_nopython
 LIB_DEPENDS+=3D	opencv_core.2:${PORTSDIR}/graphics/opencv-core
 LDFLAGS+=3D	-L${LOCALBASE}/lib
=20
Index: files/extra-patch-opencv_nopython
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- files/extra-patch-opencv_nopython	(revision 0)
+++ files/extra-patch-opencv_nopython	(working copy)
@@ -0,0 +1,13 @@
+--- CMakeLists.txt.orig	2012-12-21 08:53:28.000000000 +0100
++++ CMakeLists.txt	2012-12-21 08:53:54.000000000 +0100
+@@ -646,8 +646,8 @@
+=20
+ # Always try to find python
+ # =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
+-find_host_package(PythonInterp)
+-find_host_package(PythonLibs)
++#find_host_package(PythonInterp)
++#find_host_package(PythonLibs)
+=20
+ # cmake 2.4 (at least on Ubuntu 8.04 (hardy)) don't define PYTHONLIBS_FOU=
ND
+ if(NOT PYTHONLIBS_FOUND AND PYTHON_INCLUDE_PATH)

--SUOF0GtieIMvvwua--

--nVMJ2NtxeReIH9PS
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)

iEYEARECAAYFAlDW0p4ACgkQi68/ErJnpkfe2QCgnbxeTCi1rqBf69eCdKx33P+M
XT8AoLiv9Ed6dOzAq7i7tc9FT64n50ml
=CjGJ
-----END PGP SIGNATURE-----

--nVMJ2NtxeReIH9PS--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20121223094502.GB1994>