Problems with OpenKinect, OpenCV and PCL bridge

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Problems with OpenKinect, OpenCV and PCL bridge

Tanaji_Kamble
This post was updated on .
Hello all of you, Tanaji Kamble here,  I am facing the problem while building code
OKPCL on github  https://github.com/Qworg/OKPCL.  I am using Ubuntu platform. First of all, I cloned
the project on desktop and in project directory den i made build directory to
compile the code. After running command cmake ..   the scenario is as given
below:



-- The imported target "vtkFilteringTCL" references the file
   "/usr/lib/libvtkFilteringTCL.so.5.8.0"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/vtk-5.8/VTKTargets.cmake"
but not all the files it references.

-- The imported target "vtkFilteringPythonD" references the file
   "/usr/lib/libvtkFilteringPythonD.so.5.8.0"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/vtk-5.8/VTKTargets.cmake"
but not all the files it references.

-- The imported target "vtkFilteringJava" references the file
   "/usr/lib/jni/libvtkFilteringJava.so.5.8.0"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/vtk-5.8/VTKTargets.cmake"
but not all the files it references.

-- The imported target "vtkImagingTCL" references the file
   "/usr/lib/libvtkImagingTCL.so.5.8.0"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/vtk-5.8/VTKTargets.cmake"
but not all the files it references.

-- The imported target "vtkImagingPythonD" references the file
   "/usr/lib/libvtkImagingPythonD.so.5.8.0"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/vtk-5.8/VTKTargets.cmake"
but not all the files it references.

-- The imported target "vtkImagingJava" references the file
   "/usr/lib/jni/libvtkImagingJava.so.5.8.0"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/vtk-5.8/VTKTargets.cmake"
but not all the files it references.

:

:

:

:

-- The imported target "vtkPythonCore" references the file
   "/usr/lib/libvtkPythonCore.so.5.8.0"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/vtk-5.8/VTKTargets.cmake"
but not all the files it references.

-- Found libusb-1.0: /usr/include
-- looking for PCL_COMMON
-- Found PCL_COMMON: /usr/lib/libpcl_common.so
-- looking for PCL_KDTREE
-- Found PCL_KDTREE: /usr/lib/libpcl_kdtree.so
-- looking for PCL_OCTREE
-- Found PCL_OCTREE: /usr/lib/libpcl_octree.so
-- looking for PCL_SEARCH
-- Found PCL_SEARCH: /usr/lib/libpcl_search.so
-- looking for PCL_SURFACE
-- Found PCL_SURFACE: /usr/lib/libpcl_surface.so
-- looking for PCL_SAMPLE_CONSENSUS
-- Found PCL_SAMPLE_CONSENSUS: /usr/lib/libpcl_sample_consensus.so
-- looking for PCL_IO
-- Found PCL_IO: /usr/lib/libpcl_io.so
-- looking for PCL_FILTERS
-- Found PCL_FILTERS: /usr/lib/libpcl_filters.so
-- looking for PCL_FEATURES
-- Found PCL_FEATURES: /usr/lib/libpcl_features.so
-- looking for PCL_GEOMETRY
-- Found PCL_GEOMETRY: /usr/include/pcl-1.7
-- looking for PCL_KEYPOINTS
-- Found PCL_KEYPOINTS: /usr/lib/libpcl_keypoints.so
-- looking for PCL_REGISTRATION
-- Found PCL_REGISTRATION: /usr/lib/libpcl_registration.so
-- looking for PCL_SEGMENTATION
-- Found PCL_SEGMENTATION: /usr/lib/libpcl_segmentation.so
-- looking for PCL_RECOGNITION
-- Found PCL_RECOGNITION: /usr/lib/libpcl_recognition.so
-- looking for PCL_VISUALIZATION
-- Found PCL_VISUALIZATION: /usr/lib/libpcl_visualization.so
-- looking for PCL_PEOPLE
-- Found PCL_PEOPLE: /usr/lib/libpcl_people.so
-- looking for PCL_OUTOFCORE
-- Found PCL_OUTOFCORE: /usr/lib/libpcl_outofcore.so
-- looking for PCL_TRACKING
-- Found PCL_TRACKING: /usr/lib/libpcl_tracking.so
-- looking for PCL_APPS
-- Found PCL_APPS: /usr/lib/libpcl_apps.so
-- Found PCL:
/usr/lib/x86_64-linux-gnu/libboost_system.so;/usr/lib/x86_64-linux-gnu/libboost_filesystem.so;/usr/lib/x86_64-linux-gnu/libboost_thread.so;/usr/lib/x86_64-linux-gnu/libboost_date_time.so;/usr/lib/x86_64-linux-gnu/libboost_iostreams.so;/usr/lib/x86_64-linux-gnu/libboost_serialization.so;/usr/lib/x86_64-linux-gnu/libboost_chrono.so;/usr/lib/x86_64-linux-gnu/libpthread.so;optimized;/usr/lib/libpcl_common.so;debug;/usr/lib/libpcl_common.so;optimized;/usr/lib/x86_64-linux-gnu/libflann_cpp_s.a;debug;/usr/lib/x86_64-linux-gnu/libflann_cpp_s.a;optimized;/usr/lib/libpcl_kdtree.so;debug;/usr/lib/libpcl_kdtree.so;optimized;/usr/lib/libpcl_octree.so;debug;/usr/lib/libpcl_octree.so;optimized;/usr/lib/libpcl_search.so;debug;/usr/lib/libpcl_search.so;optimized;/usr/lib/x86_64-linux-gnu/libqhull.so;debug;/usr/lib/x86_64-linux-gnu/libqhull.so;optimized;/usr/lib/libpcl_surface.so;debug;/usr/lib/libpcl_surface.so;optimized;/usr/lib/libpcl_sample_consensus.so;debug;/usr/lib/libpcl_sample_consensus.so;/usr/lib/libOpenNI.so;/usr/lib/libOpenNI2.so;vtkCommon;vtkFiltering;vtkImaging;vtkGraphics;vtkGenericFiltering;vtkIO;vtkRendering;vtkVolumeRendering;vtkHybrid;vtkWidgets;vtkParallel;vtkInfovis;vtkGeovis;vtkViews;vtkCharts;optimized;/usr/lib/libpcl_io.so;debug;/usr/lib/libpcl_io.so;optimized;/usr/lib/libpcl_filters.so;debug;/usr/lib/libpcl_filters.so;optimized;/usr/lib/libpcl_features.so;debug;/usr/lib/libpcl_features.so;optimized;/usr/lib/libpcl_keypoints.so;debug;/usr/lib/libpcl_keypoints.so;optimized;/usr/lib/libpcl_registration.so;debug;/usr/lib/libpcl_registration.so;optimized;/usr/lib/libpcl_segmentation.so;debug;/usr/lib/libpcl_segmentation.so;optimized;/usr/lib/libpcl_recognition.so;debug;/usr/lib/libpcl_recognition.so;optimized;/usr/lib/libpcl_visualization.so;debug;/usr/lib/libpcl_visualization.so;optimized;/usr/lib/libpcl_people.so;debug;/usr/lib/libpcl_people.so;optimized;/usr/lib/libpcl_outofcore.so;debug;/usr/lib/libpcl_outofcore.so;optimized;/usr/lib/libpcl_tracking.so;debug;/usr/lib/libpcl_tracking.so;optimized;/usr/lib/libpcl_apps.so;debug;/usr/lib/libpcl_apps.so;/usr/lib/x86_64-linux-gnu/libboost_system.so;/usr/lib/x86_64-linux-gnu/libboost_filesystem.so;/usr/lib/x86_64-linux-gnu/libboost_thread.so;/usr/lib/x86_64-linux-gnu/libboost_date_time.so;/usr/lib/x86_64-linux-gnu/libboost_iostreams.so;/usr/lib/x86_64-linux-gnu/libboost_serialization.so;/usr/lib/x86_64-linux-gnu/libboost_chrono.so;/usr/lib/x86_64-linux-gnu/libpthread.so;optimized;/usr/lib/x86_64-linux-gnu/libqhull.so;debug;/usr/lib/x86_64-linux-gnu/libqhull.so;/usr/lib/libOpenNI.so;/usr/lib/libOpenNI2.so;optimized;/usr/lib/x86_64-linux-gnu/libflann_cpp_s.a;debug;/usr/lib/x86_64-linux-gnu/libflann_cpp_s.a;vtkCommon;vtkFiltering;vtkImaging;vtkGraphics;vtkGenericFiltering;vtkIO;vtkRendering;vtkVolumeRendering;vtkHybrid;vtkWidgets;vtkParallel;vtkInfovis;vtkGeovis;vtkViews;vtkCharts
(Required is at least version "1.7")
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Configuring done
CMake Error at CMakeLists.txt:207 (add_executable):
  Cannot find source file:

    ./serial/AsyncSerial.cpp

  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx


-- Build files have been written to: /home/sincos/Desktop/OKPCL-master/build
sincos@sincos-300E4C-300E5C-300E7C:~/Desktop/OKPCL-master/build$





--
Best Regards,
Tanaji Kamble
PhD Scholar,
College of Engg. Pune
Mob. 9503066999
        7385833539

*        "Believing in the way, makes the way!"*

_______________________________________________
PCL-users@pointclouds.org / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Tanaji Kamble
Center of Excellence in Signal & Image Processing,
COEP Pune.
E-mail : tanajikamble13@gmail.com
Reply | Threaded
Open this post in threaded view
|

Re: Problems with OpenKinect, OpenCV and PCL bridge

VictorLamoine
Administrator
Hello,

The error is self-explanatory:
Cannot find source file:
    ./serial/AsyncSerial.cpp

If you look at the project on GitHub, AsyncSerial.cpp is not located in a "serial" directory but at the root folder.
You need to tweak the CMakeLists.txt of OKPCL to make it work.

As is the code will no compile on any platform.
Note that this error has nothing to do with PCL itself.

Bye
Reply | Threaded
Open this post in threaded view
|

Re: Problems with OpenKinect, OpenCV and PCL bridge

Tanaji_Kamble
Thanks,
 I am able to build the code but still unable to make executable file. After building the code some warnings are observed
** WARNING ** io features related to pcap will be disabled
** WARNING ** io features related to png will be disabled

I am not getting how to resolve these warnings. While making executable file some error occurs as shown below:




sincos@sincos-300E4C-300E5C-300E7C:~/Desktop/OKPCL-master/build$ cmake ..
-- Boost version: 1.54.0
-- Found the following Boost libraries:
--   system
--   filesystem
--   thread
--   date_time
--   iostreams
--   serialization
--   chrono
** WARNING ** io features related to pcap will be disabled
** WARNING ** io features related to png will be disabled

-- looking for PCL_COMMON
-- looking for PCL_KDTREE
-- looking for PCL_OCTREE
-- looking for PCL_SEARCH
-- looking for PCL_SURFACE
-- looking for PCL_SAMPLE_CONSENSUS
-- looking for PCL_IO
-- looking for PCL_FILTERS
-- looking for PCL_FEATURES
-- looking for PCL_GEOMETRY
-- looking for PCL_KEYPOINTS
-- looking for PCL_REGISTRATION
-- looking for PCL_SEGMENTATION
-- looking for PCL_RECOGNITION
-- looking for PCL_VISUALIZATION
-- looking for PCL_PEOPLE
-- looking for PCL_OUTOFCORE
-- looking for PCL_TRACKING
-- looking for PCL_APPS
-- Configuring done
-- Generating done
-- Build files have been written to: /home/sincos/Desktop/OKPCL-master/build
sincos@sincos-300E4C-300E5C-300E7C:~/Desktop/OKPCL-master/build$ make
[ 11%] Building CXX object CMakeFiles/OKCV.dir/OKCV.cpp.o
In file included from /home/sincos/Desktop/OKPCL-master/OKCV.cpp:32:0:
/usr/local/include/libfreenect/libfreenect.hpp:33:20: fatal error: libusb.h: No such file or directory
 #include <libusb.h>
                    ^
compilation terminated.
make[2]: *** [CMakeFiles/OKCV.dir/OKCV.cpp.o] Error 1
make[1]: *** [CMakeFiles/OKCV.dir/all] Error 2
make: *** [all] Error 2

sincos@sincos-300E4C-300E5C-300E7C:~/Desktop/OKPCL-master/build$





--
Best Regards,
Tanaji Kamble
PhD Scholar,
College of Engg. Pune
Mob. 9503066999
        7385833539

        "Believing in the way, makes the way!"

Tanaji Kamble
Center of Excellence in Signal & Image Processing,
COEP Pune.
E-mail : tanajikamble13@gmail.com
Reply | Threaded
Open this post in threaded view
|

Re: Problems with OpenKinect, OpenCV and PCL bridge

VictorLamoine
Administrator
Hello,

Second search result when looking for "libusb.h":
http://stackoverflow.com/questions/4853389/how-to-install-libusb-in-ubuntu

Bye
Reply | Threaded
Open this post in threaded view
|

Re: Problems with OpenKinect, OpenCV and PCL bridge

Tanaji_Kamble
This post was updated on .
Thanks,
Even after installing libusb-1.0 it was not working, I made some changes in source code of libfreenect. Instead of #include <libusb.h>, i put #include <libusb-1.0/libusb.h> and now its working.
Tanaji Kamble
Center of Excellence in Signal & Image Processing,
COEP Pune.
E-mail : tanajikamble13@gmail.com
Reply | Threaded
Open this post in threaded view
|

Re: Problems with OpenKinect, OpenCV and PCL bridge

Tanaji_Kamble
In reply to this post by VictorLamoine
Is anybody tried Point cloud viewer using OKPCL (Open Kinect, OpenCV and PCL grabber by Jeff Kramer) ?, the viewer using OKPCL gives weird result unlike the viewer using PCL OpenNI Kinect Grabber. Let me know where i am getting wrong.
Please go through the attached videos.

Point cloud viewer using OKPCL (Open Kinect, OpenCV and PCL grabber by Jeff Kramer)
Point cloud viewer using PCL OpenNI Kinect Grabber

Thanks in advance

Tanaji Kamble
Center of Excellence in Signal & Image Processing,
COEP Pune.
E-mail : tanajikamble13@gmail.com
Reply | Threaded
Open this post in threaded view
|

Re: Problems with OpenKinect, OpenCV and PCL bridge

peter9606
In reply to this post by Tanaji_Kamble
I'm suffering the same pain as you. Thanks for your <libusb-1.0/libusb.h> solution. But still wish someone can give a neat solution.