UPDATE: ISSUE HAS BEEN FIXED, THANK YOU
Hi all,
I am trying to compile Magisk after cloning it from the Github repository (https://github.com/topjohnwu/Magisk).
I cloned it via
Code:
git clone [B]-recursive[/B] https://github.com/topjohnwu/Magisk.git
in order to download the proper submodules as well.
After running
Code:
python3 build.py all 14.3 143
(btw, I am simply guessing the versioncode argument. Does it matter?)
the error I get is the following:
pastebin: https://pastebin.com/eVwGhvXa
Code:
* Building Magisk binaries
[x86] Compile : b64xz <= b64xz.c
[x86] Compile : magisk <= magisk.c
[x86] Compile : magisk <= daemon.c
[x86] Compile : magisk <= socket_trans.c
[x86] Compile : magisk <= log_monitor.c
[x86] Compile : magisk <= bootstages.c
[x86] Compile : magisk <= misc.c
[x86] Compile : magisk <= vector.c
[x86] Compile : magisk <= xwrap.c
[x86] Compile : magisk <= list.c
[x86] Compile : magisk <= img.c
[x86] Compile : magisk <= file.c
[x86] Compile : magisk <= magiskhide.c
[x86] Compile : magisk <= proc_monitor.c
[x86] Compile : magisk <= hide_utils.c
[x86] Compile : magisk <= magiskpolicy.c
[x86] Compile : magisk <= rules.c
[x86] Compile : magisk <= sepolicy.c
[x86] Compile : magisk <= api.c
[x86] Compile++ : magisk <= resetprop.cpp
[x86] Compile++ : magisk <= system_properties.cpp
In file included from jni/resetprop/resetprop.cpp:63:
In file included from jni/resetprop/_system_properties.h:40:
jni/resetprop/system_properties.h:46:64: error: expected function body after function declarator
int __system_property_set2(const char* key, const char* value) __INTRODUCED_IN(12);
^
jni/resetprop/system_properties.h:61:19: error: expected function body after function declarator
void* cookie) __INTRODUCED_IN(26);
^
jni/resetprop/system_properties.h:70:3: error: expected function body after function declarator
__INTRODUCED_IN(19);
^
jni/resetprop/system_properties.h:89:5: error: expected function body after function declarator
__INTRODUCED_IN(26);
^
jni/resetprop/resetprop.cpp:177:3: error: use of undeclared identifier '__system_property_read_callback2'; did you mean
'__system_property_read2'?
__system_property_read_callback2(pi, read_prop_info, value);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__system_property_read2
jni/resetprop/system_properties.h:94:5: note: '__system_property_read2' declared here
int __system_property_read2(const prop_info* pi, char* name, char* value);
^
jni/resetprop/resetprop.cpp:177:40: error: cannot initialize a parameter of type 'char *' with an lvalue of type 'void (void *, const
char *, const char *, uint32_t)' (aka 'void (void *, const char *, const char *, unsigned int)')
__system_property_read_callback2(pi, read_prop_info, value);
^~~~~~~~~~~~~~
jni/resetprop/system_properties.h:94:56: note: passing argument to parameter 'name' here
int __system_property_read2(const prop_info* pi, char* name, char* value);
^
jni/resetprop/resetprop.cpp:192:2: error: use of undeclared identifier '__system_property_read_callback2'; did you mean
'__system_property_read2'?
__system_property_read_callback2(pi, cb_wrapper, cookie);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__system_property_read2
jni/resetprop/system_properties.h:94:5: note: '__system_property_read2' declared here
int __system_property_read2(const prop_info* pi, char* name, char* value);
^
jni/resetprop/resetprop.cpp:192:39: error: cannot initialize a parameter of type 'char *' with an lvalue of type 'void (void *, const
char *, const char *, uint32_t)' (aka 'void (void *, const char *, const char *, unsigned int)')
__system_property_read_callback2(pi, cb_wrapper, cookie);
^~~~~~~~~~
jni/resetprop/system_properties.h:94:56: note: passing argument to parameter 'name' here
int __system_property_read2(const prop_info* pi, char* name, char* value);
^
In file included from jni/resetprop/system_properties.cpp:54:
In file included from jni/resetprop/_system_properties.h:40:
jni/resetprop/system_properties.h:46:64: error: expected function body after function declarator
int __system_property_set2(const char* key, const char* value) __INTRODUCED_IN(12);
^
jni/resetprop/system_properties.h:61:19: error: expected function body after function declarator
void* cookie) __INTRODUCED_IN(26);
^
jni/resetprop/system_properties.h:70:3: error: expected function body after function declarator
__INTRODUCED_IN(19);
^
jni/resetprop/system_properties.h:89:5: error: expected function body after function declarator
__INTRODUCED_IN(26);
^
jni/resetprop/resetprop.cpp:254:2: error: use of undeclared identifier '__system_property_foreach2'; did you mean
'__system_property_get2'?
__system_property_foreach2(prop_foreach_cb, &wrap);
^~~~~~~~~~~~~~~~~~~~~~~~~~
__system_property_get2
jni/resetprop/system_properties.h:96:5: note: '__system_property_get2' declared here
int __system_property_get2(const char* name, char* value);
^
jni/resetprop/resetprop.cpp:254:29: error: cannot initialize a parameter of type 'const char *' with an lvalue of type
'void (const prop_info *, void *)'
__system_property_foreach2(prop_foreach_cb, &wrap);
^~~~~~~~~~~~~~~
jni/resetprop/system_properties.h:96:40: note: passing argument to parameter 'name' here
int __system_property_get2(const char* name, char* value);
^
jni/resetprop/resetprop.cpp:271:10: error: use of undeclared identifier '__system_property_set2'; did you mean
'__system_property_get2'?
ret = __system_property_set2(name, value);
^~~~~~~~~~~~~~~~~~~~~~
__system_property_get2
jni/resetprop/system_properties.h:96:5: note: '__system_property_get2' declared herejni/resetprop/system_properties.cpp:97:3: error: unknown type name 'va_list'; did you mean '__va_list'?
va_list vl;
^~~~~~~
__va_list
/home/solar/Android/Sdk/ndk-bundle/platforms/android-21/arch-x86/usr/include/sys/types.h:129:27: note: '__va_list' declared here
int __system_property_get2(const char* name, char* value);
^
typedef __builtin_va_list __va_list;
^
jni/resetprop/resetprop.cpp:271:39: error: cannot initialize a parameter of type 'char *' with an lvalue of type 'const char *'
ret = __system_property_set2(name, value);
^~~~~
jni/resetprop/system_properties.h:96:52: note: passing argument to parameter 'value' here
int __system_property_get2(const char* name, char* value);
^
jni/resetprop/system_properties.cpp:98:3: error: use of undeclared identifier 'va_start'
va_start(vl, format);
^
jni/resetprop/system_properties.cpp:99:13: error: use of undeclared identifier 'vsnprintf'
int ret = vsnprintf(s, n, format, vl);
^
jni/resetprop/system_properties.cpp:100:3: error: use of undeclared identifier 'va_end'
va_end(vl);
^
jni/resetprop/resetprop.cpp:278:10: error: use of undeclared identifier '__system_property_set2'; did you mean
'__system_property_get2'?
ret = __system_property_set2(name, value);
^~~~~~~~~~~~~~~~~~~~~~
__system_property_get2
jni/resetprop/system_properties.h:96:5: note: '__system_property_get2' declared here
int __system_property_get2(const char* name, char* value);
^
jni/resetprop/resetprop.cpp:278:39: error: cannot initialize a parameter of type 'char *' with an lvalue of type 'const char *'
ret = __system_property_set2(name, value);
^~~~~
jni/resetprop/system_properties.h:96:52: note: passing argument to parameter 'value' here
int __system_property_get2(const char* name, char* value);
^
14 errors generated.
make: *** [obj/local/x86/objs/magisk/resetprop/resetprop.o] Error 1
make: *** Waiting for unfinished jobs....
jni/resetprop/system_properties.cpp:1012:3: error: unknown type name 'va_list'; did you mean '__va_list'?
va_list ap;
^~~~~~~
__va_list
/home/solar/Android/Sdk/ndk-bundle/platforms/android-21/arch-x86/usr/include/sys/types.h:129:27: note: '__va_list' declared here
typedef __builtin_va_list __va_list;
^
jni/resetprop/system_properties.cpp:1030:3: error: use of undeclared identifier 'va_start'
va_start(ap, num_args);
^
jni/resetprop/system_properties.cpp:1034:33: error: expected '(' for function-style cast or type construction
spec_entry = va_arg(ap, char**);
~~~~^
jni/resetprop/system_properties.cpp:1034:35: error: expected expression
spec_entry = va_arg(ap, char**);
^
jni/resetprop/system_properties.cpp:1037:7: error: use of undeclared identifier 'va_end'
va_end(ap);
^
jni/resetprop/system_properties.cpp:1043:7: error: use of undeclared identifier 'va_end'
va_end(ap);
^
jni/resetprop/system_properties.cpp:1048:3: error: use of undeclared identifier 'va_end'
va_end(ap);
^
jni/resetprop/system_properties.cpp:1053:3: error: unknown type name 'FILE'
FILE* file = fopen(filename, "re");
^
jni/resetprop/system_properties.cpp:1053:16: error: use of undeclared identifier 'fopen'; did you mean 'open'?
FILE* file = fopen(filename, "re");
^~~~~
open
/home/solar/Android/Sdk/ndk-bundle/platforms/android-21/arch-x86/usr/include/fcntl.h:73:12: note: 'open' declared here
extern int open(const char*, int, ...);
^
jni/resetprop/system_properties.cpp:1053:32: error: cannot initialize a parameter of type 'int' with an lvalue of type
'const char [3]'
FILE* file = fopen(filename, "re");
^~~~
/home/solar/Android/Sdk/ndk-bundle/platforms/android-21/arch-x86/usr/include/fcntl.h:73:33: note: passing argument to parameter here
extern int open(const char*, int, ...);
^
jni/resetprop/system_properties.cpp:1497:3: error: use of undeclared identifier '__system_property_wait2'; did you mean
'__system_property_add2'?
__system_property_wait2(nullptr, old_serial, &new_serial, nullptr);
^~~~~~~~~~~~~~~~~~~~~~~
__system_property_add2
jni/resetprop/system_properties.cpp:1449:5: note: '__system_property_add2' declared here
int __system_property_add2(const char* name, unsigned int namelen, const char* value,
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [obj/local/x86/objs/magisk/resetprop/system_properties.o] Error 1
Build Magisk binary failed!
I'm building on Ubuntu 16.04 Xenial 64 bits.
It seems like the cmake or C libraries I have are older or not compatible with the one required by Magisk.
I'm out of ideas and I can't find any tutorials on compiling Magisk or any info on the errors above via Google.
Could you please help me out with some tips on what am I missing? I'd really appreciate it.
Thank you.
@easytotype Have you made sure that you're using the latest Android NDK?
Also, have you tried "sudo apt-get update && sudo apt-get upgrade"?
And, versionString and versionCode should be 14.4 and 1440, instead of 14.3 and 143 (it isn't related to this error, though)
Sent from my Samsung Galaxy Trend Plus using XDA Labs
DodoGTA said:
@easytotype Have you made sure that you're using the latest Android NDK? (...)
Click to expand...
Click to collapse
ndk was the problem indeed!
I had NDK v14,
installing the latest v15 solved the issue.
The facepalm was huge, but without your help I would have been for stuck much much longer.
Thank you very much @DodoGTA :good::good::good::good::good:
Related
I have some problems compiling gps with caf source.
At first I have build a rom without gps, but I want it to be functional
So if you can help, please let me know
Code:
target thumb C++: libloc_api-rpc-qc <= hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp
In file included from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:40,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/LocApiRpcAdapter.h:33,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:35:
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:38:35: error: commondefs_rpcgen_rpc.h: No such file or directory
In file included from out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:39,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:40,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/LocApiRpcAdapter.h:33,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:35:
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:72: error: 'rpc_int32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:74: error: 'rpc_uint64' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:76: error: 'rpc_uint64' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:78: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:94: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:101: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:106: error: 'rpc_loc_position_valid_mask_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:109: error: 'rpc_uint64' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:110: error: 'rpc_uint8' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:129: error: 'rpc_loc_pos_technology_mask_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:151: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:154: error: 'rpc_loc_sv_info_valid_mask_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:156: error: 'rpc_uint8' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:157: error: 'rpc_uint8' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:159: error: 'rpc_boolean' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:160: error: 'rpc_boolean' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:167: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:170: error: 'rpc_loc_gnss_info_valid_mask_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:174: error: 'rpc_boolean' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:175: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:184: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:234: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:235: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:240: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:246: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:247: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:357: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:358: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:362: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:406: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:413: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:421: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:460: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:470: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:516: error: 'rpc_uint32' does not name a type
In file included from out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:39,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:40,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/LocApiRpcAdapter.h:33,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:35:
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:526: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:527: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:533: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:536: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:537: error: 'rpc_uint64' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:557: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:584: error: 'rpc_loc_server_connection_handle' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:590: error: 'rpc_loc_server_connection_handle' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:597: error: 'rpc_loc_server_connection_handle' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:628: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:633: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:731: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:734: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:735: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:736: error: 'rpc_boolean' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:738: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:740: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:766: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:767: error: 'rpc_uint8' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:768: error: 'rpc_uint8' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:769: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:778: error: 'rpc_uint64' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:779: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:784: error: 'rpc_boolean' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:790: error: 'rpc_uint64' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:791: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:795: error: 'rpc_uint64' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:798: error: 'rpc_loc_assist_pos_valid_mask_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:799: error: 'rpc_uint64' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:808: error: 'rpc_int32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:829: error: 'rpc_loc_server_connection_handle' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:836: error: 'rpc_loc_server_connection_handle' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:851: error: 'rpc_loc_server_connection_handle' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:857: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:862: error: 'rpc_int32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:863: error: 'rpc_int32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:864: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:865: error: 'rpc_uint8' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:866: error: 'rpc_uint8' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:872: error: 'rpc_int32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:873: error: 'rpc_uint16' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:874: error: 'rpc_uint8' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:879: error: 'rpc_uint8' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:885: error: 'rpc_uint8' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:911: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:916: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:917: error: 'rpc_uint8' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:918: error: 'rpc_uint8' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:919: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:931: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:932: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:933: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:947: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:949: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:952: error: 'rpc_loc_assist_data_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:953: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:971: error: 'rpc_boolean' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:972: error: 'rpc_loc_nmea_sentence_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:973: error: 'rpc_boolean' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:978: error: 'rpc_uint8' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:980: error: 'rpc_boolean' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:981: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:994: error: 'rpc_boolean' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:995: error: 'rpc_loc_nmea_sentence_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:996: error: 'rpc_boolean' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:1000: error: 'rpc_uint8' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:1002: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:1009: error: 'rpc_int32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:1034: error: 'rpc_loc_client_handle_type' has not been declared
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:1035: error: 'rpc_loc_event_mask_type' has not been declared
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:1036: error: 'rpc_loc_position_valid_mask_type' has not been declared
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:1037: error: 'rpc_loc_pos_technology_mask_type' has not been declared
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:1043: error: 'rpc_loc_sv_info_valid_mask_type' has not been declared
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:1045: error: 'rpc_loc_gnss_info_valid_mask_type' has not been declared
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:1092: error: 'rpc_loc_server_connection_handle' has not been declared
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:1117: error: 'rpc_loc_assist_pos_valid_mask_type' has not been declared
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:1136: error: 'rpc_loc_nmea_sentence_type' has not been declared
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_common_rpc.h:1137: error: 'rpc_loc_assist_data_type' has not been declared
In file included from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:40,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/LocApiRpcAdapter.h:33,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:35:
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:50: error: ISO C++ forbids declaration of 'rpc_uint32' with no type
2nd part:
Code:
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:50: error: expected ';' before '*' token
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:53: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:56: error: 'rpc_loc_event_mask_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:57: error: 'rpc_loc_event_cb_f_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:62: error: 'rpc_loc_client_handle_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:67: error: 'rpc_loc_client_handle_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:72: error: 'rpc_loc_client_handle_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:77: error: 'rpc_loc_client_handle_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:84: error: 'rpc_boolean' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:89: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:90: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:91: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:92: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:97: error: 'rpc_loc_client_handle_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:102: error: 'rpc_int32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:107: error: 'rpc_int32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:112: error: 'rpc_int32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:117: error: 'rpc_int32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:123: error: ISO C++ forbids declaration of 'rpc_uint32' with no type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:123: error: expected ';' before '*' token
In file included from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:40,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/LocApiRpcAdapter.h:33,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:35:
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_rpc.h:250: error: 'rpc_loc_event_cb_f_type' has not been declared
In file included from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:42,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/LocApiRpcAdapter.h:33,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:35:
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_cb_rpc.h:49: error: 'rpc_uint32' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_cb_rpc.h:50: error: 'rpc_loc_client_handle_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_cb_rpc.h:51: error: 'rpc_loc_event_mask_type' does not name a type
out/target/product/p500/obj/include/loc_api/rpcgen/inc/loc_api_rpcgen_cb_rpc.h:57: error: 'rpc_int32' does not name a type
In file included from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:52,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/LocApiRpcAdapter.h:33,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:35:
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_sync_call.h:43: error: 'rpc_loc_client_handle_type' does not name a type
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_sync_call.h:52: error: 'rpc_loc_event_mask_type' does not name a type
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_sync_call.h:55: error: 'rpc_loc_event_mask_type' does not name a type
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_sync_call.h:71: error: variable or field 'loc_api_callback_process_sync_call' declared void
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_sync_call.h:71: error: 'rpc_loc_client_handle_type' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_sync_call.h:72: error: 'rpc_loc_event_mask_type' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_sync_call.h:73: error: expected primary-expression before 'const'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_sync_call.h:79: error: 'rpc_loc_client_handle_type' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_sync_call.h:80: error: expected primary-expression before 'ioctl_type'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_sync_call.h:81: error: expected primary-expression before '*' token
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_sync_call.h:81: error: 'ioctl_data_ptr' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_sync_call.h:82: error: expected primary-expression before 'timeout_msec'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_sync_call.h:83: error: expected primary-expression before '*' token
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_sync_call.h:83: error: 'cb_data_ptr' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_sync_call.h:84: error: initializer expression list treated as compound expression
In file included from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/LocApiRpcAdapter.h:33,
from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:35:
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:65: error: 'rpc_loc_client_handle_type' has not been declared
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:66: error: 'rpc_loc_event_mask_type' has not been declared
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:76: error: 'rpc_loc_client_handle_type' does not name a type
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:85: warning: 'loc_close' initialized and declared 'extern'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:85: error: 'rpc_loc_client_handle_type' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:90: error: variable or field 'loc_clear' declared void
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:90: error: 'rpc_loc_client_handle_type' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:95: warning: 'loc_start_fix' initialized and declared 'extern'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:95: error: 'rpc_loc_client_handle_type' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:100: warning: 'loc_stop_fix' initialized and declared 'extern'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:100: error: 'rpc_loc_client_handle_type' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:105: warning: 'loc_ioctl' initialized and declared 'extern'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:105: error: 'rpc_loc_client_handle_type' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:106: error: expected primary-expression before 'ioctl_type'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:107: error: expected primary-expression before '*' token
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:107: error: 'ioctl_data' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:108: error: initializer expression list treated as compound expression
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:112: warning: 'loc_eng_ioctl' initialized and declared 'extern'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:112: error: 'rpc_loc_client_handle_type' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:113: error: expected primary-expression before 'ioctl_type'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:114: error: expected primary-expression before '*' token
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:114: error: 'ioctl_data_ptr' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:115: error: expected primary-expression before 'timeout_msec'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:116: error: expected primary-expression before '*' token
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:116: error: 'cb_data_ptr' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_rpc_glue.h:117: error: initializer expression list treated as compound expression
In file included from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:35:
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/LocApiRpcAdapter.h:39: error: 'rpc_loc_client_handle_type' does not name a type
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/LocApiRpcAdapter.h:40: error: 'rpc_loc_event_mask_type' does not name a type
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/LocApiRpcAdapter.h:42: error: 'rpc_loc_event_mask_type' does not name a type
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/LocApiRpcAdapter.h:43: error: 'rpc_loc_event_mask_type' does not name a type
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/LocApiRpcAdapter.h:60: error: 'rpc_loc_client_handle_type' has not been declared
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/LocApiRpcAdapter.h:61: error: 'rpc_loc_event_mask_type' has not been declared
In file included from hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:39:
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_log.h:42: warning: 'loc_callback_log' initialized and declared 'extern'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_log.h:42: error: 'rpc_loc_event_mask_type' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_log.h:43: error: expected primary-expression before 'const'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_log.h:44: error: initializer expression list treated as compound expression
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_log.h:47: warning: 'loc_get_event_name' initialized and declared 'extern'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/rpc_inc/loc_api_log.h:47: error: 'rpc_loc_event_mask_type' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:65: error: 'rpc_loc_client_handle_type' has not been declared
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:66: error: 'rpc_loc_event_mask_type' has not been declared
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp: In function 'int32 loc_event_cb(void*, int, int, const rpc_loc_event_payload_u_type*)':
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:70: error: 'loc_get_event_name' cannot be used as a function
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:70: error: 'loc_get_event_name' cannot be used as a function
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:70: error: 'loc_get_event_name' cannot be used as a function
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:70: error: 'loc_get_event_name' cannot be used as a function
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:71: error: 'loc_callback_log' cannot be used as a function
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp: At global scope:
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:106: error: 'rpc_loc_event_mask_type' does not name a type
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp: In constructor 'LocApiRpcAdapter::LocApiRpcAdapter(LocEng&)':
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:121: error: class 'LocApiRpcAdapter' does not have any field named 'client_handle'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:122: error: class 'LocApiRpcAdapter' does not have any field named 'eMask'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:122: error: 'convertMask' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp: In destructor 'virtual LocApiRpcAdapter::~LocApiRpcAdapter()':
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:129: error: 'client_handle' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:130: error: 'loc_clear' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:133: error: 'client_handle' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:133: error: 'loc_close' cannot be used as a function
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp: At global scope:
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:136: error: 'rpc_loc_event_mask_type' does not name a type
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:201: error: 'int32 LocApiRpcAdapter::locEventCB' is not a static member of 'class LocApiRpcAdapter'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:201: error: 'rpc_loc_client_handle_type' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:202: error: 'rpc_loc_event_mask_type' was not declared in this scope
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:203: error: expected primary-expression before 'const'
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:203: error: initializer expression list treated as compound expression
hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/LocApiRpcAdapter.cpp:204: error: expected ',' or ';' before '{' token
make: *** [out/target/product/p500/obj/SHARED_LIBRARIES/libloc_api-rpc-qc_intermediates/src/LocApiRpcAdapter.o] Error 1
This is the craziest error i have ever seen...
Good luck buddy...
Sent from my LG-P500 using XDA
Oké, commondefs_rpcgen_rpc.h is missing...
Should be in one of the hardware/msm7k folders, but is not in any folder.
Thanks for pointing it out Samrox144, I looked over this one
_Arjen_ said:
Oké, commondefs_rpcgen_rpc.h is missing...
Should be in one of the hardware/msm7k folders, but is not in any folder.
Thanks for pointing it out Samrox144, I looked over this one
Click to expand...
Click to collapse
hope you fix it soon
Ok, trimmed down the errors (using gps folder from cm9 for now )
Next to solve:
Code:
Header: out/target/product/p500/obj/include/librpc/rpc/clnt.h
Header: out/target/product/p500/obj/include/librpc/rpc/pmap_clnt.h
Header: out/target/product/p500/obj/include/librpc/rpc/rpc.h
Header: out/target/product/p500/obj/include/librpc/rpc/rpc_router_ioctl.h
Header: out/target/product/p500/obj/include/librpc/rpc/svc.h
Header: out/target/product/p500/obj/include/librpc/rpc/types.h
Header: out/target/product/p500/obj/include/librpc/rpc/xdr.h
target thumb C++: gps.p500 <= hardware/qcom/gps/loc_api/libloc_api/loc_eng.cpp
hardware/qcom/gps/loc_api/libloc_api/loc_eng.cpp:116: warning: missing initializer for member 'GpsInterface::update_criteria'
hardware/qcom/gps/loc_api/libloc_api/loc_eng.cpp:126: error: invalid conversion from 'int (*)(const char*)' to 'int (*)(AGpsType, const char*, AGpsBearerType)'
hardware/qcom/gps/loc_api/libloc_api/loc_eng.cpp:126: error: invalid conversion from 'int (*)()' to 'int (*)(AGpsType)'
hardware/qcom/gps/loc_api/libloc_api/loc_eng.cpp:126: error: invalid conversion from 'int (*)()' to 'int (*)(AGpsType)'
hardware/qcom/gps/loc_api/libloc_api/loc_eng.cpp: In function 'void loc_eng_report_agps_status(AGpsType, AGpsStatusValue)':
hardware/qcom/gps/loc_api/libloc_api/loc_eng.cpp:2021: warning: missing initializer for member 'AGpsStatus::ipv4_addr'
hardware/qcom/gps/loc_api/libloc_api/loc_eng.cpp:2021: warning: missing initializer for member 'AGpsStatus::ipv6_addr'
make: *** [out/target/product/p500/obj/SHARED_LIBRARIES/gps.p500_intermediates/loc_eng.o] Error 1
_Arjen_ said:
Ok, trimmed down the errors (using gps folder from cm9 for now )
Next to solve:
Code:
Header: out/target/product/p500/obj/include/librpc/rpc/clnt.h
Header: out/target/product/p500/obj/include/librpc/rpc/pmap_clnt.h
Header: out/target/product/p500/obj/include/librpc/rpc/rpc.h
Header: out/target/product/p500/obj/include/librpc/rpc/rpc_router_ioctl.h
Header: out/target/product/p500/obj/include/librpc/rpc/svc.h
Header: out/target/product/p500/obj/include/librpc/rpc/types.h
Header: out/target/product/p500/obj/include/librpc/rpc/xdr.h
target thumb C++: gps.p500 <= hardware/qcom/gps/loc_api/libloc_api/loc_eng.cpp
hardware/qcom/gps/loc_api/libloc_api/loc_eng.cpp:116: warning: missing initializer for member 'GpsInterface::update_criteria'
hardware/qcom/gps/loc_api/libloc_api/loc_eng.cpp:126: error: invalid conversion from 'int (*)(const char*)' to 'int (*)(AGpsType, const char*, AGpsBearerType)'
hardware/qcom/gps/loc_api/libloc_api/loc_eng.cpp:126: error: invalid conversion from 'int (*)()' to 'int (*)(AGpsType)'
hardware/qcom/gps/loc_api/libloc_api/loc_eng.cpp:126: error: invalid conversion from 'int (*)()' to 'int (*)(AGpsType)'
hardware/qcom/gps/loc_api/libloc_api/loc_eng.cpp: In function 'void loc_eng_report_agps_status(AGpsType, AGpsStatusValue)':
hardware/qcom/gps/loc_api/libloc_api/loc_eng.cpp:2021: warning: missing initializer for member 'AGpsStatus::ipv4_addr'
hardware/qcom/gps/loc_api/libloc_api/loc_eng.cpp:2021: warning: missing initializer for member 'AGpsStatus::ipv6_addr'
make: *** [out/target/product/p500/obj/SHARED_LIBRARIES/gps.p500_intermediates/loc_eng.o] Error 1
Click to expand...
Click to collapse
I have done the same in my code, using cm9 gps folder...
But i dont get these errors...
Sent from my LG-P500 using XDA
Yeah,remember this ****,happened to me with OMGB camera. You just need to look into the msm7k files. Or just fgrep CM9 sources and CAF sources,see where this crap is defined and replace,or merge. Worked perfectly for me.
P.S: Today I'll have info on my laptop,it will probably sent on saturday or next week. It's been a month now can't wait to teamwork with you!
Changed some things for gps, will try later.
Dropped it now to go back to cm9
Hope you'll have your laptop back soon
_Arjen_ said:
Changed some things for gps, will try later.
Dropped it now to go back to cm9
Hope you'll have your laptop back soon
Click to expand...
Click to collapse
Man, you are a real kind heart, helping almost every developer on our forum...
Love you for that bro...
Sent from my LG-P500 using XDA
I also did a part on cm9, so why not help to get it ready for nightlies
And when you let the thing that is bothering you rest for a while, the solution comes always
Maybe this will help you....
http://forum.xda-developers.com/showthread.php?p=23696156
Sent from my LG-P500 using xda premium
target Prebuilt: system_etcdir (out/target/product/shakira/system/etc/bash/bash_logout)
bootable/recovery/extendedcommands.c: In function 'choose_file_menu':
bootable/recovery/extendedcommands.c:288: warning: passing argument 1 of 'get_menu_selection' from incompatible pointer type
bootable/recovery/recovery_ui.h:86: note: expected 'char **' but argument is of type 'const char **'
bootable/recovery/extendedcommands.c: In function 'show_choose_zip_menu':
bootable/recovery/extendedcommands.c:327: warning: passing argument 3 of 'choose_file_menu' from incompatible pointer type
bootable/recovery/extendedcommands.c:250: note: expected 'const char **' but argument is of type 'char **'
bootable/recovery/extendedcommands.c: In function 'show_nandroid_restore_menu':
bootable/recovery/extendedcommands.c:351: warning: passing argument 3 of 'choose_file_menu' from incompatible pointer type
bootable/recovery/extendedcommands.c:250: note: expected 'const char **' but argument is of type 'char **'
bootable/recovery/extendedcommands.c: In function 'show_mount_usb_storage_menu':
bootable/recovery/extendedcommands.c:369: warning: 'return' with a value, in function returning void
bootable/recovery/extendedcommands.c:376: warning: 'return' with a value, in function returning void
bootable/recovery/extendedcommands.c:396: warning: 'return' with a value, in function returning void
bootable/recovery/extendedcommands.c:403: warning: 'return' with a value, in function returning void
bootable/recovery/extendedcommands.c: In function 'confirm_selection':
bootable/recovery/extendedcommands.c:413: warning: initialization discards qualifiers from pointer target type
bootable/recovery/extendedcommands.c: In function 'format_device':
bootable/recovery/extendedcommands.c:450: warning: implicit declaration of function 'format_rfs_device'
bootable/recovery/extendedcommands.c:495: warning: implicit declaration of function 'reset_ext4fs_info'
bootable/recovery/extendedcommands.c:496: warning: implicit declaration of function 'make_ext4fs'
target Prebuilt: system_etcdir (out/target/product/shakira/system/etc/bash/bashrc)
bootable/recovery/extendedcommands.c: In function 'format_unknown_device':
bootable/recovery/extendedcommands.c:534: warning: implicit declaration of function 'format_ext3_device'
bootable/recovery/extendedcommands.c:543: warning: implicit declaration of function 'format_ext2_device'
bootable/recovery/extendedcommands.c: In function 'show_partition_menu':
bootable/recovery/extendedcommands.c:636: warning: passing argument 1 of 'sprintf' from incompatible pointer type
bionic/libc/include/stdio.h:265: note: expected 'char *' but argument is of type 'char (*)[255]'
bootable/recovery/extendedcommands.c:637: warning: passing argument 1 of 'sprintf' from incompatible pointer type
bionic/libc/include/stdio.h:265: note: expected 'char *' but argument is of type 'char (*)[255]'
bootable/recovery/extendedcommands.c:640: warning: passing argument 1 of 'is_safe_to_format' discards qualifiers from pointer target type
bootable/recovery/extendedcommands.c:585: note: expected 'char *' but argument is of type 'const char *'
bootable/recovery/extendedcommands.c:641: warning: passing argument 1 of 'sprintf' from incompatible pointer type
bionic/libc/include/stdio.h:265: note: expected 'char *' but argument is of type 'char (*)[255]'
bootable/recovery/extendedcommands.c:646: warning: passing argument 1 of 'is_safe_to_format' discards qualifiers from pointer target type
bootable/recovery/extendedcommands.c:585: note: expected 'char *' but argument is of type 'const char *'
bootable/recovery/extendedcommands.c:648: warning: passing argument 1 of 'sprintf' from incompatible pointer type
bionic/libc/include/stdio.h:265: note: expected 'char *' but argument is of type 'char (*)[255]'
bootable/recovery/extendedcommands.c:666: warning: implicit declaration of function 'is_path_mounted'
bootable/recovery/extendedcommands.c:682: warning: passing argument 2 of 'get_menu_selection' from incompatible pointer type
bootable/recovery/recovery_ui.h:86: note: expected 'char **' but argument is of type 'char * (*)[255]'
bootable/recovery/extendedcommands.c: In function 'show_nandroid_advanced_restore_menu':
bootable/recovery/extendedcommands.c:745: warning: passing argument 3 of 'choose_file_menu' from incompatible pointer type
bootable/recovery/extendedcommands.c:250: note: expected 'const char **' but argument is of type 'char **'
bootable/recovery/extendedcommands.c: In function 'show_nandroid_menu':
bootable/recovery/extendedcommands.c:831: warning: format '%d' expects type 'int', but argument 3 has type 'time_t *'
bootable/recovery/extendedcommands.c:855: warning: format '%d' expects type 'int', but argument 3 has type 'time_t *'
bootable/recovery/extendedcommands.c: In function 'show_advanced_menu':
bootable/recovery/extendedcommands.c:992: warning: assignment makes integer from pointer without a cast
bootable/recovery/extendedcommands.c:1044: warning: assignment makes integer from pointer without a cast
bootable/recovery/extendedcommands.c: In function 'process_volumes':
bootable/recovery/extendedcommands.c:1155: warning: format '%d' expects type 'int', but argument 3 has type 'time_t *'
make: *** [out/target/product/shakira/obj/EXECUTABLES/recovery_intermediates/extendedcommands.o] 错误 1
make: *** 正在等待未完成的任务....
who can help me how to do ?
Thank you very much !!!
i am sorry for my bad English
Delete the out folder..try to build again
Sent by Vince™
Vınce said:
Delete the out folder..try to build again
Sent by Vince™
Click to expand...
Click to collapse
OK,i will try ~~ thank you ~!!
Hi,
I am building my new CM9 rom for Shakira but on linux mint 14 I have a big problem with this error :
http://pastebin.com/kpprcWcA
I used MiniCM surouces
pastebin not open :S
frameworks/base/media/libstagefright/OMXCodec.cpp:2546: warning: enumeral mismatch in conditional expression: '<anonymous enum>' vs 'OMX_COLOR_FORMATTYPE'
frameworks/base/media/libstagefright/OMXCodec.cpp: In member function 'void android:MXCodec:nEvent(OMX_EVENTTYPE, OMX_U32, OMX_U32)':
frameworks/base/media/libstagefright/OMXCodec.cpp:3333: warning: comparison between signed and unsigned integer expressions
frameworks/base/media/libstagefright/OMXCodec.cpp: In member function 'void android:MXCodec:nCmdComplete(OMX_COMMANDTYPE, OMX_U32)':
frameworks/base/media/libstagefright/OMXCodec.cpp:3513: warning: comparison between signed and unsigned integer expressions
frameworks/base/media/libstagefright/OMXCodec.cpp: In member function 'bool android:MXCodec::flushPortAsync(OMX_U32)':
frameworks/base/media/libstagefright/OMXCodec.cpp:3828: warning: comparison between signed and unsigned integer expressions
frameworks/base/media/libstagefright/OMXCodec.cpp: In member function 'void android:MXCodec::drainInputBuffers()':
frameworks/base/media/libstagefright/OMXCodec.cpp:3963: warning: comparison between signed and unsigned integer expressions
frameworks/base/media/libstagefright/OMXCodec.cpp: In function 'const char* android::colorFormatString(OMX_COLOR_FORMATTYPE)':
frameworks/base/media/libstagefright/OMXCodec.cpp:5427: warning: comparison between 'enum OMX_COLOR_FORMATTYPE' and 'enum OMX_QCOM_COLOR_FORMATTYPE'
make: *** [out/target/product/shakira/obj/SHARED_LIBRARIES/libstagefright_intermediates/OMXCodec.o] Error 1
make: *** Waiting for unfinished jobs....
[email protected] ~/cm9 $
This is error code
I had a similar problem except that I did not want to load at all
"frameworks / base / media / libstagefright / OMXCodec.cpp: In member function 'bool android :: eek: MXCodec :: flushPortAsync (OMX_U32)'"
and stopped and also used to use Linux, so we tried it on ubuntu and there was no problem with you more, but this is different ...
can do it on ubuntu like me
I do not want to install a new system ...
Everything can be solved without re installation - I know this from experience!
Does anyone else have any other ideas?
Have a look here Soniakos
Try using make -j1
Ubuntu rullez i know it
Yeah Thanks !
I build CM9
surouces for my CM9 is posted on my team github
github.com/MimiTeam
Hey cool,
What solved the error?
Not working yet !
I thinked working but I see this error now :/
Soniakos said:
frameworks/base/media/libstagefright/OMXCodec.cpp:2546: warning: enumeral mismatch in conditional expression: '<anonymous enum>' vs 'OMX_COLOR_FORMATTYPE'
frameworks/base/media/libstagefright/OMXCodec.cpp: In member function 'void android:MXCodec:nEvent(OMX_EVENTTYPE, OMX_U32, OMX_U32)':
frameworks/base/media/libstagefright/OMXCodec.cpp:3333: warning: comparison between signed and unsigned integer expressions
frameworks/base/media/libstagefright/OMXCodec.cpp: In member function 'void android:MXCodec:nCmdComplete(OMX_COMMANDTYPE, OMX_U32)':
frameworks/base/media/libstagefright/OMXCodec.cpp:3513: warning: comparison between signed and unsigned integer expressions
frameworks/base/media/libstagefright/OMXCodec.cpp: In member function 'bool android:MXCodec::flushPortAsync(OMX_U32)':
frameworks/base/media/libstagefright/OMXCodec.cpp:3828: warning: comparison between signed and unsigned integer expressions
frameworks/base/media/libstagefright/OMXCodec.cpp: In member function 'void android:MXCodec::drainInputBuffers()':
frameworks/base/media/libstagefright/OMXCodec.cpp:3963: warning: comparison between signed and unsigned integer expressions
frameworks/base/media/libstagefright/OMXCodec.cpp: In function 'const char* android::colorFormatString(OMX_COLOR_FORMATTYPE)':
frameworks/base/media/libstagefright/OMXCodec.cpp:5427: warning: comparison between 'enum OMX_COLOR_FORMATTYPE' and 'enum OMX_QCOM_COLOR_FORMATTYPE'
make: *** [out/target/product/shakira/obj/SHARED_LIBRARIES/libstagefright_intermediates/OMXCodec.o] Error 1
make: *** Waiting for unfinished jobs....
[email protected] ~/cm9 $
This is error code
Click to expand...
Click to collapse
No this is not error... This is only warning....
The real error here:
Code:
target thumb C++: libstagefright <= frameworks/base/media/libstagefright/SurfaceMediaSource.cpp
frameworks/base/media/libstagefright/OMXCodec.cpp:2351:2: error: #endif without #if
and here:
Code:
frameworks/base/media/libstagefright/OMXCodec.cpp:2340: error: 'kRequiresStoreMetaDataBeforeIdle' was not declared in this scope
I hope how this help If not, I will see your repos, but first try to fix you..
Ok but now I installed Ubuntu 10.04 (On this I created my first rom Ice Elite CM9) on this Ubuntu I haven't errors...
And now I have some next problems but now with libusbx :/
I installed Ubuntu and I want to install flashtool... but I have a error with libusb, but I installed in termianl is :
[email protected]:/home/zodex/ft# ./FlashTool
Running as root.
JAVA_HOME not set. Using default value : ./x10flasher_lib/linjre64
Libusb not found. Minimum libusb version is 1.0.14
It can be downloaded on http://www.libusbx.org
Can you help me now ?
Soniakos said:
Ok but now I installed Ubuntu 10.04 (On this I created my first rom Ice Elite CM9) on this Ubuntu I haven't errors...
And now I have some next problems but now with libusbx :/
I installed Ubuntu and I want to install flashtool... but I have a error with libusb, but I installed in termianl is :
[email protected]:/home/zodex/ft# ./FlashTool
Running as root.
JAVA_HOME not set. Using default value : ./x10flasher_lib/linjre64
Libusb not found. Minimum libusb version is 1.0.14
It can be downloaded on http://www.libusbx.org
Can you help me now ?
Click to expand...
Click to collapse
http://www.libusbx.org
Visit the site, download the source, then build lubusbx
install it then restart pc...
I installed this :/
But error is :/
And I have next error :
[email protected]:~/cm9$ repo init -u git://github.com/zodex/android.git -b ics
fatal: git 1.7.2 or later required
OMG ! Why errors ?
Soniakos said:
I installed this :/
But error is :/
And I have next error :
[email protected]:~/cm9$ repo init -u git://github.com/zodex/android.git -b ics
fatal: git 1.7.2 or later required
OMG ! Why errors ?
Click to expand...
Click to collapse
needed newer version of git...
sudo apt-get install git-core
if says how the latest version installed:
https://launchpad.net/~git-core/+archive/candidate
install 1.8 from here
I have error !
Bro help me please...
make: *** [out/target/product/shakira/obj/SHARED_LIBRARIES/libstagefright_intermediates/OMXCodec.o] Error 1
make: *** Waiting for unfinished jobs....
This is not like me ...
Can u help me ?
In frameworks/base/media/libstagefright/OMXCodec.cpp find this: (Line 2337-2351)
Code:
#if !defined(QCOM_LEGACY_OMX) && !defined(STE_HARDWARE)
if ((mFlags & kStoreMetaDataInVideoBuffers)
#else
if (!(mQuirks & kRequiresStoreMetaDataBeforeIdle)
&& (mFlags & kStoreMetaDataInVideoBuffers)
#endif
&& portIndex == kPortIndexInput) {
LOGW("Trying to enable metadata mode on encoder");
err = mOMX->storeMetaDataInBuffers(mNode, kPortIndexInput, OMX_TRUE);
if (err != OK) {
LOGE("Storing meta data in video buffers is not supported");
return err;
}
}
#endif
Then replace with this:
Code:
#ifndef QCOM_LEGACY_OMX if ((mFlags & kStoreMetaDataInVideoBuffers)
&& portIndex == kPortIndexInput) {
LOGW("Trying to enable metadata mode on encoder");
err = mOMX->storeMetaDataInBuffers(mNode, kPortIndexInput, OMX_TRUE);
if (err != OK) {
LOGE("Storing meta data in video buffers is not supported");
return err;
}
}
#endif
Very Thanks bro !
Sorry bro's but I have new problem :/
in console :
running: java -Xmx512m -jar out/host/linux-x86/framework/signapk.jar -w build/target/product/security/testkey.x509.pem build/target/product/security/testkey.pk8 /tmp/tmpNRP2MT out/target/product/shakira/cm_shakira-ota-eng.zodex.zip
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2798)
at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:111)
at java.util.zip.DeflaterOutputStream.deflate(DeflaterOutputStream.java:178)
at java.util.zip.DeflaterOutputStream.write(DeflaterOutputStream.java:135)
at java.util.zip.ZipOutputStream.write(ZipOutputStream.java:289)
at com.android.signapk.SignApk.copyFiles(SignApk.java:422)
at com.android.signapk.SignApk.main(SignApk.java:490)
ERROR: signapk.jar failed: return code 1
make: *** [out/target/product/shakira/cm_shakira-ota-eng.zodex.zip] Error 1
I know... This is java problem but I can't fix it :/
Can you help me ?
You can get OOM errors if you don't have a big enough swap partition when compiling.
Use 6GB swap on a build machine..
Your error may be from something else, i'm just pointing out another possible cause..
Hey, I'm fairly new to using android studios and I am trying to make an app that updates its display every few seconds.
The method I am currently using is to update when a button is pressed using the following:
public void Refreshing(View view) {
// do stuff here...
}
Where Refreshing is the onClick of a button I placed.
How can I use a similar format but instead of doing things on a button press just have it done automatically after a few seconds?
You can use a android.os.Handler for that. It allows you to interact with the event loop and post a Runnable that will be executed after a given delay
In your Activity's onCreate() method:
Code:
final int delayMs = 1000;
final Handler handler = new Handler(this);
final Runnable runnable = new Runnable() {
@Override public void run() {
// Call your refresh method
Refreshing();
// Restart the timer
handler.postDelayed(runnable, delayMs);
};
}
handler.postDelayed(runnable, delayMs);
Thanks, this is exactly what I'm looking for. I add the code to the onCreate but I had an semicolon error. So I added another semicolon but its having trouble with a few other parts. Here is what I have.
Code:
final int delayMs = 1000;
final Handler handler = new Handler([B]this[/B]);
final Runnable runnable = new Runnable() {
@Override public void run() {
// Call your refresh method
Refreshing();
// Restart the timer
handler.postDelayed([B]runnable[/B], delayMs);
};
};
handler.postDelayed(runnable, delayMs);
The error listed is:
Error : (134, 33) error: no suitable constructor found for Handler(MainActivity)
constructor Handler.Handler(Looper,Callback) is not applicable
(actual and formal argument lists differ in length)
constructor Handler.Handler(Looper) is not applicable
(actual argument MainActivity cannot be converted to Looper by method invocation conversion)
constructor Handler.Handler(Callback) is not applicable
(actual argument MainActivity cannot be converted to Callback by method invocation conversion)
constructor Handler.Handler() is not applicable
(actual and formal argument lists differ in length)
The words I bolded are underlined in red in Android Studios.
this ----------------has a constructor error
runnable ----------has a initialization error
I tried troubleshooting for a little bit and took out the this and the only error left is with runnable. It says: Error: (141, 37) error: variable runnable might not have been initialized
Yep, I wrote the code without testing it. It might need some adaptation.
Here is a version that should work:
Code:
final int delayMs = 1000;
final Handler handler = new Handler([B]this[/B]);
final Runnable runnable = new Runnable() {
@Override public void run() {
// Call your refresh method
Refreshing();
// Restart the timer
handler.postDelayed([B]this[/B], delayMs);
};
};
handler.postDelayed([B]runnable[/B], delayMs);
Thank you so much, it worked. I just had to change
Code:
final Handler handler = new Handler(this);
to
Code:
final Handler handler = new Handler();
Hello guys i just set up build environment for cm13 the non caf version,cant build kernel from that getting error
this is the error
HTML:
target thumb C++: libbase <= system/core/base/logging.cpp
target thumb C++: liblog <= system/core/liblog/log_time.cpp
target thumb C: liblog <= system/core/liblog/logd_write.c
target thumb C: liblog <= system/core/liblog/log_event_write.c
target thumb C: liblog <= system/core/liblog/event_tag_map.c
In file included from bionic/libc/include/stdatomic.h:156:0,
from system/core/liblog/logd_write.c:25:
bionic/libc/include/uchar.h:40:35: error: unknown type name 'char16_t'
size_t c16rtomb(char* __restrict, char16_t, mbstate_t* __restrict);
^
bionic/libc/include/uchar.h:41:35: error: unknown type name 'char32_t'
size_t c32rtomb(char* __restrict, char32_t, mbstate_t* __restrict);
^
bionic/libc/include/uchar.h:42:17: error: unknown type name 'char16_t'
size_t mbrtoc16(char16_t* __restrict,
^
bionic/libc/include/uchar.h:46:17: error: unknown type name 'char32_t'
size_t mbrtoc32(char32_t* __restrict,
^
In file included from system/core/liblog/logd_write.c:25:0:
bionic/libc/include/stdatomic.h:367:11: error: expected specifier-qualifier-list before 'char16_t'
typedef _Atomic(char16_t) atomic_char16_t;
^
bionic/libc/include/stdatomic.h:368:11: error: expected specifier-qualifier-list before 'char32_t'
typedef _Atomic(char32_t) atomic_char32_t;
^
build/core/binary.mk:816: recipe for target '/home/preshot2989/android/out/target/product/hammerhead/obj/STATIC_LIBRARIES/liblog_intermediates/logd_write.o' failed
make: *** [/home/preshot2989/android/out/target/product/hammerhead/obj/STATIC_LIBRARIES/liblog_intermediates/logd_write.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** wait: No child processes. Stop.
#### make failed to build some targets (04:45 (mm:ss)) ####
Using default toolchain for kernel GCC 4.8