Bug#737153: OpenCVModules.cmake not installed, causing visp FTBFS

2014-02-19 Thread Thomas Moulard
On Wed, Feb 19, 2014 at 3:43 PM, Nobuhiro Iwamatsu iwama...@nigauri.org wrote:
 Hi,

 I just upload opencv 2.4.8+dfsg1-2.
 This version fixes a problem that can not be build applications using opencv.
 But visp has other build error by libusb.h in /usr/include/libfreenect.hpp.
 Could you check this problem?

Hi,
thank you for fixing the bug!

I cannot reproduce the problem (builds fine on my local pbuilder).
Is it architecture specific? Could you please attach the log on your machine?

Best,
-- 
Thomas Moulard

-- 
debian-science-maintainers mailing list
debian-science-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-science-maintainers


Bug#737153: OpenCVModules.cmake not installed, causing visp FTBFS

2014-02-19 Thread Fabien Spindler

Le 19/02/14 09:32, Thomas Moulard a écrit :

On Wed, Feb 19, 2014 at 3:43 PM, Nobuhiro Iwamatsu iwama...@nigauri.org wrote:

Hi,

I just upload opencv 2.4.8+dfsg1-2.
This version fixes a problem that can not be build applications using opencv.
But visp has other build error by libusb.h in /usr/include/libfreenect.hpp.
Could you check this problem?

Hi,
thank you for fixing the bug!

I cannot reproduce the problem (builds fine on my local pbuilder).
Is it architecture specific? Could you please attach the log on your machine?


I'm able to reproduce the bug. It comes when package libusb-1.0-0-dev 
package is installed.

I will fix the issue and send the patch.

Fabien


Best,


-- 
debian-science-maintainers mailing list
debian-science-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-science-maintainers

Bug#737153: OpenCVModules.cmake not installed, causing visp FTBFS

2014-02-19 Thread Fabien Spindler

Le 19/02/14 09:59, Fabien Spindler a écrit :

Le 19/02/14 09:32, Thomas Moulard a écrit :

On Wed, Feb 19, 2014 at 3:43 PM, Nobuhiro Iwamatsuiwama...@nigauri.org  wrote:

Hi,

I just upload opencv 2.4.8+dfsg1-2.
This version fixes a problem that can not be build applications using opencv.
But visp has other build error by libusb.h in /usr/include/libfreenect.hpp.
Could you check this problem?

Hi,
thank you for fixing the bug!

I cannot reproduce the problem (builds fine on my local pbuilder).
Is it architecture specific? Could you please attach the log on your machine?


I'm able to reproduce the bug. It comes when package libusb-1.0-0-dev 
package is installed.

I will fix the issue and send the patch.

Fabien


Attached is the patch for ViSP 2.8.0.

Fabien


Best,




Index: CMakeModules/FindLIBUSB-1.cmake
===
--- CMakeModules/FindLIBUSB-1.cmake (revision 4677)
+++ CMakeModules/FindLIBUSB-1.cmake (working copy)
@@ -35,6 +35,7 @@
 #
 # LIBUSB_1_FOUND
 # LIBUSB_1_LIBRARIES
+# LIBUSB_1_INCLUDE_DIRS
 #
 # Authors:
 # Celine Teuliere
@@ -55,11 +56,18 @@
 /usr/lib
 /usr/local/lib
 )
+  FIND_PATH(LIBUSB_1_INCLUDE_DIR libusb.h
+$ENV{LIBUSB_1_HOME}/include/libusb-1.0
+$ENV{LIBUSB_1_HOME}/build/include/libusb-1.0
+/usr/include/libusb-1.0
+/usr/local/include/libusb-1.0
+)
 ENDIF(WIN32)
 
 ## 
 
-IF(LIBUSB_1_LIBRARY)
+IF(LIBUSB_1_LIBRARY AND LIBUSB_1_INCLUDE_DIR)
+  SET(LIBUSB_1_INCLUDE_DIRS ${LIBUSB_1_INCLUDE_DIR})
   SET(LIBUSB_1_LIBRARIES ${LIBUSB_1_LIBRARY})
   SET(LIBUSB_1_FOUND TRUE)
 ELSE()
@@ -67,6 +75,8 @@
 ENDIF()
 
 MARK_AS_ADVANCED(
+  LIBUSB_1_INCLUDE_DIRS
+  LIBUSB_1_INCLUDE_DIR
   LIBUSB_1_LIBRARIES
   LIBUSB_1_LIBRARY
   )
Index: CMakeLists.txt
===
--- CMakeLists.txt  (revision 4677)
+++ CMakeLists.txt  (working copy)
@@ -1073,6 +1073,7 @@
  
 MESSAGE(STATUS libusb-1.0 found)
  
+LIST(APPEND VISP_EXTERN_INCLUDE_DIRS ${LIBUSB_1_INCLUDE_DIRS})
 LIST(APPEND VISP_EXTERN_LIBRARIES ${LIBUSB_1_LIBRARIES})
   ELSE()
 MESSAGE(STATUS libusb-1.0 not found)
@@ -1089,7 +1090,7 @@
 # The material is found. Check if libfreenect is an old version
 include(CheckCXXSourceCompiles)
 SET(CMAKE_REQUIRED_LIBRARIES ${LIBFREENECT_LIBRARIES} ${PTHREAD_LIBRARIES} 
${LIBUSB_1_LIBRARIES})
-SET(CMAKE_REQUIRED_INCLUDES ${LIBFREENECT_INCLUDE_DIRS} 
${PTHREAD_INCLUDE_DIRS})
+SET(CMAKE_REQUIRED_INCLUDES ${LIBFREENECT_INCLUDE_DIRS} 
${PTHREAD_INCLUDE_DIRS} ${LIBUSB_1_INCLUDE_DIRS})
 CHECK_CXX_SOURCE_COMPILES(
   #include libfreenect.hpp
 
-- 
debian-science-maintainers mailing list
debian-science-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-science-maintainers

Bug#737153: OpenCVModules.cmake not installed, causing visp FTBFS

2014-02-15 Thread Nobuhiro Iwamatsu
Hi, all.

Sorry about this problem.
I will fix this today. please wait.

Best regards,
  Nobuhiro

2014-02-15 3:30 GMT+09:00 Fabien Spindler fabien.spind...@inria.fr:
 Le 14/02/14 18:36, Rebecca N. Palmer a écrit :

 libopencv-dev doesn't pull in the Java libraries; I don't know if the
 appropriate fix is that it should, or that the cmake script shouldn't be
 looking for them when building C(++).


 I think that the script OpenCVModules.cmake should not look for
 libopencv_java.

 When I build opencv 2.4.8 from source, libopencv_java is not build.

 The error can be simply reproduced using the following CMakeLists.txt

 project(dummy)
 cmake_minimum_required(version 2.8)
 find_package(OpenCV REQUIRED)

 Hope it helps
 Fabien


 --
 debian-science-maintainers mailing list
 debian-science-maintainers@lists.alioth.debian.org
 http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-science-maintainers



-- 
Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6

-- 
debian-science-maintainers mailing list
debian-science-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-science-maintainers


Bug#737153: OpenCVModules.cmake not installed, causing visp FTBFS

2014-02-14 Thread Fabien Spindler
The proposed fix 
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=737153 lead to an 
other error during ViSP package configuration:


CMake Error at /usr/share/OpenCV/OpenCVModules.cmake:117 (message) :
  The imported target opencv_java references the file

/usr/share/OpenCV/java/libopencv_java248.so

  but this file does not exist.

Fabien


-- 
debian-science-maintainers mailing list
debian-science-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-science-maintainers

Bug#737153: OpenCVModules.cmake not installed, causing visp FTBFS

2014-02-14 Thread Fabien Spindler

Le 14/02/14 13:15, Rebecca N. Palmer a écrit :
Debian doesn't have a /usr/share/OpenCV/java/libopencv_java248.so, but 
it does have a /usr/lib/libopencv_java248.so in libopencv2.4-jni; does 
build-depending on that help?


When I install libopencv-dev 2.4.8+dfsg1-1 all OpenCV libraries are 
installed in /usr/lib/i386-linux-gnu. But locate is unable to find any 
libopencv_java.


Fabien

--
debian-science-maintainers mailing list
debian-science-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-science-maintainers


Bug#737153: OpenCVModules.cmake not installed, causing visp FTBFS

2014-02-14 Thread Rebecca N. Palmer
libopencv-dev doesn't pull in the Java libraries; I don't know if the 
appropriate fix is that it should, or that the cmake script shouldn't be 
looking for them when building C(++).


--
debian-science-maintainers mailing list
debian-science-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-science-maintainers


Bug#737153: OpenCVModules.cmake not installed, causing visp FTBFS

2014-02-14 Thread Fabien Spindler

Le 14/02/14 18:36, Rebecca N. Palmer a écrit :
libopencv-dev doesn't pull in the Java libraries; I don't know if the 
appropriate fix is that it should, or that the cmake script shouldn't 
be looking for them when building C(++).


I think that the script OpenCVModules.cmake should not look for 
libopencv_java.


When I build opencv 2.4.8 from source, libopencv_java is not build.

The error can be simply reproduced using the following CMakeLists.txt

project(dummy)
cmake_minimum_required(version 2.8)
find_package(OpenCV REQUIRED)

Hope it helps
Fabien

--
debian-science-maintainers mailing list
debian-science-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-science-maintainers