Building SlimLP 5.0 for Galaxy Tab Pro 8.4 help - Android

Hi people
Trying to compile SlimLP for my galaxy tab pro but getting following error:
Code:
target thumb C++: libstagefright <= frameworks/av/media/libstagefright/HTTPBase.cpp
frameworks/av/media/libmediaplayerservice/StagefrightRecorder.cpp: In member function 'android::status_t android::StagefrightRecorder::prepareInternal()':
frameworks/av/media/libmediaplayerservice/StagefrightRecorder.cpp:839:9: error: duplicate case value
case OUTPUT_FORMAT_QCP:
^
frameworks/av/media/libmediaplayerservice/StagefrightRecorder.cpp:816:9: error: previously used here
case OUTPUT_FORMAT_WEBM:
^
frameworks/av/media/libmediaplayerservice/StagefrightRecorder.cpp: In member function 'virtual android::status_t android::StagefrightRecorder::start()':
frameworks/av/media/libmediaplayerservice/StagefrightRecorder.cpp:913:9: error: duplicate case value
case OUTPUT_FORMAT_QCP:
^
frameworks/av/media/libmediaplayerservice/StagefrightRecorder.cpp:892:9: error: previously used here
case OUTPUT_FORMAT_WEBM:
^

bump

Did anyone find this solution of this error? Faced same here when building for Sony Xperia L.

Related

[DEV] CM Eclair for Passion dies on BusyBox

I have a build environment that works fine when building Froyo, but when I pull down the Eclair repo from Cyanogen and try to build it for my Passion/NexusOne, it dies on BusyBox. Even if I fix the BusyBox errors below by hand modifying the code, my build still ends at "kernel-msm"... am I missing something? I have followed the instructions from the Cyanogen Wiki to a tee multiple times now, and no dice.
Thanks!
debug output:
host Executable: yuv420sp2rgb (out/host/linux-x86/obj/EXECUTABLES/yuv420sp2rgb_intermediates/yuv420sp2rgb)
true
host Executable: zipalign (out/host/linux-x86/obj/EXECUTABLES/zipalign_intermediates/zipalign)
target StaticLib: libc (out/target/product/passion/obj/STATIC_LIBRARIES/libc_intermediates/libc.a)
true
host SharedLib: libacc (out/host/linux-x86/obj/lib/libacc.so)
target thumb C: libbusybox <= external/busybox/shell/ash.c
target thumb C: libbusybox <= external/busybox/shell/math.c
external/busybox/shell/ash.c: In function 'subevalvar':
external/busybox/shell/ash.c:6163: warning: pointer of type 'void *' used in arithmetic
external/busybox/shell/ash.c:6324: warning: pointer of type 'void *' used in arithmetic
external/busybox/shell/ash.c:6326: warning: pointer of type 'void *' used in arithmetic
external/busybox/shell/ash.c: In function 'printlim':
external/busybox/shell/ash.c:12714: error: 'rlim_t' undeclared (first use in this function)
external/busybox/shell/ash.c:12714: error: (Each undeclared identifier is reported only once
external/busybox/shell/ash.c:12714: error: for each function it appears in.)
external/busybox/shell/ash.c:12714: error: expected ';' before 'val'
external/busybox/shell/ash.c:12716: error: 'val' undeclared (first use in this function)
external/busybox/shell/ash.c: In function 'ulimitcmd':
external/busybox/shell/ash.c:12731: error: 'rlim_t' undeclared (first use in this function)
external/busybox/shell/ash.c:12731: error: expected ';' before 'val'
external/busybox/shell/ash.c:12792: error: 'val' undeclared (first use in this function)
make: *** [out/target/product/passion/obj/STATIC_LIBRARIES/libbusybox_intermediates/shell/ash.o] Error 1
make: *** Waiting for unfinished jobs....
cd external/busybox
git checkout d0194cfc47a71a65e049
Much obliged, Maxisma. That did it!
No problem ;-)
it should be fixed now. We made a Froyo branch.

[Q] Error while compiling.

Hey guys! I am no coder, but know how to handle my way through compiling if i have the source... But this is one thing thats been failing for quite a while. I am trying to compile ParanoidAndroid for my LG P690 but I get this error:
target thumb C++: libaudiohw_legacy <= hardware/libhardware_legacy/audio/audio_hw_hal.cpp
Import includes file: /home/tushar/android/pm/out/target/product/p690/obj/SHARED_LIBRARIES/audio_policy.default_intermediates/import_includes
target thumb C++: libaudiopolicy_legacy <= hardware/libhardware_legacy/audio/AudioPolicyManagerBase.cpp
hardware/libhardware_legacy/audio/audio_hw_hal.cpp: In function 'int android_audio_legacy::adev_open_output_stream(audio_hw_device*, uint32_t, int*, uint32_t*, uint32_t*, audio_stream_out**)':
hardware/libhardware_legacy/audio/audio_hw_hal.cpp:464:73: error: no matching function for call to 'android_audio_legacy::AudioHardwareInterface:penOutputStream(uint32_t&, int*&, uint32_t*&, uint32_t*&, android::status_t*)'
hardware/libhardware_legacy/audio/audio_hw_hal.cpp:464:73: note: candidate is:
hardware/libhardware_legacy/include/hardware_legacy/AudioHardwareInterface.h:347:29: note: virtual android_audio_legacy::AudioStreamOut* android_audio_legacy::AudioHardwareInterface:penOutputStream(uint32_t, audio_output_flags_t, int*, uint32_t*, uint32_t*, android::status_t*)
hardware/libhardware_legacy/include/hardware_legacy/AudioHardwareInterface.h:347:29: note: no known conversion for argument 2 from 'int*' to 'audio_output_flags_t'
make: *** [/home/tushar/android/pm/out/target/product/p690/obj/STATIC_LIBRARIES/libaudiohw_legacy_intermediates/audio_hw_hal.o] Error 1
make: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse
Can anyone point me the exact problem? I have succesfully compiled once about a month ago, but the recent compiles always fail at this point. No change in the source during that time.
The location on github is: https://github.com/CyanogenMod/android_hardware_libhardware_legacy/blob/jellybean/audio/audio_hw_hal.cpp
link to your device config please
Bumpity bumpity..pls help me..!
dj2tusk said:
Bumpity bumpity..pls help me..!
Click to expand...
Click to collapse
If you don't want help then fair enough
Sent from my LG-P350 using xda app-developers app
antdking said:
If you don't want help then fair enough
Sent from my LG-P350 using xda app-developers app
Click to expand...
Click to collapse
I really want help, but your post wasn't there when i bumped it...must be some weird delay..
Sorry won't happen agian...I promise
But please help with this...still stuck after a fresh sync..
You asking for the tree right..?? Here:
https://github.com/lgics/cm_device_lge_p690/tree/jellybean
dj2tusk said:
I really want help, but your post wasn't there when i bumped it...must be some weird delay..
Sorry won't happen agian...I promise
But please help with this...still stuck after a fresh sync..
You asking for the tree right..?? Here:
https://github.com/lgics/cm_device_lge_p690/tree/jellybean
Click to expand...
Click to collapse
Audio has been a problem for p500 as well
Have a look at their commits on their github
lgics
Sorry I'm on phone
Sent from my LG-P350 using xda app-developers app
I did...even used p500 libaudio...but no success. The weird thing is that it compiled a few days back..but not now..
Hey antdking,
You see I am no coder, so what i ask might sound noobish or even irritating, hence I apologise.. but hey the problem still persists
What i understand from the above error is that, there seems to be a conflict in audio_hw_hal.cpp files found in:
Code:
hardware/libhardware_legacy/audio/audio_hw_hal.cpp
and
Code:
device/lge/msm7x27-common/libaudio/audio_hw_hal.cpp
So what is the significance of having two of those..?
Also i just went and disabled the use of this one(#'d out the lines in Android.mk) :
Code:
hardware/libhardware_legacy/audio/audio_hw_hal.cpp
And the compiled continued.
Code:
target thumb C++: audio.primary.msm7x27 <= device/lge/msm7x27-common/libaudio/AudioHardware.cpp
target thumb C++: audio.primary.msm7x27 <= device/lge/msm7x27-common/libaudio/audio_hw_hal.cpp
target thumb C++: audio_policy.default <= hardware/libhardware_legacy/audio/AudioPolicyManagerDefault.cpp
target StaticLib: libaudiopolicy_legacy (/host/android/cm10/out/target/product/p690/obj/STATIC_LIBRARIES/libaudiopolicy_legacy_intermediates/libaudiopolicy_legacy.a)
In file included from device/lge/msm7x27-common/libaudio/audio_hw_hal.cpp:23:0:
system/core/include/system/audio.h:310:1: warning: 'typedef' was ignored in this declaration [enabled by default]
In file included from device/lge/msm7x27-common/libaudio/audio_hw_hal.cpp:24:0:
hardware/libhardware/include/hardware/audio.h:145:16: warning: 'typedef' was ignored in this declaration [enabled by default]
In file included from hardware/libhardware_legacy/include/hardware_legacy/AudioHardwareInterface.h:33:0,
from hardware/libhardware_legacy/include/hardware_legacy/AudioHardwareBase.h:20,
from device/lge/msm7x27-common/libaudio/AudioHardware.h:27,
from device/lge/msm7x27-common/libaudio/AudioHardware.cpp:40:
hardware/libhardware/include/hardware/audio.h:145:16: warning: 'typedef' was ignored in this declaration [enabled by default]
device/lge/msm7x27-common/libaudio/AudioHardware.h: In constructor 'android_audio_legacy::AudioHardware::AudioHardware()':
device/lge/msm7x27-common/libaudio/AudioHardware.h:328:18: warning: 'android_audio_legacy::AudioHardware::mTtyMode' will be initialized after [-Wreorder]
device/lge/msm7x27-common/libaudio/AudioHardware.h:320:37: warning: 'android_audio_legacy::AudioHardware::AudioStreamOutMSM72xx* android_audio_legacy::AudioHardware::mOutput' [-Wreorder]
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:120:1: warning: when initialized here [-Wreorder]
device/lge/msm7x27-common/libaudio/AudioHardware.cpp: In function 'int android_audio_legacy::msm72xx_enable_postproc(bool)':
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:944:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:949:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:954:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:954:65: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/lge/msm7x27-common/libaudio/AudioHardware.cpp: In member function 'virtual android::status_t android_audio_legacy::AudioHardware::setVoiceVolume(float)':
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:1160:53: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:1160:98: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/lge/msm7x27-common/libaudio/AudioHardware.cpp: In member function 'android::status_t android_audio_legacy::AudioHardware::doRouting(android_audio_legacy::AudioHardware::AudioStreamInMSM72xx*)':
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:1477:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:1480:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/lge/msm7x27-common/libaudio/AudioHardware.cpp: In member function 'virtual ssize_t android_audio_legacy::AudioHardware::AudioStreamInMSM72xx::read(void*, ssize_t)':
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:2218:10: warning: format '%d' expects argument of type 'int', but argument 4 has type 'ssize_t {aka long int}' [-Wformat]
target thumb C++: copybit.msm7x27 <= hardware/qcom/display/libcopybit/software_converter.cpp
target thumb C++: copybit.msm7x27 <= hardware/qcom/display/libcopybit/copybit.cpp
This just kinda confuses me. Though the compile still ain't complete, hence I dont know if it worked or not. Any thoughts..?
dj2tusk said:
Hey antdking,
You see I am no coder, so what i ask might sound noobish or even irritating, hence I apologise.. but hey the problem still persists
What i understand from the above error is that, there seems to be a conflict in audio_hw_hal.cpp files found in:
Code:
hardware/libhardware_legacy/audio/audio_hw_hal.cpp
and
Code:
device/lge/msm7x27-common/libaudio/audio_hw_hal.cpp
So what is the significance of having two of those..?
Also i just went and disabled the use of this one(#'d out the lines in Android.mk) :
Code:
hardware/libhardware_legacy/audio/audio_hw_hal.cpp
And the compiled continued.
Code:
target thumb C++: audio.primary.msm7x27 <= device/lge/msm7x27-common/libaudio/AudioHardware.cpp
target thumb C++: audio.primary.msm7x27 <= device/lge/msm7x27-common/libaudio/audio_hw_hal.cpp
target thumb C++: audio_policy.default <= hardware/libhardware_legacy/audio/AudioPolicyManagerDefault.cpp
target StaticLib: libaudiopolicy_legacy (/host/android/cm10/out/target/product/p690/obj/STATIC_LIBRARIES/libaudiopolicy_legacy_intermediates/libaudiopolicy_legacy.a)
In file included from device/lge/msm7x27-common/libaudio/audio_hw_hal.cpp:23:0:
system/core/include/system/audio.h:310:1: warning: 'typedef' was ignored in this declaration [enabled by default]
In file included from device/lge/msm7x27-common/libaudio/audio_hw_hal.cpp:24:0:
hardware/libhardware/include/hardware/audio.h:145:16: warning: 'typedef' was ignored in this declaration [enabled by default]
In file included from hardware/libhardware_legacy/include/hardware_legacy/AudioHardwareInterface.h:33:0,
from hardware/libhardware_legacy/include/hardware_legacy/AudioHardwareBase.h:20,
from device/lge/msm7x27-common/libaudio/AudioHardware.h:27,
from device/lge/msm7x27-common/libaudio/AudioHardware.cpp:40:
hardware/libhardware/include/hardware/audio.h:145:16: warning: 'typedef' was ignored in this declaration [enabled by default]
device/lge/msm7x27-common/libaudio/AudioHardware.h: In constructor 'android_audio_legacy::AudioHardware::AudioHardware()':
device/lge/msm7x27-common/libaudio/AudioHardware.h:328:18: warning: 'android_audio_legacy::AudioHardware::mTtyMode' will be initialized after [-Wreorder]
device/lge/msm7x27-common/libaudio/AudioHardware.h:320:37: warning: 'android_audio_legacy::AudioHardware::AudioStreamOutMSM72xx* android_audio_legacy::AudioHardware::mOutput' [-Wreorder]
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:120:1: warning: when initialized here [-Wreorder]
device/lge/msm7x27-common/libaudio/AudioHardware.cpp: In function 'int android_audio_legacy::msm72xx_enable_postproc(bool)':
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:944:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:949:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:954:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:954:65: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/lge/msm7x27-common/libaudio/AudioHardware.cpp: In member function 'virtual android::status_t android_audio_legacy::AudioHardware::setVoiceVolume(float)':
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:1160:53: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:1160:98: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/lge/msm7x27-common/libaudio/AudioHardware.cpp: In member function 'android::status_t android_audio_legacy::AudioHardware::doRouting(android_audio_legacy::AudioHardware::AudioStreamInMSM72xx*)':
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:1477:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:1480:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/lge/msm7x27-common/libaudio/AudioHardware.cpp: In member function 'virtual ssize_t android_audio_legacy::AudioHardware::AudioStreamInMSM72xx::read(void*, ssize_t)':
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:2218:10: warning: format '%d' expects argument of type 'int', but argument 4 has type 'ssize_t {aka long int}' [-Wformat]
target thumb C++: copybit.msm7x27 <= hardware/qcom/display/libcopybit/software_converter.cpp
target thumb C++: copybit.msm7x27 <= hardware/qcom/display/libcopybit/copybit.cpp
This just kinda confuses me. Though the compile still ain't complete, hence I dont know if it worked or not. Any thoughts..?
Click to expand...
Click to collapse
Update the sources. I understand the folder is fixed now
Sent from my LG-P350 using xda app-developers app
antdking said:
Update the sources. I understand the folder is fixed now
Sent from my LG-P350 using xda app-developers app
Click to expand...
Click to collapse
Hey King..! Its fixed now. Its compiling. As you said, i just updated the sources, and viola it worked this time. Don't know what changed, though i did see a few updates to the compiler, Thanks a lot.
Now if you could just give me a few pointers to fix the camera. I'll be using your HAL and libs as a starting point, the ones you posted here:
http://forum.xda-developers.com/showpost.php?p=32760935&postcount=63
Thanx..!
dj2tusk said:
Hey King..! Its fixed now. Its compiling. As you said, i just updated the sources, and viola it worked this time. Don't know what changed, though i did see a few updates to the compiler, Thanks a lot.
Now if you could just give me a few pointers to fix the camera. I'll be using your HAL and libs as a starting point, the ones you posted here:
http://forum.xda-developers.com/showpost.php?p=32760935&postcount=63
Thanx..!
Click to expand...
Click to collapse
Either use camera source from pecanCM or camera source from lgics
They're both slightly different, and one of them will work
We found lgics didn't work for us
Sent from my LG-P350 using xda app-developers app
Sure, I'll see both the sources. But i have another compile error popping up. I defined the function just similar to one defined few lines above, but even if the compile completed, the screen won't wake on the phone.
Error:
Code:
CC drivers/video/msm/mddi_hitachi_hvga.o
CC drivers/video/output.o
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c: In function 'mddi_hitachi_lcd_on':
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c:581:17: error: 'mddi_hitachi_initialize_3rd_vs660' undeclared (first use in this function)
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c:581:17: note: each undeclared identifier is reported only once for each function it appears in
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c: In function 'mddi_hitachi_lcd_store_on':
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c:623:17: error: 'mddi_hitachi_initialize_3rd_vs660' undeclared (first use in this function)
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c: In function 'mddi_hitachi_lcd_panel_poweroff':
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c:841:42: warning: initialization from incompatible pointer type [enabled by default]
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c: At top level:
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c:530:13: warning: 'hitachi_workaround' defined but not used [-Wunused-function]
cc1: warning: unrecognized command line option "-Wno-unitialised" [enabled by default]
make[5]: *** [drivers/video/msm/mddi_hitachi_hvga.o] Error 1
make[4]: *** [drivers/video/msm] Error 2
I am attaching the source file too. When I checked the diffs on github, i concluded that this file was kinda modded for the p500 family, and that may be the cause of the error. Whats your call on that..?
Thanx..!
PS: the sources are synced to date..
dj2tusk said:
Sure, I'll see both the sources. But i have another compile error popping up. I defined the function just similar to one defined few lines above, but even if the compile completed, the screen won't wake on the phone.
Error:
Code:
CC drivers/video/msm/mddi_hitachi_hvga.o
CC drivers/video/output.o
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c: In function 'mddi_hitachi_lcd_on':
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c:581:17: error: 'mddi_hitachi_initialize_3rd_vs660' undeclared (first use in this function)
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c:581:17: note: each undeclared identifier is reported only once for each function it appears in
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c: In function 'mddi_hitachi_lcd_store_on':
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c:623:17: error: 'mddi_hitachi_initialize_3rd_vs660' undeclared (first use in this function)
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c: In function 'mddi_hitachi_lcd_panel_poweroff':
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c:841:42: warning: initialization from incompatible pointer type [enabled by default]
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c: At top level:
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c:530:13: warning: 'hitachi_workaround' defined but not used [-Wunused-function]
cc1: warning: unrecognized command line option "-Wno-unitialised" [enabled by default]
make[5]: *** [drivers/video/msm/mddi_hitachi_hvga.o] Error 1
make[4]: *** [drivers/video/msm] Error 2
I am attaching the source file too. When I checked the diffs on github, i concluded that this file was kinda modded for the p500 family, and that may be the cause of the error. Whats your call on that..?
Thanx..!
PS: the sources are synced to date..
Click to expand...
Click to collapse
P690 support for this kernel is experimental. Open up an issue on the kernel on github, I'll reply on that later, or rashed will fix it
Sent from my LG-P350 using xda app-developers app
Kangout the fixed hardware directory from the Cyangenmod sources
antdking said:
P690 support for this kernel is experimental. Open up an issue on the kernel on github, I'll reply on that later, or rashed will fix it
Sent from my LG-P350 using xda app-developers app
Click to expand...
Click to collapse
Hmm, but I am unable to raise issues on lgics. Seems to be an access problem.
@yajnab: How do you propose I do that, because I dont see any kernel related files in the hardware directory. Sorry I am kinda noobish to development.
Update
antdking said:
P690 support for this kernel is experimental. Open up an issue on the kernel on github, I'll reply on that later, or rashed will fix it
Sent from my LG-P350 using xda app-developers app
Click to expand...
Click to collapse
Hey King, I was unable to open an issue on github(reason unknown), but I PM'ed Rashed. This is his reply:
dj2tusk said:
Hello Rashed.
I had just a few days asked for your help regarding fixing the libaudio issue for p690. Well that issue was fixed, thanks to you and antdking. But now I am having trouble with display and the phone restarting when switching wifi. I asked antdking about this, and he told me about support for p690 being experimental on the kernel. He asked me to raise an issue on lgics github, but I am not able to open the issues tab. So here I am asking for your help (again..!) for fixing the kernel for p690.
Here is the error when compiling:
Code:
CC drivers/video/msm/mddi_hitachi_hvga.o
CC drivers/video/output.o
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c: In function 'mddi_hitachi_lcd_on':
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c:581:17: error: 'mddi_hitachi_initialize_3rd_vs660' undeclared (first use in this function)
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c:581:17: note: each undeclared identifier is reported only once for each function it appears in
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c: In function 'mddi_hitachi_lcd_store_on':
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c:623:17: error: 'mddi_hitachi_initialize_3rd_vs660' undeclared (first use in this function)
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c: In function 'mddi_hitachi_lcd_panel_poweroff':
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c:841:42: warning: initialization from incompatible pointer type [enabled by default]
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c: At top level:
/host/android/cm10/kernel/lge/msm7x27/drivers/video/msm/mddi_hitachi_hvga.c:530:13: warning: 'hitachi_workaround' defined but not used [-Wunused-function]
cc1: warning: unrecognized command line option "-Wno-unitialised" [enabled by default]
make[5]: *** [drivers/video/msm/mddi_hitachi_hvga.o] Error 1
make[4]: *** [drivers/video/msm] Error 2
Click to expand...
Click to collapse
The drivers for your screen are screwed up pretty badly. I could take a whack at it later, but not in the next few days. Trying to get CM10.1 right now.
But if you can find me some sort of ICS kernel for your screen I'll fix it in no time. See if you can find one of those.
Click to expand...
Click to collapse
So I got on to it, and found this source which works good for the screen:
https://github.com/rhg/lge-kernel-msm7x27/blob/android-msm-2.6.35/drivers/video/msm/mddi_hitachi_hvga.c
I flashed the rom on phone. Display worked good, but no audio and still reboots on wifi toggle. Here is a logcat including the whole boot process, and also instances of what happens when I play a song, and when toggling wifi.
Thanx
dj2tusk said:
Hey King, I was unable to open an issue on github(reason unknown), but I PM'ed Rashed. This is his reply:
So I got on to it, and found this source which works good for the screen:
https://github.com/rhg/lge-kernel-m...-2.6.35/drivers/video/msm/mddi_hitachi_hvga.c
I flashed the rom on phone. Display worked good, but no audio and still reboots on wifi toggle. Here is a logcat including the whole boot process, and also instances of what happens when I play a song, and when toggling wifi.
Thanx
Click to expand...
Click to collapse
Good about the display, shame about the audio. Not sure what is happening. That audio should be universal.
Wifi toggle the reboot? That's nasty. Maybe the Wifi drivers in kernel
Did you swap display driver into the lgics kernel, or just use the other kernel?
Sent from my LG-P350 using xda app-developers app
antdking said:
Good about the display, shame about the audio. Not sure what is happening. That audio should be universal.
Wifi toggle the reboot? That's nasty. Maybe the Wifi drivers in kernel
Did you swap display driver into the lgics kernel, or just use the other kernel?
Sent from my LG-P350 using xda app-developers app
Click to expand...
Click to collapse
I just used the display driver from the rhg's kernel. Other drivers are from lgics.

I got an issue while compiling

Hey guys, sorry if i wasn't supposed to create a thread for this but i am getting this error
Code:
system/core/libion/ion.c: In function 'ion_alloc':
system/core/libion/ion.c:65:3: error: unknown field 'heap_mask' specified in initializer
system/core/libion/ion.c:67:17: warning: initialized field overwritten [-Woverride-init]
system/core/libion/ion.c:67:17: warning: (near initialization for 'data.flags') [-Woverride-init]
system/core/libion/ion.c: In function 'ion_sync_fd':
system/core/libion/ion.c:160:26: error: 'ION_IOC_SYNC' undeclared (first use in this function)
system/core/libion/ion.c:160:26: note: each undeclared identifier is reported only once for each function it appears in
system/core/libion/ion.c:162:1: error: control reaches end of non-void function [-Werror=return-type]
cc1: some warnings being treated as errors
make: *** [out/target/product/glacier/obj/EXECUTABLES/iontest_intermediates/ion.o] Error 1
Thats while compiling CM10.1
I have no idea what is up, i am tearing my hair out over it lol. Thanks in advanced for the help!
THEindian said:
Hey guys, sorry if i wasn't supposed to create a thread for this but i am getting this error
Code:
system/core/libion/ion.c: In function 'ion_alloc':
system/core/libion/ion.c:65:3: error: unknown field 'heap_mask' specified in initializer
system/core/libion/ion.c:67:17: warning: initialized field overwritten [-Woverride-init]
system/core/libion/ion.c:67:17: warning: (near initialization for 'data.flags') [-Woverride-init]
system/core/libion/ion.c: In function 'ion_sync_fd':
system/core/libion/ion.c:160:26: error: 'ION_IOC_SYNC' undeclared (first use in this function)
system/core/libion/ion.c:160:26: note: each undeclared identifier is reported only once for each function it appears in
system/core/libion/ion.c:162:1: error: control reaches end of non-void function [-Werror=return-type]
cc1: some warnings being treated as errors
make: *** [out/target/product/glacier/obj/EXECUTABLES/iontest_intermediates/ion.o] Error 1
Thats while compiling CM10.1
I have no idea what is up, i am tearing my hair out over it lol. Thanks in advanced for the help!
Click to expand...
Click to collapse
bump
anybody?

[Q] aosp compiling errors, please help if you can

hey guys, this is the first time compiling aosp for any device,, i have compiled private test builds of cm before,, but aosp is different,,, i have just started compiling and came apon the first error which has stopped the rom compiling,, if you could help me fix some issuse that arrise i will be in your debt,,,
device/samsung/smdk4412-common/camerawrapper/CameraWrapper.cpp: In function 'char* camera_fixup_getparams(int, char const*)':
device/samsung/smdk4412-common/camerawrapper/CameraWrapper.cpp:102:16: error: 'KEY_SUPPORTED_ISO_MODES' is not a member of 'android::CameraParameters'
device/samsung/smdk4412-common/camerawrapper/CameraWrapper.cpp: In function 'char* camera_fixup_setparams(int, char const*)':
device/samsung/smdk4412-common/camerawrapper/CameraWrapper.cpp:119:42: error: 'KEY_ISO_MODE' is not a member of 'android::CameraParameters'
device/samsung/smdk4412-common/camerawrapper/CameraWrapper.cpp:121:24: error: 'KEY_ISO_MODE' is not a member of 'android::CameraParameters'
device/samsung/smdk4412-common/camerawrapper/CameraWrapper.cpp:123:24: error: 'KEY_ISO_MODE' is not a member of 'android::CameraParameters'
device/samsung/smdk4412-common/camerawrapper/CameraWrapper.cpp:125:24: error: 'KEY_ISO_MODE' is not a member of 'android::CameraParameters'
device/samsung/smdk4412-common/camerawrapper/CameraWrapper.cpp:127:24: error: 'KEY_ISO_MODE' is not a member of 'android::CameraParameters'
device/samsung/smdk4412-common/camerawrapper/CameraWrapper.cpp:133:16: error: 'KEY_CITYID' is not a member of 'android::CameraParameters'
device/samsung/smdk4412-common/camerawrapper/CameraWrapper.cpp: In function 'int camera_device_open(const hw_module_t*, char const*, hw_device_t**)':
device/samsung/smdk4412-common/camerawrapper/CameraWrapper.cpp:507:134: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
make: *** [out/target/product/i9305/obj/SHARED_LIBRARIES/camera.exynos4_intermediates/CameraWrapper.o] Error 1
make: *** Waiting for unfinished jobs....
Bump.. really no one wants to help
Sent from my GT-I9305 using xda app-developers app

[Q&A] [SOURCES][DEVONLY] CyanogenMod 11.0

Q&A for [SOURCES][DEVONLY] CyanogenMod 11.0
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for [SOURCES][DEVONLY] CyanogenMod 11.0. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!
CM11
Thank you for your efforts and hardwork. I look forward to running cm 11 on the alpha.
Congo from India. Pl. Check it and tell if all features working or not..
what about CM12 any news on that?
HELLO?
Hi. Nice to catch this thread.
I just wanna know... Can korean alpha get this cm11? Or...can get g850f only?
And i wanna talk to you. Cheer up!
Thank you for developing this alpha, modfunk!
Finally, good luck for my ss g alpha....
(i just wanna 'plus alpha' yeah!)
We will only know if you try. I don't know your hardware I only own a G850F
Hi there,
I can hardly wait to get CM11 on my device. Otherwise using this phone is pointelss for me. I would throw the whole Samsung stock ROM to somewhere that it can burn slowly and flawlessly to the ground.
Thanks guys for your efforts!
Can anybody show video hows cyano 11 on alpha ?
thnx
Simona Simmy said:
Can anybody show video hows cyano 11 on alpha ?
thnx
Click to expand...
Click to collapse
CM11 isn't ready for consuming yet on the alpha.
Yet this is called "Devonly" (developers only) and "source".
This means: get github access, get the source, get the tools, compile it, debug compilation process, fix compilation process, get a image.
Pray, push it on your device, hopefully you won't have softbricked your device.
Debug the features that are missing, fix the bugs, find solutions, recompile.
At the moment, modpunkt still has the following (major) issues:
http://forum.xda-developers.com/showpost.php?p=57233732&postcount=46
https://www.youtube.com/watch?v=1_H4AlQaNa0 seems to be a video that explains how to compile from source, it is not mine, but looks good from a first glance at google.
Simona Simmy said:
Can anybody show video hows cyano 11 on alpha ?
thnx
Click to expand...
Click to collapse
It's not useable. No network connection is working yet ...
Thank youu
Thanks to dev(s) from me too. It's interesting to follow your progress, it reminds me of the good old zte blade 1 ages where few devs hacked the **** out of that device.
How can I help ?
Hello guys, I have a Galaxy Alpha for over a week now... And just can't stand that touchwiz stock rom anymore..
So what can I do to help you guys ? I have no experience in porting roms, but I have SM-G850F and just want to help you guys.. For example I can test everything you give me and other things Just let me know
will try to help
Hello, @modpunk
Although I have no CM porting experience I know C and Java. I have set up my CM environment, built and deployed my own unofficial ROM to one of my other devices.
My SM-G850F should arrive this coming week and I just may try help with the TODO. I'm a little confused trying to find out what are your repos to place in my local manifests, can you please list and describe them?
TIA,
Nuno
nuno.f.ferreira said:
Hello, @modpunk
Although I have no CM porting experience I know C and Java. I have set up my CM environment, built and deployed my own unofficial ROM to one of my other devices.
My SM-G850F should arrive this coming week and I just may try help with the TODO. I'm a little confused trying to find out what are your repos to place in my local manifests, can you please list and describe them?
TIA,
Nuno
Click to expand...
Click to collapse
Everything is in the readme of the cm-11.0 rep
http://git.cryptomilk.org/projects/android/android_device_samsung_slte.git/tree/README?h=cm-11.0
Building CM11 for Samsung Galaxy Alpha
Hello,
Was trying to post in http://forum.xda-developers.com/galaxy-alpha/orig-development/sources-cyanogenmod-11-0-t2933305 but apparently need to do it here.
Building with this instructions http://git.cryptomilk.org/projects/android/android_device_samsung_slte.git/tree/README?h=cm-11.0 have the following error. Thought I ask before starting to dig...
<CONSOLE>
target thumb C++: hwcomposer.exynos5 <= hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp: In function 'bool hdmi_is_preset_supported(exynos5_hwc_composer_device_1_t*, int)':
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp:462:32: error: aggregate 'hdmi_is_preset_supported(exynos5_hwc_composer_device_1_t*, int)::v4l2_dv_enum_preset enum_preset' has incomplete type and cannot be defined
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp:469:45: error: 'VIDIOC_ENUM_DV_PRESETS' was not declared in this scope
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp: In function 'int hdmi_get_config(exynos5_hwc_composer_device_1_t*)':
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp:577:27: error: aggregate 'hdmi_get_config(exynos5_hwc_composer_device_1_t*)::v4l2_dv_preset preset' has incomplete type and cannot be defined
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp:578:32: error: aggregate 'hdmi_get_config(exynos5_hwc_composer_device_1_t*)::v4l2_dv_enum_preset enum_preset' has incomplete type and cannot be defined
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp:586:39: error: 'VIDIOC_G_DV_PRESET' was not declared in this scope
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp: In function 'int hdmi_output(exynos5_hwc_composer_device_1_t*, hdmi_layer_t&, hwc_layer_1_t&, private_handle_t*, int, int*)':
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp:1159:52: error: invalid conversion from '__u32 {aka unsigned int}' to 'v4l2_buf_type' [-fpermissive]
In file included from hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.h:52:0,
from hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp:27:
./hardware/samsung_slsi/exynos/include/exynos_v4l2.h:76:5: error: initializing argument 2 of 'int exynos_v4l2_streamon(int, v4l2_buf_type)' [-fpermissive]
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp: At global scope:
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp:4586:1: warning: missing initializer for member 'hw_module_t::dso' [-Wmissing-field-initializers]
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp:4586:1: warning: missing initializer for member 'hw_module_t::reserved' [-Wmissing-field-initializers]
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp: In function 'int hdmi_get_config(exynos5_hwc_composer_device_1_t*)':
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp:592:1: error: control reaches end of non-void function [-Werror=return-type]
cc1plus: some warnings being treated as errors
make: *** [/opt/android/system/out/target/product/slte/obj/SHARED_LIBRARIES/hwcomposer.exynos5_intermediates/ExynosHWC.o] Error 1
</CONSOLE>
TIA,
Nuno
nuno.f.ferreira said:
Hello,
Was trying to post in http://forum.xda-developers.com/galaxy-alpha/orig-development/sources-cyanogenmod-11-0-t2933305 but apparently need to do it here.
Building with this instructions http://git.cryptomilk.org/projects/android/android_device_samsung_slte.git/tree/README?h=cm-11.0 have the following error. Thought I ask before starting to dig...
<CONSOLE>
target thumb C++: hwcomposer.exynos5 <= hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp: In function 'bool hdmi_is_preset_supported(exynos5_hwc_composer_device_1_t*, int)':
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp:462:32: error: aggregate 'hdmi_is_preset_supported(exynos5_hwc_composer_device_1_t*, int)::v4l2_dv_enum_preset enum_preset' has incomplete type and cannot be defined
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp:469:45: error: 'VIDIOC_ENUM_DV_PRESETS' was not declared in this scope
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp: In function 'int hdmi_get_config(exynos5_hwc_composer_device_1_t*)':
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp:577:27: error: aggregate 'hdmi_get_config(exynos5_hwc_composer_device_1_t*)::v4l2_dv_preset preset' has incomplete type and cannot be defined
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp:578:32: error: aggregate 'hdmi_get_config(exynos5_hwc_composer_device_1_t*)::v4l2_dv_enum_preset enum_preset' has incomplete type and cannot be defined
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp:586:39: error: 'VIDIOC_G_DV_PRESET' was not declared in this scope
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp: In function 'int hdmi_output(exynos5_hwc_composer_device_1_t*, hdmi_layer_t&, hwc_layer_1_t&, private_handle_t*, int, int*)':
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp:1159:52: error: invalid conversion from '__u32 {aka unsigned int}' to 'v4l2_buf_type' [-fpermissive]
In file included from hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.h:52:0,
from hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp:27:
./hardware/samsung_slsi/exynos/include/exynos_v4l2.h:76:5: error: initializing argument 2 of 'int exynos_v4l2_streamon(int, v4l2_buf_type)' [-fpermissive]
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp: At global scope:
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp:4586:1: warning: missing initializer for member 'hw_module_t::dso' [-Wmissing-field-initializers]
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp:4586:1: warning: missing initializer for member 'hw_module_t::reserved' [-Wmissing-field-initializers]
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp: In function 'int hdmi_get_config(exynos5_hwc_composer_device_1_t*)':
hardware/samsung_slsi/exynos5-insignal/libhwc/ExynosHWC.cpp:592:1: error: control reaches end of non-void function [-Werror=return-type]
cc1plus: some warnings being treated as errors
make: *** [/opt/android/system/out/target/product/slte/obj/SHARED_LIBRARIES/hwcomposer.exynos5_intermediates/ExynosHWC.o] Error 1
</CONSOLE>
TIA,
Nuno
Click to expand...
Click to collapse
seems you haven't applied this patch: http://review.cyanogenmod.org/#/c/78565/
Thanks for the reply.
Hmm, I have CyanogenMod/android_hardware_samsung_slsi_exynos5-insignal in my local manifest and repos are synced. Do you mean there are patch sets that have to be applied manually? If so, do you know if anymore besides this one?
nuno.f.ferreira said:
Thanks for the reply.
Hmm, I have CyanogenMod/android_hardware_samsung_slsi_exynos5-insignal in my local manifest and repos are synced. Do you mean there are patch sets that have to be applied manually? If so, do you know if anymore besides this one?
Click to expand...
Click to collapse
yes, you have to apply that patch manually. No more patches are needed to build cm at this moment.
Thanks. Did that.
Now I have this. Is this known?
<CONSOLE>
Package OTA: /opt/android/system/out/target/product/slte/cm_slte-ota-67a8ffa7a4.zip
MKBOOTIMG= \
./build/tools/releasetools/ota_from_target_files -v \
-p /opt/android/system/out/host/linux-x86 \
-k build/target/product/security/testkey \
--backup=true \
--override_device=auto \
\
\
/opt/android/system/out/target/product/slte/obj/PACKAGING/target_files_intermediates/cm_slte-target_files-67a8ffa7a4.zip /opt/android/system/out/target/product/slte/cm_slte-ota-67a8ffa7a4.zip
unzipping target target-files...
running: unzip -o -q /opt/android/system/out/target/product/slte/obj/PACKAGING/target_files_intermediates/cm_slte-target_files-67a8ffa7a4.zip -d /tmp/targetfiles-6wcH3r
Traceback (most recent call last):
File "./build/tools/releasetools/ota_from_target_files", line 1132, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/ota_from_target_files", line 1075, in main
OPTIONS.info_dict = common.LoadInfoDict(input_zip)
File "/opt/android/system/build/tools/releasetools/common.py", line 155, in LoadInfoDict
d["fstab"] = LoadRecoveryFSTab(zip, d["fstab_version"])
File "/opt/android/system/build/tools/releasetools/common.py", line 227, in LoadRecoveryFSTab
raise ValueError("malformed recovery.fstab line: "%s"" % (line,))
ValueError: malformed recovery.fstab line: "/efs ext4 /dev/block/mmcblk0p3 flags=backup=1"
make: *** [/opt/android/system/out/target/product/slte/cm_slte-ota-67a8ffa7a4.zip] Error 1
</CONSOLE>

Categories

Resources