[Galaxy S III Android Development] Darkened_Sky:
building from source

I am trying to learn to compile ROMs from source and I already was succesful in compiling the unofficial cm12.1 ROM. Now I tried the same for temasek ROM but I always end with an error concerning batterymonitor.cpp :confused:

error

target thumb C++: libbatteryservice <= frameworks/native/services/batteryservice/IBatteryPropertiesRegistrar.cpp
INSTALL include/linux/dvb (8 files)
INSTALL include/rdma (6 files)
system/core/healthd/BatteryMonitor.cpp: In member function 'bool android::BatteryMonitor::update()':
system/core/healthd/BatteryMonitor.cpp:186:11: error: 'struct android::BatteryProperties' has no member named 'chargerDockAcOnline'
props.chargerDockAcOnline = false;
^
system/core/healthd/BatteryMonitor.cpp:189:11: error: 'struct android::BatteryProperties' has no member named 'dockBatteryStatus'
props.dockBatteryStatus = BATTERY_STATUS_UNKNOWN;
^
system/core/healthd/BatteryMonitor.cpp:190:11: error: 'struct android::BatteryProperties' has no member named 'dockBatteryHealth'
props.dockBatteryHealth = BATTERY_HEALTH_UNKNOWN;
^
system/core/healthd/BatteryMonitor.cpp:219:11: error: 'struct android::BatteryProperties' has no member named 'dockBatterySupported'
props.dockBatterySupported = mHealthdConfig->dockBatterySupported;
^
system/core/healthd/BatteryMonitor.cpp:220:15: error: 'struct android::BatteryProperties' has no member named 'dockBatterySupported'
if (props.dockBatterySupported) {
^
system/core/healthd/BatteryMonitor.cpp:222:19: error: 'struct android::BatteryProperties' has no member named 'dockBatteryPresent'
props.dockBatteryPresent = getBooleanField(mHealthdConfig->dockBatteryPresentPath);
^
system/core/healthd/BatteryMonitor.cpp:224:19: error: 'struct android::BatteryProperties' has no member named 'dockBatteryPresent'
props.dockBatteryPresent = mDockBatteryDevicePresent;
^
system/core/healthd/BatteryMonitor.cpp:226:15: error: 'struct android::BatteryProperties' has no member named 'dockBatteryLevel'
props.dockBatteryLevel = mBatteryFixedCapacity ?
^
system/core/healthd/BatteryMonitor.cpp:229:15: error: 'struct android::BatteryProperties' has no member named 'dockBatteryVoltage'
props.dockBatteryVoltage = getIntField(mHealthdConfig->dockBatteryVoltagePath) / 1000;
^
system/core/healthd/BatteryMonitor.cpp:231:15: error: 'struct android::BatteryProperties' has no member named 'dockBatteryTemperature'
props.dockBatteryTemperature = mBatteryFixedTemperature ?
^
system/core/healthd/BatteryMonitor.cpp:236:19: error: 'struct android::BatteryProperties' has no member named 'dockBatteryStatus'
props.dockBatteryStatus = getBatteryStatus(buf);
^
system/core/healthd/BatteryMonitor.cpp:239:19: error: 'struct android::BatteryProperties' has no member named 'dockBatteryHealth'
props.dockBatteryHealth = getBatteryHealth(buf);
^
system/core/healthd/BatteryMonitor.cpp:242:19: error: 'struct android::BatteryProperties' has no member named 'dockBatteryTechnology'
props.dockBatteryTechnology = String8(buf);
^
system/core/healthd/BatteryMonitor.cpp:289:43: error: 'struct android::BatteryProperties' has no member named 'chargerDockAcOnline'
props.chargerDockAcOnline = true;
^
system/core/healthd/BatteryMonitor.cpp:331:19: error: 'struct android::BatteryProperties' has no member named 'dockBatteryPresent'
if (props.dockBatteryPresent) {
^
system/core/healthd/BatteryMonitor.cpp:334:24: error: 'struct android::BatteryProperties' has no member named 'dockBatteryLevel'
props.dockBatteryLevel, props.dockBatteryVoltage,
^
system/core/healthd/BatteryMonitor.cpp:334:48: error: 'struct android::BatteryProperties' has no member named 'dockBatteryVoltage'
props.dockBatteryLevel, props.dockBatteryVoltage,
^
system/core/healthd/BatteryMonitor.cpp:335:24: error: 'struct android::BatteryProperties' has no member named 'dockBatteryTemperature'
props.dockBatteryTemperature < 0 ? "-" : "",
^
system/core/healthd/BatteryMonitor.cpp:336:28: error: 'struct android::BatteryProperties' has no member named 'dockBatteryTemperature'
abs(props.dockBatteryTemperature / 10),
^
system/core/healthd/BatteryMonitor.cpp:337:28: error: 'struct android::BatteryProperties' has no member named 'dockBatteryTemperature'
abs(props.dockBatteryTemperature % 10), props.dockBatteryHealth,
^
system/core/healthd/BatteryMonitor.cpp:337:64: error: 'struct android::BatteryProperties' has no member named 'dockBatteryHealth'
abs(props.dockBatteryTemperature % 10), props.dockBatteryHealth,
^
system/core/healthd/BatteryMonitor.cpp:338:24: error: 'struct android::BatteryProperties' has no member named 'dockBatteryStatus'
props.dockBatteryStatus);
^
In file included from system/core/healthd/BatteryMonitor.cpp:30:0:
system/core/healthd/BatteryMonitor.cpp:356:28: error: 'struct android::BatteryProperties' has no member named 'chargerDockAcOnline'
props.chargerDockAcOnline ? "d" : "");
^
system/core/healthd/BatteryMonitor.cpp:361:49: error: 'struct android::BatteryProperties' has no member named 'chargerDockAcOnline'
props.chargerWirelessOnline | props.chargerDockAcOnline;
^
system/core/healthd/BatteryMonitor.cpp: In member function 'void android::BatteryMonitor::dumpState(int)':
system/core/healthd/BatteryMonitor.cpp:495:49: error: 'struct android::BatteryProperties' has no member named 'chargerDockAcOnline'
props.chargerWirelessOnline, props.chargerDockAcOnline);
^
system/core/healthd/BatteryMonitor.cpp:525:24: error: 'struct android::BatteryProperties' has no member named 'dockBatteryStatus'
props.dockBatteryStatus, props.dockBatteryHealth, props.dockBatteryPresent);
^
system/core/healthd/BatteryMonitor.cpp:525:49: error: 'struct android::BatteryProperties' has no member named 'dockBatteryHealth'
props.dockBatteryStatus, props.dockBatteryHealth, props.dockBatteryPresent);
^
system/core/healthd/BatteryMonitor.cpp:525:74: error: 'struct android::BatteryProperties' has no member named 'dockBatteryPresent'
props.dockBatteryStatus, props.dockBatteryHealth, props.dockBatteryPresent);
^
system/core/healthd/BatteryMonitor.cpp:528:24: error: 'struct android::BatteryProperties' has no member named 'dockBatteryLevel'
props.dockBatteryLevel, props.dockBatteryVoltage,
^
system/core/healthd/BatteryMonitor.cpp:528:48: error: 'struct android::BatteryProperties' has no member named 'dockBatteryVoltage'
props.dockBatteryLevel, props.dockBatteryVoltage,
^
system/core/healthd/BatteryMonitor.cpp:529:24: error: 'struct android::BatteryProperties' has no member named 'dockBatteryTemperature'
props.dockBatteryTemperature);
^
target thumb C++: libbinder <= frameworks/native/libs/binder/AppOpsManager.cpp
make: *** [/home/tobi/temasek_12.1/out/target/product/i9300/obj/EXECUTABLES/healthd_intermediates/BatteryMonitor.o] Error 1
make: *** Waiting for unfinished jobs....
INSTALL include/scsi/fc (4 files)
INSTALL include/linux/hdlc (1 file)
INSTALL include/linux/isdn (1 file)
INSTALL include/linux/mmc (1 file)
INSTALL include/sound (8 files)
INSTALL include/linux/netfilter/ipset (4 files)
INSTALL include/linux/netfilter_arp (2 files)
INSTALL include/scsi (3 files)
INSTALL include/linux/netfilter (69 files)
INSTALL include/linux/netfilter_bridge (18 files)
INSTALL include/video (3 files)
INSTALL include/xen (2 files)
INSTALL include (0 file)
INSTALL include/linux/netfilter_ipv4 (14 files)
INSTALL include/linux/netfilter_ipv6 (11 files)
INSTALL include/linux/nfsd (6 files)
INSTALL include/linux/raid (2 files)
INSTALL include/linux/spi (1 file)
INSTALL include/linux/sunrpc (1 file)
INSTALL include/linux/tc_act (7 files)
INSTALL include/linux/tc_ematch (4 files)
INSTALL include/linux/usb (9 files)
INSTALL include/linux/wimax (1 file)
INSTALL include/linux (364 files)
INSTALL include/asm (32 files)
make[1]: Leaving directory `/home/tobi/temasek_12.1/kernel/samsung/smdk4412'

#### make failed to build some targets (05:23 (mm:ss)) ####

what i basically did:

repo init -u https://github.com/temasek/android.git -b cm-12.1

repo sync

included the local_manifest from [MENTION=4898097]arter97[/MENTION] https://github.com/arter97/roomservice/blob/master/i9300.xml

repo sync

source build/envsetup.sh

enabled ccache

breakfast i9300

brunch i9300

and after some minutes (around 20min) the above error appears

for cm12.1 this procedure worked without any problems, so probably it is not the fault of my building environment

so I hope someone might be able to help me out :) I would really like to be able to compile ROMs myself, espacially for future devices :)