I am a new OpenCV and XCode user and I have looked on the internet for a tutorial to setup a sample project in XCode 4 using OpenCV and couldnt find any. Does someone know of one?
https://www.dropbox.com/s/foipmm7q9n8aaht/How%20to%20get%20OpenCV%20working%20under%20Mac%20OS%20X%20Lion%20with%20XCode%204.1%20%C2%AB%20Salem%27s%20Log.pdf
check out the above link.It worked for me.Download the pdf.I'm seeing some weird fonts in the program from my browser.
NOTE: #include& . Don't just use this header directly.Cross check where the following header 'opencv.hpp' is stored and include it.
Related
it might very well be that this question is ill-posed.
What I try to do is compile a code from GitHub here https://github.com/stereolabs/zed-oculus
to get the ZED stereo camera video displayed inside the Oculus.
I am working with Visual Studio for this project and unfortunately I am a total newbie with CMake. I came across several tutorials how to work with CMake and while I understand how to add include directories for a VS solution (without using CMake) I completely do not understand what these 2 beginning parts of CMake-code are trying to do:
SET(OCULUS_PATH "OCULUS_SDK_ROOT_DIR-NOTFOUND" REQUIRED CACHE STRING "Path of OVR SDK folder. eg: C:\\ovr_sdk_win_0.17.0\\OculusSDK")
SET(SDL_PATH "SDL2_ROOT_DIR-NOTFOUND" REQUIRED CACHE STRING "Path of SDL2 folder. eg: C:\\SDL2-2.0.
I don't know even the correct syntax to use for the folders. On my system I have the Oculus SDK under C:\OculusSDK and the SDL under C:\SDL. Unfortunately all the examples I've found on StackOverflow so far look completely different or are using Linux based folder script.
So could please someone explain to me what the above rows of code are trying to accomplish and what code should I use given the names of my directories?
Thanks a lot!
Please help, I can't seem to get an answer for this anywhere.
If I use the Cordova file plugin to try and access the application directory on Windows 8, it always fails! Here is the basic code I am using:
window.resolveLocalFileSystemURL(cordova.file.dataDirectory + 'www/assets/images/image.png', gotFile, fail);
I have been using the same basic code on the Android and iOS versions of the app for some time now with no problem so I don't understand why the Windows 8 version doesn't like it.
Through console logs I can see that the link generated is in fact correct and it's actually exactly the same as one used to append the same image to the page (which works fine):
<img src="ms-appx:///www/assets/images/image.png">.
Can anyone please tell me why I can't use cordova.file.applicationDirectory with Windows? I know that folder is read only, I am just trying to read from it.
Note: I can use window.resolveLocalFileSystemURL with the cordova.file.applicationDirectory no problem at all, it works as expected. Its only the cordova.file.dataDirectory that always fails for me. The closest answer I could find was some people having trouble with the image paths of images saved from the camera plugin but that seems to have been a bug that was fixed by Cordova. If this is not a bug also then I'm assuming there is something really simple I can do to make the resolveLocalFileSystemURL work?
Thanks.
I found a solution to my problem by using 'windows.storage.storagefile', I had success with the following code:
Windows.Storage.StorageFile.getFileFromApplicationUriAsync(new Windows.Foundation.Uri('ms-appx:///www/test.html')).done(win, fail);
More info can be found here: msdn.microsoft.com/library/windows/apps/… I hope this helps some other people struggling with Windows 8 as I spent quite a time scratching my head about it and trying lots of different ways.
Cheers,
Stuart
I'm trying to set up OpenCV2.4.2 in VS2010 but not succeeding. I downloaded the OpenCV file on sourceforge.net to the directory C:\Opencv, and lib folder is missing as expected.
When trying to build/generate library files using the guide from the OpenCV wiki, the SVN repository generator fails to download, although I'm connected to the internet wirelessly.
I have tried to set up OpenCV2.1 on VS2008 and that worked without major problems.
Is there an easier way to get the required library files, etc., without much sweat?
It feels a bit awkward to answer your own question, but let me do it. I followed this link < http://www.youtube.com/watch?v=kZvjTTK9zTw > to install OpenCV 2.3.1. I thought it was not working as I could not load the image successfully.
Apparently, I made one big mistake: the image file extension. The name of the file was ending with .jpg, and I was trying to load the 'filename', changed it, then it worked fine.
Following the link above was, for me, even simpler than the opencv.org tutorial. I imagine following the same instructions as in the video would also apply for OpenCV 2.4.2.
Thx all...
Ruzzar
EDIT: It seems like no one knows the answer. New question: can anyone post a step by step tutorial how to create a mac project manually?? The answer to that question will of course get the "tick" as accepted answer..
I have the latest cocos2d version installed.
I made a new mac template and without changing anything I just build it. But I get 26 errors and 7 warnings.
The most important one (I think) is this one:
ld: warning: ignoring file /Developer/SDKs/MacOSX10.7.sdk/Library/Frameworks//OpenAL.framework/OpenAL, file was built for unsupported file format which is not the architecture being linked (x86_64)
I get lots of CDSoundEngine and audio stuff errors.
In the warning I copied above...before the "OpenAL.framework" is a double backslash..strange.
I tried to re-add the OpenAL framework but I get the same error.
I also tried to make a new one but I get the same errors..
I also reinstalled cocos2d..didn't work either.
This only happens with the mac templates...
Does anyone know how to fix this?
Edit: (Added screenshot)
link to screenshot: http://dl.dropbox.com/u/3951219/screenshot_mac_template_error.png
http://dl.dropbox.com/u/3951219/screenshot_mac_template_error.png
A tad late, but I just had the same problem.
For your original question, try this answer here...
My OpenAL Framework is broken
Oh, and btw, the // is normal. It happens when a program opens a directory like {Frameworks}/OpenAL.framework, and "Frameworks" is /Developer/SDKs/MacOSX10.7.sdk/Library/Frameworks/. The OS takes a // as a /
I am tryingo to build a GUI application using the JUCE framework on MAC OSX.
I have dowloaded all the API's and got a small hello World program running fine.
However, when I add files to my Xcode project I get compilation errors that say that the Juce library files don`t exist. I would like to know how to get the library API in the build and link path in XCode so that it finds the neccesary files for compilation.
What I would do on Visual Studio going to properties and adding aditional library dependencies, is what I need to do in XCode but I don't know how.
Any help greatly appreciated.
thanks.
Old question but maybe a useful answer in the future....
If you have the "Hello World" up and runnning, it should already be linked to the library. Are you using the introjucer? This should help get everything up and running for you. If you are, you need to add classes etc to the introjucer, as this sets up Xcode / VStudio for you. If not, (Presuming XCode 3 as you are using leopard) goto Xcode > Preferences. Scroll along to source trees, and add the path to the juce folder in there.