Log in or register to post comments

Undefined symbols for architecture armv7

July 9, 2012 - 9:45am #1

So I've been trying to integrate the QCAR library into an existing iOS app. I am using Xcode 4.3.3 and iOS 5. I have gotten all classes into build phases. Here is what I get when I bring over the ImageTargets class files to my app: 

 

Undefined symbols for architecture armv7:

  "_SecItemAdd", referenced from:

      l2920 in libQCAR.a(libQCAR.a-armv7-master.o)

  "_kSecReturnRef", referenced from:

      l2920 in libQCAR.a(libQCAR.a-armv7-master.o)

  "_kSecValueData", referenced from:

      l2920 in libQCAR.a(libQCAR.a-armv7-master.o)

  "_SecItemDelete", referenced from:

      l2920 in libQCAR.a(libQCAR.a-armv7-master.o)

  "_CVPixelBufferUnlockBaseAddress", referenced from:

      l2893 in libQCAR.a(libQCAR.a-armv7-master.o)

  "_SecKeyDecrypt", referenced from:

      l2920 in libQCAR.a(libQCAR.a-armv7-master.o)

  "_kSecAttrKeyClass", referenced from:

      l2920 in libQCAR.a(libQCAR.a-armv7-master.o)

  "_CVPixelBufferGetHeight", referenced from:

      l2893 in libQCAR.a(libQCAR.a-armv7-master.o)

  "_kSecAttrKeyClassPublic", referenced from:

      l2920 in libQCAR.a(libQCAR.a-armv7-master.o)

  "_CMSampleBufferGetImageBuffer", referenced from:

      l2893 in libQCAR.a(libQCAR.a-armv7-master.o)

  "_kSecClassKey", referenced from:

      l2920 in libQCAR.a(libQCAR.a-armv7-master.o)

  "_SecItemCopyMatching", referenced from:

      l2920 in libQCAR.a(libQCAR.a-armv7-master.o)

  "_OBJC_CLASS_$_AVCaptureConnection", referenced from:

      objc-class-ref in libQCAR.a(libQCAR.a-armv7-master.o)

  "_SCNetworkReachabilityCreateWithAddress", referenced from:

      l2799 in libQCAR.a(libQCAR.a-armv7-master.o)

  "_CVPixelBufferGetBaseAddressOfPlane", referenced from:

      l2893 in libQCAR.a(libQCAR.a-armv7-master.o)

  "_kSecClass", referenced from:

      l2920 in libQCAR.a(libQCAR.a-armv7-master.o)

  "_CVPixelBufferGetDataSize", referenced from:

      l2893 in libQCAR.a(libQCAR.a-armv7-master.o)

  "_SecKeyGetBlockSize", referenced from:

      l2920 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:

      +[OverlayViewController determineCameraCapabilities:] in OverlayViewController.o

      l2876 in libQCAR.a(libQCAR.a-armv7-master.o)

      l2888 in libQCAR.a(libQCAR.a-armv7-master.o)

      l2889 in libQCAR.a(libQCAR.a-armv7-master.o)

  "_kCVPixelBufferPixelFormatTypeKey", referenced from:

      l2884 in libQCAR.a(libQCAR.a-armv7-master.o)

      l2885 in libQCAR.a(libQCAR.a-armv7-master.o)

      l2888 in libQCAR.a(libQCAR.a-armv7-master.o)

      l2889 in libQCAR.a(libQCAR.a-armv7-master.o)

  "_kSecAttrKeyTypeRSA", referenced from:

      l2920 in libQCAR.a(libQCAR.a-armv7-master.o)

  "_OBJC_CLASS_$_AVCaptureDeviceInput", referenced from:

      objc-class-ref in libQCAR.a(libQCAR.a-armv7-master.o)

  "_kSecReturnPersistentRef", referenced from:

      l2920 in libQCAR.a(libQCAR.a-armv7-master.o)

  "_OBJC_CLASS_$_AVCaptureDevice", referenced from:

      objc-class-ref in OverlayViewController.o

      objc-class-ref in libQCAR.a(libQCAR.a-armv7-master.o)

  "_kSecAttrCanDecrypt", referenced from:

      l2920 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:

      l2888 in libQCAR.a(libQCAR.a-armv7-master.o)

  "_SCNetworkReachabilityGetFlags", referenced from:

      l2799 in libQCAR.a(libQCAR.a-armv7-master.o)

  "_CVPixelBufferLockBaseAddress", referenced from:

      l2893 in libQCAR.a(libQCAR.a-armv7-master.o)

  "_kSecAttrKeyType", referenced from:

      l2920 in libQCAR.a(libQCAR.a-armv7-master.o)

  "_kSecAttrApplicationTag", referenced from:

      l2920 in libQCAR.a(libQCAR.a-armv7-master.o)

  "_CVPixelBufferGetWidth", referenced from:

      l2893 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)

Undefined symbols for architecture armv7

August 9, 2014 - 6:07pm #4

I am getting the following errors when trying to import Vuforia into my own project. Anyone?

 

Undefined symbols for architecture armv7s:

  "QCAR::State::getTrackableResult(int) const", referenced from:

      -[CloudRecoEAGLView renderFrameQCAR] in CloudRecoEAGLView.o

  "QCAR::State::~State()", referenced from:

      -[CloudRecoEAGLView renderFrameQCAR] in CloudRecoEAGLView.o

  "QCAR::deinit()", referenced from:

      -[SampleApplicationSession stopAR:] in SampleApplicationSession.o

  "QCAR::Renderer::getInstance()", referenced from:

      -[SampleApplicationSession configureVideoBackgroundWithViewWidth:andHeight:] in SampleApplicationSession.o

      -[CloudRecoEAGLView renderFrameQCAR] in CloudRecoEAGLView.o

  "QCAR::onSurfaceChanged(int, int)", referenced from:

      -[SampleApplicationSession prepareAR] in SampleApplicationSession.o

  "QCAR::setRotation(int)", referenced from:

      -[SampleApplicationSession prepareAR] in SampleApplicationSession.o

  "QCAR::onPause()", referenced from:

      -[SampleApplicationSession pauseAR:] in SampleApplicationSession.o

      -[SampleApplicationSession stopAR:] in SampleApplicationSession.o

  "QCAR::Tool::getProjectionGL(QCAR::CameraCalibration const&, float, float)", referenced from:

      -[SampleApplicationSession startCamera:viewWidth:andHeight:error:] in SampleApplicationSession.o

  "QCAR::setInitParameters(int)", referenced from:

      -[SampleApplicationSession initQCARInBackground] in SampleApplicationSession.o

  "QCAR::onSurfaceCreated()", referenced from:

      -[SampleApplicationSession prepareAR] in SampleApplicationSession.o

  "QCAR::Tool::convertPose2GLMatrix(QCAR::Matrix34F const&)", referenced from:

      -[CloudRecoEAGLView renderFrameQCAR] in CloudRecoEAGLView.o

  "QCAR::ImageTracker::getClassType()", referenced from:

      -[PPScanViewController doInitTrackers] in PPScanViewController.o

      -[PPScanViewController doLoadTrackersData] in PPScanViewController.o

      -[PPScanViewController doStartTrackers] in PPScanViewController.o

      -[PPScanViewController doStopTrackers] in PPScanViewController.o

      -[PPScanViewController doUnloadTrackersData] in PPScanViewController.o

      -[PPScanViewController onQCARUpdate:] in PPScanViewController.o

      -[PPScanViewController toggleVisualSearch:] in PPScanViewController.o

      ...

  "QCAR::onResume()", referenced from:

      -[SampleApplicationSession resumeAR:] in SampleApplicationSession.o

  "QCAR::CameraDevice::getInstance()", referenced from:

      -[PPScanViewController resumeAR] in PPScanViewController.o

      -[PPScanViewController onInitARDone:] in PPScanViewController.o

      -[PPScanViewController cameraPerformAutoFocus] in PPScanViewController.o

      -[PPScanViewController menuProcess:command:value:] in PPScanViewController.o

      -[SampleApplicationSession resumeAR:] in SampleApplicationSession.o

      -[SampleApplicationSession pauseAR:] in SampleApplicationSession.o

      -[SampleApplicationSession configureVideoBackgroundWithViewWidth:andHeight:] in SampleApplicationSession.o

      ...

  "QCAR::init()", referenced from:

      -[SampleApplicationSession initQCARInBackground] in SampleApplicationSession.o

  "QCAR::registerCallback(QCAR::UpdateCallback*)", referenced from:

      -[SampleApplicationSession initWithDelegate:] in SampleApplicationSession.o

  "QCAR::State::getNumTrackableResults() const", referenced from:

      -[CloudRecoEAGLView renderFrameQCAR] in CloudRecoEAGLView.o

  "QCAR::TrackerManager::getInstance()", referenced from:

      -[PPScanViewController doInitTrackers] in PPScanViewController.o

      -[PPScanViewController doLoadTrackersData] in PPScanViewController.o

      -[PPScanViewController doStartTrackers] in PPScanViewController.o

      -[PPScanViewController doStopTrackers] in PPScanViewController.o

      -[PPScanViewController doUnloadTrackersData] in PPScanViewController.o

      -[PPScanViewController onQCARUpdate:] in PPScanViewController.o

      -[PPScanViewController toggleVisualSearch:] in PPScanViewController.o

      ...

ld: symbol(s) not found for architecture armv7s

clang: error: linker command failed with exit code 1 (use -v to see invocation)

Undefined symbols for architecture armv7

July 1, 2014 - 4:58am #3

I too am struggling with Undefined symbols for architecture armv7 errors.

It has happening after I import SampleApplicationSession in my project.

Undefined symbols for architecture armv7

July 9, 2012 - 10:25am #2

Scratch this forum. It seems like I forgot to add the frameworks when I added the .a library. Wow, what a noob error.

Log in or register to post comments