Log in or register to post comments

Errors in xcode 4.2 ios sdk 5

October 26, 2011 - 1:09pm #1

Im trying to create a project from scratch and copy code from ImageTarget sample app. now i get this errors:

../../build/include/QCAR/Matrices.h:16:1: error: unknown type name 'namespace' [1]
namespace QCAR
^
../../build/include/QCAR/Matrices.h:16:15: error: expected ';' after top level declarator [1]
namespace QCAR

EAGLView.h:52:5: error: type name requires a specifier or qualifier [1]
QCAR::Matrix44F projectionMatrix;
^
EAGLView.h:52:10: error: expected expression [1]
QCAR::Matrix44F projectionMatrix;
^

Errors in xcode 4.2 ios sdk 5

November 5, 2012 - 2:22am #10

Hi usmanf

It looks like you might be missing some include files or may not have your path set up correctly.

Please see this thread to see if it helps:

https://ar.qualcomm.at/content/problems-linking-qcar-files

N

Errors in xcode 4.2 ios sdk 5

November 4, 2012 - 6:00am #9

Hi michelantonides,

Were you able to get to the roots of this error, I am having exactly the same problem after creating a new Xcode 4.4.1 project and copying across the files from ImageTargets app. No such problem when I build the original sample apps including ImageTargets. 

Any help will be much appricated. 

Thanks

Re: Errors in xcode 4.2 ios sdk 5

March 14, 2012 - 11:12am #8

Hi MBeata, it sounds like you've included some C++ headers into an Objective-C source file.

Change the extension of the ObjectiveC source file to ".mm" and that will tell the compiler to use rules that allow both C++ and ObjectiveC to coincide.

Re: Errors in xcode 4.2 ios sdk 5

March 14, 2012 - 10:45am #7

Hi,

I'm trying to include QCar in a project, and I get the same "namespace errors" in Matrices.h. 'Architectures' build setting is "Standard (armv7)" and 'Valid Architectures' is set to "armv6 armv7". Is there everything else to set? I'm using Xcode 4.3 and iOS sdk 5.

Re: Errors in xcode 4.2 ios sdk 5

November 7, 2011 - 7:30am #6

When I successfully built ImageTargets on Xcode 4.2 for iOS5 the 'Architectures' build setting is "Standard (armv7)" and 'Valid Architectures' is set to "armv6 armv7". Everything built okay.

Do you have different settings? The missing symbols are all in Apple Frameworks - is there some problem with your Framework inclusion in the project?

Re: Errors in xcode 4.2 ios sdk 5

November 7, 2011 - 7:14am #5

Since I upgraded to xcode 4.2 ios sdk 5, my builds fail because of linking issues. I guess it is looking for armv6 libraries, but I can't set it to build for armv6 any more. What am I doing wrong?

Apple Match-0 linker Errors:
Undefined symbols for architecture armv7:
"_AVCaptureSessionPresetMedium", referenced from:
l2771 in libQCAR.a(libQCAR.a-armv7-master.o)
"_CVPixelBufferUnlockBaseAddress", referenced from:
l2791 in libQCAR.a(libQCAR.a-armv7-master.o)
"__nativeToolkitActivateUIWithController", referenced from:
__Z19RegisterMonoModulesv in RegisterMonoModules.o
"__nativeToolkitDeactivateUI", referenced from:
__Z19RegisterMonoModulesv in RegisterMonoModules.o
"_CMSampleBufferGetImageBuffer", referenced from:
l2791 in libQCAR.a(libQCAR.a-armv7-master.o)
"_CVPixelBufferGetBaseAddressOfPlane", referenced from:
l2791 in libQCAR.a(libQCAR.a-armv7-master.o)
"_OBJC_CLASS_$_AVCaptureSession", referenced from:
objc-class-ref in libQCAR.a(libQCAR.a-armv7-master.o)
"_AVMediaTypeVideo", referenced from:
l2773 in libQCAR.a(libQCAR.a-armv7-master.o)
"_kCVPixelBufferPixelFormatTypeKey", referenced from:
l2773 in libQCAR.a(libQCAR.a-armv7-master.o)
"__nativeToolkitInit", referenced from:
__Z19RegisterMonoModulesv in RegisterMonoModules.o
"_OBJC_CLASS_$_AVCaptureDeviceInput", referenced from:
objc-class-ref in libQCAR.a(libQCAR.a-armv7-master.o)
"_OBJC_CLASS_$_AVCaptureDevice", referenced from:
objc-class-ref in libQCAR.a(libQCAR.a-armv7-master.o)
"_OBJC_CLASS_$_AVCaptureVideoDataOutput", referenced from:
objc-class-ref in libQCAR.a(libQCAR.a-armv7-master.o)
"_CMTimeMake", referenced from:
l2772 in libQCAR.a(libQCAR.a-armv7-master.o)
l2773 in libQCAR.a(libQCAR.a-armv7-master.o)
"_CVPixelBufferLockBaseAddress", referenced from:
l2791 in libQCAR.a(libQCAR.a-armv7-master.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Re: Errors in xcode 4.2 ios sdk 5

November 2, 2011 - 3:38am #4

Hi shivanraptor,

Obviously? I've just successfully built and run the ImageTargets sample app 'out-of-the-box' in Xcode 4.2 and against iOS SDK 5.0.

What problems are you seeing?

Re: Errors in xcode 4.2 ios sdk 5

November 1, 2011 - 8:29pm #3

Same here.

Obviously, the xCode 4.2 + iOS SDK 5 breaks the library of QCAR, making the library uncompilable .

Please help !

Re: Errors in xcode 4.2 ios sdk 5

October 26, 2011 - 3:52pm #2

Hi Michel,

It looks suspiciously like you've included these in a .m (Obj-C) file - you need to use a .mm extension so you can mix C++ and Obj-C.

Log in or register to post comments