Hi everyone!
I'm trying to build Jellaxy kernel (https://github.com/Jellaxy/android_kernel_samsung_msm7x27/).
I've cloned the repo, and i have enetered:
Code:
make tass_cm_rev00_defconfig
make menuconfig
make -j4
However i keep having this error:
Code:
drivers/gpu/msm/kgsl_drm.c:1614:20: error: 'KGSL_GEM_CREATE' undeclared here (not in a function)
drivers/gpu/msm/kgsl_drm.c:1615:20: error: 'KGSL_GEM_PREP' undeclared here (not in a function)
drivers/gpu/msm/kgsl_drm.c:1616:20: error: 'KGSL_GEM_SETMEMTYPE' undeclared here (not in a function)
drivers/gpu/msm/kgsl_drm.c:1617:20: error: 'KGSL_GEM_GETMEMTYPE' undeclared here (not in a function)
drivers/gpu/msm/kgsl_drm.c:1618:20: error: 'KGSL_GEM_BIND_GPU' undeclared here (not in a function)
drivers/gpu/msm/kgsl_drm.c:1619:20: error: 'KGSL_GEM_UNBIND_GPU' undeclared here (not in a function)
drivers/gpu/msm/kgsl_drm.c:1620:20: error: 'KGSL_GEM_ALLOC' undeclared here (not in a function)
drivers/gpu/msm/kgsl_drm.c:1621:20: error: 'KGSL_GEM_MMAP' undeclared here (not in a function)
drivers/gpu/msm/kgsl_drm.c:1622:20: error: 'KGSL_GEM_GET_BUFINFO' undeclared here (not in a function)
drivers/gpu/msm/kgsl_drm.c:1623:20: error: 'KGSL_GEM_SET_BUFCOUNT' undeclared here (not in a function)
drivers/gpu/msm/kgsl_drm.c:1625:20: error: 'KGSL_GEM_SET_ACTIVE' undeclared here (not in a function)
drivers/gpu/msm/kgsl_drm.c:1626:20: error: 'KGSL_GEM_LOCK_HANDLE' undeclared here (not in a function)
drivers/gpu/msm/kgsl_drm.c:1628:20: error: 'KGSL_GEM_UNLOCK_HANDLE' undeclared here (not in a function)
drivers/gpu/msm/kgsl_drm.c:1630:20: error: 'KGSL_GEM_UNLOCK_ON_TS' undeclared here (not in a function)
drivers/gpu/msm/kgsl_drm.c:1632:20: error: 'KGSL_GEM_CREATE_FD' undeclared here (not in a function)
cc1: some warnings being treated as errors
Any idea what the cause is? There's absolutely nothing in google
All I can understand is in kgsl_drm.c source file, KGSL_GEM_CREATE, KGSL_GEM_PREP and other functions are not declared before/ anywhere and are being called.
Thanks for your answer.
chemicalrage said:
KGSL_GEM_CREATE, KGSL_GEM_PREP and other functions are not declared anywhere and are being called.
Click to expand...
Click to collapse
Yes, i thought the same thing but i can't understand which file i am missing!
frazar said:
Thanks for your answer.
Yes, i thought the same thing but i can't understand which file i am missing!
Click to expand...
Click to collapse
nope, you have to use the config for your device, and use the cyanogenmod one, as follows
(on the root directory of the kernel)
make cyanogenmod_<device>_defconfig
in example, Galaxy mini
make cyanogenmod_tass_defconfig
(and then compile after it setups the config)
make ARCH=arm CROSS_COMPILE=<path/to/your/compiler>
and then you will have a zImage (which is NON bootable, you need to make a boot.img with the correct partitions layout and parameters) in the arch/arm/boot directory.
Paul L. said:
make cyanogenmod_tass_defconfig
Click to expand...
Click to collapse
Thank you so much!
Related
Hey everyone,
So I'm attempting to compile the kernel from source for the Nexus One and I'm almost there but run into this problem on "make"
$ make
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf -s arch/arm/Kconfig
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CC kernel/bounds.s
GEN include/generated/bounds.h
CC arch/arm/kernel/asm-offsets.s
GEN include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
scripts/mod/mk_elfconfig.c:4:17: error: elf.h: No such file or directory
scripts/mod/mk_elfconfig.c: In function ‘main’:
scripts/mod/mk_elfconfig.c:9: error: ‘EI_NIDENT’ undeclared (first use in this function)
scripts/mod/mk_elfconfig.c:9: error: (Each undeclared identifier is reported only once
scripts/mod/mk_elfconfig.c:9: error: for each function it appears in.)
scripts/mod/mk_elfconfig.c:16: error: ‘ELFMAG’ undeclared (first use in this function)
scripts/mod/mk_elfconfig.c:16: error: ‘SELFMAG’ undeclared (first use in this function)
scripts/mod/mk_elfconfig.c:20: error: ‘EI_CLASS’ undeclared (first use in this function)
scripts/mod/mk_elfconfig.c:21: error: ‘ELFCLASS32’ undeclared (first use in this function)
scripts/mod/mk_elfconfig.c:24: error: ‘ELFCLASS64’ undeclared (first use in this function)
scripts/mod/mk_elfconfig.c:30: error: ‘EI_DATA’ undeclared (first use in this function)
scripts/mod/mk_elfconfig.c:31: error: ‘ELFDATA2LSB’ undeclared (first use in this function)
scripts/mod/mk_elfconfig.c:34: error: ‘ELFDATA2MSB’ undeclared (first use in this function)
scripts/mod/mk_elfconfig.c:9: warning: unused variable ‘ei’
make[2]: *** [scripts/mod/mk_elfconfig] Error 1
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
Click to expand...
Click to collapse
I'm not really finding a lot of information in regards to Nexus One kernel development :-/
Edit: Solved!
This is for Mac OS X
1. I needed to reference in my $path /Android NDK directory/prebuilt/darwin-x86/toolchain/arm-eabi-4.4.0/bin instead of /linux-x86/
2. I needed to add a file: "elf.h" to /kernel repository/scripts/mod/
Data for the file here -> http://www.rockbox.org/tracker/9006?getfile=16683
3. I needed to change #include <elf.h> to #include "elf.h" in the following files in /kernel repository/scripts/mod/: mk_elfconfig.c and modpost.h
Original link that sort of helped halfway: http://comments.gmane.org/gmane.comp.handhelds.android.kernel/383
This trick still works!
I got mine from:
http://www.opensource.apple.com/source/dtrace/dtrace-90/sys/elf.h
Needed it to compile for Galaxy Nexus (maguro).
RMGeren said:
I got mine from:
http://www.opensource.apple.com/source/dtrace/dtrace-90/sys/elf.h
Needed it to compile for Galaxy Nexus (maguro).
Click to expand...
Click to collapse
when I build the francciscofranco's jb 4.1 kernel for google nexus, the OP's elf.h works fine for me.
but yours failed, got some error message like this.
Code:
scripts/mod/modpost.c:1487: error: ‘R_386_32’ undeclared (first use in this function)
scripts/mod/modpost.c:1487: error: (Each undeclared identifier is reported only once
scripts/mod/modpost.c:1487: error: for each function it appears in.)
scripts/mod/modpost.c:1490: error: ‘R_386_PC32’ undeclared (first use in this function)
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
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..
Hi Everyone,
I thought someone will be able to help. I'm getting those build errors when building cm11 from source. This is just at the end when building apks. Is it me or cm source?
Code:
In file included from external/chromium_org/content/common/android/hash_set.cc:5:0:
/root/cm/out/target/product/m7ul/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:10:26: error: extra tokens at end of #ifndef directive [-Werror]
/root/cm/out/target/product/m7ul/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:11:26: error: missing whitespace after the macro name [-Werror]
target thumb C++: content_content_common_gyp <= external/chromium_org/content/common/browser_rendering_stats.cc
target thumb C++: content_content_common_gyp <= external/chromium_org/content/common/cc_messages.cc
target thumb C++: content_content_common_gyp <= external/chromium_org/content/common/child_process_host_impl.cc
In file included from external/chromium_org/content/common/android/hash_set.cc:5:0:
/root/cm/out/target/product/m7ul/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:24:20: error: expected initializer before '<' token
/root/cm/out/target/product/m7ul/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:26:17: error: expected initializer before '<' token
/root/cm/out/target/product/m7ul/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:29:22: error: expected '{' before '<' token
/root/cm/out/target/product/m7ul/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:29:22: error: expected unqualified-id before '<' token
external/chromium_org/content/common/android/hash_set.cc:30:1: error: expected '}' at end of input
cc1plus: all warnings being treated as errors
make: *** [/root/cm/out/target/product/m7ul/obj/STATIC_LIBRARIES/content_content_common_gyp_intermediates/content/common/android/hash_set.o] Error 1
make: *** Waiting for unfinished jobs....
golcheck said:
Hi Everyone,
I thought someone will be able to help. I'm getting those build errors when building cm11 from source. This is just at the end when building apks. Is it me or cm source?
Code:
In file included from external/chromium_org/content/common/android/hash_set.cc:5:0:
/root/cm/out/target/product/m7ul/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:10:26: error: extra tokens at end of #ifndef directive [-Werror]
/root/cm/out/target/product/m7ul/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:11:26: error: missing whitespace after the macro name [-Werror]
target thumb C++: content_content_common_gyp <= external/chromium_org/content/common/browser_rendering_stats.cc
target thumb C++: content_content_common_gyp <= external/chromium_org/content/common/cc_messages.cc
target thumb C++: content_content_common_gyp <= external/chromium_org/content/common/child_process_host_impl.cc
In file included from external/chromium_org/content/common/android/hash_set.cc:5:0:
/root/cm/out/target/product/m7ul/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:24:20: error: expected initializer before '<' token
/root/cm/out/target/product/m7ul/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:26:17: error: expected initializer before '<' token
/root/cm/out/target/product/m7ul/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:29:22: error: expected '{' before '<' token
/root/cm/out/target/product/m7ul/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:29:22: error: expected unqualified-id before '<' token
external/chromium_org/content/common/android/hash_set.cc:30:1: error: expected '}' at end of input
cc1plus: all warnings being treated as errors
make: *** [/root/cm/out/target/product/m7ul/obj/STATIC_LIBRARIES/content_content_common_gyp_intermediates/content/common/android/hash_set.o] Error 1
make: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse
Try this
http://www.playfuldroidz.com/wiki/How_to_Fix_HashSet_Issues_Building_Android
crt60 said:
Try this
http://www.playfuldroidz.com/wiki/How_to_Fix_HashSet_Issues_Building_Android
Click to expand...
Click to collapse
It was actually my fault. Was building with Java 7. Switched back to Java 6 and all good now. Thanks anyway
Build issues with openjdk-6-jdk_6b30
Hi,
just wanted to mention that I got the very same issue, introduced by a system update which also did update the jdk to 6b30. Took me some time to figure out that this was the actual issue, and it could only be resolved by switching back to 6b27 (which I had installed before)
Just in case someone comes across the same issue on Ubuntu precise, go back instantly and don't lose that much time as I did looking for the root cause somewhere else.
Interestingly, the newer raring, swarty releases are still on 6b27
Hi guys
Thought I should start a thread for various AOSP builds people are doing for their Sony Z5Compact. We can trouble shoot errors and generally take advantage of the way Sony encourage open source development for their devices.
Ill get the ball rolling. (see below)
AOSP NOUGAT 7.1
https://mega.nz/#!Jh5WxSYS!DkYHgBjtR...V6Vdxq11xMplcg
TWRP3.0.3
https://mega.nz/#!QhoBESZI!XzXzHvosc...X57GnZvRBEPoR4
AOSP NOUGAT
Installable .zip compiled with mm binaries: https://mega.nz/#!h8530CLS!vmwYkb4JBdx8YtOaqkETq84bFeR9wiz2KYIlNOWnFBM (as sony has not published N binaries yet.)
Nougat .img files for z5c: https://mega.nz/#!5h5gxYKI!AuCFTO6MV4J5rfMBK_A1Q4eOBr5ZoXQIG2wEW9Fffxg
AOSP MM BUILD for Z5C.
Android 6.1
New Build with Julys/Android N compatible binaries Build # MOB30W
Installable .zip: https://mega.nz/#!80BlACKS!hefd26xN36UPcgnGEfdp9BkPsZvjS3k4Bvzo3dmU9I8
Raw .img files: https://mega.nz/#!FoYTGQbT!8ifDpGlZSaXgsHo1_gLm-67YIdDo0-BW85hra5ZToVY
New Build as of 29/04/16 (untested as of yet) Ignore below list of what works as I havent flashed this to my phone yet.
https://mega.nz/#!MwJ3wSJb!6ALDvaSIPQK0kc8R6MU5mVhUmKKCzVovE54tLcNxTx0
Older MM build (.img files)
https://mega.nz/#!B5hhyYhT!Z1lMcwxHc3KC9lDRCwOcyImBXXLuHgqROZ76J5xArew
RECOMMENDED DO A FULL WIPE OF DATA AND SYSTEM BEFORE FLASHING. Have your old/stock system, recovery,boot.img saved on your pc, as TWRP is not supported in AOSP kernel.
Boots fine.
will load and use previous userdata from rooted sony stock. (but not recommended to dirty flash!)
Data connection was patchy
Camera works but is awful.
External and internal sd card detection/mounts fine, but the rom wants to re format your external sd card before it mounts.
Regards
Joeisgood99
@Joeisgood99, your links are missing the Mega decryption key.
Anyway, I compiled 5.1.1_r24 (latest Lollipop) from source and uploaded here:
https://mega.nz/#!1hZlFCoT!UIEBo9CjaYu0Eg-4CeVdRijchRqNwbErUZPL4qbhzRo
I have no Z5C so consider it fully UNtested.
Still no luck with my 6.0.0_r1 build
nilezon said:
@Joeisgood99, your links are missing the Mega decryption key.
Anyway, I compiled 5.1.1_r24 (latest Lollipop) from source and uploaded here:
https://mega.nz/#!1hZlFCoT!UIEBo9CjaYu0Eg-4CeVdRijchRqNwbErUZPL4qbhzRo
I have no Z5C so consider it fully UNtested.
Still no luck with my 6.0.0_r1 build
Click to expand...
Click to collapse
Thanks for that!
I have only made it about 19 mins in to 6.0.0_r1 build before it fails.
target thumb C: libmmcamera_interface_32 <= hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_thread.c
In file included from hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera.c:44:0:
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/../common/mm_camera_interface.h:98:21: error: 'MSM_CAMERA_MAX_USER_BUFF_CNT' undeclared here (not in a function)
int32_t buf_idx[MSM_CAMERA_MAX_USER_BUFF_CNT];
^
In file included from hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_interface.c:44:0:
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/../common/mm_camera_interface.h:98:21: error: 'MSM_CAMERA_MAX_USER_BUFF_CNT' undeclared here (not in a function)
int32_t buf_idx[MSM_CAMERA_MAX_USER_BUFF_CNT];
^
In file included from hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_channel.c:40:0:
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/../common/mm_camera_interface.h:98:21: error: 'MSM_CAMERA_MAX_USER_BUFF_CNT' undeclared here (not in a function)
int32_t buf_idx[MSM_CAMERA_MAX_USER_BUFF_CNT];
^
In file included from hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_thread.c:41:0:
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/../common/mm_camera_interface.h:98:21: error: 'MSM_CAMERA_MAX_USER_BUFF_CNT' undeclared here (not in a function)
int32_t buf_idx[MSM_CAMERA_MAX_USER_BUFF_CNT];
^
build/core/binary.mk:801: recipe for target 'out/target/product/suzuran/obj_arm/SHARED_LIBRARIES/libmmcamera_interface_intermediates/src/mm_camera.o' failed
target thumb C: libmmcamera_interface_32 <= hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_sock.c
make: *** [out/target/product/suzuran/obj_arm/SHARED_LIBRARIES/libmmcamera_interface_intermediates/src/mm_camera.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_stream.c:45:0:
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/../common/mm_camera_interface.h:98:21: error: 'MSM_CAMERA_MAX_USER_BUFF_CNT' undeclared here (not in a function)
int32_t buf_idx[MSM_CAMERA_MAX_USER_BUFF_CNT];
^
build/core/binary.mk:801: recipe for target 'out/target/product/suzuran/obj_arm/SHARED_LIBRARIES/libmmcamera_interface_intermediates/src/mm_camera_thread.o' failed
make: *** [out/target/product/suzuran/obj_arm/SHARED_LIBRARIES/libmmcamera_interface_intermediates/src/mm_camera_thread.o] Error 1
build/core/binary.mk:801: recipe for target 'out/target/product/suzuran/obj_arm/SHARED_LIBRARIES/libmmcamera_interface_intermediates/src/mm_camera_interface.o' failed
make: *** [out/target/product/suzuran/obj_arm/SHARED_LIBRARIES/libmmcamera_interface_intermediates/src/mm_camera_interface.o] Error 1
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_stream.c: In function 'mm_stream_write_user_buf':
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_stream.c:1046:21: error: dereferencing pointer to incomplete type
cont_buf->buf_cnt = my_obj->buf[buf->buf_idx].user_buf.bufs_used;
^
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_stream.c:1047:46: error: dereferencing pointer to incomplete type
for (i = 0; i < (int32_t)cont_buf->buf_cnt; i++) {
^
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_stream.c:1048:25: error: dereferencing pointer to incomplete type
cont_buf->buf_idx = my_obj->buf[buf->buf_idx].user_buf.buf_idx;
^
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_stream.c:1055:50: error: dereferencing pointer to incomplete type
for (i = 0; i < (int32_t)cont_buf->buf_cnt; i++) {
^
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_stream.c:1103:21: error: dereferencing pointer to incomplete type
cont_buf->buf_cnt = my_obj->buf[index].user_buf.bufs_used;
^
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_stream.c:1104:46: error: dereferencing pointer to incomplete type
for (i = 0; i < (int32_t)cont_buf->buf_cnt; i++) {
^
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_stream.c:1105:25: error: dereferencing pointer to incomplete type
cont_buf->buf_idx = my_obj->buf[index].user_buf.buf_idx;
^
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_stream.c:1112:50: error: dereferencing pointer to incomplete type
for (i = 0; i < (int32_t)cont_buf->buf_cnt; i++) {
^
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_stream.c: In function 'mm_stream_read_user_buf':
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_stream.c:1163:60: error: dereferencing pointer to incomplete type
frameID = (buf_info->buf->frame_idx - 1) * user_buf->buf_cnt;
^
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_stream.c:1177:65: error: dereferencing pointer to incomplete type
my_obj->prev_timestamp = (timeStamp - (nsecs_t)(user_buf->buf_cnt * interval_nsec));
^
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_stream.c:1180:54: error: dereferencing pointer to incomplete type
interval_nsec = (nsecs_t)(ts_delta / user_buf->buf_cnt);
^
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_stream.c:1184:38: error: dereferencing pointer to incomplete type
for (i = 0; i < (int32_t)user_buf->buf_cnt; i++) {
^
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_stream.c:1185:54: error: dereferencing pointer to incomplete type
buf_info->buf->user_buf.buf_idx = user_buf->buf_idx;
^
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_stream.c:1186:49: error: dereferencing pointer to incomplete type
stream_buf = &my_obj->plane_buf[user_buf->buf_idx];
^
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_stream.c:1204:49: error: dereferencing pointer to incomplete type
buf_info->buf->user_buf.bufs_used = user_buf->buf_cnt;
^
build/core/binary.mk:801: recipe for target 'out/target/product/suzuran/obj_arm/SHARED_LIBRARIES/libmmcamera_interface_intermediates/src/mm_camera_channel.o' failed
make: *** [out/target/product/suzuran/obj_arm/SHARED_LIBRARIES/libmmcamera_interface_intermediates/src/mm_camera_channel.o] Error 1
build/core/binary.mk:801: recipe for target 'out/target/product/suzuran/obj_arm/SHARED_LIBRARIES/libmmcamera_interface_intermediates/src/mm_camera_stream.o' failed
make: *** [out/target/product/suzuran/obj_arm/SHARED_LIBRARIES/libmmcamera_interface_intermediates/src/mm_camera_stream.o] Error 1
#### make failed to build some targets (19:09 (mm:ss)) ####
Tried to fix it with this
https://git.geekli.st/pirej/kernel/commit/3b7ca4571409e0e38ae45afedf77afbf3099d801?view=parallel
or similar but didn’t work.
Thanks for your contribution!:good:
Joeisgood99 said:
Thanks for that!
I have only made it about 19 mins in to 6.0.0_r1 build before it fails.
Tried to fix it with this ... or similar but didn’t work.
Thanks for your contribution!:good:
Click to expand...
Click to collapse
I got similar errors.
You need to update the files in ./device/sony/kitakami/kernel-headers/ with files from the Sony kernel source code.
For example, replace:
https://github.com/sonyxperiadev/device-sony-kitakami/blob/master/kernel-headers/media/msmb_camera.h
with
https://github.com/Tommy-Geenexus/a...n_5.x/blob/master/include/media/msmb_camera.h
to get correct MSM_CAMERA_MAX_USER_BUFF_CNT definition.
You also need to add an header include to macaddrsetup.c to make it compile. See this pull request:
https://github.com/sonyxperiadev/macaddrsetup/pull/1
That's all I've got for now.
Edit:
This is the error I end up with:
Code:
No private recovery resources for TARGET_DEVICE suzuran
target Symbolic: init (out/target/product/suzuran/symbols/init)
target Unpacked: adbd (out/target/product/suzuran/obj/EXECUTABLES/adbd_intermediates/PACKED/adbd)
target StaticExecutable: healthd (out/target/product/suzuran/obj/EXECUTABLES/healthd_intermediates/LINKED/healthd)
out/host/linux-x86/bin/checkpolicy: loading policy configuration from out/target/product/suzuran/obj/ETC/sepolicy_intermediates/policy.conf
device/qcom/sepolicy/common/init_shell.te:3:ERROR 'unknown type init_shell' at token ';' on line 16010:
#for accessing fmradio device node
allow init_shell fm_radio_device:chr_file { open read ioctl };
checkpolicy: error(s) encountered while parsing configuration
make: *** [out/target/product/suzuran/obj/ETC/sepolicy_intermediates/sepolicy] Error 1
Edit2:
Possibly solution for sepolicy error:
https://github.com/alviteri/device-qcom-sepolicy/tree/test-m
Source: https://github.com/sonyxperiadev/device-qcom-sepolicy/pull/8
Edit3:
I got past the sepolicy errors, but face new problems.
Some definitions are missing:
Code:
target thumb C++: camera.msm8994_32 <= hardware/qcom/camera/QCamera2/HAL/QCamera2HWI.cpp
hardware/qcom/camera/QCamera2/HAL/QCamera2HWI.cpp: In member function 'int qcamera::QCamera2HardwareInterface::sendCommand(int32_t, int32_t&, int32_t&)':
hardware/qcom/camera/QCamera2/HAL/QCamera2HWI.cpp:3928:10: error: 'CAMERA_CMD_LONGSHOT_ON' was not declared in this scope
case CAMERA_CMD_LONGSHOT_ON:
^
hardware/qcom/camera/QCamera2/HAL/QCamera2HWI.cpp:3970:10: error: 'CAMERA_CMD_LONGSHOT_OFF' was not declared in this scope
case CAMERA_CMD_LONGSHOT_OFF:
^
etc ...
Awesome work @nilezon.
This thread is becoming a build diary for Sony aosp 6.0.0_r1.
I used the commits you pointed out. They fixed the issue, the build stooped 3 mins later with this error
target thumb C++: liboverlay_32 <= hardware/qcom/display/msm8994/liboverlay/overlayRotator.cpp
hardware/qcom/display/msm8994/liboverlay/overlayUtils.cpp: In function 'int overlay::utils::getMdpFormat(int, int)':
hardware/qcom/display/msm8994/liboverlay/overlayUtils.cpp:153:24: error: 'MDP_RGBA_8888_UBWC' was not declared in this scope
return MDP_RGBA_8888_UBWC;
^
hardware/qcom/display/msm8994/liboverlay/overlayUtils.cpp:155:24: error: 'MDP_RGB_565_UBWC' was not declared in this scope
return MDP_RGB_565_UBWC;
^
hardware/qcom/display/msm8994/liboverlay/overlayUtils.cpp:159:24: error: 'MDP_Y_CBCR_H2V2_UBWC' was not declared in this scope
return MDP_Y_CBCR_H2V2_UBWC;
^
target thumb C++: liboverlay_32 <= hardware/qcom/display/msm8994/liboverlay/overlayMdpRot.cpp
build/core/binary.mk:706: recipe for target 'out/target/product/suzuran/obj_arm/SHARED_LIBRARIES/liboverlay_intermediates/overlayUtils.o' failed
make: *** [out/target/product/suzuran/obj_arm/SHARED_LIBRARIES/liboverlay_intermediates/overlayUtils.o] Error 1
make: *** Waiting for unfinished jobs....
target thumb C++: liboverlay_32 <= hardware/qcom/display/msm8994/liboverlay/overlayMdssRot.cpp
#### make failed to build some targets (21:25 (mm:ss)) ####
All these undeclared formats are declared in /devices/sony/kitakami/kernel-headers/linux/msm_mdp.h
but haven’t had a chance to even look at why info isn’t getting passed along yet. Has been a big family oriented weekend. Just sat down. Ill look in to your errors.
Thanks again!
Seems to be a problem with a broken make config, the kitakami settings are not being applied or reverting. The source is also missing a few defines, mainly around the camera it seems.
thx for your great work!
has anyone tested the 5.1.1. builds? are there any known issues?
can't use my phone without root and bloatware instead.
M!tch said:
thx for your great work!
has anyone tested the 5.1.1. builds? are there any known issues?
can't use my phone without root and bloatware instead.
Click to expand...
Click to collapse
Most are holding out for a way to keep DRM keys I think, slows down the trial and error process a bit.
M!tch said:
thx for your great work!
has anyone tested the 5.1.1. builds? are there any known issues?
can't use my phone without root and bloatware instead.
Click to expand...
Click to collapse
I compiled AOSP but couldn't get it to boot. Most likely something wrong with the pre-compiled kernel image.
does the build from the op work?
M!tch said:
does the build from the op work?
Click to expand...
Click to collapse
Don't know. I didn't test.
BUT, FreeXperia has published suzuran (Z5C) build for 5.1.1:
http://fxpblog.co/aosp/aosp-5-1/
http://uploaded.net/file/rg3ocwy3/from/ub0dtu
I don't know if they work either, but I guess they usually does?
I've tried flashing the images in the OP and it just hangs when sending system. Have waited 30 minutes and still nothing.
creebefu said:
I've tried flashing the images in the OP and it just hangs when sending system. Have waited 30 minutes and still nothing.
Click to expand...
Click to collapse
Did you flash with the sparse flag?
Code:
fastboot -S 256M flash system system.img
nilezon said:
Did you flash with the sparse flag?
Code:
fastboot -S 256M flash system system.img
Click to expand...
Click to collapse
That flashed okay, but rebooted and it ended up turning itself off after the Sony - Xperia screen.
For the others I'm literally just doing:
fastboot flash boot boot.img
fastboot flash recovery recovery.img
etc.
Any other commands I should try?
creebefu said:
That flashed okay, but rebooted and it ended up turning itself off after the Sony - Xperia screen.
For the others I'm literally just doing:
fastboot flash boot boot.img
fastboot flash recovery recovery.img
etc.
Any other commands I should try?
Click to expand...
Click to collapse
Hmm, I didn't know that you could flash a recovery image to an Xperia phone:
Code:
fastboot flash recovery recovery.img
I don't think there is any recovery partition.
nilezon said:
Hmm, I didn't know that you could flash a recovery image to an Xperia phone:
Code:
fastboot flash recovery recovery.img
I don't think there is any recovery partition.
Click to expand...
Click to collapse
That's strange as it was flashing fine, and says success.
I'll reset back to stock firmware, then try again without flashing recovery.
creebefu said:
That's strange as it was flashing fine, and says success.
I'll reset back to stock firmware, then try again without flashing recovery.
Click to expand...
Click to collapse
You do that, but I am sure it will not boot anyway.
I think it's something wrong with the pre-built kernel, but I'm not sure.
M!tch said:
does the build from the op work?
Click to expand...
Click to collapse
creebefu said:
I've tried flashing the images in the OP and it just hangs when sending system. Have waited 30 minutes and still nothing.
Click to expand...
Click to collapse
nilezon said:
You do that, but I am sure it will not boot anyway.
I think it's something wrong with the pre-built kernel, but I'm not sure.
Click to expand...
Click to collapse
Thanks for testing guys. I STILL don’t have a Z5C so Im kind of useless atm. I did nothing to alter the code for my build, just sync and make.
Maybe try flashing zombie boot.img (I’m assuming ramdisk is from 32.0.A.5.32/R4B or similar? ) to get aosp to build.
Ill change the op with update that building straight from source produces non bootable rom/or kernel.
Also re the recovery partition: This is new to me as I’m coming from HTC where there was a designated recovery partition however I’m sure that when you flash a recovery.img to a Sony phone
Code:
fastboot flash recovery fotatwrp.img
for example, you are flashing it to the FOTAKernel partition, which is empty on an unlocked xperia because it used to handle the OEM OTA's, but is wiped upon unlocking the phone. The only way you can boot from this partition is to have extract-elf-ramdisk compiled in your ramdisk.cpio (source code) https://github.com/Dees-Troy/extract_elf_ramdisk. Or you can just have the recovery in the boot.img and boot in to recovery via fastboot.
Sony veterans please correct me if I’m wrong.
Some info.
https://twrp.me/devices/sonyxperiaz.html
Joeisgood99 said:
Sony veterans please correct me if I’m wrong.
Some info.
https://twrp.me/devices/sonyxperiaz.html
Click to expand...
Click to collapse
Thats untrue for Xperia Z5C ... It already has new bootloader and here is your recovery partition:
/dev/block/bootdevice/by-name/recovery
See Z5C official sourcecode
Sent from my mint using XDA Free mobile app
nilezon said:
Don't know. I didn't test.
BUT, FreeXperia has published suzuran (Z5C) build for 5.1.1:
http://fxpblog.co/aosp/aosp-5-1/
http://uploaded.net/file/rg3ocwy3/from/ub0dtu
I don't know if they work either, but I guess they usually does?
Click to expand...
Click to collapse
the op says, the build is working. but i guess it's not confirmed yet because it refers to you.
is there any other source to get information about the builds from fxp?