Log in or register to post comments

Create new project from scratch

October 12, 2011 - 11:51pm #5

Hi

I have created new project from scratch to detect Frame Markers, but it gave whole lots of build errors regarding all QCAR related stuff. I think it is not able to detect QCAR library. I am newbie to iOS to I dont know how to include library. What I did is add QCAR library "libQCAR.a" using "Add files to Project" option. Can someone please tell me how to setup new project using QCAR or what I did wrong? Do I need setup path or any other things?

Please help me.

I added HeaderSearchPath and LibrarySearchPath then most of the errors are gone still I got 4 erros. Please see below:

Expected '=', ',', ';', 'asm' or '__attribute__' before 'QCAR' in /Users/hardikvyas/Development/iOS/qcar-ios-1-0-0/build/include/QCAR/Matrices.h

Expected '=', ',', ';', 'asm' or '__attribute__' before 'QCAR' in /Users/hardikvyas/Development/iOS/qcar-ios-1-0-0/build/include/QCAR/Vectors.h

Expected '=', ',', ';', 'asm' or '__attribute__' before 'QCAR' in /Users/hardikvyas/Development/iOS/qcar-ios-1-0-0/build/include/QCAR/Tool.h

Expected specifier-qualifier-list before 'QCAR' in /Users/hardikvyas/Work/MobileApp/iPhone Examples/MarkerLogging/MarkerLogging/EAGLView.h

Thanks,
Hardik

Re: Create new project from scratch

October 13, 2011 - 1:49am #4

Hi Hardik,

It looks like you've included the header into a .m file (pure Objective-C) whereas it needs to be a combined .mm file (mixed Objective-C and C++) as some parts of the interface require a C++ context.

If this is the case, just rename the file that references the includes to be .mm rather than .m

Re: Create new project from scratch

October 13, 2011 - 3:44am #3

Thanks a lot, it worked.

thanks
Hardik

Re: Create new project from scratch

October 16, 2011 - 2:51pm #2

Hi guys,

Do you have a guide on how to create a project from scratch? I'd love to create a new AR project from scratch..

Thanks,

Re: Create new project from scratch

October 17, 2011 - 3:56am #1
vandutran wrote:

Do you have a guide on how to create a project from scratch?

Hi Vandutran,

The ImageTargets sample app provides a very simple implementation using QCAR, linking a detected target with a simple OpenGL render.

Most developers we've worked with, both experienced and new, start with that code base as a template, so I'd recommend that approach.

BTW - you could also generate a sample OpenGL app using the Xcode wizard, and then compare its files with ImageTargets.

Log in or register to post comments