Log in or register to post comments

First step with AR

July 25, 2012 - 8:46am #1

Hi to everybody!

It's my first post here on this forum, and I would like to ask you some question about using this AR framework on my app.
I test the sample app and everything is working in the right way. Now, I'm going to try to make a new app, with the same model of the ImageTargets, just to understand how to build and create the app.

First af all, I add all this framework:
SystemConfiguration, CoreVideo, CoreMedia, AVFoundation, QuartzCore, OpenGLES, Security, UIKit, Foundation, CoreGraphics.
Then, I add libQCAR.a coping it from vuforia-sdk-ios-1-5-8/build/lib/arm and adding it to the project with the copy option enabled.

After that, I open the properties of the project and in the Targets window I set the Header Search Paths with ../../build/include (I put the project in the samples folder, so the path is the same of ImageTargets example).

Now, I add to the project all the file that are in the folder vuforia-sdk-ios-1-5-8/samples/ARCommon, importing them in my project with the copy option enabled.

Finally, I write again the AppDelegate.h/AppDelegate.m to be the same of the example, and I import EAGLView.h, EAGLView.mm, Teapot.h and all the resoucers folder.

So now I should have a perfect copy of the example project...

But when I compile it xcode give my 20 errors, all like this

- Matrices.h: Unknow type name 'namespace'; Parse Issue: expected ';' after top level declarator;
- QCARutils.h: Type name requires a specifier or qualifier; Parse Issue: expected expression;
...

What I forget? There are any tutorial for how to make an app by zero? I found just tutorial to run the sample, and it's not what I want...

Please help me!

Thanks in advice,
Gio

First step with AR

November 5, 2012 - 2:23am #4

Please see my other response to your question in the other forum.

N

First step with AR

November 4, 2012 - 6:13am #3

Hi sesi,

I did the same and having exactly the same problem, were you able to get to the root of the problem?

Thanks

First step with AR

July 25, 2012 - 9:11am #2

Hi sesi

Try renaming your AppDelegate.m to AppDelegate.mm

The .mm is needed to compile C++ code properly.

HTH

N

Log in or register to post comments