提问人:Taeheon Kim 提问时间:12/19/2022 最后编辑:Dan MašekTaeheon Kim 更新时间:12/19/2022 访问量:149
OpenCV v3.4.1:我从 Linux 编译的“libopencv_world.a”中对“ippicvi”的未定义引用
OpenCV v3.4.1 : undefined reference to `ippicvi' from "libopencv_world.a" that compiled by me from Linux
问:
我尝试使用下面的 CMake 命令从 Linux 系统编译 libopencv_world.a(https://opencv.org/opencv-3-4-1/)。
cmake \ -D CMAKE_BUILD_TYPE=RELEASE \ -D CMAKE_INSTALL_PREFIX=/usr/local \ -D WITH_TBB=ON \ -D WITH_IPP=ON \ -D WITH_1394=OFF \ -D BUILD_WITH_DEBUG_INFO=OFF \ -D BUILD_DOCS=OFF \ -D INSTALL_C_EXAMPLES=OFF \ -D INSTALL_PYTHON_EXAMPLES=OFF \ -D BUILD_EXAMPLES=OFF \ -D BUILD_TESTS=OFF \ -D BUILD_PERF_TESTS=OFF \ -D WITH_QT=OFF \ -D WITH_GTK=OFF \ -D WITH_OPENGL=ON \ -D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib-3.4.1/modules \ -D WITH_V4L=ON \ -D WITH_FFMPEG=ON \ -D WITH_XINE=ON \ -D BUILD_NEW_PYTHON_SUPPORT=ON \ -D OPENCV_GENERATE_PKGCONFIG=ON -D BUILD_opencv_world=ON -D BUILD_SHARED_LIBS=OFF -D OpenCV_ARCH=x64 ../
但是在我检查了我的编译文件libopencv_world.a的结果后,如下所示。
nm opencv-3.4.1_x64r/build/lib/libopencv_world.a
algorithm.cpp.o:
0000000000000000 V DW.ref.__gxx_personality_v0
U _GLOBAL_OFFSET_TABLE_
U __gxx_personality_v0
0000000000000000 r .LC0
U _Unwind_Resume
U _ZdlPv
U _ZN2cv11FileStorageC1ERKNS_6StringEiS3_
U _ZN2cv11FileStorageD1Ev
U _ZN2cv5errorEiRKNS_6StringEPKcS4_i
U _ZN2cv5utils5trace7details6Region7destroyEv
U _ZN2cv5utils5trace7details6RegionC1ERKNS3_21LocationStaticStorageE
U _ZN2cv5writeERNS_11FileStorageERKNS_6StringEi
U _ZN2cv6String10deallocateEv
U _ZN2cv6String8allocateEm
0000000000000000 W _ZN2cv9Algorithm4readERKNS_8FileNodeE
0000000000000000 W _ZN2cv9Algorithm5clearEv
0000000000000000 T _ZN2cv9AlgorithmC1Ev
0000000000000000 T _ZN2cv9AlgorithmC2Ev
0000000000000000 T _ZN2cv9AlgorithmD0Ev
0000000000000000 T _ZN2cv9AlgorithmD1Ev
0000000000000000 T _ZN2cv9AlgorithmD2Ev
U _ZN2cvlsERNS_11FileStorageERKNS_6StringE
0000000000000000 T _ZNK2cv9Algorithm11writeFormatERNS_11FileStorageE
0000000000000000 T _ZNK2cv9Algorithm14getDefaultNameEv
0000000000000000 T _ZNK2cv9Algorithm4saveERKNS_6StringE
0000000000000000 W _ZNK2cv9Algorithm5emptyEv
0000000000000000 T _ZNK2cv9Algorithm5writeERKNS_3PtrINS_11FileStorageEEERKNS_6StringE
0000000000000000 W _ZNK2cv9Algorithm5writeERNS_11FileStorageE
0000000000000000 V _ZTIN2cv9AlgorithmE
0000000000000000 V _ZTSN2cv9AlgorithmE
U _ZTVN10__cxxabiv117__class_type_infoE
0000000000000000 V _ZTVN2cv9AlgorithmE
0000000000000000 r _ZZN2cv9AlgorithmC1EvE19__PRETTY_FUNCTION__
0000000000000000 d _ZZN2cv9AlgorithmC1EvE24__cv_trace_location_fn50
0000000000000000 b _ZZN2cv9AlgorithmC1EvE30__cv_trace_location_extra_fn50
0000000000000000 r _ZZN2cv9AlgorithmD1EvE19__PRETTY_FUNCTION__
0000000000000000 d _ZZN2cv9AlgorithmD1EvE24__cv_trace_location_fn55
0000000000000000 b _ZZN2cv9AlgorithmD1EvE30__cv_trace_location_extra_fn55
0000000000000000 r _ZZN2cvlsIiEERNS_11FileStorageES2_RKT_E8__func__
0000000000000000 r _ZZNK2cv9Algorithm11writeFormatERNS_11FileStorageEE19__PRETTY_FUNCTION__
0000000000000000 d _ZZNK2cv9Algorithm11writeFormatERNS_11FileStorageEE24__cv_trace_location_fn88
0000000000000000 b _ZZNK2cv9Algorithm11writeFormatERNS_11FileStorageEE30__cv_trace_location_extra_fn88
0000000000000000 r _ZZNK2cv9Algorithm14getDefaultNameEvE19__PRETTY_FUNCTION__
0000000000000000 d _ZZNK2cv9Algorithm14getDefaultNameEvE24__cv_trace_location_fn82
0000000000000000 b _ZZNK2cv9Algorithm14getDefaultNameEvE30__cv_trace_location_extra_fn82
0000000000000000 r _ZZNK2cv9Algorithm4saveERKNS_6StringEE19__PRETTY_FUNCTION__
0000000000000000 d _ZZNK2cv9Algorithm4saveERKNS_6StringEE24__cv_trace_location_fn73
0000000000000000 b _ZZNK2cv9Algorithm4saveERKNS_6StringEE30__cv_trace_location_extra_fn73
0000000000000000 r _ZZNK2cv9Algorithm5writeERKNS_3PtrINS_11FileStorageEEERKNS_6StringEE19__PRETTY_FUNCTION__
0000000000000000 d _ZZNK2cv9Algorithm5writeERKNS_3PtrINS_11FileStorageEEERKNS_6StringEE24__cv_trace_location_fn60
0000000000000000 b _ZZNK2cv9Algorithm5writeERKNS_3PtrINS_11FileStorageEEERKNS_6StringEE30__cv_trace_location_extra_fn60
alloc.cpp.o:
0000000000000000 T cvAlloc
0000000000000000 T cvFree_
0000000000000000 V DW.ref.__gxx_personality_v0
U free
U _GLOBAL_OFFSET_TABLE_
U __gxx_personality_v0
0000000000000000 r .LC0
0000000000000000 r .LC1
U posix_memalign
U _Unwind_Resume
0000000000000000 T _ZN2cv10fastMallocEm
U _ZN2cv5errorEiRKNS_6StringEPKcS4_i
U _ZN2cv6formatEPKcz
U _ZN2cv6String10deallocateEv
0000000000000000 T _ZN2cv8fastFreeEPv
0000000000000000 r _ZZN2cvL16OutOfMemoryErrorEmE8__func__
arithm.cpp.o:
0000000000000000 T cvAbsDiff
0000000000000000 T cvAbsDiffS
0000000000000000 T cvAdd
0000000000000000 T cvAddS
0000000000000000 T cvAddWeighted
0000000000000000 T cvAnd
0000000000000000 T cvAndS
0000000000000000 T cvCmp
0000000000000000 T cvCmpS
0000000000000000 T cvDiv
0000000000000000 T cvInRange
0000000000000000 T cvInRangeS
0000000000000000 T cvMax
0000000000000000 T cvMaxS
0000000000000000 T cvMin
0000000000000000 T cvMinS
0000000000000000 T cvMul
0000000000000000 T cvNot
0000000000000000 T cvOr
0000000000000000 T cvOrS
0000000000000000 T cvSub
0000000000000000 T cvSubRS
0000000000000000 T cvXor
0000000000000000 T cvXorS
0000000000000000 V DW.ref.__gxx_personality_v0
U _GLOBAL_OFFSET_TABLE_
U __gxx_personality_v0
U ippicviAbsDiff_16u_C1R
U ippicviAbsDiff_32f_C1R
U ippicviAbsDiff_8u_C1R
U ippicviAdd_16s_C1RSfs
U ippicviAdd_16u_C1RSfs
U ippicviAdd_32f_C1R
U ippicviAdd_8u_C1RSfs
U ippicviAnd_8u_C1R
.
.
.
.
.
.
所以我想知道或者我想知道哪个是 Linux 中使用 opencv-3.4.1 的 CMake 命令的正确选项。
答: 暂无答案
下一个:如何在程序中正确使用 SDL2?
评论