Code:
target thumb C: sh <= external/mksh/src/eval.c
target thumb C: sh <= external/mksh/src/exec.c
target thumb C: sh <= external/mksh/src/expr.c
target thumb C: sh <= external/mksh/src/funcs.c
target thumb C: sh <= external/mksh/src/histrap.c
target thumb C: sh <= external/mksh/src/jobs.c
target thumb C: sh <= external/mksh/src/lex.c
target thumb C: sh <= external/mksh/src/main.c
target thumb C: sh <= external/mksh/src/misc.c
target thumb C: sh <= external/mksh/src/shf.c
target thumb C: sh <= external/mksh/src/syn.c
target thumb C: sh <= external/mksh/src/tree.c
target thumb C: sh <= external/mksh/src/var.c
target thumb C: showlease <= external/dhcpcd/showlease.c
target arm C: smc_pa_ctrl <= hardware/ti/omap4xxx/security/smc_pa_ctrl/smc_pa_ctrl.c
target arm C: smc_pa_ctrl <= hardware/ti/omap4xxx/security/smc_pa_ctrl/smc_pa_ctrl_linux.c
Import includes file: /home/owner/android/system/out/target/product/p3110/obj/EXECUTABLES/surfaceflinger_intermediates/import_includes
target thumb C++: libsurfaceflinger <= frameworks/native/services/surfaceflinger/Client.cpp
target thumb C++: libsurfaceflinger <= frameworks/native/services/surfaceflinger/DisplayDevice.cpp
In file included from frameworks/native/services/surfaceflinger/DisplayDevice.cpp:35:
frameworks/native/services/surfaceflinger/DisplayHardware/HWComposer.h:219:16: warning: struct 'HWComposer' was previously declared as a class [-Wmismatched-tags]
friend struct HWComposer;
^
frameworks/native/services/surfaceflinger/DisplayHardware/HWComposer.h:58:7: note: previous use is here
class HWComposer
^
In file included from frameworks/native/services/surfaceflinger/DisplayDevice.cpp:39:
frameworks/native/services/surfaceflinger/DisplayDevice.h:40:1: warning: class 'DisplayInfo' was previously declared as a struct [-Wmismatched-tags]
class DisplayInfo;
^
frameworks/native/include/ui/DisplayInfo.h:28:8: note: previous use is here
struct DisplayInfo {
^
frameworks/native/services/surfaceflinger/DisplayDevice.h:40:1: note: did you mean struct here?
class DisplayInfo;
^~~~~
struct
frameworks/native/services/surfaceflinger/DisplayDevice.cpp:76:18: error: use of undeclared identifier 'HWC_POWER_MODE_OFF'
mPowerMode(HWC_POWER_MODE_OFF),
^
frameworks/native/services/surfaceflinger/DisplayDevice.cpp:116:19: error: use of undeclared identifier 'HWC_POWER_MODE_NORMAL'
HWC_POWER_MODE_NORMAL : HWC_POWER_MODE_OFF;
^
frameworks/native/services/surfaceflinger/DisplayDevice.cpp:116:43: error: use of undeclared identifier 'HWC_POWER_MODE_OFF'
HWC_POWER_MODE_NORMAL : HWC_POWER_MODE_OFF;
^
frameworks/native/services/surfaceflinger/DisplayDevice.cpp:351:27: error: use of undeclared identifier 'HWC_POWER_MODE_OFF'
return (mPowerMode != HWC_POWER_MODE_OFF);
^
2 warnings and 4 errors generated.
make: *** [/home/owner/android/system/out/target/product/p3110/obj/SHARED_LIBRARIES/libsurfaceflinger_intermediates/DisplayDevice.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from frameworks/native/services/surfaceflinger/Client.cpp:26:
In file included from frameworks/native/services/surfaceflinger/Layer.h:42:
In file included from frameworks/native/services/surfaceflinger/SurfaceFlinger.h:57:
frameworks/native/services/surfaceflinger/DisplayHardware/HWComposer.h:219:16: warning: struct 'HWComposer' was previously declared as a class [-Wmismatched-tags]
friend struct HWComposer;
^
frameworks/native/services/surfaceflinger/DisplayHardware/HWComposer.h:58:7: note: previous use is here
class HWComposer
^
instead of HWComposer being declared as a class changed it to be declared as a struct.
I wonder what android-andi did to get his android 5.0 rom to compile. I think this error is telling that surfaceflinger is broken in cm12.
the device and kernel sources I used in my attempt to compile cm12 are just the cm11 ones.
dorfd1 said:
Code:
target thumb C: sh <= external/mksh/src/eval.c
target thumb C: sh <= external/mksh/src/exec.c
target thumb C: sh <= external/mksh/src/expr.c
target thumb C: sh <= external/mksh/src/funcs.c
target thumb C: sh <= external/mksh/src/histrap.c
target thumb C: sh <= external/mksh/src/jobs.c
target thumb C: sh <= external/mksh/src/lex.c
target thumb C: sh <= external/mksh/src/main.c
target thumb C: sh <= external/mksh/src/misc.c
target thumb C: sh <= external/mksh/src/shf.c
target thumb C: sh <= external/mksh/src/syn.c
target thumb C: sh <= external/mksh/src/tree.c
target thumb C: sh <= external/mksh/src/var.c
target thumb C: showlease <= external/dhcpcd/showlease.c
target arm C: smc_pa_ctrl <= hardware/ti/omap4xxx/security/smc_pa_ctrl/smc_pa_ctrl.c
target arm C: smc_pa_ctrl <= hardware/ti/omap4xxx/security/smc_pa_ctrl/smc_pa_ctrl_linux.c
Import includes file: /home/owner/android/system/out/target/product/p3110/obj/EXECUTABLES/surfaceflinger_intermediates/import_includes
target thumb C++: libsurfaceflinger <= frameworks/native/services/surfaceflinger/Client.cpp
target thumb C++: libsurfaceflinger <= frameworks/native/services/surfaceflinger/DisplayDevice.cpp
In file included from frameworks/native/services/surfaceflinger/DisplayDevice.cpp:35:
frameworks/native/services/surfaceflinger/DisplayHardware/HWComposer.h:219:16: warning: struct 'HWComposer' was previously declared as a class [-Wmismatched-tags]
friend struct HWComposer;
^
frameworks/native/services/surfaceflinger/DisplayHardware/HWComposer.h:58:7: note: previous use is here
class HWComposer
^
In file included from frameworks/native/services/surfaceflinger/DisplayDevice.cpp:39:
frameworks/native/services/surfaceflinger/DisplayDevice.h:40:1: warning: class 'DisplayInfo' was previously declared as a struct [-Wmismatched-tags]
class DisplayInfo;
^
frameworks/native/include/ui/DisplayInfo.h:28:8: note: previous use is here
struct DisplayInfo {
^
frameworks/native/services/surfaceflinger/DisplayDevice.h:40:1: note: did you mean struct here?
class DisplayInfo;
^~~~~
struct
frameworks/native/services/surfaceflinger/DisplayDevice.cpp:76:18: error: use of undeclared identifier 'HWC_POWER_MODE_OFF'
mPowerMode(HWC_POWER_MODE_OFF),
^
frameworks/native/services/surfaceflinger/DisplayDevice.cpp:116:19: error: use of undeclared identifier 'HWC_POWER_MODE_NORMAL'
HWC_POWER_MODE_NORMAL : HWC_POWER_MODE_OFF;
^
frameworks/native/services/surfaceflinger/DisplayDevice.cpp:116:43: error: use of undeclared identifier 'HWC_POWER_MODE_OFF'
HWC_POWER_MODE_NORMAL : HWC_POWER_MODE_OFF;
^
frameworks/native/services/surfaceflinger/DisplayDevice.cpp:351:27: error: use of undeclared identifier 'HWC_POWER_MODE_OFF'
return (mPowerMode != HWC_POWER_MODE_OFF);
^
2 warnings and 4 errors generated.
make: *** [/home/owner/android/system/out/target/product/p3110/obj/SHARED_LIBRARIES/libsurfaceflinger_intermediates/DisplayDevice.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from frameworks/native/services/surfaceflinger/Client.cpp:26:
In file included from frameworks/native/services/surfaceflinger/Layer.h:42:
In file included from frameworks/native/services/surfaceflinger/SurfaceFlinger.h:57:
frameworks/native/services/surfaceflinger/DisplayHardware/HWComposer.h:219:16: warning: struct 'HWComposer' was previously declared as a class [-Wmismatched-tags]
friend struct HWComposer;
^
frameworks/native/services/surfaceflinger/DisplayHardware/HWComposer.h:58:7: note: previous use is here
class HWComposer
^
I wonder what android-andi did to get his android 5.0 rom to compile. I think this error is telling that surfaceflinger is broken in cm12.
the device and kernel sources I used in my attempt to compile cm12 are just the cm11 ones.
Click to expand...
Click to collapse
Be patient, also the changes i added are highly WIP... you need to patch device, common omap 4, also kernel (to work on GCC 4.8), native etc.... better wait and don't waste your time.
Send from OnePlus One using Tapatalk
Related
I am facing Compilation problem while building Ubuntu Touch for Xperia Z (codename: yuga)
Synced source code using:
1) phablet-dev-bootstrap [target_directory]
2) breakfast yuga
3) changed .repo/local_manifests/roomservice.xml to include <project name="TheMuppets/proprietary_vendor_sony" path="vendor/sony" remote="github" revision="cm-10.1" />.
4) repo sync (downloads the device related blobs)
Compilation steps:
1) . build/envsetup.sh
2) brunch yuga
Compilation issues:
1) I am seeing lots of "Segmentation fault (core dumped)" while compiling.
2) libelf not found (then I have downloaded "elfutils" from "git clone https://android.googlesource.com/platform/external/elfutils"; in external folder)
3) Now, I am seeing No rule to make target `/home/abhishek/work/ubuntu_touch/out/target/product/yuga/android-boot.img'
Please provide me with the steps to seamlessly compile Ubuntu touch yuga source
[Logs]
make: Circular /home/abhishek/work/ubuntu_touch/out/target/product/yuga/system/lib/libdl.so <- /home/abhishek/work/ubuntu_touch/out/target/product/yuga/system/lib/libc.so dependency dropped.
Segmentation fault (core dumped)
/home/abhishek/work/ubuntu_touch/kernel/sony/apq8064/scripts/gcc-goto.sh: line 21: 23645 Done cat <<'END'
int main(void)
{
#ifdef __arm__
/*
* Not related to asm goto, but used by jump label
* and broken on some ARM GCC versions (see GCC Bug 48637).
*/
static struct { int dummy; int state; } tp;
asm (".long %c0" :: "i" (&tp.state));
#endif
entry:
asm goto ("" :::: entry);
return 0;
}
END
23646 Segmentation fault (core dumped) | [email protected] -x c - -c -o /dev/null > /dev/null 2>&1
Segmentation fault (core dumped)
Segmentation fault (core dumped)
CHK include/linux/version.h
make[1]: Leaving directory `/home/abhishek/work/ubuntu_touch/kernel/sony/apq8064'
target thumb C: libcrypto_static <= external/openssl/crypto/evp/e_rc4.c
target thumb C: libcrypto_static <= external/openssl/crypto/lhash/lh_stats.c
target thumb C: libcrypto_static <= external/openssl/crypto/pkcs12/p12_asn.c
target thumb C: libcrypto_static <= external/openssl/crypto/x509/x509_r2x.c
target thumb C++: libpixelflinger_static <= system/core/libpixelflinger/format.cpp
target arm C: libm <= bionic/libm/src/e_exp.c
target arm C: libm <= bionic/libm/src/e_rem_pio2f.c
target arm C: libm <= bionic/libm/src/s_finite.c
target arm C: libm <= bionic/libm/src/s_llroundf.c
target arm C: libm <= bionic/libm/src/s_rintf.c
target arm C: libm <= bionic/libm/src/s_fabsl.c
target thumb C: libuclibcrpc <= external/busybox/android/librpc/bindresvport.c
target thumb C: libuclibcrpc <= external/busybox/android/librpc/xdr_mem.c
make: *** No rule to make target `/home/abhishek/work/ubuntu_touch/out/target/product/yuga/android-boot.img', needed by `/home/abhishek/work/ubuntu_touch/out/target/product/yuga/obj/PACKAGING/target_files_intermediates/cm_yuga-target_files-eng.abhishek.zip'. Stop.
make: *** Waiting for unfinished jobs....
Ubuntu does not support sun-java6-jdk installation forever. So I only can install openjdk in my Ubuntu. Then I build Android with command "make -j4", but it failed. the Error information as below:
find: "drm/java": not found
find: "drm/java": not found
/bin/bash: prebuilt/linux-x86/sdl/bin/sdl-config: not found
/bin/bash: prebuilt/linux-x86/sdl/bin/sdl-config: not found
........
........
........
external/qemu/elff/elf_alloc.h: In static member function ‘static void* DwarfAllocBase:perator new(size_t)’:
external/qemu/elff/elf_alloc.h:156: warning: ‘operator new’ must not return NULL unless it is declared ‘throw()’ (or -fcheck-new is in effect)
host C++: emulator-elff <= external/qemu/elff/elf_file.cc
In file included from external/qemu/elff/dwarf_die.h:21,
from external/qemu/elff/elf_file.h:20,
from external/qemu/elff/elf_file.cc:18:
external/qemu/elff/elf_alloc.h: In static member function ‘static void* DwarfAllocBase:perator new(size_t)’:
external/qemu/elff/elf_alloc.h:156: warning: ‘operator new’ must not return NULL unless it is declared ‘throw()’ (or -fcheck-new is in effect)
host C++: emulator-elff <= external/qemu/elff/elf_mapped_section.cc
make: *** no rules to creat “out/host/linux-x86/obj/EXECUTABLES/emulator_intermediates/emulator”
Hey guys, i am building Ubuntu Touch for Moto G and it is my first source build. I got stuck on this build error. Can anyone help me out so that we can get Ubuntu Touch for this awesome device too.
@TeamMex @rr46000 @herna can you guys please help me on this?
Code:
Copy: /home/yeshwanth/Ubuntu_Touch/out/target/product/falcon/root/ueventd.rc
Install: /home/yeshwanth/Ubuntu_Touch/out/host/linux-x86/bin/zipalign
make: *** No rule to make target `/home/yeshwanth/Ubuntu_Touch/out/host/linux-x86/framework/signapk.jar', needed by `/home/yeshwanth/Ubuntu_Touch/out/target/product/falcon/obj/APPS/TimeService_intermediates/TimeService.apk'. Stop.
make: *** Waiting for unfinished jobs....
CHK include/linux/version.h
make[1]: Leaving directory `/home/yeshwanth/Ubuntu_Touch/kernel/motorola/msm8226'
target StaticLib: libc (/home/yeshwanth/Ubuntu_Touch/out/target/product/falcon/obj/STATIC_LIBRARIES/libc_intermediates/libc.a)
Code:
<project name="TheMuppets/proprietary_vendor_motorola" path="vendor/motorola" remote="github" revision="cm-11.0" />
use it
and if you have issues copy attached file on out/host/linux-x86/framework
TeamMex said:
Code:
<project name="TheMuppets/proprietary_vendor_motorola" path="vendor/motorola" remote="github" revision="cm-11.0" />
Click to expand...
Click to collapse
after adding the line to roomservice.xml and when trying to repo sync i get this error:
Code:
$ repo sync
fatal: duplicate path vendor/motorola in /home/yeshwanth/Ubuntu_Touch/.repo/manifest.xml
seems there is a similar line in my roomservice.xml like this:
Code:
project name="TheMuppets/proprietary_vendor_motorola" path="vendor/motorola" remote="github" revision="stable/cm-11.0" />
yeshwanthvshenoy said:
after adding the line to roomservice.xml and when trying to repo sync i get this error:
Code:
$ repo sync
fatal: duplicate path vendor/motorola in /home/yeshwanth/Ubuntu_Touch/.repo/manifest.xml
seems there is a similar line in my roomservice.xml like this:
Code:
project name="TheMuppets/proprietary_vendor_motorola" path="vendor/motorola" remote="github" revision="stable/cm-11.0" />
Click to expand...
Click to collapse
replace it...
TeamMex said:
replace it...
Click to expand...
Click to collapse
Code:
host C++: libandroidfw <= frameworks/base/libs/androidfw/ResourceTypes.cpp
frameworks/base/libs/androidfw/Asset.cpp:846:13: warning: unused parameter ‘wordAligned’ [-Wunused-parameter]
const void* _CompressedAsset::getBuffer(bool wordAligned)
^
host C++: libandroidfw <= frameworks/base/libs/androidfw/StreamingZipInflater.cpp
host C++: libandroidfw <= frameworks/base/libs/androidfw/ZipFileRO.cpp
frameworks/base/libs/androidfw/AssetManager.cpp:1094:8: warning: unused parameter ‘entryName’ [-Wunused-parameter]
Asset* AssetManager::openAssetFromZipLocked(const ZipFileRO* pZipFile,
^
make: *** No rule to make target `/home/yeshwanth/Ubuntu_Touch/out/host/linux-x86/framework/signapk.jar', needed by `/home/yeshwanth/Ubuntu_Touch/out/target/product/falcon/obj/APPS/TimeService_intermediates/TimeService.apk'. Stop.
make: *** Waiting for unfinished jobs....
host C++: libandroidfw <= frameworks/base/libs/androidfw/ZipUtils.cpp
frameworks/base/libs/androidfw/ResourceTypes.cpp:69:13: warning: unused parameter ‘cookie’ [-Wunused-parameter]
static void printToLogFunc(void* cookie, const char* txt)
^
frameworks/base/libs/androidfw/ResourceTypes.cpp:69:13: warning: unused parameter ‘txt’ [-Wunused-parameter]
frameworks/base/libs/androidfw/ResourceTypes.cpp:2925:10: warning: unused parameter ‘asset’ [-Wunused-parameter]
status_t ResTable::add(const void* data, size_t size, void* cookie,
^
frameworks/base/libs/androidfw/ResourceTypes.cpp:3350:17: warning: unused parameter ‘tmpBuffer’ [-Wunused-parameter]
const char16_t* ResTable::valueToString(
^
frameworks/base/libs/androidfw/ResourceTypes.cpp:3375:6: warning: unused parameter ‘bag’ [-Wunused-parameter]
void ResTable::unlockBag(const bag_entry* bag) const
^
frameworks/base/libs/androidfw/ResourceTypes.cpp: In member function ‘void android::ResTable::print(bool) const’:
frameworks/base/libs/androidfw/ResourceTypes.cpp:5737:84: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
printf("NON-INTEGER ResTable_entry SIZE: %p\n", (void*)esize);
^
frameworks/base/libs/androidfw/ResourceTypes.cpp:5743:43: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
(void*)esize, (void*)typeSize);
^
[email protected]:~/Ubuntu_Touch$
sir, new error.
yeshwanthvshenoy said:
Code:
host C++: libandroidfw <= frameworks/base/libs/androidfw/ResourceTypes.cpp
frameworks/base/libs/androidfw/Asset.cpp:846:13: warning: unused parameter ‘wordAligned’ [-Wunused-parameter]
const void* _CompressedAsset::getBuffer(bool wordAligned)
^
host C++: libandroidfw <= frameworks/base/libs/androidfw/StreamingZipInflater.cpp
host C++: libandroidfw <= frameworks/base/libs/androidfw/ZipFileRO.cpp
frameworks/base/libs/androidfw/AssetManager.cpp:1094:8: warning: unused parameter ‘entryName’ [-Wunused-parameter]
Asset* AssetManager::openAssetFromZipLocked(const ZipFileRO* pZipFile,
^
make: *** No rule to make target `/home/yeshwanth/Ubuntu_Touch/out/host/linux-x86/framework/signapk.jar', needed by `/home/yeshwanth/Ubuntu_Touch/out/target/product/falcon/obj/APPS/TimeService_intermediates/TimeService.apk'. Stop.
make: *** Waiting for unfinished jobs....
host C++: libandroidfw <= frameworks/base/libs/androidfw/ZipUtils.cpp
frameworks/base/libs/androidfw/ResourceTypes.cpp:69:13: warning: unused parameter ‘cookie’ [-Wunused-parameter]
static void printToLogFunc(void* cookie, const char* txt)
^
frameworks/base/libs/androidfw/ResourceTypes.cpp:69:13: warning: unused parameter ‘txt’ [-Wunused-parameter]
frameworks/base/libs/androidfw/ResourceTypes.cpp:2925:10: warning: unused parameter ‘asset’ [-Wunused-parameter]
status_t ResTable::add(const void* data, size_t size, void* cookie,
^
frameworks/base/libs/androidfw/ResourceTypes.cpp:3350:17: warning: unused parameter ‘tmpBuffer’ [-Wunused-parameter]
const char16_t* ResTable::valueToString(
^
frameworks/base/libs/androidfw/ResourceTypes.cpp:3375:6: warning: unused parameter ‘bag’ [-Wunused-parameter]
void ResTable::unlockBag(const bag_entry* bag) const
^
frameworks/base/libs/androidfw/ResourceTypes.cpp: In member function ‘void android::ResTable::print(bool) const’:
frameworks/base/libs/androidfw/ResourceTypes.cpp:5737:84: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
printf("NON-INTEGER ResTable_entry SIZE: %p\n", (void*)esize);
^
frameworks/base/libs/androidfw/ResourceTypes.cpp:5743:43: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
(void*)esize, (void*)typeSize);
^
[email protected]:~/Ubuntu_Touch$
sir, new error.
Click to expand...
Click to collapse
In a terminal
cd /pathtoyourubuntutouchdirectory/
mkdir -p out/host/linux-x86/framework/
And put the teamMex apk in
out/host/linux-x86/framework/
Sent from my Moto G using XDA Free mobile app
yeshwanthvshenoy said:
Code:
host C++: libandroidfw <= frameworks/base/libs/androidfw/ResourceTypes.cpp
frameworks/base/libs/androidfw/Asset.cpp:846:13: warning: unused parameter ‘wordAligned’ [-Wunused-parameter]
const void* _CompressedAsset::getBuffer(bool wordAligned)
^
host C++: libandroidfw <= frameworks/base/libs/androidfw/StreamingZipInflater.cpp
host C++: libandroidfw <= frameworks/base/libs/androidfw/ZipFileRO.cpp
frameworks/base/libs/androidfw/AssetManager.cpp:1094:8: warning: unused parameter ‘entryName’ [-Wunused-parameter]
Asset* AssetManager::openAssetFromZipLocked(const ZipFileRO* pZipFile,
^
make: *** No rule to make target `/home/yeshwanth/Ubuntu_Touch/out/host/linux-x86/framework/signapk.jar', needed by `/home/yeshwanth/Ubuntu_Touch/out/target/product/falcon/obj/APPS/TimeService_intermediates/TimeService.apk'. Stop.
make: *** Waiting for unfinished jobs....
host C++: libandroidfw <= frameworks/base/libs/androidfw/ZipUtils.cpp
frameworks/base/libs/androidfw/ResourceTypes.cpp:69:13: warning: unused parameter ‘cookie’ [-Wunused-parameter]
static void printToLogFunc(void* cookie, const char* txt)
^
frameworks/base/libs/androidfw/ResourceTypes.cpp:69:13: warning: unused parameter ‘txt’ [-Wunused-parameter]
frameworks/base/libs/androidfw/ResourceTypes.cpp:2925:10: warning: unused parameter ‘asset’ [-Wunused-parameter]
status_t ResTable::add(const void* data, size_t size, void* cookie,
^
frameworks/base/libs/androidfw/ResourceTypes.cpp:3350:17: warning: unused parameter ‘tmpBuffer’ [-Wunused-parameter]
const char16_t* ResTable::valueToString(
^
frameworks/base/libs/androidfw/ResourceTypes.cpp:3375:6: warning: unused parameter ‘bag’ [-Wunused-parameter]
void ResTable::unlockBag(const bag_entry* bag) const
^
frameworks/base/libs/androidfw/ResourceTypes.cpp: In member function ‘void android::ResTable::print(bool) const’:
frameworks/base/libs/androidfw/ResourceTypes.cpp:5737:84: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
printf("NON-INTEGER ResTable_entry SIZE: %p\n", (void*)esize);
^
frameworks/base/libs/androidfw/ResourceTypes.cpp:5743:43: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
(void*)esize, (void*)typeSize);
^
[email protected]:~/Ubuntu_Touch$
sir, new error.
Click to expand...
Click to collapse
add this
TimeService.apk
/home/yeshwanth/Ubuntu_Touch/out/target/product/falcon/obj/APPS/TimeService_intermediates
(Added in attached files.)
h2o64 said:
In a terminal
cd /pathtoyourubuntutouchdirectory/
mkdir -p out/host/linux-x86/framework/
And put the teamMex apk in
out/host/linux-x86/framework/
Sent from my Moto G using XDA Free mobile app
Click to expand...
Click to collapse
TeamMex said:
add this
TimeService.apk
/home/yeshwanth/Ubuntu_Touch/out/target/product/falcon/obj/APPS/TimeService_intermediates
(Added in attached files.)
Click to expand...
Click to collapse
Added both files now new error
Code:
target thumb C: libcrypto_static <= external/openssl/crypto/x509v3/v3_sxnet.c
target thumb C: libcrypto_static <= external/openssl/crypto/x509v3/v3_utl.c
target thumb C: libcrypto_static <= external/openssl/crypto/x509v3/v3err.c
make: *** No rule to make target `/home/yeshwanth/Ubuntu_Touch/out/target/product/falcon/obj/EXECUTABLES/recovery_intermediates/recovery', needed by `/home/yeshwanth/Ubuntu_Touch/out/target/product/falcon/recovery/root.ts'. Stop.
make: *** Waiting for unfinished jobs....
yeshwanthvshenoy said:
Added both files now new error
Code:
target thumb C: libcrypto_static <= external/openssl/crypto/x509v3/v3_sxnet.c
target thumb C: libcrypto_static <= external/openssl/crypto/x509v3/v3_utl.c
target thumb C: libcrypto_static <= external/openssl/crypto/x509v3/v3err.c
make: *** No rule to make target `/home/yeshwanth/Ubuntu_Touch/out/target/product/falcon/obj/EXECUTABLES/recovery_intermediates/recovery', needed by `/home/yeshwanth/Ubuntu_Touch/out/target/product/falcon/recovery/root.ts'. Stop.
make: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse
Remenber that EVERY TIME you close the building terminal, you need to do
Code:
$ . build/envsetup.sh
$ lunch full_falcon-userdebug
Hi, i try to build CM12 for crespo.
The error occurs when compile Bluetooth module:
Code:
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/src/bluetooth.c
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/bte_conf.c
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/bte_init.c
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/bte_logmsg.c
preparing StaticLib: libc++ [including /media/EXT/android/nexus_s_cm_12/out/target/product/crespo/obj/STATIC_LIBRARIES/libcompiler_rt_intermediates/libcompiler_rt.a]
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/bte_main.c
host StaticLib: libunwindbacktrace_32 (/media/EXT/android/nexus_s_cm_12/out/host/linux-x86/obj32/STATIC_LIBRARIES/libunwindbacktrace_intermediates/libunwindbacktrace.a)
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c: In function 'bt_le_lpp_rssi_monitor_upstream_evt':
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c:547:14: error: 'WRITE_RSSI_MONITOR_THRESHOLD' undeclared (first use in this function)
case WRITE_RSSI_MONITOR_THRESHOLD:
^
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c:547:14: note: each undeclared identifier is reported only once for each function it appears in
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c:551:14: error: 'READ_RSSI_MONITOR_THRESHOLD' undeclared (first use in this function)
case READ_RSSI_MONITOR_THRESHOLD:
^
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c:559:14: error: 'ENABLE_RSSI_MONITOR' undeclared (first use in this function)
case ENABLE_RSSI_MONITOR:
^
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c: In function 'bt_le_handle_lpp_monitor_rssi':
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c:637:28: error: 'WRITE_RSSI_MONITOR_THRESHOLD' undeclared (first use in this function)
error.subcmd = WRITE_RSSI_MONITOR_THRESHOLD;
^
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c:648:28: error: 'ENABLE_RSSI_MONITOR' undeclared (first use in this function)
error.subcmd = ENABLE_RSSI_MONITOR;
^
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c:672:28: error: 'READ_RSSI_MONITOR_THRESHOLD' undeclared (first use in this function)
error.subcmd = READ_RSSI_MONITOR_THRESHOLD;
^
build/core/binary.mk:697: recipe for target '/media/EXT/android/nexus_s_cm_12/out/target/product/crespo/obj/SHARED_LIBRARIES/bluetooth.default_intermediates/../btif/src/bluetooth.o' failed
make: *** [/media/EXT/android/nexus_s_cm_12/out/target/product/crespo/obj/SHARED_LIBRARIES/bluetooth.default_intermediates/../btif/src/bluetooth.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from external/bluetooth/bluedroid/main/../include/bte_appl.h:28:0,
from external/bluetooth/bluedroid/main/bte_logmsg.c:36:
external/bluetooth/bluedroid/main/../stack/btm/btm_int.h:45:1: error: unknown type name 'tBTM_BLE_MULTI_ADV_CB'
tBTM_BLE_MULTI_ADV_CB btm_multi_adv_cb;
^
build/core/binary.mk:697: recipe for target '/media/EXT/android/nexus_s_cm_12/out/target/product/crespo/obj/SHARED_LIBRARIES/bluetooth.default_intermediates/bte_logmsg.o' failed
make: *** [/media/EXT/android/nexus_s_cm_12/out/target/product/crespo/obj/SHARED_LIBRARIES/bluetooth.default_intermediates/bte_logmsg.o] Error 1
target StaticLib: libc++ (/media/EXT/android/nexus_s_cm_12/out/target/product/crespo/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a)
I'd like to help you since I have this phone. Can you provide me steps for building CM12? Also skip this if you can so that we can get hands on it asap. Fixes for bt can be applied later via patches.
silverand said:
Hi, i try to build CM12 for crespo.
The error occurs when compile Bluetooth module:
Code:
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/src/bluetooth.c
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/bte_conf.c
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/bte_init.c
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/bte_logmsg.c
preparing StaticLib: libc++ [including /media/EXT/android/nexus_s_cm_12/out/target/product/crespo/obj/STATIC_LIBRARIES/libcompiler_rt_intermediates/libcompiler_rt.a]
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/bte_main.c
host StaticLib: libunwindbacktrace_32 (/media/EXT/android/nexus_s_cm_12/out/host/linux-x86/obj32/STATIC_LIBRARIES/libunwindbacktrace_intermediates/libunwindbacktrace.a)
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c: In function 'bt_le_lpp_rssi_monitor_upstream_evt':
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c:547:14: error: 'WRITE_RSSI_MONITOR_THRESHOLD' undeclared (first use in this function)
case WRITE_RSSI_MONITOR_THRESHOLD:
^
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c:547:14: note: each undeclared identifier is reported only once for each function it appears in
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c:551:14: error: 'READ_RSSI_MONITOR_THRESHOLD' undeclared (first use in this function)
case READ_RSSI_MONITOR_THRESHOLD:
^
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c:559:14: error: 'ENABLE_RSSI_MONITOR' undeclared (first use in this function)
case ENABLE_RSSI_MONITOR:
^
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c: In function 'bt_le_handle_lpp_monitor_rssi':
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c:637:28: error: 'WRITE_RSSI_MONITOR_THRESHOLD' undeclared (first use in this function)
error.subcmd = WRITE_RSSI_MONITOR_THRESHOLD;
^
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c:648:28: error: 'ENABLE_RSSI_MONITOR' undeclared (first use in this function)
error.subcmd = ENABLE_RSSI_MONITOR;
^
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c:672:28: error: 'READ_RSSI_MONITOR_THRESHOLD' undeclared (first use in this function)
error.subcmd = READ_RSSI_MONITOR_THRESHOLD;
^
build/core/binary.mk:697: recipe for target '/media/EXT/android/nexus_s_cm_12/out/target/product/crespo/obj/SHARED_LIBRARIES/bluetooth.default_intermediates/../btif/src/bluetooth.o' failed
make: *** [/media/EXT/android/nexus_s_cm_12/out/target/product/crespo/obj/SHARED_LIBRARIES/bluetooth.default_intermediates/../btif/src/bluetooth.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from external/bluetooth/bluedroid/main/../include/bte_appl.h:28:0,
from external/bluetooth/bluedroid/main/bte_logmsg.c:36:
external/bluetooth/bluedroid/main/../stack/btm/btm_int.h:45:1: error: unknown type name 'tBTM_BLE_MULTI_ADV_CB'
tBTM_BLE_MULTI_ADV_CB btm_multi_adv_cb;
^
build/core/binary.mk:697: recipe for target '/media/EXT/android/nexus_s_cm_12/out/target/product/crespo/obj/SHARED_LIBRARIES/bluetooth.default_intermediates/bte_logmsg.o' failed
make: *** [/media/EXT/android/nexus_s_cm_12/out/target/product/crespo/obj/SHARED_LIBRARIES/bluetooth.default_intermediates/bte_logmsg.o] Error 1
target StaticLib: libc++ (/media/EXT/android/nexus_s_cm_12/out/target/product/crespo/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a)
Click to expand...
Click to collapse
Any news?
My nexus need refresh with ne rom
any news on this one?
Yeah, there is definitely something with the Bluetooth module. I got that error too.
Same error here. I'm trying to fix it, seems like an error from upstream (LG P970 experiencing it too)
For one of the errors, try adding
typedef struct tBTM_BLE_MULTI_ADV_CB;
to btm_int.h
It errors saying a type is undefined
I'm facing the similar kinds of errors, has anybody found a solution for this?
Gokulbalram said:
I'm facing the similar kinds of errors, has anybody found a solution for this?
Click to expand...
Click to collapse
Hi, i am compiling cm12 for the i9000 (Galaxy S1).
i had this issue too, but a friend of me @Soorrrajjj got an fix for it.
i will tell you more when i fixed it
jeffreyvh said:
Hi, i am compiling cm12 for the i9000 (Galaxy S1).
i had this issue too, but a friend of me @Soorrrajjj got an fix for it.
i will tell you more when i fixed it
Click to expand...
Click to collapse
Even I was compiling for the i9000, would be awesome if you could let me know
Proper Solution
Guys, I noticed something.
There is ABSOLUTELY NOTHING wrong with the bluetooth module. Check your device bluetooth config file (device/(vendor)/(device name)/bluetooth/bdroid_buildcfg.h). The following three lines must be:
Code:
#define BLE_INCLUDED TRUE
#define BTA_GATT_INCLUDED TRUE
#define SMP_INCLUDED TRUE
That's it! Bluetooth successfully compiled for me
Cheers!
-Technohacker
Technohacker1995 said:
Guys, I noticed something.
There is ABSOLUTELY NOTHING wrong with the bluetooth module. Check your device bluetooth config file (device/(vendor)/(device name)/bluetooth/bdroid_buildcfg.h). The following three lines must be:
Code:
#define BLE_INCLUDED TRUE
#define BTA_GATT_INCLUDED TRUE
#define SMP_INCLUDED TRUE
That's it! Bluetooth successfully compiled for me
Cheers!
-Technohacker
Click to expand...
Click to collapse
That helped me! thanks!
EDIT: Although that helped me, I get this now:
Code:
external/bluetooth/bluedroid/main/../btif/src/btif_profile_queue.c:117: error: undefined reference to 'list_foreach_ext'
I'll have to check that one afterwards as I'm away from my build VM. Will report back soon
Sent from my GT-I9003 using XDA Free mobile app
Technohacker1995 said:
I'll have to check that one afterwards as I'm away from my build VM. Will report back soon
Sent from my GT-I9003 using XDA Free mobile app
Click to expand...
Click to collapse
Not a worry ATM, I just gave up on that and somehow a repo sync fixed it.
Although, I am building 5.0 and have various other errors, for the galaxysmtd (i9000)
Gokulbalram said:
Not a worry ATM, I just gave up on that and somehow a repo sync fixed it.
Although, I am building 5.0 and have various other errors, for the galaxysmtd (i9000)
Click to expand...
Click to collapse
Hello there,
I compiled cm12 for the galaxysmtd, see my device tree here https://github.com/cm12s1
I hope that it helps you, I fixed every single bug I got
jeffreyvh said:
Hello there,
I compiled cm12 for the galaxysmtd, see my device tree here https://github.com/cm12s1
I hope that it helps you, I fixed every single bug I got
Click to expand...
Click to collapse
Thanks mate, this should do the trick
I have been learning how to compile CM12 on my own and it has been going really good so far. I've done two nightly builds for myself but now I am curious how I would go about compiling a custom kernel with it. Say I wanted to substitute in Franco's kernel or Faux. . .what do I need to do in order to sync the required code to my build?
Off the top of my head, I would think that the line in the local_manifest needs to be changed, but I honestly have no idea if it is that easy.
Here you go.
http://wiki.cyanogenmod.org/w/Doc:_integrated_kernel_building
So, I have added Franco's details into the local_manifest.xml file and done the repo sync command to pull down all of the source code. Franco's kernel source seemed to pull down successfully and I thought everything was good
However, when I try the "time brunch hammerhead" command, I get some errors. . .
Code:
PRODUCT_COPY_FILES device/lge/hammerhead/apns-full-conf.xml:system/etc/apns-conf.xml ignored.
PRODUCT_COPY_FILES device/lge/hammerhead/spn-conf.xml:system/etc/spn-conf.xml ignored.
build/core/Makefile:46: warning: overriding commands for target `/home/doug/cm12-n5/out/target/product/hammerhead/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/doug/cm12-n5/out/target/product/hammerhead/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/Makefile:46: warning: overriding commands for target `/home/doug/cm12-n5/out/target/product/hammerhead/system/lib/libgps.utils.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/doug/cm12-n5/out/target/product/hammerhead/system/lib/libgps.utils.so'
build/core/Makefile:46: warning: overriding commands for target `/home/doug/cm12-n5/out/target/product/hammerhead/system/lib/libloc_core.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/doug/cm12-n5/out/target/product/hammerhead/system/lib/libloc_core.so'
No private recovery resources for TARGET_DEVICE hammerhead
host C: mkbootimg <= system/core/mkbootimg/mkbootimg.c
host C: acp <= build/tools/acp/acp.c
host StaticLib: libmincrypt_32 (/home/doug/cm12-n5/out/host/linux-x86/obj32/STATIC_LIBRARIES/libmincrypt_intermediates/libmincrypt.a)
make -C kernel/lge/hammerhead O=/home/doug/cm12-n5/out/target/product/hammerhead/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" arm-eabi-" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= cyanogenmod_hammerhead_defconfig
make[1]: Entering directory `/home/doug/cm12-n5/kernel/lge/hammerhead'
host StaticLib: libhost_32 (/home/doug/cm12-n5/out/host/linux-x86/obj32/STATIC_LIBRARIES/libhost_intermediates/libhost.a)
host Executable: mkbootfs (/home/doug/cm12-n5/out/host/linux-x86/obj32/EXECUTABLES/mkbootfs_intermediates/mkbootfs)
host C: checkpolicy <= external/checkpolicy/queue.c
host C: checkpolicy <= external/checkpolicy/module_compiler.c
host C: checkpolicy <= external/checkpolicy/parse_util.c
external/checkpolicy/module_compiler.c: In function 'add_perm_to_class':
external/checkpolicy/module_compiler.c:710:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/checkpolicy/module_compiler.c: In function 'is_scope_in_stack':
external/checkpolicy/module_compiler.c:1233:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/checkpolicy/module_compiler.c: In function 'end_optional':
external/checkpolicy/module_compiler.c:1448:22: warning: unused parameter 'pass' [-Wunused-parameter]
external/checkpolicy/module_compiler.c: In function 'copy_requirements':
external/checkpolicy/module_compiler.c:1511:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/checkpolicy/module_compiler.c:1517:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
host C: checkpolicy <= external/checkpolicy/policy_define.c
GEN /home/doug/cm12-n5/out/target/product/hammerhead/obj/KERNEL_OBJ/Makefile
host C: checkpolicy <= external/checkpolicy/checkpolicy.c
host C++: checkpolicy <= /home/doug/cm12-n5/out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_parse.cpp
cc1: warning: command line option '-Wsign-promo' is valid for C++/ObjC++ but not for C [enabled by default]
host C++: checkpolicy <= /home/doug/cm12-n5/out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_scan.cpp
cc1: warning: command line option '-Wsign-promo' is valid for C++/ObjC++ but not for C [enabled by default]
host StaticLib: libsepol_32 (/home/doug/cm12-n5/out/host/linux-x86/obj32/STATIC_LIBRARIES/libsepol_intermediates/libsepol.a)
host C: checkfc <= external/sepolicy/tools/checkfc.c
external/checkpolicy/policy_define.c: In function 'define_dominance':
external/checkpolicy/policy_define.c:867:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/checkpolicy/policy_define.c: In function 'clone_level':
external/checkpolicy/policy_define.c:997:38: warning: unused parameter 'key' [-Wunused-parameter]
external/checkpolicy/policy_define.c: In function 'define_compute_type_helper':
external/checkpolicy/policy_define.c:1569:2: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/checkpolicy/policy_define.c: In function 'dominate_role_recheck':
external/checkpolicy/policy_define.c:2146:3: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/checkpolicy/policy_define.c:2152:3: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/checkpolicy/policy_define.c:2125:48: warning: unused parameter 'key' [-Wunused-parameter]
external/checkpolicy/policy_define.c: In function 'parse_semantic_categories':
external/checkpolicy/policy_define.c:3445:64: warning: unused parameter 'levdatum' [-Wunused-parameter]
host C: libselinux_32 <= external/libselinux/src/callbacks.c
external/checkpolicy/checkpolicy.c: In function 'display_bools':
external/checkpolicy/checkpolicy.c:296:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/checkpolicy/checkpolicy.c: In function 'check_level':
external/checkpolicy/checkpolicy.c:364:72: warning: unused parameter 'arg' [-Wunused-parameter]
external/checkpolicy/checkpolicy.c: In function 'main':
external/checkpolicy/checkpolicy.c:472:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
host C: libselinux_32 <= external/libselinux/src/check_context.c
host C: libselinux_32 <= external/libselinux/src/freecon.c
***
*** Can't find default configuration "arch/arm/configs/cyanogenmod_hammerhead_defconfig"!
***
make[3]: *** [cyanogenmod_hammerhead_defconfig] Error 1
make[2]: *** [cyanogenmod_hammerhead_defconfig] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/doug/cm12-n5/kernel/lge/hammerhead'
host C: libselinux_32 <= external/libselinux/src/init.c
make: *** [/home/doug/cm12-n5/out/target/product/hammerhead/obj/KERNEL_OBJ/.config] Error 2
make: *** Waiting for unfinished jobs....
make: *** wait: No child processes. Stop.
real 0m55.220s
user 0m46.604s
sys 0m11.489s
It seems to be hanging up on this error "Can't find default configuration "arch/arm/configs/cyanogenmod_hammerhead_defconfig"!" and I'm not sure how to proceed
I found this and he said that person needed to "Go to the device tree BoardConfig.mk and change cyanogenmod_d802_defconfig to d802_defconfig"
So I went into the BoardConfig.mk file and rmeoved the cyanogenmod bit from that line.
repo sync'd and set everything back up and it seems to be going through the full build right now *crossing my fingers*
Blah
So not I'm getting this error about 20 minutes into the build
Code:
target thumb C++: libqdutils <= hardware/qcom/display/msm8974/libqdutils/profiler.cpp
hardware/qcom/display/msm8974/libgralloc/ionalloc.cpp: In member function 'virtual int gralloc::IonAlloc::alloc_buffer(gralloc::alloc_data&)':
hardware/qcom/display/msm8974/libgralloc/ionalloc.cpp:76:18: error: 'struct ion_allocation_data' has no member named 'heap_id_mask'
ionAllocData.heap_id_mask = data.flags & ~ION_SECURE;
^
make: *** [/home/doug/cm12-n5/out/target/product/hammerhead/obj/SHARED_LIBRARIES/libmemalloc_intermediates/ionalloc.o] Error 1
make: *** Waiting for unfinished jobs....
Does anyone have any idea what this pertains to?