I have tried to compile AOKP 4.1.2 with this Cherry Pick:
git fetch http://review.cyanogenmod.org/CyanogenMod/android_frameworks_base refs/changes/85/13285/9 && git cherry-pick FETCH_HEAD
and I get this near the end of the build:
target SharedLib: camera.msm7x30 (out/target/product/ancora_tmo/obj/SHARED_LIBRARIES/camera.msm7x30_intermediates/LINKED/camera.msm7x30.so)
/home/theapant/aokp/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/ancora_tmo/obj/SHARED_LIBRARIES/camera.msm7x30_intermediates/cameraHAL.o: in function camera_set_preview_window(camera_device*, preview_stream_ops*):frameworks/base/include/ui/cameraHAL.cpp:494: error: undefined reference to 'android:verlay:verlay(void (*)(void*, int), void (*)(void*, unsigned int, unsigned int, unsigned int, unsigned int), void (*)(void*, void*), void*)'
collect2: ld returned 1 exit status
make: *** [out/target/product/ancora_tmo/obj/SHARED_LIBRARIES/camera.msm7x30_intermediates/LINKED/camera.msm7x30.so] Error 1
make: *** Waiting for unfinished jobs....
I have build aokp before using camcory's prebuilt, and everything works fine but I want to be able to oc and use my own build, with working camera. I tried editing the cameraHAL.cpp, changing void to int, but it doesn't work, it just throws some other related error. I think, I am missing some makefile somewhere, but I'm not certain where. Thanks.
theAPANT said:
I have tried to compile AOKP 4.1.2 with this Cherry Pick:
git fetch http://review.cyanogenmod.org/CyanogenMod/android_frameworks_base refs/changes/85/13285/9 && git cherry-pick FETCH_HEAD
and I get this near the end of the build:
target SharedLib: camera.msm7x30 (out/target/product/ancora_tmo/obj/SHARED_LIBRARIES/camera.msm7x30_intermediates/LINKED/camera.msm7x30.so)
/home/theapant/aokp/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/ancora_tmo/obj/SHARED_LIBRARIES/camera.msm7x30_intermediates/cameraHAL.o: in function camera_set_preview_window(camera_device*, preview_stream_ops*):frameworks/base/include/ui/cameraHAL.cpp:494: error: undefined reference to 'android:verlay:verlay(void (*)(void*, int), void (*)(void*, unsigned int, unsigned int, unsigned int, unsigned int), void (*)(void*, void*), void*)'
collect2: ld returned 1 exit status
make: *** [out/target/product/ancora_tmo/obj/SHARED_LIBRARIES/camera.msm7x30_intermediates/LINKED/camera.msm7x30.so] Error 1
make: *** Waiting for unfinished jobs....
I have build aokp before using camcory's prebuilt, and everything works fine but I want to be able to oc and use my own build, with working camera. I tried editing the cameraHAL.cpp, changing void to int, but it doesn't work, it just throws some other related error. I think, I am missing some makefile somewhere, but I'm not certain where. Thanks.
Click to expand...
Click to collapse
I had this issue camcory never pushed the finished camera sources
Here
https://docs.google.com/file/d/0Bwu6jmegWBFQRXNpRFAwc2dZam8/edit
Also, if RIL (data) doesn't work pull the hardware/ril folder from cm10.
I don't have the sources for aokp atm but I think I had to do a few other things to get everything working but they broke camera
Sent from my Nexus 7 using xda app-developers app
Re awaking this thread, hopefully someone can help. OK i am having allot of problems building /hardware/qcom/display and surfacflinger on 4.2.2 liquidsmooth so far i have just removed the problematic things from the specific Android.mk but I'm stilling having lots of problems. Ill post specific error if that is helpful. What have you done to get it to build, I'm downloading aosp now to see if the loquidsmooth team hasnt pushed files but i doubt it. Thanks
Sent from my Nexus 7 using xda app-developers app
CM10.1 wpa problem
I'm getting this and don't know how to fix it. Hopefully one of you do, I had to try using cm10.1 sources instead of liquidsmooth because they haven't pushed changes yet. Any ideas? Thanks
/home/theapant/cm10.1/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: /home/theapant/cm10.1/out/target/product/ancora_tmo/obj/EXECUTABLES/wpa_supplicant_intermediates/src/drivers/driver_wext.o: in function wpa_driver_wext_ops:driver_wext.c(.data.rel.ro.wpa_driver_wext_ops+0x198): error: undefined reference to 'wpa_driver_signal_poll'
/home/theapant/cm10.1/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: /home/theapant/cm10.1/out/target/product/ancora_tmo/obj/EXECUTABLES/wpa_supplicant_intermediates/src/drivers/driver_wext.o: in function wpa_driver_wext_ops:driver_wext.c(.data.rel.ro.wpa_driver_wext_ops+0x1a0): error: undefined reference to 'wpa_driver_wext_driver_cmd'
collect2: ld returned 1 exit status
make: *** [/home/theapant/cm10.1/out/target/product/ancora_tmo/obj/EXECUTABLES/wpa_supplicant_intermediates/LINKED/wpa_supplicant] Error 1
make: *** Waiting for unfinished jobs....
Well I deleted /external/wpa_supplicant_8 and renamed the wpa_supplicant_6 to 8 and compiled and I got it to build.
Package complete: /home/theapant/cm10.1/out/target/product/ancora_tmo/cm-10.1-20130301-UNOFFICIAL-ancora_tmo.zip
md5: e714e16988f891693df172e405be1b54
Unfortunately it doesn't boot (black screen) perhaps an issue with using the prebuilt kernel in device/samsung/ancora_tmo/prebuilt/zImage?
Any ideas anyone? I will add the TARGET_KERNEL_CONFIG := ancora_tmo_defconfig in boardconfig.mk and see if that works. Also hopefully someone could shed some light on the previous error that i didn't actually fix. Thanks
Edit: still no boot when i build the kernel
if i can ever get some time dude ill try and help but look for a cm10.1 release from me in a couple of days. i ahve it built and working just havent had time to do anything with it. been working on getting the team sites looking good
target SharedLib: camera.msm7x30 (out/target/product/ancora_tmo/obj/SHARED_LIBRARIES/camera.msm7x30_intermediates/LINKED/camera.msm7x30.so)
/home/theapant/aokp/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/ancora_tmo/obj/SHARED_LIBRARIES/camera.msm7x30_intermediates/cameraHAL.o: in function camera_set_preview_window(camera_device*, preview_stream_ops*):device/samsung/ancora_tmo/camerahal/cameraHAL.cpp:494: error: undefined reference to 'android:verlay:verlay(void (*)(void*, int), void (*)(void*, unsigned int, unsigned int, unsigned int, unsigned int), void (*)(void*, void*), void*)'
collect2: ld returned 1 exit status
make: *** [out/target/product/ancora_tmo/obj/SHARED_LIBRARIES/camera.msm7x30_intermediates/LINKED/camera.msm7x30.so] Error 1
make: *** Waiting for unfinished jobs....
[email protected]:~/aokp$
I'm getting the same error that I got a long time before. I'm using camcory's device github. If i remove the camerahal.cpp from the android.mk it finishes the build fine and I think I have everything else working now. I built it with camcory's prebuilt 3.0.66 kernel, so is that the issue? Any suggestions are welcome. Thanks!
Using that prebuilt explains your kernel version. Comment out the prebuilt references, make a build, replace new zImage and use that as your prebuilt with new build.
jfbs said:
Using that prebuilt explains your kernel version. Comment out the prebuilt references, make a build, replace new zImage and use that as your prebuilt with new build.
Click to expand...
Click to collapse
Thanks I all ready knew why it is kernel version 3.0.66. I could swap out the zimage but i still cant get camerahal.CPP so i need to fix that first. Camcory built slimbean with camera and 3.0 kernel and i would like to do the same with aokp, however i have to take camerahal out of the make file so that the build finishes because of that error above. I have built plenty of kernels and i can just add kernel source and the target_kernel_config := ancora_tmo_defconfig to boardconfig and it would build the kernel that way too however camcorys kernels are much more stable than mine, so.... Any ideas on how i can fix the camerhal thing?
Sent from my Nexus 7 using xda app-developers app
That cherry-pick is for ICS. I believe Jellybean overlays are in frameworks/native and others in frameworks/av. Check arco's jellybean branches.
Edit: review.cyanogenmod.org/#/c/19964 and the fetch link is mid-page.
jfbs said:
That cherry-pick is for ICS. I believe Jellybean overlays are in frameworks/native and others in frameworks/av. Check arco's jellybean branches.
Edit: review.cyanogenmod.org/#/c/19964 and the fetch link is mid-page.
Click to expand...
Click to collapse
Thanks again, I made a really stupid mistake and only had Overlay.h when I also needed Overlay.cpp, your post made me go back and check my sources and I found the problem. Before I was racing around trying to modify camerahal.cpp with no c++ knowledge. I also fixed an issue I was having with turning wifi on in settings and now I think I have a fully working build of AOKP with 3.0 kernel. Once again thanks!!!
Related
I have this error when i compile mik kernel (i downloaded it from his git repo):
Code:
CC [M] drivers/net/wireless/bcm4325/src/shared/linux_osl.o
cc1: warnings being treated as errors
drivers/net/wireless/bcm4325/src/shared/linux_osl.c: In function 'osl_pktfree_static':
drivers/net/wireless/bcm4325/src/shared/linux_osl.c:376:34: error: array subscript is above array bounds
drivers/net/wireless/bcm4325/src/shared/linux_osl.c:376:34: error: array subscript is above array bounds
drivers/net/wireless/bcm4325/src/shared/linux_osl.c:376:34: error: array subscript is above array bounds
drivers/net/wireless/bcm4325/src/shared/linux_osl.c:376:34: error: array subscript is above array bounds
drivers/net/wireless/bcm4325/src/shared/linux_osl.c:376:34: error: array subscript is above array bounds
drivers/net/wireless/bcm4325/src/shared/linux_osl.c:376:34: error: array subscript is above array bounds
drivers/net/wireless/bcm4325/src/shared/linux_osl.c:376:34: error: array subscript is above array bounds
drivers/net/wireless/bcm4325/src/shared/linux_osl.c:376:34: error: array subscript is above array bounds
make[4]: *** [drivers/net/wireless/bcm4325/src/shared/linux_osl.o] Error 1
make[3]: *** [drivers/net/wireless/bcm4325] Error 2
make[2]: *** [drivers/net/wireless] Error 2
make[1]: *** [drivers/net] Error 2
I asked mik, but he doesn't reply...
i compile with "make -j2"
NB: This error there is in "git clone", "tar.gz" and "zip"...
I don't get any errors when I built from his code. Maybe you just have a bad copy
Which version of gcc are u on? I think you should update gcc.
Sent from my LG-P500 using XDA Premium App
Code:
git clone git://github.com/mik9/ThunderG-Kernel.git
OR I downloaded it from his repo with "Download Now" "tar.gz"
4silvertooth said:
Which version of gcc are u on?
Sent from my LG-P500 using XDA Premium App
Click to expand...
Click to collapse
I download the environment from here: http://www.codesourcery.com/sgpp/lite/arm/portal/release1803
DookMatt said:
I download the environment from here: http://www.codesourcery.com/sgpp/lite/arm/portal/release1803
Click to expand...
Click to collapse
do u work under windooze or linux?
i consider to use linux - on windows, the dumb cygwin environment have not
all needed includes.
if u use linux, try to take the latest android from cyanogen - there are prebuild
libs and binaries to compile both the android system and kernel.
u only have to export the path to the arm-ebi and the arch:
Code:
export ARCH=arm
export CROSS_COMPILE=<ANDROID_INSTALLPATH>/prebuild/linux86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-
this works on my VM (virtualBox) without problems.
otherwise, try the bcm4325 tree from my github if you can compile, its a error in mik's driver tree or he have another compiler.
ArchLinux x86_64... now i removing openjdk and istalling jre... i hope this is the problem.
DookMatt said:
ArchLinux x86_64... now i removing openjdk and istalling jre... i hope this is the problem.
Click to expand...
Click to collapse
I don't think so.
Sent from my LG-P500 using XDA Premium App
jre/jdk has nothing to do with kernel compiling - you need this only to compile the android system
btw: try a 32bit system - i have had problems too to compile android under 64bit OS (ubuntu)
andy572 said:
jre/jdk has nothing to do with kernel compiling - you need this only to compile the android system
btw: try a 32bit system - i have had problems too to compile android under 64bit OS (ubuntu)
Click to expand...
Click to collapse
Now i creating a VM... but... on archlinux i installed 32bit library...
DookMatt said:
Now i creating a VM... but... on archlinux i installed 32bit library...
Click to expand...
Click to collapse
u can use a linux to your choice, you need only a working environment
I think you should try with google android ndk instead of codesourcery.
http://developer.android.com/sdk/ndk/index.html
Then
make -j2 ARCH=arm CROSS_COMPILE=~/android-ndk-PATH/toolchains/arm-linux-androideabi-x.x.x/prebuilt/linux-x86/bin/arm-linux-androideabi-
(Please change the path to ur ndk toolchain setup)
Sent from my LG-P500 using XDA Premium App
4silvertooth said:
I think you should try with google android ndk instead of codesourcery.
http://developer.android.com/sdk/ndk/index.html
Then
make -j2 ARCH=arm CROSS_COMPILE=~/android-ndk-PATH/toolchains/arm-linux-androideabi-x.x.x/prebuilt/linux-x86/bin/arm-linux-androideabi-
(Please change the path to ur toolchain setup)
Sent from my LG-P500 using XDA Premium App
Click to expand...
Click to collapse
WAAAAAAAAAAAAAA!!! It works on Archlinux x86_64! Thank you very much!!!
So do we get a new Nessy any time sooner. Hmmm. I know Irene is out.
Sent from my LG-P500 using XDA Premium App
That error happens when you compile with -O2 flag. Here is the fix on that error so you can compile again with -O2:
https://github.com/LeeDroid-/Ace-2.6.35/commit/0e3632e38829f7b5baac3e7e88f179762173d3ba
franciscofranco said:
That error happens when you compile with -O2 flag. Here is the fix on that error so you can compile again with -O2:
https://github.com/LeeDroid-/Ace-2.6.35/commit/0e3632e38829f7b5baac3e7e88f179762173d3ba
Click to expand...
Click to collapse
I've fix the file but i've this error:
Code:
`dhd_module_cleanup' referenced in section `.init.text' of drivers/built-in.o: defined in discarded section `.exit.text' of drivers/built-in.o
make: *** [.tmp_vmlinux1] Error 1
Which file did you patched?
franciscofranco said:
Which file did you patched?
Click to expand...
Click to collapse
PATCH
There's not much I can do. How did you patched bfs? My kernel already has it so why adding it again? I saw you used my v14.1 in your rom.
franciscofranco said:
There's not much I can do. How did you patched bfs? My kernel already has it so why adding it again? I saw you used my v14.1 in your rom.
Click to expand...
Click to collapse
I add it on mik kernel (for CM7)... "patch -p0 < PATCHNAME" and the directory name is linux-2.6.32.40-bfs
hi guys....i've downloaded the last kernel sources of franciscofranco 2.35.10 kernel....i've added the sippolo's workaround and then increase the HZ value of the kernel(set at 500) for my custom rom.....after i've done
Code:
make thunderg-perf_defconfig
make zImage -j4
it stuck at this error
Code:
drivers/input/touchscreen/mcs6000_ts.c: In function ‘mcs6000_ts_ioctl_down’:
drivers/input/touchscreen/mcs6000_ts.c:430:6: error: implicit declaration of function ‘gpio_configure’
drivers/input/touchscreen/mcs6000_ts.c: In function ‘mcs6000_ts_probe’:
drivers/input/touchscreen/mcs6000_ts.c:733:25: warning: unused variable ‘hw_ver’
drivers/input/touchscreen/mcs6000_ts.c:733:17: warning: unused variable ‘fw_ver’
make[3]: *** [drivers/input/touchscreen/mcs6000_ts.o] Errore 1
i don't understand why......i think it is a lib problem.....but seems that all libraries are imported!!!can anyone help me??? thnx in advice
Which toolchain?
Sent from my LG-P500 using XDA Premium App
lupohirp said:
hi guys....i've downloaded the last kernel sources of franciscofranco 2.35.10 kernel....i've added the sippolo's workaround and then increase the HZ value of the kernel(set at 500) for my custom rom.....after i've done
Code:
make thunderg-perf_defconfig
make zImage -j4
it stuck at this error
Code:
drivers/input/touchscreen/mcs6000_ts.c: In function ‘mcs6000_ts_ioctl_down’:
drivers/input/touchscreen/mcs6000_ts.c:430:6: error: implicit declaration of function ‘gpio_configure’
drivers/input/touchscreen/mcs6000_ts.c: In function ‘mcs6000_ts_probe’:
drivers/input/touchscreen/mcs6000_ts.c:733:25: warning: unused variable ‘hw_ver’
drivers/input/touchscreen/mcs6000_ts.c:733:17: warning: unused variable ‘fw_ver’
make[3]: *** [drivers/input/touchscreen/mcs6000_ts.o] Errore 1
i don't understand why......i think it is a lib problem.....but seems that all libraries are imported!!!can anyone help me??? thnx in advice
Click to expand...
Click to collapse
.35 kernel have new GPIO library, you should code sippolo's workaround into new driver, do not replace whole file.
mik_os said:
.35 kernel have new GPIO library, you should code sippolo's workaround into new driver, do not replace whole file.
Click to expand...
Click to collapse
Aaaaa i don't know that thanks now it works ;-) now the next step i'm ttying to port the acer liquid multitouch fix thanks mik
Sent from my LG-P500 using XDA App
If you can fix also the tethering and the random bugs
use pdanet for tethering
now i'm stucking at this error...((
arch/arm/mm/built-in.o: In function `__flush_icache_all':
/home/pasquale/Scrivania/Franco.Kernel/2.6.35/arch/arm/include/asm/cacheflush.h:402: undefined reference to `swapper_space'
arch/arm/mm/built-in.o: In function `____atomic_set_bit':
/home/pasquale/Scrivania/Franco.Kernel/2.6.35/arch/arm/include/asm/bitops.h:46: undefined reference to `swapper_space'
arch/arm/mm/built-in.o: In function `spin_unlock':
/home/pasquale/Scrivania/Franco.Kernel/2.6.35/include/linux/spinlock.h:324: undefined reference to `swapper_space'
mm/built-in.o: In function `sync_page':
/home/pasquale/Scrivania/Franco.Kernel/2.6.35/mm/filemap.c:190: undefined reference to `swapper_space'
mm/built-in.o: In function `set_page_dirty':
/home/pasquale/Scrivania/Franco.Kernel/2.6.35/mm/page-writeback.c:1181: undefined reference to `swapper_space'
mm/built-in.o:/home/pasquale/Scrivania/Franco.Kernel/2.6.35/mm/page-writeback.c:1335: more undefined references to `swapper_space' follow
make: *** [.tmp_vmlinux1] Errore 1
Click to expand...
Click to collapse
seems another time a library problem... anyone can help me??
lupohirp said:
now i'm stucking at this error...((
seems another time a library problem... anyone can help me??
Click to expand...
Click to collapse
What have you patched?
It just says it's missing the swapper_space function header, it's not defined.
franciscofranco said:
What have you patched?
Click to expand...
Click to collapse
nothing franco....i've only added sippolo's workaround for base to port acer liquid multitouch fix and set kernel to 500hz i've worked only on mcs6000_ts......but it stuck at this error i don't know why!!! i think it is a library problem....something that is missing...but i don't know what are the libraries that i must install if it is this the problem!(
You downloaded the latest sources? Because I haven't compiled it, I just merged the patches, I might have forgot to apply something. In this case it says it misses the swapper_space reference.
http://lxr.free-electrons.com/source/mm/swap_state.c#L40
http://lxr.free-electrons.com/source/include/linux/mm.h#L771
http://lxr.free-electrons.com/source/include/linux/swap.h#L319
Add the swapper_space code to those files and compile again.
franciscofranco said:
You downloaded the latest sources? Because I haven't compiled it, I just merged the patches, I might have forgot to apply something. In this case it says it misses the swapper_space reference.
http://lxr.free-electrons.com/source/mm/swap_state.c#L40
http://lxr.free-electrons.com/source/include/linux/mm.h#L771
http://lxr.free-electrons.com/source/include/linux/swap.h#L319
Add the swapper_space code to those files and compile again.
Click to expand...
Click to collapse
yes franco i've downloaded latest sources! thanks now i'm going to add it and then try!
franco the swapper_space code that you posted is already there in the three files((
I dunno, I have to leave now, I'll look at it later.
I'm sorry to disappoint you, but there ain't a problem with the kernel, I just compiled it without any modification, just like it is in the sources and it compiles fine. Try to make clean and make distclean, then compile again.
franciscofranco said:
I'm sorry to disappoint you, but there ain't a problem with the kernel, I just compiled it without any modification, just like it is in the sources and it compiles fine. Try to make clean and make distclean, then compile again.
Click to expand...
Click to collapse
yeah franco i know.....i think it is a libraries problem on my linux distro.....but i have installe all the binutils and the header files yesterday also i have tried a dirty hack i tried to set CONFIG_SWAP=n in the thunderg_perf_defconfig configuration file....compiled succesfully but the phone doesn't started ...thanks anyway franco!
Hey guys
Some of you already now it, I am building AOKP.
I will not release it before Bytecode has his lappy back though, cause I want him on my side. Actually, I want to be on his side
Now to the point: I got an error.
I synced AOKP sources, the ICS-device and ICS-vendor by lupohirp, I removed the "already defined" errors, added lunch combo, edited links to CM/config and sime more stuff.
But I got stuck here:
frameworks/base/libs/gui/SurfaceTexture.cpp:486: error: 'qBufGeometry' was not declared in this scope
frameworks/base/libs/gui/SurfaceTexture.cpp:486: error: expected ';' before 'currentGeometry'
frameworks/base/libs/gui/SurfaceTexture.cpp:488: error: 'currentGeometry' was not declared in this scope
frameworks/base/libs/gui/SurfaceTexture.cpp:490: error: 'currentGeometry' was not declared in this scope
frameworks/base/libs/gui/SurfaceTexture.cpp:492: error: expected ';' before 'requiredGeometry'
frameworks/base/libs/gui/SurfaceTexture.cpp:493: error: 'requiredGeometry' was not declared in this scope
frameworks/base/libs/gui/SurfaceTexture.cpp:495: error: expected ';' before 'updatedGeometry'
frameworks/base/libs/gui/SurfaceTexture.cpp:496: error: 'updatedGeometry' was not declared in this scope
frameworks/base/libs/gui/SurfaceTexture.cpp:501: error: 'currentGeometry' was not declared in this scope
frameworks/base/libs/gui/SurfaceTexture.cpp:501: error: 'needNewBuffer' was not declared in this scope
frameworks/base/libs/gui/SurfaceTexture.cpp:523: error: 'checkBuffer' was not declared in this scope
frameworks/base/libs/gui/SurfaceTexture.cpp: In member function 'virtual android::status_t android::SurfaceTexture::queueBuffer(int, int64_t, uint32_t*, uint32_t*, uint32_t*)':
frameworks/base/libs/gui/SurfaceTexture.cpp:661: error: 'qBufGeometry' was not declared in this scope
frameworks/base/libs/gui/SurfaceTexture.cpp:661: error: expected ';' before 'updatedGeometry'
frameworks/base/libs/gui/SurfaceTexture.cpp:662: error: 'updatedGeometry' was not declared in this scope
frameworks/base/libs/gui/SurfaceTexture.cpp:664: error: 'updateBufferGeometry' was not declared in this scope
frameworks/base/libs/gui/SurfaceTexture.cpp: In member function 'virtual android::status_t android::SurfaceTexture:erformQcomOperation(int, int, int, int)':
frameworks/base/libs/gui/SurfaceTexture.cpp:806: error: 'NATIVE_WINDOW_SET_BUFFERS_SIZE' was not declared in this scope
frameworks/base/libs/gui/SurfaceTexture.cpp:809: error: 'NATIVE_WINDOW_UPDATE_BUFFERS_GEOMETRY' was not declared in this scope
frameworks/base/libs/gui/SurfaceTexture.cpp: In member function 'android::status_t android::SurfaceTexture::updateTexImage()':
frameworks/base/libs/gui/SurfaceTexture.cpp:857: error: 'isGPUSupportedFormat' was not declared in this scope
make: *** [out/target/product/thunderg/obj/SHARED_LIBRARIES/libgui_intermediates/SurfaceTexture.o] Error 1
Click to expand...
Click to collapse
Any help is appreciated.
Yesterday I made the build with the -k option. Ofcourse, every package needed was made. If I make a .ZIP of those packages, will it work out?
EDIT: Now running
make otapackage -dik
Click to expand...
Click to collapse
Greets
One of my fav. rom
I guess you used Lupohirp's current device & vendor folder; which is incomplete. Still many files are missing
DJoptimus-One said:
One of my fav. rom
I guess you used Lupohirp's current device & vendor folder; which is incomplete. Still many files are missing
Click to expand...
Click to collapse
Wich one do you suggest me to sync??
Greets!
Pls sync his beta 4 folders
mDroidd said:
Wich one do you suggest me to sync??
Greets!
Click to expand...
Click to collapse
Check PM
Kanad said:
Pls sync his beta 4 folders
Click to expand...
Click to collapse
That is what I did -.-"
Greets!
I synced the git of _Arjen_ now, let's see how we roll
they got alot of features that is good tough i dunno if your phone can handle it that good, be aware the boot animation looks like a pink unicorn ...
LastStandingDroid said:
they got alot of features that is good tough i dunno if your phone can handle it that good, be aware the boot animation looks like a pink unicorn ...
Click to expand...
Click to collapse
Yes I'm aware of everything in that ROM. It's my ROM on my Galaxy Nexus.
But that is not related to the "HELP" here!
I synced Adam's (adfad666) sources, the same error.
_Arjen_ sources, the same error.
Koush sources, same error.
lupo sources, same error.
I am now going to force continue build, and will just include all the packages of the build in a .zip
Let's hope!!!
You can't just take these device and vendor files and expect it to build correctly.
Some of the code used isn't compatible with AOKP...
If you want to compile a functional rom you really need to know what you're doing and use some common sense
Not to disencourage you, but it won't work this way
_Arjen_ said:
You can't just take these device and vendor files and expect it to build correctly.
Some of the code used isn't compatible with AOKP...
If you want to compile a functional rom you really need to know what you're doing and use some common sense
Not to disencourage you, but it won't work this way
Click to expand...
Click to collapse
Sent you a PM 'bout this.
Hope you can help me
Kind of off topic: What is AOKP? Is it based off legit ICS or CM9? Is it anything like CNA? Could you just replace the frameworks and apps and it will work on CM9? Lol, sorry for all the questions, but I built CNA from source and I thought I couldn't build AOKP. Would it be just as easy?
gannon5197 said:
Kind of off topic: What is AOKP? Is it based off legit ICS or CM9? Is it anything like CNA? Could you just replace the frameworks and apps and it will work on CM9? Lol, sorry for all the questions, but I built CNA from source and I thought I couldn't build AOKP. Would it be just as easy?
Click to expand...
Click to collapse
Look at Arjen's post
And look at google.
AND NOOOOO! YOu can't simply replace some things and expect it to work.
AOKP
And No, it is not "like" CNA, it is better
You're missing loads of declarations, which is obvious. Try tracking them down in the AOKP sources if that is a part you ported.
Send from my phone.
Yeah,we need to trim the device folder down. I wonder if aspee has is cna folder..
Sent from my LG-P500 using xda premium
Bytecode said:
Yeah,we need to trim the device folder down. I wonder if aspee has is cna folder..
Sent from my LG-P500 using xda premium
Click to expand...
Click to collapse
lol, dont depend on aspee, he is all busy with his exams, should be free by april 25th...
modify the device folder as per AOKP requirements...
Bytecode said:
Yeah,we need to trim the device folder down. I wonder if aspee has is cna folder..
Sent from my LG-P500 using xda premium
Click to expand...
Click to collapse
Adfad gives the same folder...
Maybe we should merge the folders into the build system, but remove them from device folder...
Could help, gonna try tommorrow...
Hi. On my way to learn more about Android, I am trying to build a ROM and ended up with aokp. Grabing files here and there, after two days of work I managed to build a ROM. I don't know if it is working (I was late for sleep and need to go for college in 30 mins) but I have forked all projects that I used and committed the changes, please take a look at my github, it is sephirothrx7. Made a mistake while branching, will fix that later.
Sent from my LG-P500 using Tapatalk
When I have time I will look at it.
Sent from my LG-P500 using XDA
Sephirothrx7 said:
Hi. On my way to learn more about Android, I am trying to build a ROM and ended up with aokp. Grabing files here and there, after two days of work I managed to build a ROM. I don't know if it is working (I was late for sleep and need to go for college in 30 mins) but I have forked all projects that I used and committed the changes, please take a look at my github, it is sephirothrx7. Made a mistake while branching, will fix that later.
Sent from my LG-P500 using Tapatalk
Click to expand...
Click to collapse
Let's see if it works...
To keep my Threat "[GUIDE] Bulding CM9 from Sources for O2X (P990)" clean, I decided to open a new Threat in General Section,
lets use this Threat to discuss about compiling CM10 for the O2X.
thorstenhirsch said:
1. Changed "default revision" in manifest.xml to jellybean.
Code:
manifest.xml: <default revision="refs/heads/jellybean"
Click to expand...
Click to collapse
You have to download the jellybean sourcecode,
possibly it`s better to init the sources to a different folder e.g. /CM10/android/system
if you want to keep the CM9 sources, too.
Code:
cd ~/CM10/android/system/
Code:
repo init -u git://github.com/CyanogenMod/android.git -b jellybean
you have to create all files for yellybean which are added to local_manifest.xml, or find jellybean branches for those files on github, (I don`t know if there are jellybean branches for our O2X, I didn`t searched for it)
When removing all entries from local_manifest.xml "repo sync" works at least. But well... I think now I've got the same as I had after "repo init [...] -b jellybean". So I still need jellybean-ed repos for /system/device/lge/star-common and p990. Guess I start with the CM9 versions...
That`s exactly what I mean,
without the necessary working jellybean files, it makes no sense to try building CM10 for O2X,
except you are able to create the necessary working jellybean files by yourself,
Stuck with this:
Code:
device/lge/star-common/include/media/MediaPlayerInterface.h:165:25: note: virtual void android::MediaPlayerBase::sendEvent(int, int, int)
device/lge/star-common/include/media/MediaPlayerInterface.h:165:25: note: candidate expects 3 arguments, 4 provided
This is the code line:
Code:
158 virtual status_t getMetadata(const media::Metadata::Filter& ids,
159 Parcel *records) {
160 return INVALID_OPERATION;
161 };
162
163 virtual status_t setLGAudioEffect(int ) { return NO_ERROR; };
164
165 virtual void sendEvent(int msg, int ext1=0, int ext2=0) { if (mNotify) mNotify(mCookie, msg, ext1, ext2); }
Any ideas of how to avoid this?
Hey.
Without some serious modifications or to be more precisely hacks. Like the one introduced in cm9 and more. Like disabling and hacking around the project butter features. Like dealing with the vsync etc.
Anyway. Without these features a cm10 build doesn't make sense at all. Just more hacks and instabilities. It won't run better than the cm9 builds and the biggest improvement is the smoothness. The other stuff isn't worth the update. Without a OEM update to ICS a jb build isn't worth the amount of work. Not even the compile time. Sorry to say that. (And yeah I looked into it and had some progress. However it's not worth the time.)
Sent from my Nexus S using xda app-developers app
Benee said:
Hey.
Without some serious modifications or to be more precisely hacks. Like the one introduced in cm9 and more. Like disabling and hacking around the project butter features. Like dealing with the vsync etc.
Anyway. Without these features a cm10 build doesn't make sense at all. Just more hacks and instabilities. It won't run better than the cm9 builds and the biggest improvement is the smoothness. The other stuff isn't worth the update. Without a OEM update to ICS a jb build isn't worth the amount of work. Not even the compile time. Sorry to say that. (And yeah I looked into it and had some progress. However it's not worth the time.)
Sent from my Nexus S using xda app-developers app
Click to expand...
Click to collapse
Yeah, i think all we know that. But i'm trying to make it with educational purpouses. I don't want to make a ROM with graphic acceleration and the other stuff that didn't work in cm9, cause it's impossible.
The only one thing i'mt trying is to bake some from sources and make it run on my phone. And maybe make a start point to make my roms for personal use.
If anyone want to help, i would be greatfull. If you don't want to help, it's ok. Probably you have better things to do xD.
Cya
ethansp said:
Stuck with this:
Code:
device/lge/star-common/include/media/MediaPlayerInterface.h:165:25: note: virtual void android::MediaPlayerBase::sendEvent(int, int, int)
device/lge/star-common/include/media/MediaPlayerInterface.h:165:25: note: candidate expects 3 arguments, 4 provided
This is the code line:
Code:
158 virtual status_t getMetadata(const media::Metadata::Filter& ids,
159 Parcel *records) {
160 return INVALID_OPERATION;
161 };
162
163 virtual status_t setLGAudioEffect(int ) { return NO_ERROR; };
164
165 virtual void sendEvent(int msg, int ext1=0, int ext2=0) { if (mNotify) mNotify(mCookie, msg, ext1, ext2); }
Any ideas of how to avoid this?
Click to expand...
Click to collapse
You need to update this file to JB. It's currently based on the ICS MediaPlayerInterface.h and then you need some audio hacks (the shim by arcee).
With the above I was talking about: Without these hacks the build will run worser than a sdk port. Unusable worse. Even with dev spirit it was just a temp flash.
Benee said:
You need to update this file to JB. It's currently based on the ICS MediaPlayerInterface.h and then you need some audio hacks (the shim by arcee).
With the above I was talking about: Without these hacks the build will run worser than a sdk port. Unusable worse. Even with dev spirit it was just a temp flash.
Click to expand...
Click to collapse
Yes, probably you have all the reason about this. But, if i can taking some advantages in the developing of a "experimental" build waiting for some sources from nvidia/LGE an then implement it. I think the work is not going all to trash. Maybe in the future, can we use it, probably not. Ok. But if people want, what is the inconvenience of "loosing" time trying to make it work?
Cya.
Ok, i've do some advances, now logcat is running but stuck on 2nd lg boot logo.
If want to know the changes i have make: https://github.com/ethansp
And the logcat: http://pastebin.com/SZGwM0Xm
The errors i've seen:
Code:
E/libEGL ( 1175): eglGetDisplay:121 error 300c (EGL_BAD_PARAMETER)
E/libEGL ( 1175): eglInitialize:137 error 3008 (EGL_BAD_DISPLAY)
E/libEGL ( 1175): validate_display:209 error 3008 (EGL_BAD_DISPLAY)
E/libEGL ( 1175): validate_display:209 error 3008 (EGL_BAD_DISPLAY)
F/libc ( 1175): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 1192 (SurfaceFlinger)
Code:
D/dalvikvm( 1176): DexOpt: incorrect opt magic number (0xff ff ff ff)
D/dalvikvm( 1176): ODEX file is stale or bad; removing and retrying (/data/dalvik-cache/[email protected]@[email protected])
Code:
I/ServiceManager( 1008): service 'media.audio_flinger' died
I/ServiceManager( 1008): service 'media.player' died
I/ServiceManager( 1008): service 'media.camera' died
I/ServiceManager( 1008): service 'media.audio_policy' died
Just a few ideas...
Regarding the EGL errors: probably some of the proprietary vendor files are missing (check /bin, /etc, /lib) or not included correctly.
The audio errors are most likely the result of the changes Google made to the audio system of JB. If these errors are critical to booting try compiling the rom without audio.
Good luck and keep on trying!
Have a nice day!
ethansp said:
Ok, i've do some advances, now logcat is running but stuck on 2nd lg boot logo.
If want to know the changes i have make: https://github.com/ethansp
And the logcat: http://pastebin.com/SZGwM0Xm
The errors i've seen:
Code:
E/libEGL ( 1175): eglGetDisplay:121 error 300c (EGL_BAD_PARAMETER)
E/libEGL ( 1175): eglInitialize:137 error 3008 (EGL_BAD_DISPLAY)
E/libEGL ( 1175): validate_display:209 error 3008 (EGL_BAD_DISPLAY)
E/libEGL ( 1175): validate_display:209 error 3008 (EGL_BAD_DISPLAY)
F/libc ( 1175): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 1192 (SurfaceFlinger)
Click to expand...
Click to collapse
EGL issues are related to the missing egl hacks from arcee (here for ics) (I think you need add even more hacks than in ics due to vsync etc.).
ethansp said:
Code:
D/dalvikvm( 1176): DexOpt: incorrect opt magic number (0xff ff ff ff)
D/dalvikvm( 1176): ODEX file is stale or bad; removing and retrying (/data/dalvik-cache/[email protected]@[email protected])
Click to expand...
Click to collapse
This error is related to above error.
ethansp said:
Code:
I/ServiceManager( 1008): service 'media.audio_flinger' died
I/ServiceManager( 1008): service 'media.player' died
I/ServiceManager( 1008): service 'media.camera' died
I/ServiceManager( 1008): service 'media.audio_policy' died
Click to expand...
Click to collapse
Same as above. Your complete egl driver etc is going down.
Raum1807 said:
Just a few ideas...
Regarding the EGL errors: probably some of the proprietary vendor files are missing (check /bin, /etc, /lib) or not included correctly.
The audio errors are most likely the result of the changes Google made to the audio system of JB. If these errors are critical to booting try compiling the rom without audio.
Good luck and keep on trying!
Have a nice day!
Click to expand...
Click to collapse
Getting audio running shouldn't be too difficult. You basically need to add the ics audio shim and make some adjustment to eventual JB changes. It will most likely bug around without working audio (mediaserver is crashing)
EDIT:
Ok. Had a closer look. In CM nearly everything is implemented. Like this for audio and this for egl etc. You just need to update the cam lib, the audio includes and it should boot and work partly.
Benee said:
EGL issues are related to the missing egl hacks from arcee (here for ics) (I think you need add even more hacks than in ics due to vsync etc.).
This error is related to above error.
Same as above. Your complete egl driver etc is going down.
Getting audio running shouldn't be too difficult. You basically need to add the ics audio shim and make some adjustment to eventual JB changes. It will most likely bug around without working audio (mediaserver is crashing)
EDIT:
Ok. Had a closer look. In CM nearly everything is implemented. Like this for audio and this for egl etc. You just need to update the cam lib, the audio includes and it should boot and work partly.
Click to expand...
Click to collapse
Lot of thanks benee for taking some time to watch it.
I have moded the expresions about the storages (changed /mnt/sdcard to /storage/scdcard0 ) and moded de libslights.c in the frameworks. a new logcat and seems very improved. Stays the screen black cause not working properly de egl driver. I'm going to take a look. I think there is a problem with kernel>drivers expresions.
Latest logcat if you want to take a look: http://pastebin.com/L3hjvTEi
ethansp said:
Lot of thanks benee for taking some time to watch it.
I have moded the expresions about the storages (changed /mnt/sdcard to /storage/scdcard0 ) and moded de libslights.c in the frameworks. a new logcat and seems very improved. Stays the screen black cause not working properly de egl driver. I'm going to take a look. I think there is a problem with kernel>drivers expresions.
Latest logcat if you want to take a look: http://pastebin.com/L3hjvTEi
Click to expand...
Click to collapse
I've send you some pull requests. Due to lag of time I havn't compiled them. Hope you can fire up a compile and send me a log and report if you noticed a improvement.
Benee said:
I've send you some pull requests. Due to lag of time I havn't compiled them. Hope you can fire up a compile and send me a log and report if you noticed a improvement.
Click to expand...
Click to collapse
A lot of thanks. i've see it. Doing the compile now. When finish i will post the results.
Hi, no solution. Stills blackscreen, same EGL errors, and i discovered, logcat only work on first boot. if i pull battery off and on, no more logcat until wipes.
I let here the logcat: http://pastebin.com/TH1wCsvV
Thanks for help.
ethansp said:
Hi, no solution. Stills blackscreen, same EGL errors, and i discovered, logcat only work on first boot. if i pull battery off and on, no more logcat until wipes.
I let here the logcat: http://pastebin.com/TH1wCsvV
Thanks for help.
Click to expand...
Click to collapse
Oh sure.. Yeah wait a moment . We need some more ported over changes.
EDIT:
use this this and that instead of the cm ones or cherry-pick the changes.
EDIT2:
Doing some blind RIL changes. Maybe they're working out - currently my girlfriend uses my o2x because her phone got stolen.
EDIT3:
and add frameworks_base. If the phone boots, please send me a adb logcat -b radio. I need the logcat from booting till 30 secs booted up rom. I suggest routing it to a txt file because the log is quite spammy.
EDIT4:
I created a repo for easier syncing: here
Benee said:
Oh sure.. Yeah wait a moment . We need some more ported over changes.
EDIT:
use this this and that instead of the cm ones or cherry-pick the changes.
EDIT2:
Doing some blind RIL changes. Maybe they're working out - currently my girlfriend uses my o2x because her phone got stolen.
EDIT3:
and add frameworks_base. If the phone boots, please send me a adb logcat -b radio. I need the logcat from booting till 30 secs booted up rom. I suggest routing it to a txt file because the log is quite spammy.
Click to expand...
Click to collapse
Ok. I'm at work right now, in 5 hours i go home. Expect results in ~7 hours or tomorrow in morning.
Thanks a lot for all your help.
you're the man benee
Benee said:
Oh sure.. Yeah wait a moment . We need some more ported over changes.
EDIT:
use this this and that instead of the cm ones or cherry-pick the changes.
EDIT2:
Doing some blind RIL changes. Maybe they're working out - currently my girlfriend uses my o2x because her phone got stolen.
EDIT3:
and add frameworks_base. If the phone boots, please send me a adb logcat -b radio. I need the logcat from booting till 30 secs booted up rom. I suggest routing it to a txt file because the log is quite spammy.
EDIT4:
I created a repo for easier syncing: here
Click to expand...
Click to collapse
Ok, phone boots, but the radio logcat only output this:
Code:
D/RILD ( 1011): radio disabled
D/RILB ( 1268): /proc/[email protected] [email protected] loglevel=0 muic_state=1 lpj=9994240 CRC=3010002a8e458d7 vmalloc=256M brdrev=1.0 video=tegrafb console=ttyS0,115200n8 usbcore.old_scheme_first=1 tegraboot=sdmmc tegrapart=recovery:35e00:2800:800,linux:34700:1000:800,mbr:400:200:800,system:600:2bc00:800,cache:2c200:8000:800,misc:34200:400:800,userdata:38700:c0000:800 androidboot.hardware=p990
D/RILB ( 1268): getLteOnCdmaMode=0 curVal=-1 product_type='' lteOnCdmaProductType=''
I have to say, i didn't understand the "edit 3" add frameworks base, where? I have synced it but have to take out from star.mk cause that files now exist only in frameworks/native.
Edit: forgot to say: FC's com.android.phone repeteavly. Tonyp, how did you that? xD
Edit2: Latest logcat without -b radio trigger: http://pastebin.com/ASUyM0vR
When load this service "884.I/SystemServer( 1270): AssetRedirectionManager Service" (you can find it at end of logcat) the logcat stops, is like usb get disabled. If i reboot, no more logcat output until full wipes.
Edit3: took off phone.apk and FC's media, and voice syntethizer.
Hi all, can anyone say they've built a AOSP Marshmallow ROM (m-preview-2) ?
I can build Lollipop just fine but even doing a clean install of Linux and downloading 20+ gigs of AOSP repo stuff of m-preview-2, I get the following error...
make: *** No rule to make target `out/target/product/hammerhead/obj/STATIC_LIBRARIES/libunwind_llvm_intermediates/export_includes', needed by `out/target/product/hammerhead/obj/EXECUTABLES/init_intermediates/import_includes'. Stop.
Click to expand...
Click to collapse
If I download the 'master' repo, it compiles fine but I get a boot lock installing it on my Nexus5.
As I say, I can download and compile/install the AOSP Lollipop fine but Marshmallow just seems to not be all there. I understand it's a preview but it's now on it's (probable) last release before going live so I would have hoped it should be at least compilable.
Any help?
Many thanks
Adrian
Repo sync'ed it again and now get these errors....
external/selinux/checkpolicy/policy_define.c:1572:2: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
ebitmap_for_each_bit(&tclasses, node, i) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
external/selinux/checkpolicy/../libsepol/include/sepol/policydb/ebitmap.h:76:39: note: expanded from macro 'ebitmap_for_each_bit'
for (bit = ebitmap_start(e, &n); bit < ebitmap_length(e); bit = ebitmap_next(&n, bit)) \
^ ~~~~~~~~~~~~~~~~~
external/selinux/checkpolicy/policy_define.c:2763:3: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
ebitmap_for_each_bit(&rdp->dominates, node, i) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
external/selinux/checkpolicy/../libsepol/include/sepol/policydb/ebitmap.h:76:39: note: expanded from macro 'ebitmap_for_each_bit'
for (bit = ebitmap_start(e, &n); bit < ebitmap_length(e); bit = ebitmap_next(&n, bit)) \
^ ~~~~~~~~~~~~~~~~~
external/selinux/checkpolicy/policy_define.c:2769:3: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
ebitmap_for_each_bit(&types, node, i) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
external/selinux/checkpolicy/../libsepol/include/sepol/policydb/ebitmap.h:76:39: note: expanded from macro 'ebitmap_for_each_bit'
for (bit = ebitmap_start(e, &n); bit < ebitmap_length(e); bit = ebitmap_next(&n, bit)) \
^ ~~~~~~~~~~~~~~~~~
3 warnings generated.
host C: checkpolicy <= external/selinux/checkpolicy/checkpolicy.c
host C++: checkpolicy <= out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.cpp
error: invalid argument '-std=gnu++14' not allowed with 'C/ObjC'
make: *** [out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.o] Error 1
#### make failed to build some targets (01:33 (mm:ss)) ####
Click to expand...
Click to collapse
These seem to me to be pretty fundamental errors if I understand them correctly.
Many thanks
Adrian
same error
adrian.aitken said:
Hi all, can anyone say they've built a AOSP Marshmallow ROM (m-preview-2) ?
I can build Lollipop just fine but even doing a clean install of Linux and downloading 20+ gigs of AOSP repo stuff of m-preview-2, I get the following error...
If I download the 'master' repo, it compiles fine but I get a boot lock installing it on my Nexus5.
As I say, I can download and compile/install the AOSP Lollipop fine but Marshmallow just seems to not be all there. I understand it's a preview but it's now on it's (probable) last release before going live so I would have hoped it should be at least compilable.
Any help?
Many thanks
Adrian
Click to expand...
Click to collapse
i am getting the same error, how did you fix it? thanks
PiSpecialist said:
i am getting the same error, how did you fix it? thanks
Click to expand...
Click to collapse
I haven't - I went back to Lollipop. When Marshmallow comes out officially I'll look again.
Many thanks
Adrian
The marshmallow source code hasn't all been published yet
faZevoLv said:
The marshmallow source code hasn't all been published yet
Click to expand...
Click to collapse
preview-m-2 has and that's what I was talking about.
Many thanks
Adrian
Its bcuz the source isn't complete yet, they didn't release all the code needed to build it yet, which is why no ROMs are out, the only one that comes to mind is XtraSmooth, and I know he just uses the system image and odex's it, the actual AOSP source code isn't complete for marshmallow yet, it will be released on Oct 5th tho so be ready
Sent from my Nexus 6 using Tapatalk