GithubHelp home page GithubHelp logo

solid-succotash's People

Contributors

daniel-dsouza avatar

Watchers

 avatar  avatar

solid-succotash's Issues

Catkin make failure with gpu version of opencv

Hi daniel.

I read your issue ros_answer and I am also struggling with similar problem.

I have opencv3.1 with cuda8.0 in ubuntu16 and ros kinetic. OpenCV with cuda itself works well but not in ROS.
So, I tried to make your source with catkin_make, but I got following errors:

CMakeFiles/face_learn_node.dir/src/face_learn.cpp.o: In function `FaceLearn::FaceLearn(ros::NodeHandle)':
face_learn.cpp:(.text+0x1700): undefined reference to `cv::cuda::CascadeClassifier::create(cv::String const&)'
collect2: error: ld returned 1 exit status
solid-succotash/CMakeFiles/face_learn_node.dir/build.make:234: recipe for target '/home/ubuntu/catkin_ws/devel/lib/face_learn/face_learn_node' failed
make[2]: *** [/home/ubuntu/catkin_ws/devel/lib/face_learn/face_learn_node] Error 1
CMakeFiles/Makefile2:2332: recipe for target 'solid-succotash/CMakeFiles/face_learn_node.dir/all' failed
make[1]: *** [solid-succotash/CMakeFiles/face_learn_node.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

This may be because my opencv library with cuda is not added to ${OpenCV_LIBS}.
So if I added 'opencv_cudaobject' manually and it can be built with no error.
Looks like following.

target_link_libraries(face_learn_node
  ${OpenCV_LIBS}
  ${catkin_LIBRARIES} opencv_cudaobjdetect
)

Finally when I run your roslaunch files, it still yield GPU is not found.

[ERROR] [1507787540.490264122]: No GPU found!

So, do you know any other possibilities to fix this problem?

Thank you!

P.S.
Here show some of my path.

echo $CMAKE_PREFIX_PATH 
/usr/local:/home/ubuntu/catkin_ws/devel:/opt/ros/kinetic

echo $LD_LIBRARY_PATH 
/usr/local/lib:/home/ubuntu/catkin_ws/devel/lib:/usr/local/lib:/opt/ros/kinetic/lib:/usr/local/cuda/lib64

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.