魔趣论坛

 找回密码
 注册账号
通过您的新浪微博帐号登录
QQ登录
查看: 1848|回复: 7

[机油问答] ?????????????

[复制链接]
  • TA的每日心情
    奋斗
    2015-10-7 15:42
  • 签到天数: 7 天

    连续签到: 1 天

    [LV.3]偶尔看看II

    升级   3%

    发表于 2015-6-22 18:01:04 | 显示全部楼层 |阅读模式
    1. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:66:14: error: 'GpsMeasurementInterface' does not name a type
    2. static const GpsMeasurementInterface* sGpsMeasurementInterface = NULL;
    3.               ^
    4. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:67:14: error: 'GpsNavigationMessageInterface' does not name a type
    5. static const GpsNavigationMessageInterface* sGpsNavigationMessageInterface = NULL;
    6.               ^
    7. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:68:14: error: 'GnssConfigurationInterface' does not name a type
    8. static const GnssConfigurationInterface* sGnssConfigurationInterface = NULL;
    9.               ^
    10. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp: In function 'void android::agps_status_callback(AGpsStatus*)':
    11. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:216:31: error: 'AGpsStatus_v3' was not declared in this scope
    12.      if (status_size == sizeof(AGpsStatus_v3)) {
    13.                                ^
    14. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:218:28: error: 'struct AGpsStatus' has no member named 'addr'
    15.        switch (agps_status->addr.ss_family)
    16.                             ^
    17. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:222:74: error: 'struct AGpsStatus' has no member named 'addr'
    18.              struct sockaddr_in *in = (struct sockaddr_in*)&(agps_status->addr);
    19.                                                                           ^
    20. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:238:77: error: 'struct AGpsStatus' has no member named 'addr'
    21.              struct sockaddr_in6 *in6 = (struct sockaddr_in6*)&(agps_status->addr);
    22.                                                                              ^
    23. In file included from system/core/include/cutils/log.h:1:0,
    24.                  from system/core/include/utils/Log.h:31,
    25.                  from frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:26:
    26. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:255:61: error: 'struct AGpsStatus' has no member named 'addr'
    27.            ALOGE("Invalid ss_family found: %d", agps_status->addr.ss_family);
    28.                                                              ^
    29. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:258:38: error: 'AGpsStatus_v2' was not declared in this scope
    30.      } else if (status_size >= sizeof(AGpsStatus_v2)) {
    31.                                       ^
    32. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:262:38: error: 'struct AGpsStatus' has no member named 'ipaddr'
    33.        uint32_t ipaddr = agps_status->ipaddr;
    34.                                       ^
    35. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:268:38: error: 'AGpsStatus_v1' was not declared in this scope
    36.      } else if (status_size >= sizeof(AGpsStatus_v1)) {
    37.                                       ^
    38. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp: In function 'void android::android_location_GpsLocationProvider_class_init_native(JNIEnv*, jclass)':
    39. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:501:9: error: 'sGpsMeasurementInterface' was not declared in this scope
    40.          sGpsMeasurementInterface =
    41.          ^
    42. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:502:20: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
    43.              (const GpsMeasurementInterface*)sGpsInterface->get_extension(GPS_MEASUREMENT_INTERFACE);
    44.                     ^
    45. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:502:20: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
    46. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:502:14: error: expected primary-expression before 'const'
    47.              (const GpsMeasurementInterface*)sGpsInterface->get_extension(GPS_MEASUREMENT_INTERFACE);
    48.               ^
    49. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:502:14: error: expected ')' before 'const'
    50. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:503:9: error: 'sGpsNavigationMessageInterface' was not declared in this scope
    51.          sGpsNavigationMessageInterface =
    52.          ^
    53. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:504:20: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
    54.              (const GpsNavigationMessageInterface*)sGpsInterface->get_extension(
    55.                     ^
    56. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:504:20: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
    57. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:504:14: error: expected primary-expression before 'const'
    58.              (const GpsNavigationMessageInterface*)sGpsInterface->get_extension(
    59.               ^
    60. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:504:14: error: expected ')' before 'const'
    61. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:506:9: error: 'sGnssConfigurationInterface' was not declared in this scope
    62.          sGnssConfigurationInterface =
    63.          ^
    64. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:507:20: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
    65.              (const GnssConfigurationInterface*)sGpsInterface->get_extension(
    66.                     ^
    67. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:507:20: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
    68. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:507:14: error: expected primary-expression before 'const'
    69.              (const GnssConfigurationInterface*)sGpsInterface->get_extension(
    70.               ^
    71. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:507:14: error: expected ')' before 'const'
    72. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp: In function 'void android::android_location_GpsLocationProvider_agps_data_conn_open(JNIEnv*, jobject, jstring, jint)':
    73. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:751:34: error: 'AGpsInterface_v2' was not declared in this scope
    74.      if (interface_size == sizeof(AGpsInterface_v2)) {
    75.                                   ^
    76. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:752:25: error: 'const struct AGpsInterface' has no member named 'data_conn_open_with_apn_ip_type'
    77.          sAGpsInterface->data_conn_open_with_apn_ip_type(apnStr, apnIpType);
    78.                          ^
    79. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:753:41: error: 'AGpsInterface_v1' was not declared in this scope
    80.      } else if (interface_size == sizeof(AGpsInterface_v1)) {
    81.                                          ^
    82. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:754:46: error: invalid conversion from 'const char*' to AGpsType {aka short int}' [-fpermissive]
    83.          sAGpsInterface->data_conn_open(apnStr);
    84.                                               ^
    85. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:754:46: error: too few arguments to function
    86. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp: In function 'void android::android_location_GpsLocationProvider_agps_data_conn_closed(JNIEnv*, jobject)':
    87. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:768:38: error: too few arguments to function
    88.      sAGpsInterface->data_conn_closed();
    89.                                       ^
    90. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp: In function 'void android::android_location_GpsLocationProvider_agps_data_conn_failed(JNIEnv*, jobject)':
    91. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:777:38: error: too few arguments to function
    92.      sAGpsInterface->data_conn_failed();
    93.                                       ^
    94. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp: At global scope:
    95. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:896:49: error: 'GpsClock' has not been declared
    96. static jobject translate_gps_clock(JNIEnv* env, GpsClock* clock) {
    97.                                                  ^
    98. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp: In function '_jobject* android::translate_gps_clock(JNIEnv*, int*)':
    99. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:904:5: error: 'GpsClockFlags' was not declared in this scope
    100.      GpsClockFlags flags = clock->flags;
    101.      ^
    102. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:904:19: error: expected ';' before 'flags'
    103.      GpsClockFlags flags = clock->flags;
    104.                    ^
    105. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:906:9: error: 'flags' was not declared in this scope
    106.      if (flags & GPS_CLOCK_HAS_LEAP_SECOND) {
    107.          ^
    108. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:906:17: error: 'GPS_CLOCK_HAS_LEAP_SECOND' was not declared in this scope
    109.      if (flags & GPS_CLOCK_HAS_LEAP_SECOND) {
    110.                  ^
    111. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:908:66: error: request for member 'leap_second' in '* clock', which is of non-class type 'int'
    112.          env->CallVoidMethod(gpsClockObject, setterMethod, clock->leap_second);
    113.                                                                   ^
    114. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:912:65: error: request for member 'type' in '* clock', which is of non-class type 'int'
    115.     env->CallVoidMethod(gpsClockObject, typeSetterMethod, clock->type);
    116.                                                                  ^
    117. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:915:62: error: request for member 'time_ns' in '* clock', which is of non-class type 'int'
    118.      env->CallVoidMethod(gpsClockObject, setterMethod, clock->time_ns);
    119.                                                               ^
    120. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:917:9: error: 'flags' was not declared in this scope
    121.      if (flags & GPS_CLOCK_HAS_TIME_UNCERTAINTY) {
    122.          ^
    123. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:917:17: error: 'GPS_CLOCK_HAS_TIME_UNCERTAINTY' was not declared in this scope
    124.      if (flags & GPS_CLOCK_HAS_TIME_UNCERTAINTY) {
    125.                  ^
    126. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:920:66: error: request for member 'time_uncertainty_ns' in '* clock', which is of non-class type 'int'
    127.          env->CallVoidMethod(gpsClockObject, setterMethod, clock->time_uncertainty_ns);
    128.                                                                   ^
    129. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:923:9: error: 'flags' was not declared in this scope
    130.      if (flags & GPS_CLOCK_HAS_FULL_BIAS) {
    131.          ^
    132. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:923:17: error: 'GPS_CLOCK_HAS_FULL_BIAS' was not declared in this scope
    133.      if (flags & GPS_CLOCK_HAS_FULL_BIAS) {
    134.                  ^
    135. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:925:66: error: request for member 'full_bias_ns' in '* clock', which is of non-class type 'int'
    136.          env->CallVoidMethod(gpsClockObject, setterMethod, clock->full_bias_ns);
    137.                                                                   ^
    138. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:928:9: error: 'flags' was not declared in this scope
    139.      if (flags & GPS_CLOCK_HAS_BIAS) {
    140.          ^
    141. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:928:17: error: 'GPS_CLOCK_HAS_BIAS' was not declared in this scope
    142.      if (flags & GPS_CLOCK_HAS_BIAS) {
    143.                  ^
    144. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:930:66: error: request for member 'bias_ns' in '* clock', which is of non-class type 'int'
    145.          env->CallVoidMethod(gpsClockObject, setterMethod, clock->bias_ns);
    146.                                                                   ^
    147. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:933:9: error: 'flags' was not declared in this scope
    148.      if (flags & GPS_CLOCK_HAS_BIAS_UNCERTAINTY) {
    149.          ^
    150. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:933:17: error: 'GPS_CLOCK_HAS_BIAS_UNCERTAINTY' was not declared in this scope
    151.      if (flags & GPS_CLOCK_HAS_BIAS_UNCERTAINTY) {
    152.                  ^
    153. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:936:66: error: request for member 'bias_uncertainty_ns' in '* clock', which is of non-class type 'int'
    154.          env->CallVoidMethod(gpsClockObject, setterMethod, clock->bias_uncertainty_ns);
    155.                                                                   ^
    156. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:939:9: error: 'flags' was not declared in this scope
    157.      if (flags & GPS_CLOCK_HAS_DRIFT) {
    158.          ^
    159. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:939:17: error: 'GPS_CLOCK_HAS_DRIFT' was not declared in this scope
    160.      if (flags & GPS_CLOCK_HAS_DRIFT) {
    161.                  ^
    162. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:942:66: error: request for member 'drift_nsps' in '* clock', which is of non-class type 'int'
    163.          env->CallVoidMethod(gpsClockObject, setterMethod, clock->drift_nsps);
    164.                                                                   ^
    165. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:945:9: error: 'flags' was not declared in this scope
    166.      if (flags & GPS_CLOCK_HAS_DRIFT_UNCERTAINTY) {
    167.          ^
    168. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:945:17: error: 'GPS_CLOCK_HAS_DRIFT_UNCERTAINTY' was not declared in this scope
    169.      if (flags & GPS_CLOCK_HAS_DRIFT_UNCERTAINTY) {
    170.                  ^
    171. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:948:66: error: request for member 'drift_uncertainty_nsp' in '* clock', which is of non-class type 'int'
    172.          env->CallVoidMethod(gpsClockObject, setterMethod, clock->drift_uncertainty_nsps);
    173.                                                                   ^
    174. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp: At global scope:
    175. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:955:55: error: 'GpsMeasurement' has not been declared
    176. static jobject translate_gps_measurement(JNIEnv* env, GpsMeasurement* measurement) {
    177.                                                        ^
    178. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp: In function '_jobject* android::translate_gps_measurement(JNIEnv*, int*)':
    179. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:967:5: error: 'GpsMeasurementFlags' was not declared in this scope
    180.      GpsMeasurementFlags flags = measurement->flags;
    181.      ^
    182. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:967:25: error: expected ';' before 'flags'
    183.      GpsMeasurementFlags flags = measurement->flags;
    184.                          ^
    185. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:970:77: error: request for member 'prn' in '* measuremen', which is of non-class type 'int'
    186.      env->CallVoidMethod(gpsMeasurementObject, prnSetterMethod, measurement->prn);
    187.                                                                              ^
    188. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:977:26: error: request for member 'time_offset_ns' in '* measurement', which is of non-class type 'int'
    189.              measurement->time_offset_ns);
    190.                           ^
    191. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:980:79: error: request for member 'state' in '* measurement', which is of non-class type 'int'
    192.      env->CallVoidMethod(gpsMeasurementObject, stateSetterMethod, measurement->state);
    193.                                                                                ^
    194. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:987:26: error: request for member 'received_gps_tow_ns' in '* measurement', which is of non-class type 'int'
    195.              measurement->received_gps_tow_ns);
    196.                           ^
    197. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:996:26: error: request for member 'received_gps_tow_uncertainty_ns' in '* measurement', which is of non-class type 'int'
    198.              measurement->received_gps_tow_uncertainty_ns);
    199.                           ^
    200. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1000:77: error: request for member 'c_n0_dbhz' in '* measurement', which is of non-class type 'int'
    201.      env->CallVoidMethod(gpsMeasurementObject, cn0SetterMethod, measurement->c_n0_dbhz);
    202.                                                                              ^
    203. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1009:26: error: request for member 'pseudorange_rate_mps' in '* measurement', which is of non-class type 'int'
    204.              measurement->pseudorange_rate_mps);
    205.                           ^
    206. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1018:26: error: request for member 'pseudorange_rate_uncertainty_mps' in '* measurement', which is of non-class type 'int'
    207.              measurement->pseudorange_rate_uncertainty_mps);
    208.                           ^
    209. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1025:26: error: request for member 'accumulated_delta_range_state' in '* measurement', which is of non-class type 'int'
    210.              measurement->accumulated_delta_range_state);
    211.                           ^
    212. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1034:26: error: request for member 'accumulated_delta_range_m' in '* measurement', which is of non-class type 'int'
    213.              measurement->accumulated_delta_range_m);
    214.                           ^
    215. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1043:26: error: request for member 'accumulated_delta_range_uncertainty_m' in '* measurement', which is of non-class type 'int'
    216.              measurement->accumulated_delta_range_uncertainty_m);
    217.                           ^
    218. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1045:9: error: 'flags' was not declared in this scope
    219.      if (flags & GPS_MEASUREMENT_HAS_PSEUDORANGE) {
    220.          ^
    221. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1045:17: error: 'GPS_MEASUREMENT_HAS_PSEUDORANGE' was not declared in this scope
    222.      if (flags & GPS_MEASUREMENT_HAS_PSEUDORANGE) {
    223.                  ^
    224. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1048:78: error: request for member 'pseudorange_m' in '* measurement', which is of non-class type 'int'
    225.          env->CallVoidMethod(gpsMeasurementObject, setterMethod, measurement->pseudorange_m);
    226.                                                                               ^
    227. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1051:9: error: 'flags' was not declared in this scope
    228.      if (flags & GPS_MEASUREMENT_HAS_PSEUDORANGE_UNCERTAINTY) {
    229.          ^
    230. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1051:17: error: 'GPS_MEASUREMENT_HAS_PSEUDORANGE_UNCERTAINTY' was not declared in this scope
    231.      if (flags & GPS_MEASUREMENT_HAS_PSEUDORANGE_UNCERTAINTY) {
    232.                  ^
    233. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1059:30: error: request for member 'pseudorange_uncertainty_m' in '* measurement', which is of non-class type 'int'
    234.                  measurement->pseudorange_uncertainty_m);
    235.                               ^
    236. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1062:9: error: 'flags' was not declared in this scope
    237.      if (flags & GPS_MEASUREMENT_HAS_CODE_PHASE) {
    238.          ^
    239. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1062:17: error: 'GPS_MEASUREMENT_HAS_CODE_PHASE' was not declared in this scope
    240.      if (flags & GPS_MEASUREMENT_HAS_CODE_PHASE) {
    241.                  ^
    242. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1065:78: error: request for member 'code_phase_chips' in '* measurement', which is of non-class type 'int'
    243.          env->CallVoidMethod(gpsMeasurementObject, setterMethod, measurement->code_phase_chips);
    244.                                                                               ^
    245. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1068:9: error: 'flags' was not declared in this scope
    246.      if (flags & GPS_MEASUREMENT_HAS_CODE_PHASE_UNCERTAINTY) {
    247.          ^
    248. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1068:17: error: 'GPS_MEASUREMENT_HAS_CODE_PHASE_UNCERTAINTY' was not declared in this scope
    249.      if (flags & GPS_MEASUREMENT_HAS_CODE_PHASE_UNCERTAINTY) {
    250.                  ^
    251. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1076:30: error: request for member 'code_phase_uncertainty_chips' in '* measurement', which is of non-class type 'int'
    252.                  measurement->code_phase_uncertainty_chips);
    253.                               ^
    254. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1079:9: error: 'flags' was not declared in this scope
    255.      if (flags & GPS_MEASUREMENT_HAS_CARRIER_FREQUENCY) {
    256.          ^
    257. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1079:17: error: 'GPS_MEASUREMENT_HAS_CARRIER_FREQUENCY' was not declared in this scope
    258.      if (flags & GPS_MEASUREMENT_HAS_CARRIER_FREQUENCY) {
    259.                  ^
    260. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1085:30: error: request for member 'carrier_frequency_hz' in '* measurement', which is of non-class type 'int'
    261.                  measurement->carrier_frequency_hz);
    262.                               ^
    263. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1088:9: error: 'flags' was not declared in this scope
    264.      if (flags & GPS_MEASUREMENT_HAS_CARRIER_CYCLES) {
    265.          ^
    266. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1088:17: error: 'GPS_MEASUREMENT_HAS_CARRIER_CYCLES' was not declared in this scope
    267.      if (flags & GPS_MEASUREMENT_HAS_CARRIER_CYCLES) {
    268.                  ^
    269. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1091:78: error: request for member 'carrier_cycles' in '* measurement', which is of non-class type 'int'
    270.          env->CallVoidMethod(gpsMeasurementObject, setterMethod, measurement->carrier_cycles);
    271.                                                                               ^
    272. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1094:9: error: 'flags' was not declared in this scope
    273.      if (flags & GPS_MEASUREMENT_HAS_CARRIER_PHASE) {
    274.          ^
    275. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1094:17: error: 'GPS_MEASUREMENT_HAS_CARRIER_PHASE' was not declared in this scope
    276.      if (flags & GPS_MEASUREMENT_HAS_CARRIER_PHASE) {
    277.                  ^
    278. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1097:78: error: request for member 'carrier_phase' in '* measurement', which is of non-class type 'int'
    279.          env->CallVoidMethod(gpsMeasurementObject, setterMethod, measurement->carrier_phase);
    280.                                                                               ^
    281. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1100:9: error: 'flags' was not declared in this scope
    282.      if (flags & GPS_MEASUREMENT_HAS_CARRIER_PHASE_UNCERTAINTY) {
    283.          ^
    284. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1100:17: error: 'GPS_MEASUREMENT_HAS_CARRIER_PHASE_UNCERTAINTY' was not declared in this scope
    285.      if (flags & GPS_MEASUREMENT_HAS_CARRIER_PHASE_UNCERTAINTY) {
    286.                  ^
    287. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1108:30: error: request for member 'carrier_phase_uncertainty' in '* measurement', which is of non-class type 'int'
    288.                  measurement->carrier_phase_uncertainty);
    289.                               ^
    290. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1113:84: error: request for member 'loss_of_lock' in '* measurement', which is of non-class type 'int'
    291.      env->CallVoidMethod(gpsMeasurementObject, lossOfLockSetterMethod, measurement->loss_of_lock);
    292.                                                                                     ^
    293. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1115:9: error: 'flags' was not declared in this scope
    294.      if (flags & GPS_MEASUREMENT_HAS_BIT_NUMBER) {
    295.          ^
    296. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1115:17: error: 'GPS_MEASUREMENT_HAS_BIT_NUMBER' was not declared in this scope
    297.      if (flags & GPS_MEASUREMENT_HAS_BIT_NUMBER) {
    298.                  ^
    299. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1118:78: error: request for member 'bit_number' in '* measurement', which is of non-class type 'int'
    300.          env->CallVoidMethod(gpsMeasurementObject, setterMethod, measurement->bit_number);
    301.                                                                               ^
    302. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1121:9: error: 'flags' was not declared in this scope
    303.      if (flags & GPS_MEASUREMENT_HAS_TIME_FROM_LAST_BIT) {
    304.          ^
    305. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1121:17: error: 'GPS_MEASUREMENT_HAS_TIME_FROM_LAST_BIT' was not declared in this scope
    306.      if (flags & GPS_MEASUREMENT_HAS_TIME_FROM_LAST_BIT) {
    307.                  ^
    308. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1127:30: error: request for member 'time_from_last_bit_m' in '* measurement', which is of non-class type 'int'
    309.                  measurement->time_from_last_bit_ms);
    310.                               ^
    311. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1130:9: error: 'flags' was not declared in this scope
    312.      if (flags & GPS_MEASUREMENT_HAS_DOPPLER_SHIFT) {
    313.          ^
    314. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1130:17: error: 'GPS_MEASUREMENT_HAS_DOPPLER_SHIFT' was not declared in this scope
    315.      if (flags & GPS_MEASUREMENT_HAS_DOPPLER_SHIFT) {
    316.                  ^
    317. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1133:78: error: request for member 'doppler_shift_hz' in '* measurement', which is of non-class type 'int'
    318.          env->CallVoidMethod(gpsMeasurementObject, setterMethod, measurement->doppler_shift_hz);
    319.                                                                               ^
    320. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1136:9: error: 'flags' was not declared in this scope
    321.      if (flags & GPS_MEASUREMENT_HAS_DOPPLER_SHIFT_UNCERTAINTY) {
    322.          ^
    323. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1136:17: error: 'GPS_MEASUREMENT_HAS_DOPPLER_SHIFT_UNCERTAINTY' was not declared in this scope
    324.      if (flags & GPS_MEASUREMENT_HAS_DOPPLER_SHIFT_UNCERTAINTY) {
    325.                  ^
    326. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1144:30: error: request for member 'doppler_shift_uncertainty_hz' in '* measurement', which is of non-class type 'int'
    327.                  measurement->doppler_shift_uncertainty_hz);
    328.                               ^
    329. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1152:26: error: request for member 'multipath_indicator' in '* measurement', which is of non-class type 'int'
    330.              measurement->multipath_indicator);
    331.                           ^
    332. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1154:9: error: 'flags' was not declared in this scope
    333.      if (flags & GPS_MEASUREMENT_HAS_SNR) {
    334.          ^
    335. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1154:17: error: 'GPS_MEASUREMENT_HAS_SNR' was not declared in this scope
    336.      if (flags & GPS_MEASUREMENT_HAS_SNR) {
    337.                  ^
    338. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1157:78: error: request for member 'snr_db' in '* measurement', which is of non-class type 'int'
    339.          env->CallVoidMethod(gpsMeasurementObject, setterMethod, measurement->snr_db);
    340.                                                                               ^
    341. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1160:9: error: 'flags' was not declared in this scope
    342.      if (flags & GPS_MEASUREMENT_HAS_ELEVATION) {
    343.          ^
    344. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1160:17: error: 'GPS_MEASUREMENT_HAS_ELEVATION' was not declared in this scope
    345.      if (flags & GPS_MEASUREMENT_HAS_ELEVATION) {
    346.                  ^
    347. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1163:78: error: request for member 'elevation_deg' in '* measurement', which is of non-class type 'int'
    348.          env->CallVoidMethod(gpsMeasurementObject, setterMethod, measurement->elevation_deg);
    349.                                                                               ^
    350. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1166:9: error: 'flags' was not declared in this scope
    351.      if (flags & GPS_MEASUREMENT_HAS_ELEVATION_UNCERTAINTY) {
    352.          ^
    353. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1166:17: error: 'GPS_MEASUREMENT_HAS_ELEVATION_UNCERTAINTY' was not declared in this scope
    354.      if (flags & GPS_MEASUREMENT_HAS_ELEVATION_UNCERTAINTY) {
    355.                  ^
    356. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1172:30: error: request for member 'elevation_uncertainty_deg' in '* measurement', which is of non-class type 'int'
    357.                  measurement->elevation_uncertainty_deg);
    358.                               ^
    359. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1175:9: error: 'flags' was not declared in this scope
    360.      if (flags & GPS_MEASUREMENT_HAS_AZIMUTH) {
    361.          ^
    362. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1175:17: error: 'GPS_MEASUREMENT_HAS_AZIMUTH' was not declared in this scope
    363.      if (flags & GPS_MEASUREMENT_HAS_AZIMUTH) {
    364.                  ^
    365. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1178:78: error: request for member 'azimuth_deg' in '* measurement', which is of non-class type 'int'
    366.          env->CallVoidMethod(gpsMeasurementObject, setterMethod, measurement->azimuth_deg);
    367.                                                                               ^
    368. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1181:9: error: 'flags' was not declared in this scope
    369.      if (flags & GPS_MEASUREMENT_HAS_AZIMUTH_UNCERTAINTY) {
    370.          ^
    371. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1181:17: error: 'GPS_MEASUREMENT_HAS_AZIMUTH_UNCERTAINTY' was not declared in this scope
    372.      if (flags & GPS_MEASUREMENT_HAS_AZIMUTH_UNCERTAINTY) {
    373.                  ^
    374. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1189:30: error: request for member 'azimuth_uncertainty_deg' in '* measurement', which is of non-class type 'int'
    375.                  measurement->azimuth_uncertainty_deg);
    376.                               ^
    377. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1196:14: error: 'flags' was not declared in this scope
    378.              (flags & GPS_MEASUREMENT_HAS_USED_IN_FIX) && measurement->used_in_fix);
    379.               ^
    380. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1196:22: error: 'GPS_MEASUREMENT_HAS_USED_IN_FIX' was not declared in this scope
    381.              (flags & GPS_MEASUREMENT_HAS_USED_IN_FIX) && measurement->used_in_fix);
    382.                       ^
    383. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1196:71: error: request for member 'used_in_fix' in '* measurement', which is of non-class type 'int'
    384.              (flags & GPS_MEASUREMENT_HAS_USED_IN_FIX) && measurement->used_in_fix);
    385.                                                                        ^
    386. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp: At global scope:
    387. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1202:61: error: 'GpsData' has not been declared
    388. static jobjectArray translate_gps_measurements(JNIEnv* env, GpsData* data) {
    389.                                                              ^
    390. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp: In function '_jobjectArray* android::translate_gps_measurements(JNIEnv*, int*)':
    391. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1203:37: error: request for member 'measurement_count' in '* data', which is of non-class type 'int'
    392.      size_t measurementCount = data->measurement_count;
    393.                                      ^
    394. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1214:5: error: 'GpsMeasurement' was not declared in this scope
    395.      GpsMeasurement* gpsMeasurements = data->measurements;
    396.      ^
    397. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1214:21: error: 'gpsMeasurements' was not declared in this scope
    398.      GpsMeasurement* gpsMeasurements = data->measurements;
    399.                      ^
    400. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1214:45: error: request for member 'measurements' in '* data', which is of non-class type 'int'
    401.      GpsMeasurement* gpsMeasurements = data->measurements;
    402.                                              ^
    403. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp: At global scope:
    404. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1225:34: error: variable or field 'measurement_callback' declared void
    405. static void measurement_callback(GpsData* data) {
    406.                                   ^
    407. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1225:34: error: 'GpsData' was not declared in this scope
    408. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1225:43: error: 'data' was not declared in this scope
    409. static void measurement_callback(GpsData* data) {
    410.                                            ^
    411. frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:1528:1: error: expected '}' at end of input
    412. } /* namespace android */
    413. ^
    414. build/core/binary.mk:619: recipe for target '/home/hao/mokee/out/target/product/nx403a/obj/SHARED_LIBRARIES/libandroid_servers_intermediates/core/jni/com_android_server_location_GpsLocationProvider.o' failed
    415. make: *** [/home/hao/mokee/out/target/product/nx403a/obj/SHARED_LIBRARIES/libandroid_servers_intermediates/core/jni/com_android_server_location_GpsLocationProvider.o] Error 1
    416. make: *** 正在等待未完成的任务....
    417. target thumb C++: libandroid_servers <= frameworks/base/services/core/jni/com_android_server_location_FlpHardwareProvider.cpp
    418. make: *** wait: 没有子进程。 停止。

    419. #### make failed to build some targets (17:15 (mm:ss)) ####
    复制代码
    com_android_server_location_GpsLocationProvider.cpp  这个文件好多报错的。。。
    回复

    使用道具 举报

  • TA的每日心情
    奋斗
    2017-6-28 20:44
  • 签到天数: 1303 天

    连续签到: 1 天

    [LV.10]以坛为家III

    发表于 2015-6-22 18:37:49 | 显示全部楼层
    你device的gps.h不对应
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    奋斗
    2015-10-7 15:42
  • 签到天数: 7 天

    连续签到: 1 天

    [LV.3]偶尔看看II

    升级   3%

     楼主| 发表于 2015-6-22 19:16:24 | 显示全部楼层
    martincz 发表于 2015-6-22 18:37
    你device的gps.h不对应

    这个怎么解决?   找相应的.h文件?  还是自己写?
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    奋斗
    2017-6-28 20:44
  • 签到天数: 1303 天

    连续签到: 1 天

    [LV.10]以坛为家III

    发表于 2015-6-22 20:05:50 | 显示全部楼层
    参考其它机型,很容易找例子
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    奋斗
    2015-10-7 15:42
  • 签到天数: 7 天

    连续签到: 1 天

    [LV.3]偶尔看看II

    升级   3%

     楼主| 发表于 2015-6-22 21:46:56 | 显示全部楼层
    martincz 发表于 2015-6-22 20:05
    参考其它机型,很容易找例子

    好  谢谢~
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    奋斗
    2015-10-7 15:42
  • 签到天数: 7 天

    连续签到: 1 天

    [LV.3]偶尔看看II

    升级   3%

     楼主| 发表于 2015-6-23 22:25:28 | 显示全部楼层
    martincz 发表于 2015-6-22 20:05
    参考其它机型,很容易找例子
    1. make: *** No rule to make target 'device/nubia/nx403a/gps/dbus.conf', needed by '/home/hao/mokee/out/target/product/nx403a/system/etc/dbus.conf'。 停止。
    2. make: *** 正在等待未完成的任务....

    3. #### make failed to build some targets (07:48 (mm:ss)) ####
    复制代码
    龙猪哥哥   又麻烦你了。。  这个是怎么回事。  还有  到这会大概还要编译多久 才能完  。
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    升级   2%

    发表于 2016-4-8 10:11:56 | 显示全部楼层
    makefile贴出来看看
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    升级   2%

    发表于 2016-4-8 13:26:30 | 显示全部楼层
    加我qq,3758二拔93
    回复 支持 反对

    使用道具 举报

    您需要登录后才可以回帖 登录 | 注册账号  

    本版积分规则

    手机版|魔趣论坛 |

    我们旨在提供一个良好的手机玩家技术交流、资源分享社区,如果有涉及版权的资源,请联系管理员并提供相应的版权证明,我们会进行相应处理。

    GMT+8, 2017-8-23 02:49 , Processed in 0.098319 second(s), 42 queries , Gzip On, Redis On.

    Powered by Discuz! X3.2

    © 2001-2013 Comsenz Inc.

    快速回复 返回顶部 返回列表