zoukankan      html  css  js  c++  java
  • 集成百度地图报错41个解决方法(转)

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

    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)

    解决办法 将这里改为

  • 相关阅读:
    ListView具有多种item布局——实现微信对话列
    CSDN 2013年度博客之星评选——分享几张厦门杭州的美图
    不做旁观者,给博主最有力的支持——博客之星评选,期待您的支持,谢谢路过的朋友投上您宝贵的一票
    Android应用中使用及实现系统“分享”接口
    android手势创建及识别
    JSON数据源的多值参数实现
    葡萄城报表本地设计器
    如何设计带查询条件的报表
    巧用SQL语句补足不完全数据报表
    表格数据分组报表
  • 原文地址:https://www.cnblogs.com/sunmair/p/6051305.html
Copyright © 2011-2022 走看看