Navigation

    蓝鲸ROS机器人论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Popular
    ROS交流群
    ROS Group
    产品服务
    Product Service
    开源代码库
    Github
    官网
    Official website
    技术交流
    Technological exchanges
    激光雷达
    LIDAR
    ROS教程
    ROS Tourials
    深度学习
    Deep Learning
    机器视觉
    Computer Vision

    iai_kinect2 ros kinetic下编译错误的问题

    技术交流
    kinetic opencv kinetic kinect iaikinect2 ros
    1
    1
    3674
    Loading More Posts
    • 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.
    • weijiz
      weijiz last edited by

      在ROS kinetic 版本下编译iai_kinect2会存在下面的错误

      /opt/ros/kinetic/include/opencv-3.2.0-dev/opencv2/flann/saving.h:113:63: error: exception handling disabled, use -fexceptions to enable
      throw FLANNException("Invalid index file, cannot read");
      

      出现这个问题的原因是kinetic版本默认使用的OpenCV-3.2。有一个编译选项在以前版本是没问题的,在OpenCV-3.2就有点问题。这就是-fexceptions

      解决方法

      把 iai_kinect2/kinect2_registration/CMakeLists.txt的66行删掉

      set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-exceptions")
      

      在官方的源上已经有人提出了这个pull request, 然而官方还没有merge进去。希望以后能解决这个问题吧。

      1 Reply Last reply Reply Quote 0
      • 1 / 1
      • First post
        Last post
      Copyright © 2015-2023 BlueWhale community