OpenCV Q&A Forum - RSS feedhttp://answers.opencv.org/questions/OpenCV answersenCopyright <a href="http://www.opencv.org">OpenCV foundation</a>, 2012-2018.Thu, 21 Apr 2016 03:32:43 -0500can anyone help me solve this error in ioshttp://answers.opencv.org/question/93372/can-anyone-help-me-solve-this-error-in-ios/ ld: building for iOS simulator, but linking against dylib built for OSX, file '/usr/local/lib/libopencv_features2d.dylib' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
vkThu, 21 Apr 2016 03:32:43 -0500http://answers.opencv.org/question/93372/How to solve problem with macOS exceptionhttp://answers.opencv.org/question/79337/how-to-solve-problem-with-macos-exception/ Hi guys, i have a problem with my script, i got error message every time when i try to run it. Please help solve this problem. Thank you.
error message: http://pastebin.com/PEr6KFdm
python source: http://pastebin.com/VmKCtZu6PetrixsMon, 14 Dec 2015 18:17:21 -0600http://answers.opencv.org/question/79337/about build opencv ios .framework error OSError: [Errno 2] No such file or directory: '../build/iPhoneOS-arm64/install/include/opencv2'http://answers.opencv.org/question/32742/about-build-opencv-ios-framework-error-oserror-errno-2-no-such-file-or-directory-buildiphoneos-arm64installincludeopencv2/Hello ,
I want to rebuilt ios opencv ios framework, take steps like this:
1.download source code from opencv officer website. ( the last 2.4.9 was build failed, but 2.4.6 was OK,Why???)
2. did " python /opencv/platforms/ios/build_framework.py ios_build "
....then start check....
"-- The CXX compiler identification is Clang 5.1.0
-- The C compiler identification is Clang 5.1.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Performing Test HAVE_CXX_FSIGNED_CHAR
-- Performing Test HAVE_CXX_FSIGNED_CHAR - Failed
-- Performing Test HAVE_C_FSIGNED_CHAR
-- Performing Test HAVE_C_FSIGNED_CHAR - Failed
-- Performing Test HAVE_CXX_W
-- Performing Test HAVE_CXX_W - Failed
-- Performing Test HAVE_C_W
-- Performing Test HAVE_C_W - Failed
-- Performing Test HAVE_CXX_WALL
-- Performing Test HAVE_CXX_WALL - Failed
-- Performing Test HAVE_C_WALL
-- Performing Test HAVE_C_WALL - Failed"
.....
and build start .. .
at last , there are few errors like this:
**"[Errno 2] No such file or directory: '../build/iPhoneOS-arm64/install/include/opencv2'...."**
what the problem is? How to solve it? Thinks~lucienwangFri, 02 May 2014 13:04:24 -0500http://answers.opencv.org/question/32742/Compiler error when compiling for iOShttp://answers.opencv.org/question/14938/compiler-error-when-compiling-for-ios/I followed this guide ( http://docs.opencv.org/doc/tutorials/introduction/ios_install/ios_install.html ) exactly but when executing the script it eventually gives me the following error. How can I fix this?
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/chrisherbon/Downloads/ios/build/iPhoneOS-armv7s/3rdparty/libjpeg/OpenCV.build/Release-iphoneos/libjpeg.build/Objects-normal/armv7s/jmemansi.o (No such file or directory)
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool failed with exit code 1
** BUILD FAILED **
The following build commands failed:
Libtool /Users/chris/Downloads/ios/build/iPhoneOS-armv7s/modules/world/UninstalledProducts/libopencv_world.a normal armv7siEngMon, 10 Jun 2013 04:29:55 -0500http://answers.opencv.org/question/14938/Compiler error when using Stitcher under iOShttp://answers.opencv.org/question/3755/compiler-error-when-using-stitcher-under-ios/Whenever I try to use the stitcher class in iOS and I include the stitcher-header (
`#include <opencv2/stitching/stitcher.hpp>`) I end up with a compile error "`Expected '{'`" in exposure_compensate.hpp. Apparently the line `enum { NO, GAIN, GAIN_BLOCKS };` is causing some sort of error.
I am very new to openCV but using other functions like `filter2d()` work as expected. How can I resolve this? iEngSun, 04 Nov 2012 13:27:28 -0600http://answers.opencv.org/question/3755/Cannot compile FaceDetectVideo example codehttp://answers.opencv.org/question/4898/cannot-compile-facedetectvideo-example-code/I am trying to compile the FaceDetectVideo sample code for iPhone made by Eduard and can be found on this online repository:
code.opencv.org/svn/gsoc2012/ios/trunk
I have downloaded the opencv framework which is the folder called "opencv2.framework". I also downloaded the "shared" folder found on the above mentioned repository. All the files are there in the xcode project except for the haarcascade files.
The haarcascade files are not in the opencv framework for iOS so I tried adding them to the project from the regular opencv (for PC) library. This did not work however.
I keep getting the compile error:
"directory not found for option '-F/Users/../FaceDetectVideo/.../.../ocv.build/ios
Undefined symbols for architecture i386:
"cv::CascadeClassifier::load(std::string const&)", referenced from: -[CvFaceDetector loadCascade:] in CvFaceDetector.o"
There are a bunch of other errors that follow this but I think they are caused by a single problem which I am unable to identify.
If anyone has been able to successfully run Eduard's code on their Mac could you please tell me what steps were involved?
Thanks a lot!
harshiTue, 04 Dec 2012 15:21:56 -0600http://answers.opencv.org/question/4898/Linking issue after update to version 2.4.3 on iOShttp://answers.opencv.org/question/4220/linking-issue-after-update-to-version-243-on-ios/Hi,
I was working with a previous release of opencv (2.4.0) on iOS. It worked fine, but yesterday I updated the code because I needed the new parallel_for functionality.
After the update, the core functions worked fine, and the new functionalities were working, but now other modules are crashing on linking time. For example, if I add CascadeClassifier object, the linker throws errors.
Any idea?goeThu, 15 Nov 2012 10:41:35 -0600http://answers.opencv.org/question/4220/Compiling OpenCV for iOS - no product type errorhttp://answers.opencv.org/question/250/compiling-opencv-for-ios-no-product-type-error/Hello - I used CMake to create xcode opencv project. I compiled it successfully for i386 architecture. When I change the architecture to iphone simulator (armv7), I get following error for one lib. Does any one know how to resolve this?
"target specifies product type 'com.apple.product-type.library.dynamic', but there's no such product type for the 'iphoneos' platform"
GradientWed, 11 Jul 2012 09:26:11 -0500http://answers.opencv.org/question/250/