Library Not Found Eclipse C++ Opencv Mac
2014-11-18 3.Eclipse配置OpenCV: 1).安装带有CDT的Eclipse, 使用eclipse建立一个Mac C工程,包含一个cpp文件 2). 右击工程名, 选择“ Properties ”,在属性配置页中选择,点击 C/C Build, 在下拉选项中选择 Settings. 在右边的选项卡中选择 Tool Settings 3). 2010-10-3 1).安装带有CDT的Eclipse,使用eclipse建立一个Mac C工程,包含一个cpp文件 2).右击工程名, 选择“Properties”,在属性配置页中选择,点击C/C Build, 在下拉选项中选择 Settings. 2014-10-7 如果是Mac平台,下面还有一个关于问题ld: symbol(s) not found for architecture x8664的解释可供参考: There are two implementations of the standard C library available on OS X: libstdc and libc. They are not binary compatible and libMLi3 requires. Can I remove unwanted modules from the modules folder and build an OpenCV framework for Android and iOS? 2011-2-4 Package opencv was not found in the pkg-config search path. 安装好后opencv后执行下面这条语句的时候出错: pkg-config -cflags opencv Package opencv was not found in. 2017-8-15 使用Eclipse + OpenCV + C 环境搭建需要的软件: Win7 64位 Eclipse CDT MinGW 64位 OpenCV2.4.13 使用其中的x64库1.安装MinGW 6. 博文 来自: 明天的增加的博客.
Home » Language IDEs » C / C++ IDE (CDT) » Link to OpenCV library - wrong syntax ?Show:Today's Messages::Show Polls::Message Navigator |
| |||||||
| |||||||
| |||||||
|
Previous Topic: | Can't set breakpoints in gdb remote debug |
Next Topic: | How -shared option works? |
System information (version)
- OpenCV => 4.1.2
- Operating System / Platform => Mac
- Compiler => clang
Detailed description
Detected processor: armv7-a
sizeof(void) = 4 on 64 bit processor. Assume 32-bit compilation mode
Looking for ccache - not found
FP16 is not supported by C++ compiler
OpenCV disables pkg-config to avoid using of host libraries. Consider using PKG_CONFIG_LIBDIR to specify target SYSROOT
libjpeg-turbo: VERSION = 2.0.2, BUILD = opencv-4.1.2-libjpeg-turbo
Android SDK Tools: Ant (Eclipse) builds are NOT supported by Android SDK
Android SDK Build Tools: Gradle 3.0.0+ builds support is available
Android SDK Tools: Prepare Android projects for using Gradle 3.0.0+ build scripts
Android Gradle Plugin version: 3.2.1
Caffe: NO
Protobuf: NO
Glog: NO
freetype2: NO
harfbuzz: NO
Module opencv_ovis disabled because OGRE3D was not found
No preference for use of exported gflags CMake configuration set, and no hints for include/library directories provided. Defaulting to preferring an installed/exported gflags CMake configuration if available.
Failed to find installed gflags CMake configuration, searching for gflags build directories exported with CMake.
Failed to find gflags - Failed to find an installed/exported CMake configuration for gflags, will perform search for installed gflags components.
Failed to find gflags - Could not find gflags include directory, set GFLAGS_INCLUDE_DIR to directory containing gflags/gflags.h
Failed to find glog - Could not find glog include directory, set GLOG_INCLUDE_DIR to directory containing glog/logging.h
Module opencv_sfm disabled because the following dependencies are not found: Eigen Glog/Gflags
Module opencv_dnn_objdetect disabled because opencv_dnn dependency can't be resolved!
Module opencv_dnn_superres disabled because opencv_dnn dependency can't be resolved!
Module opencv_text disabled because opencv_dnn dependency can't be resolved!
Excluding from source files list: modules/imgproc/src/corner.avx.cpp
Excluding from source files list: modules/imgproc/src/imgwarp.avx2.cpp
Excluding from source files list: modules/imgproc/src/imgwarp.sse4_1.cpp
Excluding from source files list: modules/imgproc/src/resize.avx2.cpp
Excluding from source files list: modules/imgproc/src/resize.sse4_1.cpp
Excluding from source files list: modules/imgproc/src/sumpixels.avx512_skx.cpp
Excluding from source files list: modules/features2d/src/fast.avx2.cpp
Android OpenCV Manager is ignored
Mac photo library finder. General configuration for OpenCV 4.1.2
Version control: unknown
Extra modules:
Location (extra): /Users/Elvis/Downloads/OpenCV/opencv-contrib/modules
Version control (extra): unknown
Platform:
Timestamp: 2019-11-29T17:39:44Z
Host: Darwin 19.0.0 x86_64
Target: Android 1 armv7-a
CMake: 3.16.0-rc4
CMake generator: Unix Makefiles
CMake build tool: /usr/bin/make
Configuration: Release
CPU/HW features:
Baseline:
requested: DETECT
C/C++:
Built as dynamic libs?: NO
C++ Compiler: /Users/Elvis/Library/Android/sdk/ndk/19.2.5345600/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ (ver 8.0)
C++ flags (Release): -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -stdlib=libc++ -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Winconsistent-missing-override -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Qunused-arguments -fvisibility=hidden -fvisibility-inlines-hidden -O2 -DNDEBUG -DNDEBUG
C++ flags (Debug): -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -stdlib=libc++ -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Winconsistent-missing-override -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Qunused-arguments -fvisibility=hidden -fvisibility-inlines-hidden -O0 -fno-limit-debug-info -DDEBUG -D_DEBUG
C Compiler: /Users/Elvis/Library/Android/sdk/ndk/19.2.5345600/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang
C flags (Release): -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Winconsistent-missing-override -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Qunused-arguments -fvisibility=hidden -fvisibility-inlines-hidden -O2 -DNDEBUG -DNDEBUG
C flags (Debug): -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Winconsistent-missing-override -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Qunused-arguments -fvisibility=hidden -fvisibility-inlines-hidden -O0 -fno-limit-debug-info -DDEBUG -D_DEBUG
Linker flags (Release): -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a -static-libstdc++ -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now
Linker flags (Debug): -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a -static-libstdc++ -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now
ccache: NO
Precompiled headers: NO
Extra dependencies: /Users/Elvis/Library/Android/sdk/ndk/19.2.5345600/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/arm-linux-androideabi/libz.a dl m log
3rdparty dependencies: libcpufeatures ittnotify libjpeg-turbo libwebp libpng libtiff libjasper IlmImf quirc tegra_hal
OpenCV modules:
To be built: aruco bgsegm bioinspired calib3d ccalib core dpm face features2d flann fuzzy hfs highgui img_hash imgcodecs imgproc java line_descriptor ml objdetect optflow phase_unwrapping photo plot quality rgbd saliency shape stereo stitching structured_light superres surface_matching tracking video videoio videostab xfeatures2d ximgproc xobjdetect xphoto
Disabled: datasets dnn reg world
Disabled by dependency: dnn_objdetect dnn_superres text
Unavailable: cnn_3dobj cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev cvv freetype gapi hdf js matlab ovis python2 python3 sfm ts viz
Applications: android_service
Documentation: NO
Non-free algorithms: YES
Android NDK: /Users/Elvis/Library/Android/sdk/ndk/19.2.5345600 (ver 19.2.5345600)
Android ABI: arm64-v8a
NDK toolchain: aarch64-linux-android-clang
STL type: c++_static
Native API level: 28
Android SDK: /Users/Elvis/Library/Android/sdk (tools: 26.1.1 build tools: 29.0.2)
GUI:
Media I/O:
ZLib: /Users/Elvis/Library/Android/sdk/ndk/19.2.5345600/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/arm-linux-androideabi/libz.a (ver 1.2.7)
JPEG: build-libjpeg-turbo (ver 2.0.2-62)
WEBP: build (ver encoder: 0x020e)
PNG: build (ver 1.6.37)
TIFF: build (ver 42 - 4.0.10)
JPEG 2000: build (ver 1.900.1)
OpenEXR: build (ver 2.3.0)
HDR: YES
SUNRASTER: YES
PXM: YES
PFM: YES
Video I/O:
Parallel framework: pthreads
Trace: YES (with Intel ITT)
Other third-party libraries:
Custom HAL: YES (carotene (ver 0.0.1))
Protobuf: build (3.5.1)
Python (for build): /usr/bin/python2.7
Michigan library buy mac. Java: export all functions
ant: NO
Java wrappers: YES
Java tests: NO
Install to: /Users/Elvis/Downloads/OpenCV/opencv-android/install
Configuring done
Generating done
Steps to reproduce
Library Not Found For Wechat Sdk
[ 99%] Built target opencv_java_android_source_copy
[ 99%] Linking CXX shared library ./././jni/arm64-v8a/libopencv_java4.so
./././lib/arm64-v8a/libopencv_phase_unwrapping.a: error adding symbols: Archive has no index; run ranlib to add one
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [jni/arm64-v8a/libopencv_java4.so] Error 1
make[1]: *** [modules/java/jni/CMakeFiles/opencv_java.dir/all] Error 2
make: *** [all] Error 2