当前位置:网站首页>Darkent2ncnn error
Darkent2ncnn error
2022-06-26 00:10:00 【Invincible Zhang Dadao】
error
gcc obj/convert_verify.o libdarknet2ncnn.a -o convert_verify -L ncnn/build/install/lib/ -L . -L darknet -ldarknet -lncnn -ldarknet2ncnn -lm -pthread -fopenmp pkg-config --libs opencv -lstdc++ -I include -I ncnn/build/install/include/ -I darknet/include/ -I src -I ncnn/src/ pkg-config --cflags opencv -Wno-unused-result -Wfatal-errors -fPIC -Ofast
obj/convert_verify.o: In function `test_network(char*, char*, char*, char*, char*)’:
convert_verify.cpp:(.text+0x102): undefined reference to `cv::imread(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, int)’
convert_verify.cpp:(.text+0x5c6): undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)’
convert_verify.cpp:(.text+0x605): undefined reference to `cv::imshow(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, cv::_InputArray const&)’
collect2: error: ld returned 1 exit status
Makefile:43: recipe for target ‘convert_verify’ failed
make: *** [convert_verify] Error 1
The error is as above .
reason
Because c++11 The problem of . As shown in red :
undefined reference to `cv::imread(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, int)’
modify
g++ edition
[email protected]:~/zhouyi/darknet2ncnn-master# g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: …/src/configure -v --with-pkgversion=‘Ubuntu 7.5.0-3ubuntu1~18.04’ --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)
Ubuntu edition
Ubuntu 18.04
resolvent
Force the use of c++11 Standard to compile . By modifying the Makefile To achieve . stay darknet2ncnn Of Makefile The first 23 That's ok , Increase the use of c++11 To compile the . As shown below :
LDFLAGS+= -std=c++11 pkg-config --libs opencv -lstdc++
Be careful c++11 Must be in lowercase .
preservation Makefile file , recompile . Problem solving .
边栏推荐
- 14.1.1、Promethues监控,四种数据类型metrics,Pushgateway
- Topic36——53. Maximum subarray and
- SSH review
- ValueError: color kwarg must have one color per data set. 9 data sets and 1 colors were provided
- EBS R12.2.0升级到R12.2.6
- Reading notes on how to connect the network - hubs, routers and routers (III)
- Using swiper to realize the rotation chart
- 10.4.1、數據中臺
- 19c安装psu 19.12
- Joint simulation of STEP7 and WinCC_ Old bear passing by_ Sina blog
猜你喜欢

EBS R12.2.0升级到R12.2.6

文獻調研(三):數據驅動的建築能耗預測模型綜述

MySQL master-slave replication
![[wechat official account H5] generates a QR code with parameters to enter the official account attention page to listen to user-defined menu bar for official account events (server)](/img/d9/935bad29005e5846dc514c966e3b0e.png)
[wechat official account H5] generates a QR code with parameters to enter the official account attention page to listen to user-defined menu bar for official account events (server)

About Simple Data Visualization

Thrift getting started

Redis之跳跃表

10.2.3、Kylin_ The dimension is required for kylin

文献调研(三):数据驱动的建筑能耗预测模型综述

ORA-01153 :激活了不兼容的介质恢复
随机推荐
贴片加工厂家讲解__ICT是什么?主要测试什么?ICT测试的优缺点?
Thrift getting started
懒人教你用猕猴桃一月饱减16斤_过路老熊_新浪博客
社交网络可视化第三方库igraph的安装
Using swiper to realize the rotation chart
10.2.3、Kylin_ The dimension is required for kylin
2021-04-28
DateTimeFormatter与LocalDateTime
Realize the conversion between analog quantity value and engineering quantity value in STEP7_ Old bear passing by_ Sina blog
11.1.1、flink概述_flink概述
oracle RAC 集群无法启动
About Simple Data Visualization
在同一台机器上部署OGG并测试
Establishment of multiple background blocks in botu software_ Old bear passing by_ Sina blog
Redis之跳跃表
yolov5 提速多GPU训练显存低的问题
10.2.3、Kylin_kylin的使用,维度必选
文献调研(三):数据驱动的建筑能耗预测模型综述
Unsigned and signed vernacular
About the solution to prompt modulenotfounderror: no module named'pymongo 'when running the scratch project