- 1 year ago
ROS1 catkin_make failed: catkin_install_python() called without required DESTINATION argument
The error message you encountered, "catkin_install_python() called without required DESTINATION argument," typically occurs when using catkin_install_python
function in a ROS1 CMakeLists.txt
file without specifying the required DESTINATION
argument.
To resolve this issue, you need to provide the DESTINATION
argument to the catkin_install_python
function. The DESTINATION
argument specifies the target directory where the Python files will be installed.
Here's an example of how to use the catkin_install_python
function with the DESTINATION
argument:
cmakecatkin_install_python(
PROGRAMS scripts/my_python_script.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
In the above example, replace scripts/my_python_script.py
with the actual path to your Python script that you want to install. ${CATKIN_PACKAGE_BIN_DESTINATION}
is a CMake variable that represents the desired installation destination for executables and scripts.
Make sure to adjust the arguments according to your project structure and requirements.
After making the necessary changes, save the CMakeLists.txt
file and run catkin_make
again to build your ROS1 workspace. The error should no longer occur, provided that all other parts of your CMakeLists.txt
file are correctly configured.
By specifying the DESTINATION
argument in the catkin_install_python
function, you will resolve the "catkin_install_python() called without required DESTINATION argument" error and successfully build your ROS1 workspace using catkin_make
.