![]() ![]() Open the build folder - it should now contain an XCode project: open OpenCV.xcodeprojīuilding this Xcode project in Debug or Release configuration will make the static libraries for your current system architecture. Hit ‘c’ to reconfigure for the new settings, then ‘g’ to write out the configuration and exit. ![]() PVAPI_INCLUDE_PATH *PVAPI_INCLUDE_PATH-NOTFOUND OPENEXR_INCLUDE_PATH *OPENEXR_INCLUDE_PATH-NOTFOUND OPENCV_CONFIG_FILE_INCLUDE_DIR */Users/mrwalker/Downloads/OpenCV-2.2.0/build ![]() LIBRARY_OUTPUT_PATH */Users/mrwalker/Downloads/OpenCV-2.2.0/build/lib My configuration looked like this (I changed only BUILD_SHARED_LIBS & BUILD_TESTS, both to OFF): BUILD_EXAMPLES *OFFĬMAKE_CONFIGURATION_TYPES *Debug Release MinSizeRel RelWithDebInfoĬMAKE_OSX_SYSROOT */Developer/SDKs/MacOSX10.6.sdkĮIGEN2_INCLUDE_PATH *EIGEN2_INCLUDE_PATH-NOTFOUNDĮXECUTABLE_OUTPUT_PATH */Users/mrwalker/Downloads/OpenCV-2.2.0/build/bin Once that’s done, use the arrow keys to move down the list, enter to change a value. Hit ‘c’ to create an initial configuration. In the ccmake interactive console, you should see a “EMPTY CACHE” at the top of the console window. Once you’ve downloaded & extracted the source code, open a terminal window and head to that folder, then make yourself a build folder: cd OpenCV-2.2.0Īsk ccmake to make us an Xcode project: ccmake -G "Xcode". The latest version (2.2 at the time of writing) should be available here: The clean command may save you doing this twice if you’ve had a build which failed. BUILD OPENCV FOR MAC INSTALLWhen that’s done: sudo port clean cmake sudo port install cmake BUILD OPENCV FOR MAC UPDATEIf you’ve previously installed MacPorts for something else, it’s worth doing an update before you install anything: sudo port selfupdate It doesn’t come included with Snow Leopard, so you need to obtain this from somewhere else. Here’s how I got there: Install CMakeīuilding OpenCV 2.2 requires using CMake.ĬMake is a unified, cross-platform, open-source build system that allows developers to build, test and package software by specifying build parameters in simple, portable text files.īeing a clean-shaven developer, this is the first time I’ve needed to use this tool. I spent longer than I expected to setting up a test Xcode Cocoa project where I could begin experimenting with the latest release, targeting i386 & x86_64. The 2.2 release of OpenCV supports building on x86_64 systems. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |