0

当我将 OpenCV 添加到项目中时,会发生“架构 armv7 的未定义符号”。

即使我删除了所有 OpenCV 代码,它也不会编译。

OpenGL 在添加 Opencv 之前可以正常工作。

我读过THIS QUESTION,但它对我不起作用。有谁知道这个?

    Undefined symbols for architecture armv7:
  "opengl_texture_destroy(ARDroneOpenGLTexture*)", referenced from:
      -[OpenGLSprite dealloc] in OpenGLSprite.o
  "opengl_texture_draw(ARDroneOpenGLTexture*, unsigned int)", referenced from:
      -[OpenGLSprite drawSelf] in OpenGLSprite.o
  "opengl_texture_init(ARDroneOpenGLTexture*)", referenced from:
      -[OpenGLSprite initWithFrame:withScaling:withProgram:withDrone:withDelegate:] in OpenGLSprite.o
  "opengl_texture_scale_compute(ARDroneOpenGLTexture*, ARDroneSize, ARDroneScaling)", referenced from:
      -[OpenGLSprite initWithFrame:withScaling:withProgram:withDrone:withDelegate:] in OpenGLSprite.o
      -[OpenGLSprite checkNewResolution] in OpenGLSprite.o
      -[OpenGLSprite setScaling:] in OpenGLSprite.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
4

0 回答 0