"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

IOS - Problem: View the samples

Hello, I new here. I work in mac and I want to test the samples but when i try to compile then in my Xcode simply then failed. The version of Xcode with i'm working is the 4.2. The error that Xcode print is: ld: warning: ignoring file ../../build/lib/arm/libQCAR.a, missing required architecture i386 in file Undefined symbols for architecture i386: "QCAR::Renderer::getInstance()", referenced from: -[EAGLView renderFrameQCAR] in EAGLView.o -[EAGLView configureVideoBackground] in EAGLView.o "QCAR::State::getActiveTrackable(int) const", referenced from: -[EAGLView renderFrameQCAR] in EAGLView.o "QCAR::Tool::convertPose2GLMatrix(QCAR::Matrix34F const&)", referenced from: -[EAGLView renderFrameQCAR] in EAGLView.o "QCAR::State::getNumActiveTrackables() const", referenced from: -[EAGLView renderFrameQCAR] in EAGLView.o "QCAR::State::~State()", referenced from: -[EAGLView renderFrameQCAR] in EAGLView.o "QCAR::requiresAlpha()", referenced from: -[EAGLView initRendering] in EAGLView.o "QCAR::CameraDevice::getInstance()", referenced from: -[EAGLView configureVideoBackground] in EAGLView.o -[EAGLView stopCamera] in EAGLView.o -[EAGLView startCamera] in EAGLView.o -[EAGLView actionSheet:clickedButtonAtIndex:] in EAGLView.o "QCAR::Tracker::getInstance()", referenced from: -[EAGLView stopCamera] in EAGLView.o -[EAGLView startCamera] in EAGLView.o -[EAGLView loadTracker] in EAGLView.o "QCAR::Tool::getProjectionGL(QCAR::CameraCalibration const&, float, float)", referenced from: -[EAGLView startCamera] in EAGLView.o "QCAR::setInitParameters(int)", referenced from: -[EAGLView initQCAR] in EAGLView.o "QCAR::init()", referenced from: -[EAGLView initQCAR] in EAGLView.o "QCAR::onSurfaceCreated()", referenced from: -[EAGLView initApplication] in EAGLView.o "QCAR::onSurfaceChanged(int, int)", referenced from: -[EAGLView initApplication] in EAGLView.o "QCAR::onPause()", referenced from: -[EAGLView onPause] in EAGLView.o "QCAR::onResume()", referenced from: -[EAGLView onResume] in EAGLView.o "QCAR::deinit()", referenced from: -[EAGLView onDestroy] in EAGLView.o ld: symbol(s) not found for architecture i386 collect2: ld returned 1 exit status I don't know resolve this error. I hope someone can help me.

The clue is here "missing required architecture i386 in file". The QCAR library is not built for use in the simulator, as it requires active use of the camera - please run and debug on the device.

reprotector

Wed, 09/07/2011 - 20:00

Thanks for your help. There is no way to try it in simulator? I Know that I can't use camera in simulator, but my app is not just AR app. I have another features and I don't want to try on device every single time.

Could you give me a simple sample code to replace EAGLView.mm file that works on simulator? I would like try the library to begin understanding what it does. Thanks a lot

davetatch

Tue, 10/18/2011 - 03:51

It's significantly quicker using the simulator, I'm not sure where in the QCAR code it picks up the camera - but couldn't you use something like: [CODE] if( [UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]){ // get the camera }[/CODE]

[QUOTE=davetatch" />http://ar.qualcomm.at/node/2000796> if( [UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera" />){ // get the camera }[/CODE" />[/QUOTE" /> [I" />"I'm sorry, Dave. I'm afraid I can't do that.