Log in or register to post comments

Integrate SDK into existing project - linking errors

February 27, 2012 - 1:38am #1

Hi team!

I have an existing project that I want to add an AR component to. I will be loading a new view controller modally, and from there I want to be able to press a button to launch the camera view and see the teapot (for now) over a reference image.

I've tried pulling the imageTargets sample project to bits and adding the .h/.m/.mm/.a/.cpp/.fsh/.vsh/.dat etc files to my existing project. I turned off ARC in those files to clear most of the compiler issues and am now left with:

duplicate symbol _OBJC_CLASS_$_ARViewController in.....

Any idea why this would happen? Could anybody suggest a better way to implement the imageTargets functionality from a view controller in my existing app...? I'm in Xcode 4.2 and iOS 5.0.1.

Thanks in advance!!!

Re: Integrate SDK into existing project - linking errors

February 27, 2012 - 12:54pm #3

Hi there,

Thanks for your quick reply!

Your message helped me solve the problem. I had been focussing on the SDK as the problem source but the project I'm modifying (I wrote a few months back) actually includes a VC called ARViewController that I created. Hence the obvious error.

Thanks!

Re: Integrate SDK into existing project - linking errors

February 27, 2012 - 2:34am #2

Hi Carl,

Is it possible you've got ARViewController included in Build Phases twice?

Log in or register to post comments