Hi All,
I have an error with installing libuvc_camera. I really have no idea what jpegpkg is. I tried to google but seems like no one has this issue before. I tried to install libjpeg but still the error is still there.
I'm currently using a Pi4 with raspbian buster with ros melodic.
Please help me. I need this to install the astra pro camera driver for my final year project.
pi@raspberrypi:~/libuvc_ros/libuvc_camera $ cmake .
-- Using CATKIN_DEVEL_PREFIX: /home/pi/libuvc_ros/libuvc_camera/devel
-- Using CMAKE_PREFIX_PATH: /home/pi/catkin_ws/devel;/opt/ros/melodic
-- This workspace overlays: /home/pi/catkin_ws/devel;/opt/ros/melodic
-- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.16", minimum required is "2")
-- Using PYTHON_EXECUTABLE: /usr/bin/python2
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/pi/libuvc_ros/libuvc_camera/test_results
-- Found gtest: gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.7.17
-- BUILD_SHARED_LIBS is on
-- Found PythonInterp: /usr/bin/python2 (found version "2.7.16")
CMake Error at /home/pi/libuvc/libuvcConfig.cmake:13 (find_package):
By not providing "FindJpegPkg.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "JpegPkg", but
CMake did not find one.
Could not find a package configuration file provided by "JpegPkg" with any
of the following names:
JpegPkgConfig.cmake
jpegpkg-config.cmake
Add the installation prefix of "JpegPkg" to CMAKE_PREFIX_PATH or set
"JpegPkg_DIR" to a directory containing one of the above files. If
"JpegPkg" provides a separate development package or SDK, be sure it has
been installed.
Call Stack (most recent call first):
CMakeLists.txt:9 (find_package)
Originally posted by jackkj on ROS Answers with karma: 3 on 2020-03-07
Post score: 0
Original comments
Comment by marguedas on 2020-03-07:
please format your code/console output using the 101010 button for your question to be more readable.
Can you clarify what commands you ran before ? For example how did you install the dependencies of libuvc_camera
?
Also you seem to be running CMake directly, while it may be fine for a single package, you will quickly run into overly complicated build sequences when you start growing your application. I recommend you to use the ROS build tools catkin_make
and friends to simplify your workflow.
Comment by jackkj on 2020-03-07:
thanks for you quick reply.
previously i have been following the instructions of ros_astra_camera but it's dependencies i cannot use sudo apt install ros-melodic-... , it always shows that it cannot locate the packages. so i have install all the dependencies individually through each of their respective githubs. I have installed all the other dependencies will no issues just that some of the config files directories need to be replaced in the cmake_cache file but this 'JpegPkg' package i cannot locate it in pi nor i can download it anywhere.
I'm quite new to the linux environment. So sorry for any basic or stupid questions asked.
Comment by marguedas on 2020-03-07:\
So sorry for any basic or stupid questions asked.
no worries, there are no stupid questions :)