2013-07-29 11 views
6

Provo ad importare SDK di google maps e aggiungo tutta la libreria come spiegato nel sito di google maps. Mi aiuti per favore! :)Simboli indefiniti per architettura i386: "_GLKMatrix3Identity", referenziato da:

Undefined symbols for architecture i386: 
"_GLKMatrix3Identity", referenced from: 
    gmscore::vector::GLLineGroup::SetTransform(gmscore::math::Matrix4f const&, gmscore::base::reffed_ptr<gmscore::vector::Camera> const&) in GoogleMaps(GLLineGroup.o) 
    gmscore::vector::GLAlphaOnlyTextureShaderProgram::GLAlphaOnlyTextureShaderProgram(bool) in GoogleMaps(GLBasicShaderState.o) 
    gmscore::renderer::TextureState::TextureState(unsigned int) in GoogleMaps(TextureState.o) 
    gmscore::renderer::TextureState::TextureState(unsigned int) in GoogleMaps(TextureState.o) 
    gmscore::renderer::TextureState::TextureState(gmscore::base::reffed_ptr<gmscore::renderer::ImageData> const&) in GoogleMaps(TextureState.o) 
    gmscore::renderer::TextureState::TextureState(gmscore::base::reffed_ptr<gmscore::renderer::ImageData> const&, gmscore::renderer::TextureState::TextureUnit) in GoogleMaps(TextureState.o) 
    gmscore::renderer::TextureState::TextureState(gmscore::base::reffed_ptr<gmscore::renderer::ImageData> const&, gmscore::renderer::TextureState::TextureUnit, bool, gmscore::renderer::TextureState::Filter, gmscore::renderer::TextureState::Filter) in GoogleMaps(TextureState.o) 
    ... 
    gmscore::vector::GLLineGroup::SetTransform(gmscore::math::Matrix4f const&, gmscore::base::reffed_ptr<gmscore::vector::Camera> const&) in GoogleMaps(GLLineGroup.o) 
    gmscore::vector::GLAlphaOnlyTextureShaderProgram::GLAlphaOnlyTextureShaderProgram(bool) in GoogleMaps(GLBasicShaderState.o) 
    gmscore::renderer::TextureState::TextureState(unsigned int) in GoogleMaps(TextureState.o) 
    gmscore::renderer::TextureState::TextureState(unsigned int) in GoogleMaps(TextureState.o) 
    gmscore::renderer::TextureState::TextureState(gmscore::base::reffed_ptr<gmscore::renderer::ImageData> const&) in GoogleMaps(TextureState.o) 
    gmscore::renderer::TextureState::TextureState(gmscore::base::reffed_ptr<gmscore::renderer::ImageData> const&, gmscore::renderer::TextureState::TextureUnit) in GoogleMaps(TextureState.o) 
    gmscore::renderer::TextureState::TextureState(gmscore::base::reffed_ptr<gmscore::renderer::ImageData> const&, gmscore::renderer::TextureState::TextureUnit, bool, gmscore::renderer::TextureState::Filter, gmscore::renderer::TextureState::Filter) in GoogleMaps(TextureState.o) 
    ... 
    gmscore::vector::GLLineGroup::SetTransform(gmscore::math::Matrix4f const&, gmscore::base::reffed_ptr<gmscore::vector::Camera> const&) in GoogleMaps(GLLineGroup.o) 
    gmscore::vector::GLAlphaOnlyTextureShaderProgram::GLAlphaOnlyTextureShaderProgram(bool) in GoogleMaps(GLBasicShaderState.o) 
    gmscore::renderer::TextureState::TextureState(unsigned int) in GoogleMaps(TextureState.o) 
    gmscore::renderer::TextureState::TextureState(unsigned int) in GoogleMaps(TextureState.o) 
    gmscore::renderer::TextureState::TextureState(gmscore::base::reffed_ptr<gmscore::renderer::ImageData> const&) in GoogleMaps(TextureState.o) 
    gmscore::renderer::TextureState::TextureState(gmscore::base::reffed_ptr<gmscore::renderer::ImageData> const&, gmscore::renderer::TextureState::TextureUnit) in GoogleMaps(TextureState.o) 
    gmscore::renderer::TextureState::TextureState(gmscore::base::reffed_ptr<gmscore::renderer::ImageData> const&, gmscore::renderer::TextureState::TextureUnit, bool, gmscore::renderer::TextureState::Filter, gmscore::renderer::TextureState::Filter) in GoogleMaps(TextureState.o) 
    ... 
    gmscore::vector::GLLineGroup::SetTransform(gmscore::math::Matrix4f const&, gmscore::base::reffed_ptr<gmscore::vector::Camera> const&) in GoogleMaps(GLLineGroup.o) 
    gmscore::vector::GLAlphaOnlyTextureShaderProgram::GLAlphaOnlyTextureShaderProgram(bool) in GoogleMaps(GLBasicShaderState.o) 
    gmscore::renderer::TextureState::TextureState(unsigned int) in GoogleMaps(TextureState.o) 
    gmscore::renderer::TextureState::TextureState(unsigned int) in GoogleMaps(TextureState.o) 
    gmscore::renderer::TextureState::TextureState(gmscore::base::reffed_ptr<gmscore::renderer::ImageData> const&) in GoogleMaps(TextureState.o) 
    gmscore::renderer::TextureState::TextureState(gmscore::base::reffed_ptr<gmscore::renderer::ImageData> const&, gmscore::renderer::TextureState::TextureUnit) in GoogleMaps(TextureState.o) 
    gmscore::renderer::TextureState::TextureState(gmscore::base::reffed_ptr<gmscore::renderer::ImageData> const&, gmscore::renderer::TextureState::TextureUnit, bool, gmscore::renderer::TextureState::Filter, gmscore::renderer::TextureState::Filter) in GoogleMaps(TextureState.o) 
    ... 
"_GLKMatrix4Identity", referenced from: 
    -[GMSTilesEntityProvider updateAndTransformTile:camera:renderer:behavior:] in GoogleMaps(GMSTilesEntityProvider.o) 
    -[GMSGLVectorTile applyTransform:camera:] in GoogleMaps(GMSGLVectorTile.o) 
    (anonymous namespace)::PointsBehavior::Commit(gmscore::renderer::EntityRenderer*) in GoogleMaps(GMSPointsEntityProvider.o) 
    (anonymous namespace)::StickerBehavior::Commit(gmscore::renderer::EntityRenderer*) in GoogleMaps(GMSStickersEntityProvider.o) 
    (anonymous namespace)::BubbleBehavior::Commit(gmscore::renderer::EntityRenderer*) in GoogleMaps(GMSBubbleEntityProvider.o) 
    gmscore::streetview::Panorama::Panorama(int, int, int, int, int, int) in GoogleMaps(Panorama.o) 
    gmscore::vector::UpdateMyLocationBehavior::Commit(gmscore::renderer::EntityRenderer*) in GoogleMaps(GLMyLocation.o) 
    ... 
    -[GMSTilesEntityProvider updateAndTransformTile:camera:renderer:behavior:] in GoogleMaps(GMSTilesEntityProvider.o) 
    -[GMSGLVectorTile applyTransform:camera:] in GoogleMaps(GMSGLVectorTile.o) 
    (anonymous namespace)::PointsBehavior::Commit(gmscore::renderer::EntityRenderer*) in GoogleMaps(GMSPointsEntityProvider.o) 
    (anonymous namespace)::StickerBehavior::Commit(gmscore::renderer::EntityRenderer*) in GoogleMaps(GMSStickersEntityProvider.o) 
    (anonymous namespace)::BubbleBehavior::Commit(gmscore::renderer::EntityRenderer*) in GoogleMaps(GMSBubbleEntityProvider.o) 
    gmscore::streetview::Panorama::Panorama(int, int, int, int, int, int) in GoogleMaps(Panorama.o) 
    gmscore::vector::UpdateMyLocationBehavior::Commit(gmscore::renderer::EntityRenderer*) in GoogleMaps(GLMyLocation.o) 
    ... 
    -[GMSTilesEntityProvider updateAndTransformTile:camera:renderer:behavior:] in GoogleMaps(GMSTilesEntityProvider.o) 
    -[GMSGLVectorTile applyTransform:camera:] in GoogleMaps(GMSGLVectorTile.o) 
    (anonymous namespace)::PointsBehavior::Commit(gmscore::renderer::EntityRenderer*) in GoogleMaps(GMSPointsEntityProvider.o) 
    (anonymous namespace)::StickerBehavior::Commit(gmscore::renderer::EntityRenderer*) in GoogleMaps(GMSStickersEntityProvider.o) 
    (anonymous namespace)::BubbleBehavior::Commit(gmscore::renderer::EntityRenderer*) in GoogleMaps(GMSBubbleEntityProvider.o) 
    gmscore::streetview::Panorama::Panorama(int, int, int, int, int, int) in GoogleMaps(Panorama.o) 
    gmscore::vector::UpdateMyLocationBehavior::Commit(gmscore::renderer::EntityRenderer*) in GoogleMaps(GLMyLocation.o) 
    ... 
    -[GMSTilesEntityProvider updateAndTransformTile:camera:renderer:behavior:] in GoogleMaps(GMSTilesEntityProvider.o) 
    -[GMSGLVectorTile applyTransform:camera:] in GoogleMaps(GMSGLVectorTile.o) 
    (anonymous namespace)::PointsBehavior::Commit(gmscore::renderer::EntityRenderer*) in GoogleMaps(GMSPointsEntityProvider.o) 
    (anonymous namespace)::StickerBehavior::Commit(gmscore::renderer::EntityRenderer*) in GoogleMaps(GMSStickersEntityProvider.o) 
    (anonymous namespace)::BubbleBehavior::Commit(gmscore::renderer::EntityRenderer*) in GoogleMaps(GMSBubbleEntityProvider.o) 
    gmscore::streetview::Panorama::Panorama(int, int, int, int, int, int) in GoogleMaps(Panorama.o) 
    gmscore::vector::UpdateMyLocationBehavior::Commit(gmscore::renderer::EntityRenderer*) in GoogleMaps(GLMyLocation.o) 
    ... 
    -[GMSTilesEntityProvider updateAndTransformTile:camera:renderer:behavior:] in GoogleMaps(GMSTilesEntityProvider.o) 
    -[GMSGLVectorTile applyTransform:camera:] in GoogleMaps(GMSGLVectorTile.o) 
    (anonymous namespace)::PointsBehavior::Commit(gmscore::renderer::EntityRenderer*) in GoogleMaps(GMSPointsEntityProvider.o) 
    (anonymous namespace)::StickerBehavior::Commit(gmscore::renderer::EntityRenderer*) in GoogleMaps(GMSStickersEntityProvider.o) 
    (anonymous namespace)::BubbleBehavior::Commit(gmscore::renderer::EntityRenderer*) in GoogleMaps(GMSBubbleEntityProvider.o) 
    gmscore::streetview::Panorama::Panorama(int, int, int, int, int, int) in GoogleMaps(Panorama.o) 
    gmscore::vector::UpdateMyLocationBehavior::Commit(gmscore::renderer::EntityRenderer*) in GoogleMaps(GLMyLocation.o) 
    ... 
    -[GMSTilesEntityProvider updateAndTransformTile:camera:renderer:behavior:] in GoogleMaps(GMSTilesEntityProvider.o) 
    -[GMSGLVectorTile applyTransform:camera:] in GoogleMaps(GMSGLVectorTile.o) 
    (anonymous namespace)::PointsBehavior::Commit(gmscore::renderer::EntityRenderer*) in GoogleMaps(GMSPointsEntityProvider.o) 
    (anonymous namespace)::StickerBehavior::Commit(gmscore::renderer::EntityRenderer*) in GoogleMaps(GMSStickersEntityProvider.o) 
    (anonymous namespace)::BubbleBehavior::Commit(gmscore::renderer::EntityRenderer*) in GoogleMaps(GMSBubbleEntityProvider.o) 
    gmscore::streetview::Panorama::Panorama(int, int, int, int, int, int) in GoogleMaps(Panorama.o) 
    gmscore::vector::UpdateMyLocationBehavior::Commit(gmscore::renderer::EntityRenderer*) in GoogleMaps(GLMyLocation.o) 
    ... 
    -[GMSTilesEntityProvider updateAndTransformTile:camera:renderer:behavior:] in GoogleMaps(GMSTilesEntityProvider.o) 
    -[GMSGLVectorTile applyTransform:camera:] in GoogleMaps(GMSGLVectorTile.o) 
    (anonymous namespace)::PointsBehavior::Commit(gmscore::renderer::EntityRenderer*) in GoogleMaps(GMSPointsEntityProvider.o) 
    (anonymous namespace)::StickerBehavior::Commit(gmscore::renderer::EntityRenderer*) in GoogleMaps(GMSStickersEntityProvider.o) 
    (anonymous namespace)::BubbleBehavior::Commit(gmscore::renderer::EntityRenderer*) in GoogleMaps(GMSBubbleEntityProvider.o) 
    gmscore::streetview::Panorama::Panorama(int, int, int, int, int, int) in GoogleMaps(Panorama.o) 
    gmscore::vector::UpdateMyLocationBehavior::Commit(gmscore::renderer::EntityRenderer*) in GoogleMaps(GLMyLocation.o) 
    ... 
    ... 
"_GLKMatrix4Invert", referenced from: 
    gmscore::streetview::Camera::Unproject(gmscore::math::Vector2f const&, bool*) in GoogleMaps(Camera-B046EE312980DB98.o) 
    gmscore::vector::Camera::UpdateInternals() in GoogleMaps(Camera-3E3856CABC8A9C74.o) 
    gmscore::renderer::Camera3D::SetTransform(gmscore::math::Matrix4f const&) in GoogleMaps(Camera3D.o) 
    gmscore::renderer::Camera3D::Transform() in GoogleMaps(Camera3D.o) 
"_OBJC_CLASS_$_GLKView", referenced from: 
    _OBJC_CLASS_$_GMSEntityRendererView in GoogleMaps(GMSEntityRendererView.o) 
"_OBJC_METACLASS_$_GLKView", referenced from: 
    _OBJC_METACLASS_$_GMSEntityRendererView in GoogleMaps(GMSEntityRendererView.o) 
ld: symbol(s) not found for architecture i386 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 

risposta

26

Speriamo che hai risolto questo ormai. Il problema che stavi incontrando è che non hai GLKit.framework collegato nelle fasi di compilazione.

È necessario controllare la pagina Getting Started per l'elenco completo delle istruzioni di installazione, ma il passaggio pertinente è riportato di seguito.

Aprire la scheda fasi di creazione, e nel giro di collegamento binario con le librerie, aggiungere i seguenti quadri:

  • AVFoundation.framework
  • CoreData.framework
  • CoreLocation.framework
  • CoreText. quadro
  • GLKit.framework
  • ImageIO.framework
  • libC++. Dylib
  • libicucore.dylib
  • libz.dylib
  • OpenGLES.framework
  • QuartzCore.framework
  • SystemConfiguration.framework
+0

ha funzionato bene ..... – Babul

+0

fantastico, grazie !! – davvilla

+0

Ha funzionato, grazie –

1

Sopra Frameworks Inoltre

Ho notato il dopo aver aggiornato un'app che utilizzava il vecchio SDK di Google Maps installato manualmente:

È necessario collegarsi a CoreBluetooth.framework e Accelerate.framework in Fasi di creazione -> Link Bundle con librerie. Il flag -all_load sotto "Altri linker flag" causerà errori di "simbolo duplicato". (Utilizzare invece -ObjC.) Se si utilizza il metodo di installazione di CocoaPods (secondo le istruzioni correnti), è necessario prendere i framework richiesti ma sarà ancora incasinato da -all_load.

Problemi correlati