By Catherine
on Tue, 05/06/2014 - 18:17
Hi,
I am using Qualcomm's Vuforia Augmented Reality solution in my iOS project. I integrated their library and files into my application. But, I'm struggled with the build error for long time, couldn't be able to fix it. Attached ref image. The actual error is Unknown type name 'namespace'
in the Matrices.h
file which gets accessed from SampleApplicationSession file. I know this error comes because of C++ access, so we need to rename the extention to .mm file which are trying to access c++ functions. I actually changed the files into .mm including this SampleApplicationSession.mm. But, still I'm getting the namespace error. Could someone please guide me how to fix this?
iOS: Unknown type name 'namespace' in SampleApplicationSession
The problem occurs at the "topmost import". In other words, if you import ANYTHING from the sample code into a pre-existing code base, that's where the problem lies. You need to change that file to be a .mm.
iOS: Unknown type name 'namespace' in SampleApplicationSession
thanks for the reply! This is where I tried to find out to change to .mm, but the thing is, i have never called yet any of this vuforia aug. reality functions inside my application files yet. I just integrated aug. files and trying to make the build working as of now, without success.
iOS: Unknown type name 'namespace' in SampleApplicationSession
No, I definitely didn't have any problems until I did a #import of one of their headers into one of my VC's.
iOS: Unknown type name 'namespace' in SampleApplicationSession
I forgot to mention. It got solved after i deleted manually .mm file and put it back and build again freshly.
iOS: Unknown type name 'namespace' in SampleApplicationSession
Excellent!
I suspect that basically had the same effect as the pop-up I was mentioning.
iOS: Unknown type name 'namespace' in SampleApplicationSession
Just FYI: I had this problem mysteriously re-appear when I tried to do my distrubution build yesterday.
Had to do all the -fno and path settings over again in the other target.
Targets are very annoying :-(
I have the same problem.Did
I have the same problem.Did you get it ?
I have the same problem.Did
I have the same problem.Did you get it ?