当前位置:网站首页>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 :
边栏推荐
- Using the visualization results, click to appear the corresponding sentence
- Octopus online ecological chain tour Atocha protocol received near grant worth $50000
- 第一章:三位阶乘和数,图形点扫描
- [mathematical modeling] ship three degree of freedom MMG model based on MATLAB [including Matlab source code 1925]
- Zhang Fei hardware 90 day learning notes - personal record of day 3, please see my personal profile / homepage for the complete
- Zhang Fei hardware 90 day learning notes - personal records on day 2, please see my personal profile / homepage for the complete
- 论文阅读 GloDyNE Global Topology Preserving Dynamic Network Embedding
- EGO Planner代碼解析bspline_optimizer部分(1)
- Sentinel source code analysis part II - sentinel dashboard console startup and configuration
- 2020 intermediate financial management (escort class)
猜你喜欢

Sentinel source code analysis part I sentinel overview

01 - QT OpenGL display OpenGL window

记录在模拟器中运行flutter时报的错
![[mathematical modeling] ship three degree of freedom MMG model based on MATLAB [including Matlab source code 1925]](/img/a9/d89ee2b88517eea6b3c38d72cf099f.jpg)
[mathematical modeling] ship three degree of freedom MMG model based on MATLAB [including Matlab source code 1925]

第一章:简化同码小数和s(d, n)

Detailed explanation of shuttle unity interworking principle
![Failed to start component [StandardEngine[Catalina]. StandardHost[localhost]. StandardContext](/img/56/ea61359dd149a49589ba7ad70812a0.jpg)
Failed to start component [StandardEngine[Catalina]. StandardHost[localhost]. StandardContext

Sentinel source code analysis part II - sentinel dashboard console startup and configuration

Buuctf's different flags and simplerev

Day_ 18 IO stream system
随机推荐
Streaming media server (16) -- figure out the difference between live broadcast and on-demand
Sentinel source code analysis part I sentinel overview
Counting from the East and counting from the West will stimulate 100 billion industries. Only storage manufacturers who dare to bite the "hard bone" will have more opportunities
01. Preparation for automated office (free guidance, only three steps)
Webrtc[41] - Analysis of the establishment process of webrtc transmission channel
Foundation of ActiveMQ
Record: writing MySQL commands
Simple solution of physical backup and restore of Damon database
Pecan — Overview
2022.2.14 Li Kou - daily question - single element in an ordered array
Zhang Fei hardware 90 day learning notes - personal records on day 4, please see my personal profile / homepage for the complete
Web Security (VIII) what is CSRF attack? Why can token prevent csdf attacks?
第一章:三位阶乘和数,图形点扫描
Think of new ways
Octopus online ecological chain tour Atocha protocol received near grant worth $50000
为什么要做特征的归一化/标准化?
math_泰勒公式
Zhang Fei hardware 90 day learning notes - personal record of day 3, please see my personal profile / homepage for the complete
【数学建模】基于matlab船舶三自由度MMG模型【含Matlab源码 1925期】
[leetcode] [SQL] notes