Re: graphics/opencv apparently broken, also out of date: update

2012-12-24 Thread Thomas Mueller
from Kurt Jaeger p...@opsec.eu:

 I just compiled graphics/opencv on 9.1 with a very recent ports tree
 without issue.

 Do you have the most recent ports tree ? Would it be possible
 for you to upgrade the base system to 9.1, as well ?

I frequently run portsnap fetch update, recently downloaded the new system
source using svn, am preparing kernel configuration files for amd64 and i386.

from Marcus von Appen m...@freebsd.org:

 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

This is the first patch you sent me.  I have to decode the quoted-printable
first.  My Python version is 2.73, I would have preferred 3.1 or newer, but
FreeBSD ports required 2.7 as dependency and wouldn't take 3.x .

from Jason E. Hale jh...@freebsd.org:

 I am working on an OpenCV update.  Please be patient with me...I have been
 extremely busy this month at work due to holiday shipping.  Things should slow
 down after the New Year, but if someone wants to take a crack at it in the
 meantime, I'll be happy to review submissions.

It's been a long time with OpenCV, including some months before you took over.

I didn't know what if anything was happening.

Now I want to upgrade the FreeBSD system to 9.1 (prerelease or postrelease?),
I follow STABLE branch.  Then I have to upgrade pcre and ports that depend on
pcre, that could take several weeks if there are snags.

Tom
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


graphics/opencv apparently broken, also out of date: update

2012-12-23 Thread Thomas Mueller
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 am on FreeBSD 9.0_STABLE, stuck to the default options except for enabling 
xine support, which was off by default.  In a more recent attempt, I stuck to 
the default options, with xine support off: this made no difference, I got the
same or similar errors, and building graphics/opencv failed.

I now have a file /BETA1/usr/ports/pigeonhole12.cmd

portmaster multimedia/phonon-gstreamer multimedia/gstreamer-plugins-all 
graphics/gstreamer-plugins-opencv graphics/opencv 

so I can later run
`cat pigeonhole12.cmd` | tee opencv.log

On http://opencv.willowgarage.com/wiki/

an announcement (5/7/12, I don't know if this is May 7 or July 5) that release
2.4 is out.  There is a link to sourceforge.net with
OpenCV-2.4.3.tar.bz2 (67.2 MB).

This was on FreeBSD ports version 2.3.1_4 .

I get errors, and am reluctant to post a log  600 lines, but an excerpt 
follows:


Scanning dependencies of target opencv_python
[ 63%] Building CXX object 
modules/python/CMakeFiles/opencv_python.dir/src2/cv2.o
/BETA1/usr/ports/graphics/opencv/work9amd64/OpenCV-2.3.1/modules/python/src2/cv2.cpp:
 In function 'bool pyopencv_to(PyObject*, cv::Scalar, const char*)':
/BETA1/usr/ports/graphics/opencv/work9amd64/OpenCV-2.3.1/modules/python/src2/cv2.cpp:270:
 error: 'PyInt_Check' was not declared in this scope
/BETA1/usr/ports/graphics/opencv/work9amd64/OpenCV-2.3.1/modules/python/src2/cv2.cpp:279:
 error: 'PyInt_Check' was not declared in this scope
/BETA1/usr/ports/graphics/opencv/work9amd64/OpenCV-2.3.1/modules/python/src2/cv2.cpp:
 In function 'PyObject* pyopencv_from(int)':
/BETA1/usr/ports/graphics/opencv/work9amd64/OpenCV-2.3.1/modules/python/src2/cv2.cpp:317:
 error: 'PyInt_FromLong' was not declared in this scope
/BETA1/usr/ports/graphics/opencv/work9amd64/OpenCV-2.3.1/modules/python/src2/cv2.cpp:
 In function 'bool pyopencv_to(PyObject*, int, const char*)':
/BETA1/usr/ports/graphics/opencv/work9amd64/OpenCV-2.3.1/modules/python/src2/cv2.cpp:324:
 error: 'PyInt_AsLong' was not declared in this scope
/BETA1/usr/ports/graphics/opencv/work9amd64/OpenCV-2.3.1/modules/python/src2/cv2.cpp:
 In function 'bool pyopencv_to(PyObject*, double, const char*)':
/BETA1/usr/ports/graphics/opencv/work9amd64/OpenCV-2.3.1/modules/python/src2/cv2.cpp:337:
 error: 'PyInt_CheckExact' was not declared in this scope
/BETA1/usr/ports/graphics/opencv/work9amd64/OpenCV-2.3.1/modules/python/src2/cv2.cpp:338:
 error: 'PyInt_AS_LONG' was not declared in this scope
/BETA1/usr/ports/graphics/opencv/work9amd64/OpenCV-2.3.1/modules/python/src2/cv2.cpp:
 In function 'bool pyopencv_to(PyObject*, float, const char*)':
/BETA1/usr/ports/graphics/opencv/work9amd64/OpenCV-2.3.1/modules/python/src2/cv2.cpp:353:
 error: 'PyInt_CheckExact' was not declared in this scope
/BETA1/usr/ports/graphics/opencv/work9amd64/OpenCV-2.3.1/modules/python/src2/cv2.cpp:354:
 error: 'PyInt_AS_LONG' was not declared in this scope
/BETA1/usr/ports/graphics/opencv/work9amd64/OpenCV-2.3.1/modules/python/src2/cv2.cpp:
 In function 'PyObject* pyopencv_from(const std::string)':
/BETA1/usr/ports/graphics/opencv/work9amd64/OpenCV-2.3.1/modules/python/src2/cv2.cpp:367:
 error: 'PyString_FromString' was not declared in this scope
/BETA1/usr/ports/graphics/opencv/work9amd64/OpenCV-2.3.1/modules/python/src2/cv2.cpp:
 In function 'bool pyopencv_to(PyObject*, std::string, const char*)':
/BETA1/usr/ports/graphics/opencv/work9amd64/OpenCV-2.3.1/modules/python/src2/cv2.cpp:374:
 error: 'PyString_AsString' was not declared in this scope
/BETA1/usr/ports/graphics/opencv/work9amd64/OpenCV-2.3.1/modules/python/src2/cv2.cpp:
 In static member function 'static bool 
pyopencvVecConverter_Tp::to(PyObject*, std::vector_Tp, 
std::allocator_CharT , const char*)':
/BETA1/usr/ports/graphics/opencv/work9amd64/OpenCV-2.3.1/modules/python/src2/cv2.cpp:562:
 error: there are no arguments to 'PyInt_Check' that depend on a template 
parameter, so a declaration of 'PyInt_Check' must be available
/BETA1/usr/ports/graphics/opencv/work9amd64/OpenCV-2.3.1/modules/python/src2/cv2.cpp:562:
 error: (if you use '-fpermissive', G++ will accept your code, but allowing the 
use of an undeclared name is deprecated)
/BETA1/usr/ports/graphics/opencv/work9amd64/OpenCV-2.3.1/modules/python/src2/cv2.cpp:564:
 error: there are no arguments to 'PyInt_AsLong' that depend on a template 
parameter, so a declaration of 

Re: graphics/opencv apparently broken, also out of date: update

2012-12-23 Thread Marcus von Appen
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
Index: Makefile
===
--- Makefile	(revision 309416)
+++ Makefile	(working copy)
@@ -30,7 +30,8 @@
 PLIST_SUB+=	VERSION=${DISTVERSION}
 
 .if !defined(_BUILDING_OPENCV_CORE)  !defined(_BUILDING_OPENCV_PYTHON)
-EXTRA_PATCHES+=	${FILESDIR}/extra-patch-opencv
+EXTRA_PATCHES+=	${FILESDIR}/extra-patch-opencv \
+		${FILESDIR}/extra-patch-opencv_nopython
 LIB_DEPENDS+=	opencv_core.2:${PORTSDIR}/graphics/opencv-core
 LDFLAGS+=	-L${LOCALBASE}/lib
 
Index: files/extra-patch-opencv_nopython
===
--- 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.0 +0100
 CMakeLists.txt	2012-12-21 08:53:54.0 +0100
+@@ -646,8 +646,8 @@
+ 
+ # Always try to find python
+ # ===
+-find_host_package(PythonInterp)
+-find_host_package(PythonLibs)
++#find_host_package(PythonInterp)
++#find_host_package(PythonLibs)
+ 
+ # cmake 2.4 (at least on Ubuntu 8.04 (hardy)) don't define PYTHONLIBS_FOUND
+ if(NOT PYTHONLIBS_FOUND AND PYTHON_INCLUDE_PATH)


pgp2L6IKB9sVQ.pgp
Description: PGP signature


Re: graphics/opencv apparently broken, also out of date: update

2012-12-23 Thread Scot Hetzel
On Sun, Dec 23, 2012 at 2:59 AM, Thomas Mueller muelle...@insightbb.com 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 am on FreeBSD 9.0_STABLE, stuck to the default options except for enabling
 xine support, which was off by default.  In a more recent attempt, I stuck to
 the default options, with xine support off: this made no difference, I got the
 same or similar errors, and building graphics/opencv failed.

 I now have a file /BETA1/usr/ports/pigeonhole12.cmd

 portmaster multimedia/phonon-gstreamer multimedia/gstreamer-plugins-all 
 graphics/gstreamer-plugins-opencv graphics/opencv

 so I can later run
 `cat pigeonhole12.cmd` | tee opencv.log

 On http://opencv.willowgarage.com/wiki/

 an announcement (5/7/12, I don't know if this is May 7 or July 5) that release
 2.4 is out.  There is a link to sourceforge.net with
 OpenCV-2.4.3.tar.bz2 (67.2 MB).

 This was on FreeBSD ports version 2.3.1_4 .

 I get errors, and am reluctant to post a log  600 lines, but an excerpt
 follows:


 Scanning dependencies of target opencv_python
 [ 63%] Building CXX object 
 modules/python/CMakeFiles/opencv_python.dir/src2/cv2.o
 /BETA1/usr/ports/graphics/opencv/work9amd64/OpenCV-2.3.1/modules/python/src2/cv2.cpp:
  In function 'bool pyopencv_to(PyObject*, cv::Scalar, const char*)':
 /BETA1/usr/ports/graphics/opencv/work9amd64/OpenCV-2.3.1/modules/python/src2/cv2.cpp:270:
  error: 'PyInt_Check' was not declared in this scope
 /BETA1/usr/ports/graphics/opencv/work9amd64/OpenCV-2.3.1/modules/python/src2/cv2.cpp:279:
  error: 'PyInt_Check' was not declared in this scope
 /BETA1/usr/ports/graphics/opencv/work9amd64/OpenCV-2.3.1/modules/python/src2/cv2.cpp:
  In function 'PyObject* pyopencv_from(int)':
 /BETA1/usr/ports/graphics/opencv/work9amd64/OpenCV-2.3.1/modules/python/src2/cv2.cpp:317:
  error: 'PyInt_FromLong' was not declared in this scope

What version of python do you have installed?

According to:

http://hg.python.org/cpython/file/4cd9f5e89061/Include/intobject.h

Python 3.1+ all of the PyInt_* functions where changed to PyLong_* functions.


-- 
DISCLAIMER:

No electrons were maimed while sending this message. Only slightly bruised.
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: graphics/opencv apparently broken, also out of date: update

2012-12-23 Thread Jason E. Hale
On Sunday, December 23, 2012 03:59:01 Thomas Mueller wrote:
 
 I could ask for this bug to be fixed, but since OpenCV 2.3.1 is so outdated,
 it would seem to make more sense to go to the new version, 2.4 or 2.4.3 .
 
I am working on an OpenCV update.  Please be patient with me...I have been 
extremely busy this month at work due to holiday shipping.  Things should slow 
down after the New Year, but if someone wants to take a crack at it in the 
meantime, I'll be happy to review submissions.

-- 
Jason E. Hale - jhale@
FreeBSD Ports Committer
KDE/FreeBSD Team
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


graphics/opencv apparently broken, also out of date: update

2012-11-09 Thread Thomas Mueller
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 am on FreeBSD 9.0_STABLE, stuck to the default options except for enabling 
xine support, which was off by default.  In a more recent attempt, I stuck to 
the default options, with xine support off: this made no difference, I got the
same or similar errors, and building graphics/opencv failed.

I now have a file /BETA1/usr/ports/pigeonhole12.cmd

portmaster multimedia/phonon-gstreamer multimedia/gstreamer-plugins-all 
graphics/gstreamer-plugins-opencv graphics/opencv 

so I can later run
`cat pigeonhole12.cmd` | tee opencv.log

On http://opencv.willowgarage.com/wiki/

an announcement (5/7/12, I don't know if this is May 7 or July 5) that release
2.4 is out.  There is a link to sourceforge.net with
OpenCV-2.4.3.tar.bz2 (67.2 MB).

Current FreeBSD ports version is 2.3.1_4 .

I get errors, and am reluctant to post a log  600 lines, but an excerpt 
follows:


Scanning dependencies of target opencv_python
[ 63%] Building CXX object 
modules/python/CMakeFiles/opencv_python.dir/src2/cv2.o
/BETA1/usr/ports/graphics/opencv/work9amd64/OpenCV-2.3.1/modules/python/src2/cv2.cpp:
 In function 'bool pyopencv_to(PyObject*, cv::Scalar, const char*)':
/BETA1/usr/ports/graphics/opencv/work9amd64/OpenCV-2.3.1/modules/python/src2/cv2.cpp:270:
 error: 'PyInt_Check' was not declared in this scope
/BETA1/usr/ports/graphics/opencv/work9amd64/OpenCV-2.3.1/modules/python/src2/cv2.cpp:279:
 error: 'PyInt_Check' was not declared in this scope
/BETA1/usr/ports/graphics/opencv/work9amd64/OpenCV-2.3.1/modules/python/src2/cv2.cpp:
 In function 'PyObject* pyopencv_from(int)':
/BETA1/usr/ports/graphics/opencv/work9amd64/OpenCV-2.3.1/modules/python/src2/cv2.cpp:317:
 error: 'PyInt_FromLong' was not declared in this scope
/BETA1/usr/ports/graphics/opencv/work9amd64/OpenCV-2.3.1/modules/python/src2/cv2.cpp:
 In function 'bool pyopencv_to(PyObject*, int, const char*)':
/BETA1/usr/ports/graphics/opencv/work9amd64/OpenCV-2.3.1/modules/python/src2/cv2.cpp:324:
 error: 'PyInt_AsLong' was not declared in this scope
/BETA1/usr/ports/graphics/opencv/work9amd64/OpenCV-2.3.1/modules/python/src2/cv2.cpp:
 In function 'bool pyopencv_to(PyObject*, double, const char*)':
/BETA1/usr/ports/graphics/opencv/work9amd64/OpenCV-2.3.1/modules/python/src2/cv2.cpp:337:
 error: 'PyInt_CheckExact' was not declared in this scope
/BETA1/usr/ports/graphics/opencv/work9amd64/OpenCV-2.3.1/modules/python/src2/cv2.cpp:338:
 error: 'PyInt_AS_LONG' was not declared in this scope
/BETA1/usr/ports/graphics/opencv/work9amd64/OpenCV-2.3.1/modules/python/src2/cv2.cpp:
 In function 'bool pyopencv_to(PyObject*, float, const char*)':
/BETA1/usr/ports/graphics/opencv/work9amd64/OpenCV-2.3.1/modules/python/src2/cv2.cpp:353:
 error: 'PyInt_CheckExact' was not declared in this scope
/BETA1/usr/ports/graphics/opencv/work9amd64/OpenCV-2.3.1/modules/python/src2/cv2.cpp:354:
 error: 'PyInt_AS_LONG' was not declared in this scope
/BETA1/usr/ports/graphics/opencv/work9amd64/OpenCV-2.3.1/modules/python/src2/cv2.cpp:
 In function 'PyObject* pyopencv_from(const std::string)':
/BETA1/usr/ports/graphics/opencv/work9amd64/OpenCV-2.3.1/modules/python/src2/cv2.cpp:367:
 error: 'PyString_FromString' was not declared in this scope
/BETA1/usr/ports/graphics/opencv/work9amd64/OpenCV-2.3.1/modules/python/src2/cv2.cpp:
 In function 'bool pyopencv_to(PyObject*, std::string, const char*)':
/BETA1/usr/ports/graphics/opencv/work9amd64/OpenCV-2.3.1/modules/python/src2/cv2.cpp:374:
 error: 'PyString_AsString' was not declared in this scope
/BETA1/usr/ports/graphics/opencv/work9amd64/OpenCV-2.3.1/modules/python/src2/cv2.cpp:
 In static member function 'static bool 
pyopencvVecConverter_Tp::to(PyObject*, std::vector_Tp, 
std::allocator_CharT , const char*)':
/BETA1/usr/ports/graphics/opencv/work9amd64/OpenCV-2.3.1/modules/python/src2/cv2.cpp:562:
 error: there are no arguments to 'PyInt_Check' that depend on a template 
parameter, so a declaration of 'PyInt_Check' must be available
/BETA1/usr/ports/graphics/opencv/work9amd64/OpenCV-2.3.1/modules/python/src2/cv2.cpp:562:
 error: (if you use '-fpermissive', G++ will accept your code, but allowing the 
use of an undeclared name is deprecated)
/BETA1/usr/ports/graphics/opencv/work9amd64/OpenCV-2.3.1/modules/python/src2/cv2.cpp:564:
 error: there are no arguments to 'PyInt_AsLong' that depend on a template 
parameter, so a declaration of 'PyInt_AsLong' must be available

(end of quote, I can provide more if desired, there are many similar further 
error messages)

I could ask for this bug to be fixed, but since OpenCV 2.3.1 is so outdated,
it would seem to make more sense to go to the new version, 2.4 or 2.4.3 .

Tom