Ask Your Question
0

Building opencv framework ios6 - dynamic link pb

asked 2012-11-15 03:45:48 -0500

updated 2012-11-15 05:16:12 -0500

Hello,

I tried to follow the installation tutorial: http://docs.opencv.org/trunk/doc/tutorials/introduction/ios_install/ios_install.html

but in the second part, building opencv from source, it doesn't work. It looks like my dynamic link is not working:

cd /
sudo ln -s /Applications/Xcode.app/Contents/Developer Developer

I have the following errors:

-- Setting up iPhoneOS toolchain
-- iPhoneOS toolchain loaded
-- The CXX compiler identification is unknown
CMake Error at /opt/local/share/cmake-2.8/Modules/CMakeFindBinUtils.cmake:71 (MESSAGE):
  Could not find install_name_tool, please check your installation.
Call Stack (most recent call first):
  /opt/local/share/cmake-2.8/Modules/CMakeDetermineCXXCompiler.cmake:176 (INCLUDE)
  CMakeLists.txt:61 (project)


CMake Error: Could not find cmake module file:/Users/morganbigot/Desktop/OpenCV_ios6/ios/build/iPhoneOS-armv7/CMakeFiles/CMakeCXXCompiler.cmake
CMake Error: Could not find cmake module file:/Users/morganbigot/Desktop/OpenCV_ios6/ios/build/iPhoneOS-armv7/CMakeFiles/CMakeCCompiler.cmake
-- Configuring incomplete, errors occurred!
User defaults from command line:
    IDEBuildOperationMaxNumberOfConcurrentCompileTasks = 8

Build settings from command line:
    ARCHS = armv7
    SDKROOT = iphoneos6.0

xcodebuild: error: The directory /Users/morganbigot/Desktop/OpenCV_ios6/ios/build/iPhoneOS-armv7 does not contain an Xcode project.

Build settings from command line:
    ARCHS = armv7
    SDKROOT = iphoneos6.0

xcodebuild: error: The directory /Users/morganbigot/Desktop/OpenCV_ios6/ios/build/iPhoneOS-armv7 does not contain an Xcode project.

Does anyone knows how to generate the framework opencv?

Thanks. Morgan.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-02-19 03:21:47 -0500

Andrei Blaj gravatar image

I am also trying to figure this one out. I am exploring two solutions:

  1. There is a readme.txt file in opencv/ios with instructions on builiding the files for the framework.

  2. Run the build_framework.py script from opencv/ios:

python build_framework.ph <some_directory_outside_of_opencv_tree>

I will let you know which one worked. My purpose is to build an OpenCV framework with JPG support :)

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

Stats

Asked: 2012-11-15 03:45:48 -0500

Seen: 559 times

Last updated: Feb 19 '13