VOXL mpa_to_ros1 cmake prefix path
-
What paths should be there in CMAKE_PREFIX_PATH variable to make sure it points to voxl_mpa_to_ros1, Right now it is pointing to the ROS2 version of mpatoros.
voxl2:~/catkin_ws$ catkin_make Base path: /home/root/catkin_ws Source space: /home/root/catkin_ws/src Build space: /home/root/catkin_ws/build Devel space: /home/root/catkin_ws/devel Install space: /home/root/catkin_ws/install #### #### Running command: "cmake /home/root/catkin_ws/src -DCATKIN_DEVEL_PREFIX=/home/root/catkin_ws/devel -DCMAKE_INSTALL_PREFIX=/home/root/catkin_ws/install -G Unix Makefiles" in "/home/root/catkin_ws/build" #### -- Using CATKIN_DEVEL_PREFIX: /home/root/catkin_ws/devel -- Using CMAKE_PREFIX_PATH: /opt/ros/melodic;/opt/ros/foxy/mpa_to_ros2/install/voxl_mpa_to_ros2;/opt/ros/foxy/mpa_to_ros2/install/voxl_msgs;/opt/ros/foxy/mpa_to_ros2/install/px4_ros_com;/opt/ros/foxy/mpa_to_ros2/install/px4_msgs;/opt/ros/foxy/mpa_to_ros2/install/image_common;/opt/ros/foxy/mpa_to_ros2/install/image_transport;/opt/ros/foxy/mpa_to_ros2/install/camera_info_manager;/opt/ros/foxy/mpa_to_ros2/install/camera_calibration_parsers;/opt/ros/foxy -- This workspace overlays: /opt/ros/melodic -- 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/root/catkin_ws/build/test_results -- Forcing gtest/gmock from source, though one was otherwise available. -- Found gtest sources under '/usr/src/googletest': gtests will be built -- Found gmock sources under '/usr/src/googletest': gmock will be built -- Found PythonInterp: /usr/bin/python2 (found version "2.7.17") -- Using Python nosetests: /usr/bin/nosetests-2.7 -- catkin 0.7.29 -- BUILD_SHARED_LIBS is on -- BUILD_SHARED_LIBS is on -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- ~~ traversing 4 packages in topological order: -- ~~ - kalman_filter_ros -- ~~ - tflite_prop_detection -- ~~ - your_pointcloud_package -- ~~ - your_tf_package -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- +++ processing catkin package: 'kalman_filter_ros' -- ==> add_subdirectory(kalman_filter_ros) -- +++ processing catkin package: 'tflite_prop_detection' -- ==> add_subdirectory(tflite_prop_detection) -- Found camera_info_manager: 2.4.0 (/opt/ros/foxy/mpa_to_ros2/install/camera_info_manager/share/camera_info_manager/cmake) -- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.17", minimum required is "2") -- Using PYTHON_EXECUTABLE: /usr/bin/python2 Traceback (most recent call last): File "/opt/ros/foxy/share/ament_cmake_core/cmake/package_templates/templates_2_cmake.py", line 21, in <module> from ament_package.templates import get_environment_hook_template_path File "/opt/ros/foxy/lib/python3.6/site-packages/ament_package/templates.py", line 43 def get_prefix_level_template_names(*, all_platforms=False): ^ SyntaxError: invalid syntax CMake Error at /opt/ros/foxy/share/ament_cmake_core/cmake/ament_cmake_package_templates-extras.cmake:41 (message): execute_process(/usr/bin/python2 /opt/ros/foxy/share/ament_cmake_core/cmake/package_templates/templates_2_cmake.py /home/root/catkin_ws/build/tflite_prop_detection/ament_cmake_package_templates/templates.cmake) returned error code 1 Call Stack (most recent call first): /opt/ros/foxy/share/ament_cmake_core/cmake/ament_cmake_coreConfig.cmake:41 (include) /opt/ros/foxy/mpa_to_ros2/install/camera_info_manager/share/camera_info_manager/cmake/ament_cmake_export_include_directories-extras.cmake:8 (find_package) /opt/ros/foxy/mpa_to_ros2/install/camera_info_manager/share/camera_info_manager/cmake/camera_info_managerConfig.cmake:41 (include) /opt/ros/melodic/share/voxl_mpa_to_ros/cmake/voxl_mpa_to_rosConfig.cmake:197 (find_package) /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:76 (find_package) tflite_prop_detection/CMakeLists.txt:8 (find_package) -- Configuring incomplete, errors occurred! See also "/home/root/catkin_ws/build/CMakeFiles/CMakeOutput.log". See also "/home/root/catkin_ws/build/CMakeFiles/CMakeError.log". Invoking "cmake" failed -
What paths should be there in CMAKE_PREFIX_PATH variable to make sure it points to voxl_mpa_to_ros1, Right now it is pointing to the ROS2 version of mpatoros.
voxl2:~/catkin_ws$ catkin_make Base path: /home/root/catkin_ws Source space: /home/root/catkin_ws/src Build space: /home/root/catkin_ws/build Devel space: /home/root/catkin_ws/devel Install space: /home/root/catkin_ws/install #### #### Running command: "cmake /home/root/catkin_ws/src -DCATKIN_DEVEL_PREFIX=/home/root/catkin_ws/devel -DCMAKE_INSTALL_PREFIX=/home/root/catkin_ws/install -G Unix Makefiles" in "/home/root/catkin_ws/build" #### -- Using CATKIN_DEVEL_PREFIX: /home/root/catkin_ws/devel -- Using CMAKE_PREFIX_PATH: /opt/ros/melodic;/opt/ros/foxy/mpa_to_ros2/install/voxl_mpa_to_ros2;/opt/ros/foxy/mpa_to_ros2/install/voxl_msgs;/opt/ros/foxy/mpa_to_ros2/install/px4_ros_com;/opt/ros/foxy/mpa_to_ros2/install/px4_msgs;/opt/ros/foxy/mpa_to_ros2/install/image_common;/opt/ros/foxy/mpa_to_ros2/install/image_transport;/opt/ros/foxy/mpa_to_ros2/install/camera_info_manager;/opt/ros/foxy/mpa_to_ros2/install/camera_calibration_parsers;/opt/ros/foxy -- This workspace overlays: /opt/ros/melodic -- 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/root/catkin_ws/build/test_results -- Forcing gtest/gmock from source, though one was otherwise available. -- Found gtest sources under '/usr/src/googletest': gtests will be built -- Found gmock sources under '/usr/src/googletest': gmock will be built -- Found PythonInterp: /usr/bin/python2 (found version "2.7.17") -- Using Python nosetests: /usr/bin/nosetests-2.7 -- catkin 0.7.29 -- BUILD_SHARED_LIBS is on -- BUILD_SHARED_LIBS is on -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- ~~ traversing 4 packages in topological order: -- ~~ - kalman_filter_ros -- ~~ - tflite_prop_detection -- ~~ - your_pointcloud_package -- ~~ - your_tf_package -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- +++ processing catkin package: 'kalman_filter_ros' -- ==> add_subdirectory(kalman_filter_ros) -- +++ processing catkin package: 'tflite_prop_detection' -- ==> add_subdirectory(tflite_prop_detection) -- Found camera_info_manager: 2.4.0 (/opt/ros/foxy/mpa_to_ros2/install/camera_info_manager/share/camera_info_manager/cmake) -- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.17", minimum required is "2") -- Using PYTHON_EXECUTABLE: /usr/bin/python2 Traceback (most recent call last): File "/opt/ros/foxy/share/ament_cmake_core/cmake/package_templates/templates_2_cmake.py", line 21, in <module> from ament_package.templates import get_environment_hook_template_path File "/opt/ros/foxy/lib/python3.6/site-packages/ament_package/templates.py", line 43 def get_prefix_level_template_names(*, all_platforms=False): ^ SyntaxError: invalid syntax CMake Error at /opt/ros/foxy/share/ament_cmake_core/cmake/ament_cmake_package_templates-extras.cmake:41 (message): execute_process(/usr/bin/python2 /opt/ros/foxy/share/ament_cmake_core/cmake/package_templates/templates_2_cmake.py /home/root/catkin_ws/build/tflite_prop_detection/ament_cmake_package_templates/templates.cmake) returned error code 1 Call Stack (most recent call first): /opt/ros/foxy/share/ament_cmake_core/cmake/ament_cmake_coreConfig.cmake:41 (include) /opt/ros/foxy/mpa_to_ros2/install/camera_info_manager/share/camera_info_manager/cmake/ament_cmake_export_include_directories-extras.cmake:8 (find_package) /opt/ros/foxy/mpa_to_ros2/install/camera_info_manager/share/camera_info_manager/cmake/camera_info_managerConfig.cmake:41 (include) /opt/ros/melodic/share/voxl_mpa_to_ros/cmake/voxl_mpa_to_rosConfig.cmake:197 (find_package) /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:76 (find_package) tflite_prop_detection/CMakeLists.txt:8 (find_package) -- Configuring incomplete, errors occurred! See also "/home/root/catkin_ws/build/CMakeFiles/CMakeOutput.log". See also "/home/root/catkin_ws/build/CMakeFiles/CMakeError.log". Invoking "cmake" failed@Darshit-Desai The CI runs nightly and is passing. Can you use the build scripts from the CI?
-
@Darshit-Desai The CI runs nightly and is passing. Can you use the build scripts from the CI?
@Moderator I had to explicitly change the system variable CMAKE_PREFIX_PATH every time to /opt/ros/melodic only to build the nodes. Building a new voxl package might break things and I don't want to do that.
Reading along? Create a free ModalAI Forum account to join in.
With an account you can reply, ask your own question, get an email when a ModalAI engineer answers, and mark the reply that solved it. Your place in each thread is saved between visits.
Questions about VOXL, Flight Core, ESCs and ModalAI drones are answered here by the engineers who build them.
Register Login