[Q] build CMrom error - Nexus 5 Q&A, Help & Troubleshooting

I Try build cm ROM BUT
I Encounter :
hardware/qcom/display/msm8974/liboverlay/overlayMdp.cpp: In member function 'void overlay::MdpCtrl::setColor(uint32_t)':
hardware/qcom/display/msm8974/liboverlay/overlayMdp.cpp:105:13: error: 'struct mdp_overlay' has no member named 'bg_color'
make: *** [/home/tommy/android/system/out/target/product/hammerhead/obj/SHARED_LIBRARIES/liboverlay_intermediates/overlayMdp.o] error 1
plesae help me

Edit: Wrong thread, oops.

Related

Build error, need help?

Setup my build environment according to this post
http://forum.xda-developers.com/showthread.php?t=2639611
and trying to build this ROM
https://github.com/CarbonDev/android
I got a build error mid way
HTML:
hardware/qcom/display/msm8974/liboverlay/overlayMdp.cpp: In member function 'void overlay::MdpCtrl::setColor(uint32 _t)':
hardware/qcom/display/msm8974/liboverlay/overlayMdp.cpp:105:13: error: 'struct mdp_overlay' has no member named 'bg _color'
make: *** [/root/carbon/out/target/product/hammerhead/obj/SHARED_LIBRARIES/liboverlay_intermediates/overlayMdp.o] E rror 1
make: *** Waiting for unfinished jobs....
target thumb C++: liboverlay <= hardware/qcom/display/msm8974/liboverlay/overlayMdssRot.cpp
make: *** wait: No child processes. Stop.
I google and got this suggesting
Try switching hardware/qcom/display to cyanogenmod 's version
What file do I edit to change this?
Thanks.

[Q] Problems compiling stock Kernel from official source.

Hi all.
I run into some problems when trying to build a Kernel from GT-N8000_KK_Opensource.zip (opensource.samsung.com).
I can compile the kernel with the defconfig shipped with the source code (p4notepq-w_00_defconfig) without any changes and i get a fully functional kernel and modules.
My aim is to compile driver modules for my usb-wlan-dongle TP-LINK TL-WN722N. That are the ath9k n ath9k_htc modules (also mac80211 module is needed).
I did the following changes to enable the ath9k and ath9k_htc in menuconfig
Code:
file drivers/net/wireless/ath/Makefile :
added: obj-$(CONFIG_ATH9K_HW) += ath9k/
file drivers/net/wireless/ath/Kconfig :
added: source "drivers/net/wireless/ath/ath9k/Kconfig
Also i removed Wall flags from Makefile and inserted some -Wno-error to get rid off some additional warnings.
To get rid off
Code:
include/linux/device.h:722:38: error: 'THIS_MODULE' undeclared (first use in this function)
i inserted my kernel export.h in the compat include.
Now i got the following error unsolved:
Code:
drivers/net/wireless/ath/ath9k/beacon.c: In function 'ath_beacon_setup':
drivers/net/wireless/ath/ath9k/beacon.c:109: error: 'struct ath_common' has no member named 'tx_chainmask'
make[5]: *** [drivers/net/wireless/ath/ath9k/beacon.o] Error 1
make[5]: *** Waiting for unfinished jobs....
make[4]: *** [drivers/net/wireless/ath/ath9k] Error 2
make[3]: *** [drivers/net/wireless/ath] Error 2
make[2]: *** [drivers/net/wireless] Error 2
make[1]: *** [drivers/net] Error 2
make: *** [drivers] Error 2
My Build environment is:
Ubuntu 14.4.01 64bit in a VM with 8gb ram.
Toolchain used:
arm-eabi-4.4.3
Maybe someone can give me some advice how to get this module compiled.
Thanks in advance
smue83 said:
Hi all.
I run into some problems when trying to build a Kernel from GT-N8000_KK_Opensource.zip (opensource.samsung.com).
I can compile the kernel with the defconfig shipped with the source code (p4notepq-w_00_defconfig) without any changes and i get a fully functional kernel and modules.
My aim is to compile driver modules for my usb-wlan-dongle TP-LINK TL-WN722N. That are the ath9k n ath9k_htc modules (also mac80211 module is needed).
I did the following changes to enable the ath9k and ath9k_htc in menuconfig
Code:
file drivers/net/wireless/ath/Makefile :
added: obj-$(CONFIG_ATH9K_HW) += ath9k/
file drivers/net/wireless/ath/Kconfig :
added: source "drivers/net/wireless/ath/ath9k/Kconfig
Also i removed Wall flags from Makefile and inserted some -Wno-error to get rid off some additional warnings.
To get rid off
Code:
include/linux/device.h:722:38: error: 'THIS_MODULE' undeclared (first use in this function)
i inserted my kernel export.h in the compat include.
Now i got the following error unsolved:
Code:
drivers/net/wireless/ath/ath9k/beacon.c: In function 'ath_beacon_setup':
drivers/net/wireless/ath/ath9k/beacon.c:109: error: 'struct ath_common' has no member named 'tx_chainmask'
make[5]: *** [drivers/net/wireless/ath/ath9k/beacon.o] Error 1
make[5]: *** Waiting for unfinished jobs....
make[4]: *** [drivers/net/wireless/ath/ath9k] Error 2
make[3]: *** [drivers/net/wireless/ath] Error 2
make[2]: *** [drivers/net/wireless] Error 2
make[1]: *** [drivers/net] Error 2
make: *** [drivers] Error 2
My Build environment is:
Ubuntu 14.4.01 64bit in a VM with 8gb ram.
Toolchain used:
arm-eabi-4.4.3
Maybe someone can give me some advice how to get this module compiled.
Thanks in advance
Click to expand...
Click to collapse
Similar issue here on S3,
Code:
net/mac80211/mlme.c: In function 'ieee80211_mgd_auth':
net/mac80211/mlme.c:2344:16: error: 'struct cfg80211_auth_request' has no member named 'local_state_change'
net/mac80211/mlme.c:2346:9: error: 'struct cfg80211_auth_request' has no member named 'local_state_change'
net/mac80211/mlme.c: In function 'ieee80211_assoc_done':
net/mac80211/mlme.c:2448:2: warning: passing argument 2 of 'cfg80211_send_rx_assoc' from incompatible pointer type [enabled by default]
include/net/cfg80211.h:2802:6: note: expected 'struct cfg80211_bss *' but argument is of type 'unsigned char *'
net/mac80211/mlme.c:2448:2: warning: passing argument 3 of 'cfg80211_send_rx_assoc' makes pointer from integer without a cast [enabled by default]
include/net/cfg80211.h:2802:6: note: expected 'u8 const *' but argument is of type 'unsigned int'
net/mac80211/mlme.c:2448:2: error: too few arguments to function 'cfg80211_send_rx_assoc'
include/net/cfg80211.h:2802:6: note: declared here
net/mac80211/mlme.c: In function 'ieee80211_mgd_deauth':
net/mac80211/mlme.c:2589:19: error: 'struct cfg80211_deauth_request' has no member named 'bss'
net/mac80211/mlme.c:2590:30: error: 'struct cfg80211_deauth_request' has no member named 'bss'
net/mac80211/mlme.c:2610:18: error: 'struct cfg80211_deauth_request' has no member named 'bss'
net/mac80211/mlme.c:2639:16: error: 'struct cfg80211_deauth_request' has no member named 'local_state_change'
make[2]: *** [net/mac80211/mlme.o] Error 1
make[2]: *** Waiting for unfinished jobs....

[Q] Help !!!!

i am trying to compile a kernel but get into this error .. can any one help me ??
Code:
arch/arm/mach-msm/htc_acoustic_8x60.c: In function 'acoustic_ioctl':
arch/arm/mach-msm/htc_acoustic_8x60.c:248:15: error: 'struct adie_codec_hwsetting_entry' has no member named 'voc_action'
arch/arm/mach-msm/htc_acoustic_8x60.c:249:15: error: 'struct adie_codec_hwsetting_entry' has no member named 'voc_action_sz'
arch/arm/mach-msm/htc_acoustic_8x60.c:252:15: error: 'struct adie_codec_hwsetting_entry' has no member named 'midi_action'
arch/arm/mach-msm/htc_acoustic_8x60.c:253:15: error: 'struct adie_codec_hwsetting_entry' has no member named 'midi_action_sz'
make[1]: *** [arch/arm/mach-msm/htc_acoustic_8x60.o] Error 1
make: *** [arch/arm/mach-msm] Error 2
make: *** Waiting for unfinished jobs....

[Completed] Error while compiling with latest TWRP.

Hi,
I am a user of Micromax canvas HD (A116), MT6589. I have the sources of omni and from that flags I'm compiling the TWRP recovery. I'm getting an unknown error:
Code:
system/core/healthd/healthd_mode_charger.cpp:941: error: undefined reference to 'res_create_display_surface'
collect2: error: ld returned 1 exit status
make: *** [/home/preet/RR/out/target/product/a116/obj/EXECUTABLES/healthd_intermediates/LINKED/healthd] Error 1
how to fix this?
Preet_ said:
Hi,
I am a user of Micromax canvas HD (A116), MT6589. I have the sources of omni and from that flags I'm compiling the TWRP recovery. I'm getting an unknown error:
Code:
system/core/healthd/healthd_mode_charger.cpp:941: error: undefined reference to 'res_create_display_surface'
collect2: error: ld returned 1 exit status
make: *** [/home/preet/RR/out/target/product/a116/obj/EXECUTABLES/healthd_intermediates/LINKED/healthd] Error 1
how to fix this?
Click to expand...
Click to collapse
Hi, thanks for using XDA Assist!
Please post your question here:
http://forum.xda-developers.com/showthread.php?t=2321302
That's a friendly help thread specifically for your device.
You'll find expert advice there.
Good luck!

Please Help.. Uber Toolchain Setup.

All I am trying to do is simply get Uber Toolchain GCC 5.2 working on the ROM portion of a cm-12.1 build. I got it working on the kernel but every time I build the ROM I get an error. Posted below. Any help would be incredible. Thanks.
In file included from external/libcxx/include/algorithm:628:0,
from art/dalvikvm/dalvikvm.cc:21:
external/libcxx/include/memory: In member function 'virtual const void* std::__1::__shared_ptr_pointer<_Tp, _Dp, _Alloc>::__get_deleter(const std::type_info&) const':
external/libcxx/include/memory:3662:29: error: cannot use typeid with -fno-rtti
return __t == typeid(_Dp) ? &__data_.first().second() : 0;
^
external/libcxx/include/memory: In member function '_Dp* std::__1::shared_ptr<_Tp>::__get_deleter() const':
external/libcxx/include/memory:3942:73: error: cannot use typeid with -fno-rtti
{return (_Dp*)(__cntrl_ ? __cntrl_->__get_deleter(typeid(_Dp)) : 0);}
^
build/core/binary.mk:619: recipe for target '/home/zx64/android/system/out/target/product/bacon/obj/EXECUTABLES/dalvikvm_intermediates/dalvikvm..o' failed
make: *** [/home/zx64/android/system/out/target/product/bacon/obj/EXECUTABLES/dalvikvm_intermediates/dalvikvm..o] Error 1
make: *** Waiting for unfinished jobs....

Categories

Resources