Log in or register to post comments

Linking error: Undefined symbols for architecture armv7

November 8, 2013 - 2:25am #1

I try to move vuforia-->ImageTarget to my custome project. I switch .m filles to .mm files (AppDelegate, ViewController) becouse of the errors, but now I get this  errors:

Undefined symbols for architecture armv7:
  "QCAR::State::getTrackableResult(int) const", referenced from:
      -[EAGLView renderFrameQCAR] in EAGLView.o
  "QCAR::Tool::convertPose2GLMatrix(QCAR::Matrix34F const&)", referenced from:
      -[EAGLView renderFrameQCAR] in EAGLView.o
  "QCAR::State::~State()", referenced from:
      -[EAGLView renderFrameQCAR] in EAGLView.o
  "QCAR::Renderer::getInstance()", referenced from:
      -[QCARutils configureVideoBackground] in QCARutils.o
      -[EAGLView renderFrameQCAR] in EAGLView.o
  "QCAR::setInitParameters(int)", referenced from:
      -[QCARutils initQCAR] in QCARutils.o
  "QCAR::Tool::getProjectionGL(QCAR::CameraCalibration const&, float, float)", referenced from:
      -[QCARutils startCamera] in QCARutils.o
  "QCAR::State::getNumTrackableResults() const", referenced from:
      -[EAGLView renderFrameQCAR] in EAGLView.o
  "QCAR::TrackerManager::getInstance()", referenced from:
      -[QCARutils initTracker] in QCARutils.o
      -[QCARutils startCamera] in QCARutils.o
      -[QCARutils stopCamera] in QCARutils.o
      -[QCARutils unloadDataSet:] in QCARutils.o
      -[QCARutils loadDataSet:] in QCARutils.o
      -[QCARutils deactivateDataSet:] in QCARutils.o
      -[QCARutils activateDataSet:] in QCARutils.o
      ...
  "QCAR::onSurfaceCreated()", referenced from:
      -[QCARutils initApplication] in QCARutils.o
  "QCAR::CameraDevice::getInstance()", referenced from:
      -[QCARutils cameraSetTorchMode:] in QCARutils.o
      -[QCARutils cameraSetContinuousAFMode:] in QCARutils.o
      -[QCARutils cameraPerformAF] in QCARutils.o
      -[QCARutils startCamera] in QCARutils.o
      -[QCARutils stopCamera] in QCARutils.o
      -[QCARutils configureVideoBackground] in QCARutils.o
  "QCAR::init()", referenced from:
      -[QCARutils initQCAR] in QCARutils.o
  "QCAR::onResume()", referenced from:
      -[QCARutils resumeAR] in QCARutils.o
      -[QCARutils updateApplicationStatus:] in QCARutils.o
  "QCAR::onPause()", referenced from:
      -[QCARutils pauseAR] in QCARutils.o
  "QCAR::onSurfaceChanged(int, int)", referenced from:
      -[QCARutils postInitQCAR] in QCARutils.o
  "QCAR::deinit()", referenced from:
      -[QCARutils destroyAR] in QCARutils.o
  "QCAR::requiresAlpha()", referenced from:
      -[AR_EAGLView initRendering] in AR_EAGLView.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

 

I add #import "ImageTargetsQCARutils.h" to AppDelegate. And try to run it. I also check if I import all librarys to Frameworks and the libraries are the same.

 

Linking error: Undefined symbols for architecture armv7

November 11, 2013 - 3:13am #6

Good to hear :)

N

Linking error: Undefined symbols for architecture armv7

November 9, 2013 - 1:30am #5

I did not find the problem, so I try to import the Vuforia again from beginning and now it works fine. Thanks for your help.

Linking error: Undefined symbols for architecture armv7

November 8, 2013 - 8:24am #4

Well, the link errors are indicating that it is not picking up the libraries, so maybe its worth checking your xcode project against the samples to see where it is different?

 

N

Linking error: Undefined symbols for architecture armv7

November 8, 2013 - 8:10am #3

I build for device. I have libQCAR.a in Link Binary With Libraries (if you mean this by "picking up").

Linking error: Undefined symbols for architecture armv7

November 8, 2013 - 3:45am #2

Firstly, make sure you are building for the device, not the simulator.

Second, make sure it is picking up the libQCAR.a

 

N

Log in or register to post comments