(English) Install OpenCV 2.3.1a in Mac OS X 10.6
Computer Vision, Mac OS X (マック オーエス テン)
Leave a comment ?
10 Comments.
Leave a Comment
Trackbacks and Pingbacks:
- Use OpenCV in Xcode 4 for a Mac OS X Application | Programming and Technology - Pingback on 2012/05/21/ 12:33
- Use OpenCV in Xcode 4 for an Object Oriented Mac OS X Application | Programming and Technology - Pingback on 2012/05/21/ 13:37
- Install OpenCV 2.4.2 with ffmpeg support in Mac OS X 10.8 | Programming and Technology - Pingback on 2012/07/27/ 16:28
- install opencv on macos 10.8.1 | 子龙山人 - Pingback on 2012/09/13/ 10:38
- opencv,vim,mac | 子龙山人 - Pingback on 2012/12/17/ 05:48
cmake -G “Unix Makefiles” -D CMAKE_OSX_ARCHITECTURES=i386 ..
results an error :
” CMake Error at CMakeLists.txt:69 (message):
CMake fails to deterimine the bitness of target platform.
Please check your CMake and compiler installation. If you are crosscompiling then ensure that your CMake toolchain file correctly sets the compiler details. ”
I’m using opencv-2.4.2
Any idea ?!
Use this option to specify 32 bits:
-D CMAKE_C_FLAGS=-m32 -D CMAKE_CXX_FLAGS=-m32
Aha, thank you
Another question, I’m using opencv-2.4.2 for IOS
so can I write:
“cmake -G “Unix Makefiles” -D CMAKE_IOS_ARCHITECTURES=armv7 ..”
it also generated the same error !
any idea?
I think OpenCV 2.4.2 has a different way to compile for iOS. You can also download a prebuilt framework here http://sourceforge.net/projects/opencvlibrary/files/opencv-ios/2.4.2/opencv2.framework.zip/download.
Yes, I finally (after 2 weeks) realized that using this prebuilt framework is the safe way.
Just a hint to others.
Thank you