OpenCV iOS build problem: The opencv2.framework is almost empty [closed]
Hi,
I would like to build OpenCV for iOS. I have followed the instruction with those steps
- cd /; sudo ln -s /Applications/Xcode.app/Contents/Developer Developer
- cd ~/<my_working_directory>; python opencv/platforms/ios/build_framework.py ios
http://docs.opencv.org/doc/tutorials/...
Those step is successfully without any errors. The opencv2.framework was there in the ios folder. However, the file size is just around 2MB.
Then I run nm to check the content:
$ nm ios/opencv2.framework/Versions/Current/opencv2
ios/opencv2.framework/Versions/Current/opencv2(world_init.o):
0000000000000030 s EH_Frame1
U __ZN2cv13initModule_mlEv
U __ZN2cv16initModule_videoEv
U __ZN2cv18initModule_nonfreeEv
U __ZN2cv21initModule_features2dEv
0000000000000000 T __ZN2cv7initAllEv
0000000000000048 s func.eh
That is all the symbol of the file has. Unlike the opencv2.framework downloaded
I have been tested with 2.4.9 and 2.4.10 . The result is same. Any suggestion to find out the problem?
-- General configuration for OpenCV 2.4.10 =====================================
-- Version control: unknown
--
-- Platform:
-- Host: Darwin 14.0.0 x86_64
-- Target: iOS
-- CMake: 3.0.0
-- CMake generator: Xcode
-- CMake build tool: /usr/local/Cellar/cmake/3.0.0/bin/cmakexbuild
-- Xcode: 6.0.1
--
-- C/C++:
-- Built as dynamic libs?: NO
-- C++ Compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ (ver 6.0.0.6000051)
-- C++ flags (Release): -stdlib=libc++ -headerpad_max_install_names -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -DNDEBUG -O3 -fomit-frame-pointer -ffast-math -DNDEBUG
-- C++ flags (Debug): -stdlib=libc++ -headerpad_max_install_names -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -g -O0 -DDEBUG -D_DEBUG
-- C Compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-- C flags (Release): -Wno-implicit-function-declaration -fPIC -O3 -DNDEBUG -DNDEBUG
-- C flags (Debug): -Wno-implicit-function-declaration -fPIC -g -O0 -DDEBUG -D_DEBUG
-- Linker flags (Release):
-- Linker flags (Debug):
-- Precompiled headers: NO
--
-- OpenCV modules:
-- To be built: core flann imgproc highgui features2d calib3d ml nonfree objdetect video contrib legacy photo stitching videostab world
-- Disabled: -
-- Disabled by dependency: -
-- Unavailable: androidcamera dynamicuda gpu java ocl python superres ts viz
--
-- GUI:
-- Cocoa: YES
-- OpenGL support: NO
-- VTK support: NO
--
-- Media I/O:
-- ZLib: build (ver 1.2.7)
-- JPEG: build (ver 62)
-- PNG: build (ver 1.5.12)
-- TIFF: NO
-- JPEG 2000: NO
-- OpenEXR: NO
--
-- Video I/O:
-- AVFoundation: YES
-- QuickTime: NO
-- QTKit: NO
-- V4L/V4L2: NO/NO
-- XIMEA: NO
--
-- Other third-party libraries:
-- Use IPP: NO
-- Use Eigen: NO
-- Use TBB: NO
-- Use OpenMP: NO
-- Use GCD YES
-- Use Concurrency NO
-- Use C=: NO
-- Use Cuda: NO
-- Use OpenCL: NO
--
-- Python:
-- Interpreter: NO
--
-- Java:
-- ant: NO
-- JNI: NO
-- Java tests: NO
--
-- Documentation:
-- Build Documentation: NO
-- Sphinx: NO
-- PdfLaTeX compiler: NO
--
-- Tests and samples:
-- Tests: NO
-- Performance tests: NO
-- C/C++ Examples: NO
--
-- Install path: /Users/benlau/Downloads/opencv-2.4.10/ios/build/iPhoneOS-armv7/install
--
-- cvconfig.h is in: /Users/benlau/Downloads/opencv-2.4.10/ios/build/iPhoneOS-armv7
-- -----------------------------------------------------------------