I want to use opencv in iOS app. I cloned openCV through terminal (git clone https://github.com/opencv/opencv.git) for building opencvframework.
I used this command python opencv/platforms/ios/build_framework.py ios as per official opencv website's tutorial but i get an error that say
ERROR: Command '['xcodebuild', '-version']' returned non-zero exit
status 1
I think that might be opencv compatitibility error. I am using Xcode 8.2.1 in MAC OSX El capitan. Can somebody tell me what am i doing wrong?
There is a same issue on Github, and it looks has been fixed:
https://github.com/opencv/opencv/issues/6093
Please check:
If I add "#include " in gzguts.h, this error can be fixed.
And I have successfully build the framework under maxOS Sierra 10.12.6 and Xcode 8.3.3:
You could download it directly from link: http://onqouewnn.bkt.clouddn.com/opencv2.framework.zip
Related
I am currently attempting to run an xcode project that creates a Vapor server for the ios application, however, I get an error complaining that 'openssl/conf.h' file is not found. I also get Could not build Objective-C module 'CNIOOpenSSL' on the import package, but I suspect that this is linked to the file not being found by the compiler. I have already brew installed vapor using these instructions https://stackoverflow.com/que[enter image description here]1stions/43070534/openssl-ctls-trouble-with-vapor-2, but no luck. I also installed openssl and libressl, but same results. Any suggestions on what I may be missing? I've linked screenshots of the error below.enter image description here
For me it was installing old version of openssl - openssl 1.1 and setting
echo 'export PATH="/usr/local/opt/openssl#1.1/bin:$PATH"' >> ~/.bash_profile
My team is using Decodable library in application with the help of carthage. The command carthage update --platform iOS is properly downloading the Decodable on my colleague mac machine. But on my mac machine it's just stucks with the message *** Fetching Decodable all the time. I am trying it since 2 days. for better understanding please see the bellow attached screenshot of terminal
Any help will be appreciated.
This generally happens when Carthage can't find compatible version of your dependency. Try specifying a version of the library in your Cartfile
I could not install/build openCV for xCode. I get this following error in the last command given in this installation document link. http://docs.opencv.org/2.4/doc/tutorials/introduction/ios_install/ios_install.html
Error is File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 540, in check_call
raise CalledProcessError(retcode, cmd
When giving python opencv/platforms/ios/build_framework.py ios command. Can you please suggest help on this ? Have installed cmake using homebrew.
Hi I was facing the same problem but was resolved.Please check out same question asked by me.A guy answered this question.Please check out this link and let me know if it helps
OPEN CV iOS installation
After cmake installaion, I directly downloaded openCV for mac and used its framework.
This is my first time trying with Gstreamer for ios , I went with the tutorial and installed the SDK with the link provided by the tutorial:
http://docs.gstreamer.com/display/GstSDK/Installing+for+iOS+development
The installation works fine, but after I start trying the tutorial example projects, there couple of compiling errors compiling about missing gst/video/videooverlay.h . Then I looked into the header folder under the installed GStreamer header folder, there is no filed called video/videooverlay.h
Then I search online, found this information:
Gstreamer for iOS provided is out of date. I used the freedesktop packages
from https://github.com/braincorp/gstreamer_ios_tutorial
Then I downloaded another installation pkg for GStreamer
Then while I was trying to install the later version, the installer give me error saying:
you cannot install GStreamer 1.0 (Development Files) in this location.
Then I thought I might need to uninstall the previous version, but I couldn't finder a standard uninstallation option from the installer, then I searched online, find one post suggest remove the GStreamer folder under ~/Library/Developer
I have removed the installed folder, so I don't have any header files, but the new installer still gives the same error
I have been trying to figure this out for sometime, couldn't find useful info on line , I really appreicate any clue and help you might have!
Thanks!!
Jing
Answering my own question here..
not sure what's the issue, after restarting my mac, and run the installer couple of times with the same error, it suddenly worked ....... i am not sure what's the matter here, hope gstreamer team can improve the stability of the installer in the future.
At work we are currently trying to get the IOS tutorials from the streamer 1.0 sdk to run.
1) Compilation: Same thing: we managed to bootstrap (cerbero ... bootstrap) and compile (cerebra ... package streamer-sdk) using the official cerebero git repository.
But:
a) We had to mock around with the /cerbero/cerbero/enums.py file:
Add in the collection of supported old IOS (6.0, 6.1, 7.0, etc...) the one corresponding to our Xcode version : IOS 8.4
b) We had to customize the /cerbero/config/ios.config and iOS-universal.config files to get them to use the right architecture in our case: arm7v or arm7 instead of X64_86 or x86
c) We removed the not found is_asm() function from the x264 plugin's recipe file in the /cerbero/recipes.
For a reason we ignore, for all other platforms but IOS, the recipes check on the architecture available using:
if self.config.target_arch == Architecture.xxx:
of iOS is was using that missing function: is_asm(self.config.target_arch)
We replaced it by:
if self.config.target_arch == Architecture.ARMv7:
Compiling an iOS app using streamer:
So far it is a failure. we bumped into the same missing overlay.h header file. We couldn't find it anywhere.
DIFFERENCE between gstreamer.com (the sdk provider) and the official streamer website (free desktop.gsteamer.org):
We found out that gstreamer.com is clearly a commercial goal company that is making available the sdk, that people struggle on with for IOS (tested and working fine on linux) and the official website is providing the gstreamer library only without an sdk.
So this is what we are trying to use instead as of today.
Versions infos:
sdk (from gstreamer.com): current cerbero git master branch: git clone git://anongit.freedesktop.org/gstreamer-sdk/cerbero
official gstreamer library:
http://gstreamer.freedesktop.org/data/pkg/ios/1.5.2/
After I followed the steps on how to run cpp test on Mac OsX, there is an error when I run it in Xcode. It says that:
#include "glfw3.h <--- file not found
When I checked the folder, where I downloaded it from github, it seems that there is no glfw folder or even a file that was needed here.
So probably the files are missing. Please guide me on what could be done here to resolve this issue. Need guidance. I am using OS X version 10.9 and have Xcode 5.1.
Did you read the doc?
You need to run python download-deps.py