当前位置:网站首页>Cross compile opencv with contrib
Cross compile opencv with contrib
2022-07-03 19:21:00 【Pianan corner, occupy the mountain as king】
Common mistakes :
1. Unable to resolve R_AARCH64_ADR_PREL_PG_HI21 Redirect to symbol “[email protected]@GLIBCXX_3.4.21” There are conflicts
2.../../lib/libopencv_core.so: Yes ‘pthread_mutexattr_destroy’ Undefined references
../../lib/libopencv_core.so: Yes ‘pthread_key_create’ Undefined references
../../lib/libopencv_core.so: Yes ‘pthread_getspecific’ Undefined references
../../lib/libopencv_core.so: Yes ‘dlopen’ Undefined references
../../lib/libopencv_core.so: Yes ‘pthread_mutex_trylock’ Undefined references
../../lib/libopencv_core.so: Yes ‘pthread_key_delete’ Undefined references
../../lib/libopencv_core.so: Yes ‘dlclose’ Undefined references
../../lib/libopencv_core.so: Yes ‘dlsym’ Undefined references
../../lib/libopencv_core.so: Yes ‘pthread_mutexattr_settype’ Undefined references
../../lib/libopencv_core.so: Yes ‘pthread_setspecific’ Undefined references
../../lib/libopencv_core.so: Yes ‘pthread_mutexattr_init’ Undefined references
collect2: error: ld returned 1 exit status
apps/version/CMakeFiles/opencv_version.dir/build.make:95: recipe for target 'bin/opencv_version' failed
make[2]: *** [bin/opencv_version] Error 1
CMakeFiles/Makefile2:8366: recipe for target 'apps/version/CMakeFiles/opencv_version.dir/all' failed
make[1]: *** [apps/version/CMakeFiles/opencv_version.dir/all] Error 2
This problem is because there is no setting CMAKE_EXE_LINKER_FLAGS Caused by item , So first we need to modify the CMakeCache.txt The file of , Found in file CMAKE_EXE_LINKER_FLAGS This one , Change it to
//Flags used by the linker.
CMAKE_EXE_LINKER_FLAGS:STRING=-pthread -ldl -lrt
3. There is an error “ libopencv_imgcodecs.so: Yes ‘png_init_filter_functions_neon’ Undefined references ”
according to https://sourceforge.net/p/libpng/bugs/230/ The patch file issued shall be modified and re make You can solve it . Note that there are two files in the patch , It just needs to be modified pngpriv.h Can , So you can delete the file about configure.ac Part of .
How to use it patch, Many online materials can be viewed by yourself
You can also modify it manually .
open /opencv-4.1.2/3rdparty/libpng/pngpriv.h
take 130 It works
# if (defined(__ARM_NEON__) || defined(__ARM_NEON)) && \
131 defined(PNG_ALIGNED_MEMORY_SUPPORTED)
Change it to
# if defined(PNG_ARM_NEON) && (defined(__ARM_NEON__) || defined(__ARM_NEON)) && \
defined(PNG_ALIGNED_MEMORY_SUPPORTED)
4.
/opencv_contrib/modules/xfeatures2d/src/boostdesc.cpp:653:37: fatal error: boostdesc_bgm.i: No such file or directory
#include "boostdesc_bgm.i"
^
compilation terminated.
modules/xfeatures2d/CMakeFiles/opencv_xfeatures2d.dir/build.make:91: recipe for target 'modules/xfeatures2d/CMakeFiles/opencv_xfeatures2d.dir/src/boostdesc.cpp.obj' failed
make[2]: *** [modules/xfeatures2d/CMakeFiles/opencv_xfeatures2d.dir/src/boostdesc.cpp.obj] Error 1
This is because the missing files failed to download or are missing , You can copy a series of library files to opencv_contrib/modules/xfeatures2d/src in , Can solve , You can find the download address by yourself or upload it on the download channel
https://download.csdn.net/download/qq_34533248/11804560
Reference link :
边栏推荐
- The way to treat feelings
- Today I am filled with emotion
- Comments on flowable source code (37) asynchronous job processor
- QT -- qfileinfo file information reading
- Pecan — Overview
- Differential constrained SPFA
- The necessity of lean production and management in sheet metal industry
- 第一章:求所有阶乘和数,大奖赛现场统分程序设计,三位阶乘和数,图形点扫描,递归求n的阶乘n!,求n的阶乘n!,舍罕王失算
- Zhang Fei hardware 90 day learning notes - personal record on day 5. Please see my personal profile / homepage for the complete record
- Flutter网络和数据存储框架搭建 -b1
猜你喜欢

Day18 - basis of interface testing

【LeetCode】【SQL】刷题笔记

Why should we do feature normalization / standardization?

2020 intermediate financial management (escort class)

SSM integration - joint debugging of front and rear protocols (list function, add function, add function status processing, modify function, delete function)

Nous avons fait une plateforme intelligente de règlement de détail

QT -- qfileinfo file information reading
![[disease identification] machine vision lung cancer detection system based on Matlab GUI [including Matlab source code 1922]](/img/fc/00835b95537cf889588502a3d13bc9.png)
[disease identification] machine vision lung cancer detection system based on Matlab GUI [including Matlab source code 1922]

Merge K ascending linked lists

04 -- QT OpenGL two sets of shaders draw two triangles
随机推荐
What is the content of game modeling
Zhang Fei hardware 90 day learning notes - personal records on day 2, please see my personal profile / homepage for the complete
[academic related] how to find the innovation of top papers? Chinese universities won the CVPR Best Student Thesis Award for the first time
[disease identification] machine vision lung cancer detection system based on Matlab GUI [including Matlab source code 1922]
Simple solution of physical backup and restore of Damon database
EGO Planner代码解析bspline_optimizer部分(1)
Free sharing | linefriends hand account inner page | horizontal grid | not for sale
Web Security (VII) specific process of authentication with session cookie scheme
The space of C disk is insufficient, and the computer becomes stuck. Quickly expand the capacity of C disk to make the system more smooth
Failed to start component [StandardEngine[Catalina]. StandardHost[localhost]. StandardContext
Yolov3 network model building
Flutter网络和数据存储框架搭建 -b1
Thesis study - 7 Very Deep Convolutional Networks for Large-Scale Image Recognition (3/3)
Record: MySQL changes the time zone
Pecan — @expose()
The way to treat feelings
第二章:求长方体数组,指定区间内的完全数,改进指定区间内的完全数
EGO Planner代碼解析bspline_optimizer部分(1)
Recommend a GIF processing artifact less than 300K - gifsicle (free download)
交叉编译Opencv带Contrib