一颗大牛的心  

集成百度地图碰到了这种报错

Undefined symbols for architecture x86_64:

  "_NSBackgroundColorAttributeName", referenced from:

      _baidu_vi::vi_map::GenTextImage(unsigned short*, unsigned int, unsigned int, unsigned int&, unsigned int&, unsigned int&, unsigned int&, unsigned long, unsigned long, unsigned long, unsigned int) in BaiduMapAPI_Base(VBGL.o)

  "_NSFontAttributeName", referenced from:

      _baidu_vi::vi_map::GenTextImage(unsigned short*, unsigned int, unsigned int, unsigned int&, unsigned int&, unsigned int&, unsigned int&, unsigned long, unsigned long, unsigned long, unsigned int) in BaiduMapAPI_Base(VBGL.o)

      _baidu_vi::vi_map::GetFontTextrueSizeOS(unsigned short*, unsigned int, unsigned short*) in BaiduMapAPI_Base(VBGL.o)

  "_NSForegroundColorAttributeName", referenced from:

      _baidu_vi::vi_map::GenTextImage(unsigned short*, unsigned int, unsigned int, unsigned int&, unsigned int&, unsigned int&, unsigned int&, unsigned long, unsigned long, unsigned long, unsigned int) in BaiduMapAPI_Base(VBGL.o)

  "_NSParagraphStyleAttributeName", referenced from:

      _baidu_vi::vi_map::GenTextImage(unsigned short*, unsigned int, unsigned int, unsigned int&, unsigned int&, unsigned int&, unsigned int&, unsigned long, unsigned long, unsigned long, unsigned int) in BaiduMapAPI_Base(VBGL.o)

  "_NSStrokeColorAttributeName", referenced from:

      _baidu_vi::vi_map::GenTextImage(unsigned short*, unsigned int, unsigned int, unsigned int&, unsigned int&, unsigned int&, unsigned int&, unsigned long, unsigned long, unsigned long, unsigned int) in BaiduMapAPI_Base(VBGL.o)

  "_NSStrokeWidthAttributeName", referenced from:

      _baidu_vi::vi_map::GenTextImage(unsigned short*, unsigned int, unsigned int, unsigned int&, unsigned int&, unsigned int&, unsigned int&, unsigned long, unsigned long, unsigned long, unsigned int) in BaiduMapAPI_Base(VBGL.o)

  "_OBJC_CLASS_$_NSMutableParagraphStyle", referenced from:

      objc-class-ref in BaiduMapAPI_Base(VBGL.o)

  "_OBJC_CLASS_$_UIApplication", referenced from:

      objc-class-ref in BaiduMapAPI_Base(BMLogService.o)

      objc-class-ref in BaiduMapAPI_Map(MapView.o)

      objc-class-ref in BaiduMapAPI_Utils(BMKNavigation.o)

      objc-class-ref in BaiduMapAPI_Utils(BMKOpenInternal.o)

      objc-class-ref in BaiduMapAPI_Base(VDeviceAPI.o)

  "_OBJC_CLASS_$_UIButton", referenced from:

      objc-class-ref in BaiduMapAPI_Base(StretchImageUtil.o)

      objc-class-ref in BaiduMapAPI_Base(BMLogService.o)

      objc-class-ref in BaiduMapAPI_Map(BMKActionPaopaoView.o)

  "_OBJC_CLASS_$_UIColor", referenced from:

      objc-class-ref in BaiduMapAPI_Base(BMLogService.o)

      objc-class-ref in BaiduMapAPI_Map(BaseMapScaleView.o)

      objc-class-ref in BaiduMapAPI_Map(BMKGradient.o)

      objc-class-ref in BaiduMapAPI_Map(BMKOverlayView.o)

      objc-class-ref in BaiduMapAPI_Map(BMKOverlayGLBasicView.o)

      objc-class-ref in BaiduMapAPI_Map(MapView.o)

      objc-class-ref in BaiduMapAPI_Map(BMKAnnotationView.o)

      ...

  "_OBJC_CLASS_$_UIControl", referenced from:

      _OBJC_CLASS_$_PaopaoButton in BaiduMapAPI_Map(PaopaoBaseView.o)

  "_OBJC_CLASS_$_UIDevice", referenced from:

      objc-class-ref in BaiduMapAPI_Location(BMKLocationService.o)

      objc-class-ref in BaiduMapAPI_Base(BMSDKDeviceInfo.o)

      objc-class-ref in BaiduMapAPI_Base(UIDeviceScreen.o)

      objc-class-ref in BaiduMapAPI_Base(BMAppTools.o)

      objc-class-ref in BaiduMapAPI_Base(BMSDKUDID.o)

      l_OBJC_$_CATEGORY_UIDevice_$_Helper in BaiduMapAPI_Base(UIDeviceHelper.o)

      objc-class-ref in BaiduMapAPI_Map(LocalMap.o)

      ...

     (maybe you meant: _OBJC_CLASS_$_UIDeviceScreen)

  "_OBJC_CLASS_$_UIFont", referenced from:

      objc-class-ref in BaiduMapAPI_Base(BMLogService.o)

      objc-class-ref in BaiduMapAPI_Map(BaseMapScaleView.o)

      objc-class-ref in BaiduMapAPI_Map(PaopaoBaseView.o)

      objc-class-ref in BaiduMapAPI_Base(VBGL.o)

  "_OBJC_CLASS_$_UIImage", referenced from:

      objc-class-ref in BaiduMapAPI_Base(BundleUtil.o)

      objc-class-ref in BaiduMapAPI_Base(StretchImageUtil.o)

      objc-class-ref in BaiduMapAPI_Base(ImageHelper.o)

      objc-class-ref in BaiduMapAPI_Map(BMKOverlayView.o)

      objc-class-ref in BaiduMapAPI_Map(CompassView.o)

      objc-class-ref in BaiduMapAPI_Map(BMKPinAnnotationView.o)

      objc-class-ref in BaiduMapAPI_Map(BMKMapView.o)

      ...

  "_OBJC_CLASS_$_UIImageView", referenced from:

      objc-class-ref in BaiduMapAPI_Base(StretchImageUtil.o)

      objc-class-ref in BaiduMapAPI_Map(CompassView.o)

      objc-class-ref in BaiduMapAPI_Map(BMKMapView.o)

  "_OBJC_CLASS_$_UILabel", referenced from:

      objc-class-ref in BaiduMapAPI_Map(PaopaoBaseView.o)

  "_OBJC_CLASS_$_UILongPressGestureRecognizer", referenced from:

      objc-class-ref in BaiduMapAPI_Map(TapDetectingView.o)

      objc-class-ref in BaiduMapAPI_Map(BMKAnnotationView.o)

  "_OBJC_CLASS_$_UIResponder", referenced from:

      _OBJC_CLASS_$_AppDelegate in AppDelegate.o

  "_OBJC_CLASS_$_UIScreen", referenced from:

      objc-class-ref in BaiduMapAPI_Base(BMSDKDeviceInfo.o)

      objc-class-ref in BaiduMapAPI_Base(UIDeviceScreen.o)

      objc-class-ref in BaiduMapAPI_Base(ImageHelper.o)

      objc-class-ref in BaiduMapAPI_Map(HardwareInfo.o)

      objc-class-ref in BaiduMapAPI_Map(BMMapViewManager.o)

      objc-class-ref in BaiduMapAPI_Base(AppMan.o)

      objc-class-ref in BaiduMapAPI_Base(VDeviceAPI.o)

      ...

  "_OBJC_CLASS_$_UITapGestureRecognizer", referenced from:

      objc-class-ref in BaiduMapAPI_Map(BMKAnnotationView.o)

  "_OBJC_CLASS_$_UITextView", referenced from:

      objc-class-ref in BaiduMapAPI_Base(BMLogService.o)

  "_OBJC_CLASS_$_UIView", referenced from:

      objc-class-ref in BaiduMapAPI_Base(BMLogService.o)

      _OBJC_CLASS_$_BaseMapScaleView in BaiduMapAPI_Map(BaseMapScaleView.o)

      _OBJC_CLASS_$_BMKOverlayView in BaiduMapAPI_Map(BMKOverlayView.o)

      _OBJC_CLASS_$_BMKActionPaopaoView in BaiduMapAPI_Map(BMKActionPaopaoView.o)

      _OBJC_CLASS_$_CompassView in BaiduMapAPI_Map(CompassView.o)

      objc-class-ref in BaiduMapAPI_Map(CompassView.o)

      _OBJC_CLASS_$__BaiduMap_EAGLView in BaiduMapAPI_Map(EAGLView.o)

      ...

  "_OBJC_CLASS_$_UIViewController", referenced from:

      _OBJC_CLASS_$_ViewController in ViewController.o

  "_OBJC_METACLASS_$_UIControl", referenced from:

      _OBJC_METACLASS_$_PaopaoButton in BaiduMapAPI_Map(PaopaoBaseView.o)

  "_OBJC_METACLASS_$_UIResponder", referenced from:

      _OBJC_METACLASS_$_AppDelegate in AppDelegate.o

  "_OBJC_METACLASS_$_UIView", referenced from:

      _OBJC_METACLASS_$_BaseMapScaleView in BaiduMapAPI_Map(BaseMapScaleView.o)

      _OBJC_METACLASS_$_BMKOverlayView in BaiduMapAPI_Map(BMKOverlayView.o)

      _OBJC_METACLASS_$_BMKActionPaopaoView in BaiduMapAPI_Map(BMKActionPaopaoView.o)

      _OBJC_METACLASS_$_CompassView in BaiduMapAPI_Map(CompassView.o)

      _OBJC_METACLASS_$__BaiduMap_EAGLView in BaiduMapAPI_Map(EAGLView.o)

      _OBJC_METACLASS_$_MapView in BaiduMapAPI_Map(MapView.o)

      _OBJC_METACLASS_$_TapDetectingView in BaiduMapAPI_Map(TapDetectingView.o)

      ...

  "_OBJC_METACLASS_$_UIViewController", referenced from:

      _OBJC_METACLASS_$_ViewController in ViewController.o

  "_UIApplicationDidBecomeActiveNotification", referenced from:

      -[BMKMapView registerNotification] in BaiduMapAPI_Map(BMKMapView.o)

      -[BMKMapView unRegisterNotification] in BaiduMapAPI_Map(BMKMapView.o)

  "_UIApplicationMain", referenced from:

      _main in main.o

  "_UIApplicationWillResignActiveNotification", referenced from:

      -[BMKMapView registerNotification] in BaiduMapAPI_Map(BMKMapView.o)

      -[BMKMapView unRegisterNotification] in BaiduMapAPI_Map(BMKMapView.o)

  "_UIDeviceOrientationDidChangeNotification", referenced from:

      -[BMKMapView registerNotification] in BaiduMapAPI_Map(BMKMapView.o)

      -[BMKMapView unRegisterNotification] in BaiduMapAPI_Map(BMKMapView.o)

  "_UIEdgeInsetsZero", referenced from:

      -[BMKMapView initSubView] in BaiduMapAPI_Map(BMKMapView.o)

  "_UIGraphicsBeginImageContext", referenced from:

      _baidu_vi::SaveBufferBmp2Png(char*, int, int, int, _baidu_vi::CVString&) in BaiduMapAPI_Base(VOSPng.o)

  "_UIGraphicsBeginImageContextWithOptions", referenced from:

      -[BMKMapView takeSnapshot:] in BaiduMapAPI_Map(BMKMapView.o)

  "_UIGraphicsEndImageContext", referenced from:

      -[BMKMapView takeSnapshot:] in BaiduMapAPI_Map(BMKMapView.o)

      _baidu_vi::SaveBufferBmp2Png(char*, int, int, int, _baidu_vi::CVString&) in BaiduMapAPI_Base(VOSPng.o)

  "_UIGraphicsGetCurrentContext", referenced from:

      -[BaseMapScaleView drawRect:] in BaiduMapAPI_Map(BaseMapScaleView.o)

      -[BMKOverlayView drawRect:] in BaiduMapAPI_Map(BMKOverlayView.o)

      -[BaiduMapEAGLView drawRect:] in BaiduMapAPI_Map(EAGLView.o)

      -[BaiduMapView drawRect:] in BaiduMapAPI_Map(BaiduMapView.o)

      -[BMKMapView takeSnapshot:] in BaiduMapAPI_Map(BMKMapView.o)

      -[SingleCircleView drawRect:] in BaiduMapAPI_Map(LocationView.o)

      _baidu_vi::SaveBufferBmp2Png(char*, int, int, int, _baidu_vi::CVString&) in BaiduMapAPI_Base(VOSPng.o)

      ...

  "_UIGraphicsGetImageFromCurrentImageContext", referenced from:

      -[BMKMapView takeSnapshot:] in BaiduMapAPI_Map(BMKMapView.o)

      _baidu_vi::SaveBufferBmp2Png(char*, int, int, int, _baidu_vi::CVString&) in BaiduMapAPI_Base(VOSPng.o)

  "_UIGraphicsPopContext", referenced from:

      _baidu_vi::vi_map::GenTextImage(unsigned short*, unsigned int, unsigned int, unsigned int&, unsigned int&, unsigned int&, unsigned int&, unsigned long, unsigned long, unsigned long, unsigned int) in BaiduMapAPI_Base(VBGL.o)

  "_UIGraphicsPushContext", referenced from:

      _baidu_vi::vi_map::GenTextImage(unsigned short*, unsigned int, unsigned int, unsigned int&, unsigned int&, unsigned int&, unsigned int&, unsigned long, unsigned long, unsigned long, unsigned int) in BaiduMapAPI_Base(VBGL.o)

  "_UIImagePNGRepresentation", referenced from:

      _baidu_vi::SaveBufferBmp2Png(char*, int, int, int, _baidu_vi::CVString&) in BaiduMapAPI_Base(VOSPng.o)

ld: symbol(s) not found for architecture x86_64

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

 

解决办法 将这里改为

posted on 2016-05-18 14:08  一颗大牛的心  阅读(8064)  评论(2编辑  收藏  举报