取消
显示结果 
搜索替代 
您的意思是: 
Highlighted
Adventurer
Adventurer
256 次查看
注册日期: ‎08-12-2019

vitis工程在host code中调用ros时,总是找不到对应的函数定义

HI~

我在vitis工程的host code中调用了ros,部分代码如下:

#include <ros/ros.h> 
#include <cv_bridge/cv_bridge.h>

cv::Mat getImageFromMsg(const sensor_msgs::ImageConstPtr &img_msg) { cv_bridge::CvImageConstPtr ptr; if (img_msg->encoding == "8UC1") { sensor_msgs::Image img; img.header = img_msg->header; img.height = img_msg->height; img.width = img_msg->width; img.is_bigendian = img_msg->is_bigendian; img.step = img_msg->step; img.data = img_msg->data; img.encoding = "mono8"; ptr = cv_bridge::toCvCopy(img, sensor_msgs::image_encodings::MONO8); } else ptr = cv_bridge::toCvCopy(img_msg, sensor_msgs::image_encodings::MONO8); cv::Mat img = ptr->image.clone(); equalizeHist(img, img); return img; } int main(int argc, char** argv) { ros::NodeHandle n("~"); std::string IMAGE0_TOPIC, IMAGE1_TOPIC; cv::FileStorage fsSettings(argv[1], cv::FileStorage::READ); if (!fsSettings.isOpened()) { std::cerr << "ERROR: Wrong path to settings" << std::endl; } fsSettings["image0_topic"] >> IMAGE0_TOPIC; fsSettings["image1_topic"] >> IMAGE1_TOPIC; ros::Subscriber sub_img0 = n.subscribe(IMAGE0_TOPIC, 100, img0_callback); ros::Subscriber sub_img1 = n.subscribe(IMAGE1_TOPIC, 100, img1_callback); double prevTime = 0; while (1) { cv::Mat image0, image1; std_msgs::Header header; double time = 0; if (!img0_buf.empty() && !img1_buf.empty()){ double time0 = img0_buf.front()->header.stamp.toSec(); double time1 = img1_buf.front()->header.stamp.toSec(); // 0.003s sync tolerance if (time0 < time1 - 0.003){ img0_buf.pop(); printf("throw img0!\n"); } else if (time0 > time1 + 0.003){ img1_buf.pop(); printf("throw img1!!!\n"); } else{ time = img0_buf.front()->header.stamp.toSec(); image0 = getImageFromMsg(img0_buf.front()); img0_buf.pop(); image1 = getImageFromMsg(img1_buf.front()); img1_buf.pop(); while ((img0_buf.size() >= 2) && (img1_buf.size() >= 2)){ time = img0_buf.front()->header.stamp.toSec(); image0 = getImageFromMsg(img0_buf.front()); img0_buf.pop(); image1 = getImageFromMsg(img1_buf.front()); img1_buf.pop(); ROS_INFO("(img0_buf.size()>=2) && (img1_buf.size()>=2)"); } if (time < prevTime){ ROS_WARN("in sync_process(),cur_time < prevTime.So skip this image. cur_image_time is: %f, last_image_time is: %f", time, prevTime); time = prevTime; image0 = cv::Mat(); image1 = cv::Mat(); } if (time > (prevTime + 0.5)) ROS_WARN("in sync_process(),cur_time > (prevTime + 0.5).So warning. cur_image_time is: %f, last_image_time is: %f", time, prevTime); prevTime = time; } }

Emulation-HW build时,我在C++ Building settings中进行了如下设置:

1.png

 

2.png

 

build时报错,报错信息如下:

/tools/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: src/xf_corner_tracker_tb.o: in function `getImageFromMsg(boost::shared_ptr<sensor_msgs::Image_<std::allocator<void> > const> const&)':
/home/liuqy/zcu102_base/pfm/wksp1/track_point/Emulation-HW/../src/xf_corner_tracker_tb.cpp:68: undefined reference to `cv_bridge::toCvCopy(sensor_msgs::Image_<std::allocator<void> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/tools/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: /home/liuqy/zcu102_base/pfm/wksp1/track_point/Emulation-HW/../src/xf_corner_tracker_tb.cpp:71: undefined reference to `cv_bridge::toCvCopy(boost::shared_ptr<sensor_msgs::Image_<std::allocator<void> > const> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/tools/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: src/xf_corner_tracker_tb.o: in function `ros::Subscriber ros::NodeHandle::subscribe<sensor_msgs::Image_<std::allocator<void> > >(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, void (*)(boost::shared_ptr<sensor_msgs::Image_<std::allocator<void> > const> const&), ros::TransportHints const&)':
/opt/ros/kinetic/include/ros/node_handle.h:709: undefined reference to `ros::NodeHandle::subscribe(ros::SubscribeOptions&)'
/tools/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: src/xf_corner_tracker_tb.o: in function `ros::SubscriptionCallbackHelperT<boost::shared_ptr<sensor_msgs::Image_<std::allocator<void> > const> const&, void>::deserialize(ros::SubscriptionCallbackHelperDeserializeParams const&)':
/opt/ros/kinetic/include/ros/serialization.h:681: undefined reference to `ros::serialization::throwStreamOverrun()'
/tools/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: /opt/ros/kinetic/include/ros/serialization.h:681: undefined reference to `ros::serialization::throwStreamOverrun()'
/tools/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: /opt/ros/kinetic/include/ros/serialization.h:681: undefined reference to `ros::serialization::throwStreamOverrun()'
/tools/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: /opt/ros/kinetic/include/ros/serialization.h:681: undefined reference to `ros::serialization::throwStreamOverrun()'
/tools/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: /opt/ros/kinetic/include/ros/serialization.h:681: undefined reference to `ros::serialization::throwStreamOverrun()'
/tools/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: src/xf_corner_tracker_tb.o:/opt/ros/kinetic/include/ros/serialization.h:681: more undefined references to `ros::serialization::throwStreamOverrun()' follow
/tools/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: src/xf_corner_tracker_tb.o: in function `ros::SubscriptionCallbackHelperT<boost::shared_ptr<sensor_msgs::Image_<std::allocator<void> > const> const&, void>::deserialize(ros::SubscriptionCallbackHelperDeserializeParams const&)':
/opt/ros/kinetic/include/ros/subscription_callback_helper.h:126: undefined reference to `ros::console::g_initialized'
/tools/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: /opt/ros/kinetic/include/ros/subscription_callback_helper.h:126: undefined reference to `ros::console::g_initialized'
/tools/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: src/xf_corner_tracker_tb.o: in function `ros::SubscriptionCallbackHelperT<boost::shared_ptr<sensor_msgs::Image_<std::allocator<void> > const> const&, void>::deserialize(ros::SubscriptionCallbackHelperDeserializeParams const&)':
/opt/ros/kinetic/include/ros/serialization.h:681: undefined reference to `ros::serialization::throwStreamOverrun()'
/tools/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: /opt/ros/kinetic/include/ros/serialization.h:681: undefined reference to `ros::serialization::throwStreamOverrun()'
/tools/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: /opt/ros/kinetic/include/ros/serialization.h:681: undefined reference to `ros::serialization::throwStreamOverrun()'
/tools/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: /opt/ros/kinetic/include/ros/serialization.h:681: undefined reference to `ros::serialization::throwStreamOverrun()'
/tools/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: /opt/ros/kinetic/include/ros/serialization.h:681: undefined reference to `ros::serialization::throwStreamOverrun()'
/tools/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: src/xf_corner_tracker_tb.o:/opt/ros/kinetic/include/ros/serialization.h:681: more undefined references to `ros::serialization::throwStreamOverrun()' follow
/tools/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: src/xf_corner_tracker_tb.o: in function `ros::SubscriptionCallbackHelperT<boost::shared_ptr<sensor_msgs::Image_<std::allocator<void> > const> const&, void>::deserialize(ros::SubscriptionCallbackHelperDeserializeParams const&)':
/opt/ros/kinetic/include/ros/subscription_callback_helper.h:126: undefined reference to `ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, char const*, int, char const*, char const*, ...)'
makefile:140: recipe for target 'track_point.exe' failed
/tools/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: /opt/ros/kinetic/include/ros/subscription_callback_helper.h:126: undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, ros::console::levels::Level)'
/tools/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: /opt/ros/kinetic/include/ros/subscription_callback_helper.h:126: undefined reference to `ros::console::setLogLocationLevel(ros::console::LogLocation*, ros::console::levels::Level)'
/tools/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: /opt/ros/kinetic/include/ros/subscription_callback_helper.h:126: undefined reference to `ros::console::checkLogLocationEnabled(ros::console::LogLocation*)'
/tools/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: /opt/ros/kinetic/include/ros/subscription_callback_helper.h:126: undefined reference to `ros::console::initialize()'
/tools/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: src/xf_corner_tracker_tb.o: in function `main':
/home/liuqy/zcu102_base/pfm/wksp1/track_point/Emulation-HW/../src/xf_corner_tracker_tb.cpp:93: undefined reference to `ros::NodeHandle::NodeHandle(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > const&)'
/tools/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: /home/liuqy/zcu102_base/pfm/wksp1/track_point/Emulation-HW/../src/xf_corner_tracker_tb.cpp:133: undefined reference to `ros::console::g_initialized'
/tools/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: /home/liuqy/zcu102_base/pfm/wksp1/track_point/Emulation-HW/../src/xf_corner_tracker_tb.cpp:133: undefined reference to `ros::console::g_initialized'
/tools/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: /home/liuqy/zcu102_base/pfm/wksp1/track_point/Emulation-HW/../src/xf_corner_tracker_tb.cpp:133: undefined reference to `ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, char const*, int, char const*, char const*, ...)'
/tools/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: /home/liuqy/zcu102_base/pfm/wksp1/track_point/Emulation-HW/../src/xf_corner_tracker_tb.cpp:133: undefined reference to `ros::console::g_initialized'
/tools/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: /home/liuqy/zcu102_base/pfm/wksp1/track_point/Emulation-HW/../src/xf_corner_tracker_tb.cpp:133: undefined reference to `ros::console::g_initialized'
/tools/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: /home/liuqy/zcu102_base/pfm/wksp1/track_point/Emulation-HW/../src/xf_corner_tracker_tb.cpp:133: undefined reference to `ros::console::initialize()'
/tools/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: /home/liuqy/zcu102_base/pfm/wksp1/track_point/Emulation-HW/../src/xf_corner_tracker_tb.cpp:133: undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, ros::console::levels::Level)'
/tools/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: /home/liuqy/zcu102_base/pfm/wksp1/track_point/Emulation-HW/../src/xf_corner_tracker_tb.cpp:133: undefined reference to `ros::console::setLogLocationLevel(ros::console::LogLocation*, ros::console::levels::Level)'
/tools/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: /home/liuqy/zcu102_base/pfm/wksp1/track_point/Emulation-HW/../src/xf_corner_tracker_tb.cpp:133: undefined reference to `ros::console::checkLogLocationEnabled(ros::console::LogLocation*)'
/tools/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: /home/liuqy/zcu102_base/pfm/wksp1/track_point/Emulation-HW/../src/xf_corner_tracker_tb.cpp:136: undefined reference to `ros::console::g_initialized'
/tools/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: /home/liuqy/zcu102_base/pfm/wksp1/track_point/Emulation-HW/../src/xf_corner_tracker_tb.cpp:136: undefined reference to `ros::console::g_initialized'
/tools/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: /home/liuqy/zcu102_base/pfm/wksp1/track_point/Emulation-HW/../src/xf_corner_tracker_tb.cpp:142: undefined reference to `ros::console::g_initialized'
/tools/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: /home/liuqy/zcu102_base/pfm/wksp1/track_point/Emulation-HW/../src/xf_corner_tracker_tb.cpp:142: undefined reference to `ros::console::g_initialized'
/tools/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: /home/liuqy/zcu102_base/pfm/wksp1/track_point/Emulation-HW/../src/xf_corner_tracker_tb.cpp:142: undefined reference to `ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, char const*, int, char const*, char const*, ...)'
/tools/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: /home/liuqy/zcu102_base/pfm/wksp1/track_point/Emulation-HW/../src/xf_corner_tracker_tb.cpp:136: undefined reference to `ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, char const*, int, char const*, char const*, ...)'
/tools/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: /home/liuqy/zcu102_base/pfm/wksp1/track_point/Emulation-HW/../src/xf_corner_tracker_tb.cpp:136: undefined reference to `ros::console::setLogLocationLevel(ros::console::LogLocation*, ros::console::levels::Level)'
/tools/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: /home/liuqy/zcu102_base/pfm/wksp1/track_point/Emulation-HW/../src/xf_corner_tracker_tb.cpp:136: undefined reference to `ros::console::checkLogLocationEnabled(ros::console::LogLocation*)'
/tools/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: /home/liuqy/zcu102_base/pfm/wksp1/track_point/Emulation-HW/../src/xf_corner_tracker_tb.cpp:136: undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, ros::console::levels::Level)'
/tools/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: /home/liuqy/zcu102_base/pfm/wksp1/track_point/Emulation-HW/../src/xf_corner_tracker_tb.cpp:136: undefined reference to `ros::console::initialize()'
/tools/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: /home/liuqy/zcu102_base/pfm/wksp1/track_point/Emulation-HW/../src/xf_corner_tracker_tb.cpp:142: undefined reference to `ros::console::setLogLocationLevel(ros::console::LogLocation*, ros::console::levels::Level)'
/tools/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: /home/liuqy/zcu102_base/pfm/wksp1/track_point/Emulation-HW/../src/xf_corner_tracker_tb.cpp:142: undefined reference to `ros::console::checkLogLocationEnabled(ros::console::LogLocation*)'
/tools/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: /home/liuqy/zcu102_base/pfm/wksp1/track_point/Emulation-HW/../src/xf_corner_tracker_tb.cpp:142: undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, ros::console::levels::Level)'
/tools/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: /home/liuqy/zcu102_base/pfm/wksp1/track_point/Emulation-HW/../src/xf_corner_tracker_tb.cpp:142: undefined reference to `ros::console::initialize()'
/tools/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: /home/liuqy/zcu102_base/pfm/wksp1/track_point/Emulation-HW/../src/xf_corner_tracker_tb.cpp:101: undefined reference to `ros::Subscriber::~Subscriber()'
/tools/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: /home/liuqy/zcu102_base/pfm/wksp1/track_point/Emulation-HW/../src/xf_corner_tracker_tb.cpp:93: undefined reference to `ros::NodeHandle::~NodeHandle()'
/tools/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: /home/liuqy/zcu102_base/pfm/wksp1/track_point/Emulation-HW/../src/xf_corner_tracker_tb.cpp:102: undefined reference to `ros::Subscriber::~Subscriber()'
collect2: error: ld returned 1 exit status
make: *** [track_point.exe] Error 1

请问该如何解决该问题呢?还是说vitis中不能调用ros?

0 项奖励
4 回复数
Xilinx Employee
Xilinx Employee
185 次查看
注册日期: ‎05-11-2010

有没有设置repositories?

0 项奖励
Highlighted
Adventurer
Adventurer
182 次查看
注册日期: ‎08-12-2019

没,在哪里设置呢?需要如何设置?
0 项奖励
Highlighted
Xilinx Employee
Xilinx Employee
171 次查看
注册日期: ‎05-11-2010

Vitis菜单栏,Xilinx-->Repositories

0 项奖励
Highlighted
Adventurer
Adventurer
79 次查看
注册日期: ‎08-12-2019

感谢您的回复,能否说的更加详细些呢,需要设置什么内容?1.png

 

0 项奖励