ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

解决使用vivadoHLS视频库ug1233教程49页编译失败

2020-12-08 13:32:52  阅读:426  来源: 互联网

标签:std const .. 49 xf vivadoHLS tb ug1233 dilation


问题描述

在使用vivadoHLS视频库ug1233教程的时候,按照49页的教程创建工程,使用dilation例子的时候,编译错误,如下:

INFO: [SIM 4] CSIM will launch GCC as the compiler.
   Compiling ../../../xf_dilation_tb.cpp in debug mode
   Compiling ../../../xf_dilation_accel.cpp in debug mode
   Generating csim.exe
Makefile.rules:399: recipe for target 'csim.exe' failed
...
obj/xf_dilation_tb.o:xf_dilation_tb.cpp:(.text+0x677): undefined reference to `cv::imread(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)'
obj/xf_dilation_tb.o:xf_dilation_tb.cpp:(.text+0x8db): undefined reference to `cv::imwrite(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cv::_InputArray const&, std::vector<int, std::allocator<int> > const&)'
obj/xf_dilation_tb.o:xf_dilation_tb.cpp:(.text+0xabe): undefined reference to `cv::imwrite(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cv::_InputArray const&, std::vector<int, std::allocator<int> > const&)'
collect2.exe: error: ld returned 1 exit status
make: *** [csim.exe] Error 1
ERR: [SIM 100] 'csim_design' failed: compilation error(s).
INFO: [SIM 3] *************** CSIM finish ***************

问题解决

在project->settings中给tb文件添加CFLAGS:-D_GLIBCXX_USE_CXX11_ABI=0即可。
原因:
注意上面的那个__cxx11。旧版本编译器编译出来的代码中,不会有这个符号。
用于编译该代码的gcc编译器的版本是5.5.0,而该代码所需要的opencv所使用的编译器的版本是4.8.0。
参考:

https://blog.csdn.net/qq_29695701/article/details/89213984

标签:std,const,..,49,xf,vivadoHLS,tb,ug1233,dilation
来源: https://blog.csdn.net/weixin_43865957/article/details/110871168

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有