dusty-nv / ros_deep_learning

Deep learning inference nodes for ROS / ROS2 with support for NVIDIA Jetson and TensorRT
879 stars 257 forks source link

Package cannot find jetson-inference #1

Closed pmcrivet closed 7 years ago

pmcrivet commented 7 years ago

I cloned, and make the jetson-inference package on the jetson tx1 and it's working great ( /home/ubuntu/jetson-inference).

But when I try to compile ros_deep_learning, it gives me an error that it cannot find jetson-inference package. Do I have to set some paths in the CmakeList or elsewhere?

Thanks for this awesome DeepLearning demo!

look-recognize commented 7 years ago

I met the same problem!!

look-recognize commented 7 years ago

@pmcrivet I think you might had not "make install" the jetson-inference. So the easiest way is rewriting the cmakelists by replacing jetson-inference item with the path of file "libjetson-inference.so".

eduagrobot commented 7 years ago

Hi, could you show me your cmakelist? I don't know how I replace that

Thanks in advanced

nPellejero commented 7 years ago

Hi, I met the same problem, there is some solution?

dusty-nv commented 7 years ago

Can you try appending this to jetson-inference/CMakeLists.txt then running make install?


foreach(include ${inferenceIncludes})
    install(FILES "${include}" DESTINATION include/jetson-inference)
endforeach()
# install the shared library
install(TARGETS jetson-inference DESTINATION lib/jetson-inference EXPORT jetson-inferenceConfig)
# install the cmake project, for importing
install(EXPORT jetson-inferenceConfig DESTINATION share/jetson-inference/cmake)```
nPellejero commented 7 years ago

Yes, just did it and worked!

Thank you dustin !!

dusty-nv commented 7 years ago

Thanks for confirming. I've updated the CMakeLists in jetson-inference master, 9f6a238.