Re: Bug#653799: FTBFS: CMake Error at cmake_modules/FindOpenCV.cmake:77 (file): file STRINGS file /usr/include/opencv/cvver.h cannot be read.
Hi, On Thu, Feb 02, 2012 at 08:00:20AM +0100, Andreas Tille wrote: This version is not yet available on the mirror I'm using. Once it is there I will test the following changes: I can confirm that I was able to build after adding to opencv libs explicitely to the linker flags which now looks like: -DCMAKE_EXE_LINKER_FLAGS=-lboost_system -lopencv_core -lopencv_highgui It would be more fun if cmake would be able to detect this automagically but I'm no cmake expert and I'll leave this to upstream. Kind regards and thanks for the patch in the first place Andreas. -- http://fam-tille.de -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20120202141608.gi2...@an3as.eu
Re: Bug#653799: FTBFS: CMake Error at cmake_modules/FindOpenCV.cmake:77 (file): file STRINGS file /usr/include/opencv/cvver.h cannot be read.
tags 653799 patch thanks Hi, 2012/1/9 Andreas Tille andr...@an3as.eu: Hi, On Fri, Dec 30, 2011 at 07:08:09PM -0600, Steve M. Robbins wrote: Source: sitplus Version: 1.0.1-2 Severity: serious Justification: fails to build from source Package failed to build in a clean sid chroot: -- checking for one of the modules 'glib-2.0' -- Found GLib2: glib-2.0 /usr/include/glib-2.0;/usr/lib/x86_64-linux-gnu/glib-2.0/include -- Looking for include files HAVE_GLIB_GREGEX_H -- Looking for include files HAVE_GLIB_GREGEX_H - found The old build log continued like this: -- OpenCV_FOUND. true -- OpenCV_LIBS. /usr/lib/libcxcore.so;/usr/lib/libcv.so;/usr/lib/libml.so;/usr/lib/libhighgui.so;/usr/lib/libcvaux.so -- OpenCV_INCLUDE_DIR. /usr/include/opencv CMake Error at cmake_modules/FindOpenCV.cmake:77 (file): file STRINGS file /usr/include/opencv/cvver.h cannot be read. Call Stack (most recent call first): src/creavision/CMakeLists.txt:57 (FIND_PACKAGE) CMake Error at cmake_modules/FindOpenCV.cmake:78 (string): string sub-command REGEX, mode REPLACE needs at least 6 arguments total to command. I noticed that the new version of libcv-dev in unstable is lacking the header file in question. So I'm CCing the maintainer as well as debian-mentors in case I can get any other help how to fix this problem. I checked this bug. Because /usr is set to OpenCV_DIR, /usr/share/OpenCV/OpenCVConfig.cmake file has not been read. Moreover, when there is no /usr/OpenCVConfig.cmake, another checking is executed, but only old opencv corresponds. The problem in which the check of OpenCV fails is solved by specifying OpenCV_DIR. I attach a patch. But if you will apply this patch, it becomes an error in other portions. - [ 55%] Building CXX object src/mod_camera/tests/CMakeFiles/test_mod_camera_gui.dir/test_mod_camera_gui.cpp.o Linking CXX executable ../../../bin/test_mod_camera_gui ../../../bin/libmod_camera.so: undefined reference to `cvLoadImage' ../../../bin/libmod_camera.so: undefined reference to `cvConvertImage' ../../../bin/libmod_camera.so: undefined reference to `cvReleaseImage' ../../../bin/libmod_camera.so: undefined reference to `cvReleaseImageHeader' ../../../bin/libmod_camera.so: undefined reference to `cvSetZero' ../../../bin/libmod_camera.so: undefined reference to `cvLine' ../../../bin/libmod_camera.so: undefined reference to `cvGetRawData' ../../../bin/libmod_camera.so: undefined reference to `cvGetErrStatus' ../../../bin/libmod_camera.so: undefined reference to `cvSaveImage' ../../../bin/libmod_camera.so: undefined reference to `cvCopy' ../../../bin/libmod_camera.so: undefined reference to `cvFlip' ../../../bin/libmod_camera.so: undefined reference to `cvNamedWindow' ../../../bin/libmod_camera.so: undefined reference to `cvCircle' ../../../bin/libmod_camera.so: undefined reference to `cvShowImage' ../../../bin/libmod_camera.so: undefined reference to `cvRectangle' ../../../bin/libmod_camera.so: undefined reference to `cvResize' ../../../bin/libmod_camera.so: undefined reference to `cvCreateData' ../../../bin/libmod_camera.so: undefined reference to `cvCreateImageHeader' collect2: ld returned 1 exit status - Best regards, Nobuhiro -- Nobuhiro Iwamatsu iwamatsu at {nigauri.org / debian.org} GPG ID: 40AD1FA6 diff --git a/debian/rules b/debian/rules index 3a77152..47c7c15 100755 --- a/debian/rules +++ b/debian/rules @@ -8,7 +8,7 @@ #export DH_VERBOSE=1 override_dh_auto_configure: - dh_auto_configure -- -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_RPATH=/usr/lib/sitplus -DCMAKE_EXE_LINKER_FLAGS=-lboost_system + dh_auto_configure -- -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_RPATH=/usr/lib/sitplus -DCMAKE_EXE_LINKER_FLAGS=-lboost_system -DOpenCV_DIR=/usr/share/OpenCV/ override_dh_auto_install: dh_auto_install
Re: Bug#653799: FTBFS: CMake Error at cmake_modules/FindOpenCV.cmake:77 (file): file STRINGS file /usr/include/opencv/cvver.h cannot be read.
Hi Nobuhiro, On Thu, Feb 02, 2012 at 04:06:12AM +0900, Nobuhiro Iwamatsu wrote: tags 653799 patch thanks ... I checked this bug. Because /usr is set to OpenCV_DIR, /usr/share/OpenCV/OpenCVConfig.cmake file has not been read. Moreover, when there is no /usr/OpenCVConfig.cmake, another checking is executed, but only old opencv corresponds. The problem in which the check of OpenCV fails is solved by specifying OpenCV_DIR. I attach a patch. Thanks for the patch - unfortunately this does not change anything at my site. :-( But if you will apply this patch, it becomes an error in other portions. - [ 55%] Building CXX object src/mod_camera/tests/CMakeFiles/test_mod_camera_gui.dir/test_mod_camera_gui.cpp.o Linking CXX executable ../../../bin/test_mod_camera_gui ../../../bin/libmod_camera.so: undefined reference to `cvLoadImage' ../../../bin/libmod_camera.so: undefined reference to `cvConvertImage' ../../../bin/libmod_camera.so: undefined reference to `cvReleaseImage' ../../../bin/libmod_camera.so: undefined reference to `cvReleaseImageHeader' ../../../bin/libmod_camera.so: undefined reference to `cvSetZero' ../../../bin/libmod_camera.so: undefined reference to `cvLine' ../../../bin/libmod_camera.so: undefined reference to `cvGetRawData' ../../../bin/libmod_camera.so: undefined reference to `cvGetErrStatus' ../../../bin/libmod_camera.so: undefined reference to `cvSaveImage' ../../../bin/libmod_camera.so: undefined reference to `cvCopy' ../../../bin/libmod_camera.so: undefined reference to `cvFlip' ../../../bin/libmod_camera.so: undefined reference to `cvNamedWindow' ../../../bin/libmod_camera.so: undefined reference to `cvCircle' ../../../bin/libmod_camera.so: undefined reference to `cvShowImage' ../../../bin/libmod_camera.so: undefined reference to `cvRectangle' ../../../bin/libmod_camera.so: undefined reference to `cvResize' ../../../bin/libmod_camera.so: undefined reference to `cvCreateData' ../../../bin/libmod_camera.so: undefined reference to `cvCreateImageHeader' collect2: ld returned 1 exit status - I could only wild guess here, but when using libopencv-core-dev the according strings appear in the installed *.a / *.so files. Unfortunately I can not check this because my build does not reach this point. Any further help (Luis, do you have an idea?) Kind regards Andreas. -- http://fam-tille.de -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20120201211852.gg10...@an3as.eu
Re: Bug#653799: FTBFS: CMake Error at cmake_modules/FindOpenCV.cmake:77 (file): file STRINGS file /usr/include/opencv/cvver.h cannot be read.
Hi, Andreas. 2012/2/2 Andreas Tille ti...@debian.org: Hi Nobuhiro, On Thu, Feb 02, 2012 at 04:06:12AM +0900, Nobuhiro Iwamatsu wrote: tags 653799 patch thanks ... I checked this bug. Because /usr is set to OpenCV_DIR, /usr/share/OpenCV/OpenCVConfig.cmake file has not been read. Moreover, when there is no /usr/OpenCVConfig.cmake, another checking is executed, but only old opencv corresponds. The problem in which the check of OpenCV fails is solved by specifying OpenCV_DIR. I attach a patch. Thanks for the patch - unfortunately this does not change anything at my site. :-( Oh, sorry. I forgot to write important infomation. You need to check with opencv 2.3.1-7. Because this version fixed #658196. I just upload. But if you will apply this patch, it becomes an error in other portions. - [ 55%] Building CXX object src/mod_camera/tests/CMakeFiles/test_mod_camera_gui.dir/test_mod_camera_gui.cpp.o Linking CXX executable ../../../bin/test_mod_camera_gui ../../../bin/libmod_camera.so: undefined reference to `cvLoadImage' ../../../bin/libmod_camera.so: undefined reference to `cvConvertImage' ../../../bin/libmod_camera.so: undefined reference to `cvReleaseImage' ../../../bin/libmod_camera.so: undefined reference to `cvReleaseImageHeader' ../../../bin/libmod_camera.so: undefined reference to `cvSetZero' ../../../bin/libmod_camera.so: undefined reference to `cvLine' ../../../bin/libmod_camera.so: undefined reference to `cvGetRawData' ../../../bin/libmod_camera.so: undefined reference to `cvGetErrStatus' ../../../bin/libmod_camera.so: undefined reference to `cvSaveImage' ../../../bin/libmod_camera.so: undefined reference to `cvCopy' ../../../bin/libmod_camera.so: undefined reference to `cvFlip' ../../../bin/libmod_camera.so: undefined reference to `cvNamedWindow' ../../../bin/libmod_camera.so: undefined reference to `cvCircle' ../../../bin/libmod_camera.so: undefined reference to `cvShowImage' ../../../bin/libmod_camera.so: undefined reference to `cvRectangle' ../../../bin/libmod_camera.so: undefined reference to `cvResize' ../../../bin/libmod_camera.so: undefined reference to `cvCreateData' ../../../bin/libmod_camera.so: undefined reference to `cvCreateImageHeader' collect2: ld returned 1 exit status - I could only wild guess here, but when using libopencv-core-dev the according strings appear in the installed *.a / *.so files. Unfortunately I can not check this because my build does not reach this point. Any further help (Luis, do you have an idea?) Could you check with opencv 2.3.1-7? Best regards, Nobuhiro -- Nobuhiro Iwamatsu iwamatsu at {nigauri.org / debian.org} GPG ID: 40AD1FA6 -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CABMQnVLiuHPYqMwVr4Z0e=ieqvhlwarkek_jh33drcysvmg...@mail.gmail.com
Re: Bug#653799: FTBFS: CMake Error at cmake_modules/FindOpenCV.cmake:77 (file): file STRINGS file /usr/include/opencv/cvver.h cannot be read.
Hi Nobuhiro, On Thu, Feb 02, 2012 at 12:17:36PM +0900, Nobuhiro Iwamatsu wrote: Oh, sorry. I forgot to write important infomation. You need to check with opencv 2.3.1-7. Because this version fixed #658196. I just upload. ... Could you check with opencv 2.3.1-7? This version is not yet available on the mirror I'm using. Once it is there I will test the following changes: diff --git a/debian/changelog b/debian/changelog index 912f835..6cf7db6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,12 @@ +sitplus (1.0.1-3) UNRELEASED; urgency=low + + * debian/rules: Apply patch kindly provided by Nobuhiro Iwamatsu +iwama...@debian.org (thanks) +Closes: #653799 + * debian/control: Build-Depends: libcv-dev (= 2.3.1-7) + + -- Andreas Tille ti...@debian.org Mon, 09 Jan 2012 10:10:13 +0100 + sitplus (1.0.1-2) unstable; urgency=low * debian/patches/as-needed.patch: Fix FTBFS with --as-needed linker option. diff --git a/debian/control b/debian/control index 9d52ede..cc18cb8 100644 --- a/debian/control +++ b/debian/control @@ -5,7 +5,12 @@ Maintainer: Debian Med Packaging Team debian-med-packaging@lists.alioth.debian. DM-Upload-Allowed: yes Uploaders: Luis Rivas Vañó lui...@gmail.com, Andreas Tille ti...@debian.org -Build-Depends: debhelper (= 8), cmake, libpoco-dev, libboost-dev, libboost-program-options-dev, libboost-thread-dev, libboost-system-dev, wx2.8-headers, libwxbase2.8-dev, libbluetooth-dev, libconfig8-dev, libsdl1.2-dev, libcv-dev, libcvaux-dev, libhighgui-dev, libv4l-dev, libportmidi-dev, libboost-filesystem-dev, asciidoc, libsdl-gfx1.2-dev, libsdl-image1.2-dev, libwxgtk2.8-dev +Build-Depends: debhelper (= 8), cmake, libpoco-dev, libboost-dev, + libboost-program-options-dev, libboost-thread-dev, libboost-system-dev, + wx2.8-headers, libwxbase2.8-dev, libbluetooth-dev, libconfig8-dev, libsdl1.2-dev, + libcv-dev (= 2.3.1-7), libcvaux-dev, libhighgui-dev, libv4l-dev, libportmidi-dev, + libboost-filesystem-dev, asciidoc, libsdl-gfx1.2-dev, libsdl-image1.2-dev, + libwxgtk2.8-dev Standards-Version: 3.9.2 Homepage: http://sitplus.crea-si.com Vcs-Git: git://git.debian.org/debian-med/sitplus.git diff --git a/debian/rules b/debian/rules index 3a77152..277f0c0 100755 --- a/debian/rules +++ b/debian/rules @@ -8,12 +8,12 @@ #export DH_VERBOSE=1 override_dh_auto_configure: - dh_auto_configure -- -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_RPATH=/usr/lib/sitplus -DCMAKE_EXE_LINKER_FLAGS=-lboost_system + dh_auto_configure -- -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_RPATH=/usr/lib/sitplus -DCMAKE_EXE_LINKER_FLAGS=-lboost_system -DOpenCV_DIR=/usr/share/OpenCV/ override_dh_auto_install: dh_auto_install rm -f ${CURDIR}/debian/tmp/usr/share/sitplus/graphics/pictures/License.txt Thanks for your help Andreas. -- http://fam-tille.de -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20120202070020.gb31...@an3as.eu
Re: Bug#653799: FTBFS: CMake Error at cmake_modules/FindOpenCV.cmake:77 (file): file STRINGS file /usr/include/opencv/cvver.h cannot be read.
Hi, On Fri, Dec 30, 2011 at 07:08:09PM -0600, Steve M. Robbins wrote: Source: sitplus Version: 1.0.1-2 Severity: serious Justification: fails to build from source Package failed to build in a clean sid chroot: -- checking for one of the modules 'glib-2.0' -- Found GLib2: glib-2.0 /usr/include/glib-2.0;/usr/lib/x86_64-linux-gnu/glib-2.0/include -- Looking for include files HAVE_GLIB_GREGEX_H -- Looking for include files HAVE_GLIB_GREGEX_H - found The old build log continued like this: -- OpenCV_FOUND. true -- OpenCV_LIBS. /usr/lib/libcxcore.so;/usr/lib/libcv.so;/usr/lib/libml.so;/usr/lib/libhighgui.so;/usr/lib/libcvaux.so -- OpenCV_INCLUDE_DIR. /usr/include/opencv CMake Error at cmake_modules/FindOpenCV.cmake:77 (file): file STRINGS file /usr/include/opencv/cvver.h cannot be read. Call Stack (most recent call first): src/creavision/CMakeLists.txt:57 (FIND_PACKAGE) CMake Error at cmake_modules/FindOpenCV.cmake:78 (string): string sub-command REGEX, mode REPLACE needs at least 6 arguments total to command. I noticed that the new version of libcv-dev in unstable is lacking the header file in question. So I'm CCing the maintainer as well as debian-mentors in case I can get any other help how to fix this problem. Kind regards Andreas. -- http://fam-tille.de -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20120109094322.ga1...@an3as.eu