Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse
Brand Logo

ModalAI Forum

  1. ModalAI Support Forum
  2. Ask your questions right here!
  3. VOXL mpa_to_ros1 cmake prefix path

VOXL mpa_to_ros1 cmake prefix path

Scheduled Pinned Locked Moved Ask your questions right here!
3 Posts 2 Posters 557 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Darshit DesaiD Offline
    Darshit DesaiD Offline
    Darshit Desai
    Regular
    wrote on last edited by
    #1

    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
    
    ModeratorM 1 Reply Last reply
    0
    • Darshit DesaiD Darshit Desai

      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
      
      ModeratorM Offline
      ModeratorM Offline
      Moderator
      ModalAI Team
      wrote on last edited by
      #2

      @Darshit-Desai The CI runs nightly and is passing. Can you use the build scripts from the CI?

      Darshit DesaiD 1 Reply Last reply
      0
      • ModeratorM Moderator

        @Darshit-Desai The CI runs nightly and is passing. Can you use the build scripts from the CI?

        Darshit DesaiD Offline
        Darshit DesaiD Offline
        Darshit Desai
        Regular
        wrote on last edited by
        #3

        @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.

        1 Reply Last reply
        0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        ModalAI
        Categories Recent Tags ModalAI.com Docs
        © 2026 ModalAI® · Accelerating autonomy for smaller, smarter, safer drones · Powered by NodeBB
        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups