CMake Error: The following variables are used in this project but they are set to NOTFOUND.
Hello everyone,
Actually, I am working on Ubuntu 14 and Indigo Version, so am trying to make some packages. I got an error message below :
-- Using these message generators: gencpp;genlisp;genpy
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
Modbus_LIBRARIES
linked by target "<package_name>" in directory /home/tayssir/catkin_ws/src/robot_ws_debug/src/package_name
-- Configuring incomplete, errors occurred!
See also "/home/tayssir/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/tayssir/catkin_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed
I tried to use ROS_LANG_DISABLE like is mentioned in ROS EnvironmentVariables :
$export ROS_LANG_DISABLE=genlisp
but this can not solve the problem.
How would I fix it? Thanks.
Edit: Thanks for your help @gvdhoorn, and I'm going through the tutorial modbus to install it, and there is my CMAKE File below :
find_path(Modbus_INCLUDE_DIR modbus/modbus.h
HINTS
/usr/include/modbus
/usr/local/include
)
find_library(Modbus_LIBRARIES NAMES modbus
HINTS
/usr/lib/x86_64-linux-gnu
/usr/local/lib
)
include_directories(
${catkin_INCLUDE_DIRS}
${Modbus_INCLUDE_DIR}/modbus
)
It seems that my environment is set correctly! But I don’t know where is the problem and how can I resolve it??!