[Q] Can't build on OS X Mavericks - Omni Q&A

Set up the environment etc fine, but then I get this error when I try to build.
http://pastebin.com/CfP84ECb
Anyone get anything similar or know anything special you have to do to setup build environment on Mavericks?

Seems like switch is broken, i googled for it, and it seems switch has been removed from Maverick, solution is to install switch from cpan, i found this guide to do it, even though it was written for ubuntu, it should work for OSX, since it's perl dedicated tools.
http://askubuntu.com/questions/2044...switch-pm-module-required-to-build-webkit-gtk
Hope it helps

Got the switch error solved, but now I'm getting this:
http://pastebin.com/NALY654w
I went into external/doclava/com/ but there's no /sun subdirectory there, consequently no ClassDoc file.

Sdk properly installed ? With the correct paths, and if i remember, docs are inside, i never tried building on OSX, but it looks like it can't find the docs in the sdk ...

hey, i've been building on OS X forever and a day.
here's the guide i use.
http://teamuscellular.com/Forum/top...ng-galaxy-s3-with-mac-os-x-108-mountain-lion/
once doing that, you'll need to do the Switch.pm fix.
i know it's for 10.8, but it still works for 10.9 Mavericks :good:
if you need anymore help just let me know.
Also, if you look on omni's gerrit, there is a commit for gnused specifically for OS X from koush, so you can try cherry-picking that as well.

jakew02 said:
hey, i've been building on OS X forever and a day.
here's the guide i use.
http://teamuscellular.com/Forum/top...ng-galaxy-s3-with-mac-os-x-108-mountain-lion/
once doing that, you'll need to do the Switch.pm fix.
i know it's for 10.8, but it still works for 10.9 Mavericks :good:
if you need anymore help just let me know.
Also, if you look on omni's gerrit, there is a commit for gnused specifically for OS X from koush, so you can try cherry-picking that as well.
Click to expand...
Click to collapse
I actually used a similar guide. I've reinstalled sdk, upgraded Homebrew etc but I still don't have a ClassDoc file. Build fails without Doclava folder there, and when I resynced it just gave me the same 129 errors as on the Pastebin. I have the latest java and everything :s

rickoslyder said:
I actually used a similar guide. I've reinstalled sdk, upgraded Homebrew etc but I still don't have a ClassDoc file. Build fails without Doclava folder there, and when I resynced it just gave me the same 129 errors as on the Pastebin. I have the latest java and everything :s
Click to expand...
Click to collapse
ah that's why. you dont want the latest java, you want jdk-6.
so, to remove your current java:
Code:
sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
Now, to install the version of java that we want:
http://support.apple.com/kb/DL1572?viewlocale=en_US
that's it :highfive:

jakew02 said:
ah that's why. you dont want the latest java, you want jdk-6.
so, to remove your current java:
Code:
sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
Now, to install the version of java that we want:
http://support.apple.com/kb/DL1572?viewlocale=en_US
that's it :highfive:
Click to expand...
Click to collapse
YES, it works now! Thanks for the help.

I'm also having problems on building with Mavericks. I can't f.ex install the Switch module with cpan. I get an error:
Test Summary Report
-------------------
t/given.t (Wstat: 0 Tests: 293 Failed: 2)
Failed tests: 2-3
Files=3, Tests=590, 0 wallclock secs ( 0.06 usr 0.01 sys + 0.34 cusr 0.02 csys = 0.43 CPU)
Result: FAIL
Failed 1/3 test programs. 2/590 subtests failed.
make: *** [test_dynamic] Error 255
RGARCIA/Switch-2.16.tar.gz
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports RGARCIA/Switch-2.16.tar.gz
Running make install
make test had returned bad status, won't install without force
Failed during this command:
RGARCIA/Switch-2.16.tar.gz : make_test NO
I don't know if my CPAN is configured right?
Also do I have to run the get-prebuilts command with Omni? seems it's only a CM thing right?

inffy said:
I'm also having problems on building with Mavericks. I can't f.ex install the Switch module with cpan. I get an error:
Test Summary Report
-------------------
t/given.t (Wstat: 0 Tests: 293 Failed: 2)
Failed tests: 2-3
Files=3, Tests=590, 0 wallclock secs ( 0.06 usr 0.01 sys + 0.34 cusr 0.02 csys = 0.43 CPU)
Result: FAIL
Failed 1/3 test programs. 2/590 subtests failed.
make: *** [test_dynamic] Error 255
RGARCIA/Switch-2.16.tar.gz
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports RGARCIA/Switch-2.16.tar.gz
Running make install
make test had returned bad status, won't install without force
Failed during this command:
RGARCIA/Switch-2.16.tar.gz : make_test NO
I don't know if my CPAN is configured right?
Also do I have to run the get-prebuilts command with Omni? seems it's only a CM thing right?
Click to expand...
Click to collapse
yea ./get-prebuilts is a CM thing. no need for that here.
use this to setup your build environment,, i wrote it up the other day:
http://docs.omnirom.org/Setting_Up_A_Compile_Environment#Mac_OS_X_10.9_Mavericks

jakew02 said:
yea ./get-prebuilts is a CM thing. no need for that here.
use this to setup your build environment,, i wrote it up the other day:
http://docs.omnirom.org/Setting_Up_A_Compile_Environment#Mac_OS_X_10.9_Mavericks
Click to expand...
Click to collapse
Yeah found that out. But still i'm getting error like this when I start the build:
http://pastebin.com/QVCe4CXy
manifest file looks like this:
- <manifest>
<project name="android_device_lge_hammerhead" path="device/lge/hammerhead" remote="omnirom" revision="android-4.4" />
<project name="omnirom/android_kernel_google_msm" path="kernel/google/msm" remote="github" revision="android-4.4" />
<project name="TheMuppets/proprietary_vendor_lge.git" path="vendor/lge" remote="github" revision="cm-11.0" />
##REMOVE
<remove-project name="android_device_asus_flo" />
<remove-project name="android_device_asus_grouper" />
<remove-project name="android_device_asus_tilapia" />
<remove-project name="android_device_samsung_maguro" />
<remove-project name="android_device_samsung_manta" />
<remove-project name="platform/hardware/samsung_slsi/exynos5" />
<remove-project name="platform/hardware/ti/omap3" />
<remove-project name="android_hardware_ti_omap4xxx" />
<remove-project name="platform/hardware/ti/wlan" />
<remove-project name="platform/hardware/ti/wpan" />
<remove-project name="platform/prebuilts/clang/linux-x86/3.1" />
<remove-project name="platform/prebuilts/clang/linux-x86/3.2" />
<remove-project name="platform/prebuilts/clang/linux-x86/arm/3.3" />
<remove-project name="platform/prebuilts/clang/linux-x86/host/3.3" />
<remove-project name="platform/prebuilts/clang/linux-x86/mips/3.3" />
<remove-project name="platform/prebuilts/clang/linux-x86/x86/3.3" />
<remove-project name="android_prebuilts_gcc_linux-x86_arm_arm-eabi-4.4.3" />
<remove-project name="platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6" />
<remove-project name="platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7" />
<remove-project name="platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6" />
<remove-project name="platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7" />
<remove-project name="platform/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3" />
<remove-project name="platform/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6" />
<remove-project name="platform/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6" />
<remove-project name="platform/prebuilts/gcc/linux-x86/mips/mipsel-linux-android-4.6" />
<remove-project name="platform/prebuilts/gcc/linux-x86/mips/mipsel-linux-android-4.7" />
<remove-project name="platform/prebuilts/gcc/linux-x86/x86/i686-linux-android-4.6" />
<remove-project name="platform/prebuilts/gcc/linux-x86/x86/i686-linux-android-4.7" />
<remove-project name="platform/prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.7" />
<remove-project name="platform/prebuilts/python/linux-x86/2.7.5" />
</manifest>
any ideas?

Okay, i had a wrong revision for the kernel part in the manifest.
But now It hangs on the recovery part:
host C: checkseapp <= external/sepolicy/tools/check_seapp.c
Copy: /Volumes/android/omni/out/target/product/hammerhead/root/init.usb.rc
Copy: /Volumes/android/omni/out/target/product/hammerhead/root/init.trace.rc
Copy: /Volumes/android/omni/out/target/product/hammerhead/root/ueventd.rc
Copy: /Volumes/android/omni/out/target/product/hammerhead/root/init.omni.rc
Copy: /Volumes/android/omni/out/target/product/hammerhead/root/init.hammerhead.rc
Copy: /Volumes/android/omni/out/target/product/hammerhead/root/init.hammerhead.usb.rc
Copy: /Volumes/android/omni/out/target/product/hammerhead/root/fstab.hammerhead
Copy: /Volumes/android/omni/out/target/product/hammerhead/root/ueventd.hammerhead.rc
Import includes file: /Volumes/android/omni/out/host/darwin-x86/obj/EXECUTABLES/minigzip_intermediates/import_includes
host C: libz <= external/zlib/src/adler32.c
host C: libz <= external/zlib/src/compress.c
host C: libz <= external/zlib/src/crc32.c
host C: libz <= external/zlib/src/deflate.c
host C: libz <= external/zlib/src/gzclose.c
host C: libz <= external/zlib/src/gzlib.c
host C: libz <= external/zlib/src/gzread.c
host C: libz <= external/zlib/src/gzwrite.c
host C: libz <= external/zlib/src/infback.c
host C: libz <= external/zlib/src/inflate.c
host C: libz <= external/zlib/src/inftrees.c
host C: libz <= external/zlib/src/inffast.c
host C: libz <= external/zlib/src/trees.c
host C: libz <= external/zlib/src/uncompr.c
host C: libz <= external/zlib/src/zutil.c
mkdir -p /Volumes/android/omni/out/target/product/hammerhead/recovery/root/res/
cp -fr bootable/recovery/gui/devices/common/res/* /Volumes/android/omni/out/target/product/hammerhead/recovery/root/res/
Export includes file: bootable/recovery/mmcutils/Android.mk -- /Volumes/android/omni/out/target/product/hammerhead/obj/SHARED_LIBRARIES/libmmcutils_intermediates/export_includes
cp -fr bootable/recovery/gui/devices//res/* /Volumes/android/omni/out/target/product/hammerhead/recovery/root/res/
cp: bootable/recovery/gui/devices//res/*: No such file or directory
make: *** [/Volumes/android/omni/out/target/product/hammerhead/obj/STATIC_LIBRARIES/libguitwrp_intermediates/twrp] Error 1
make: *** Waiting for unfinished jobs....

Guess it was a problem with the Omni sources, seems to build fine now
Sent from my Nexus 5 using Tapatalk

inffy said:
Okay, i had a wrong revision for the kernel part in the manifest.
But now It hangs on the recovery part:
host C: checkseapp <= external/sepolicy/tools/check_seapp.c
Copy: /Volumes/android/omni/out/target/product/hammerhead/root/init.usb.rc
Copy: /Volumes/android/omni/out/target/product/hammerhead/root/init.trace.rc
Copy: /Volumes/android/omni/out/target/product/hammerhead/root/ueventd.rc
Copy: /Volumes/android/omni/out/target/product/hammerhead/root/init.omni.rc
Copy: /Volumes/android/omni/out/target/product/hammerhead/root/init.hammerhead.rc
Copy: /Volumes/android/omni/out/target/product/hammerhead/root/init.hammerhead.usb.rc
Copy: /Volumes/android/omni/out/target/product/hammerhead/root/fstab.hammerhead
Copy: /Volumes/android/omni/out/target/product/hammerhead/root/ueventd.hammerhead.rc
Import includes file: /Volumes/android/omni/out/host/darwin-x86/obj/EXECUTABLES/minigzip_intermediates/import_includes
host C: libz <= external/zlib/src/adler32.c
host C: libz <= external/zlib/src/compress.c
host C: libz <= external/zlib/src/crc32.c
host C: libz <= external/zlib/src/deflate.c
host C: libz <= external/zlib/src/gzclose.c
host C: libz <= external/zlib/src/gzlib.c
host C: libz <= external/zlib/src/gzread.c
host C: libz <= external/zlib/src/gzwrite.c
host C: libz <= external/zlib/src/infback.c
host C: libz <= external/zlib/src/inflate.c
host C: libz <= external/zlib/src/inftrees.c
host C: libz <= external/zlib/src/inffast.c
host C: libz <= external/zlib/src/trees.c
host C: libz <= external/zlib/src/uncompr.c
host C: libz <= external/zlib/src/zutil.c
mkdir -p /Volumes/android/omni/out/target/product/hammerhead/recovery/root/res/
cp -fr bootable/recovery/gui/devices/common/res/* /Volumes/android/omni/out/target/product/hammerhead/recovery/root/res/
Export includes file: bootable/recovery/mmcutils/Android.mk -- /Volumes/android/omni/out/target/product/hammerhead/obj/SHARED_LIBRARIES/libmmcutils_intermediates/export_includes
cp -fr bootable/recovery/gui/devices//res/* /Volumes/android/omni/out/target/product/hammerhead/recovery/root/res/
cp: bootable/recovery/gui/devices//res/*: No such file or directory
make: *** [/Volumes/android/omni/out/target/product/hammerhead/obj/STATIC_LIBRARIES/libguitwrp_intermediates/twrp] Error 1
make: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse
no no no ,,,, never touch the mainfest.xml
any changes you need/want to make to what is synced should be done via local_manifests/<filename>.xml

jakew02 said:
no no no ,,,, never touch the mainfest.xml
any changes you need/want to make to what is synced should be done via local_manifests/<filename>.xml
Click to expand...
Click to collapse
yeah, i know, i meant that I added those to my xml filen under local_manifest directory

oh well, got it to build but it wont boot, just gets stuck on Google logo.
Need to investigate some more what could be the problem...

inffy said:
oh well, got it to build but it wont boot, just gets stuck on Google logo.
Need to investigate some more what could be the problem...
Click to expand...
Click to collapse
ah ok
4.3 or 4.4 ? 4.4 is going to need some fixes to get to work properly for most devices right now since it's so new

jakew02 said:
no no no ,,,, never touch the mainfest.xml
any changes you need/want to make to what is synced should be done via local_manifests/<filename>.xml
Click to expand...
Click to collapse
jakew02 said:
ah ok
4.3 or 4.4 ? 4.4 is going to need some fixes to get to work properly for most devices right now since it's so new
Click to expand...
Click to collapse
Tried 4.4,

Finally got the 4,4 version to build and boot.
Now I have a problem with wifi. Wifi "works" but it won't connect to any networks, it just keeps spinningn on "authenticating" or "Obtaining ip".
This might be a special OSX bug, couldn't find any commits regarding it on Gerrit though....any help ?

Any tips?
Sent from my Nexus 5 using Tapatalk

Related

[Q] Noobie trying to compile for Mako

So I have followed the guides here http://docs.omnirom.org/Setting_Up_A_Compile_Environment and here http://docs.omnirom.org/Build_for_mako.
I have synced up everything and when I execute the cd ~/android/omni; . build/envsetup.sh; brunch mako command I do not get a .zip file created. Is there an extra step I need to do to have the .zip created so I can flash to my device?
Thank you all in advance.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="TheMuppets/proprietary_vendor_lge" path="vendor/lge" remote="github" revision="cm-10.2" />
<project name="omnirom/android_kernel_google_msm" path="kernel/google/msm" remote="github" revision="android-msm-mako-3.4-jb-mr2" />
<project name="omnirom/android_device_lge_mako" path="device/lge/mako" remote="github" revision="android-4.3" />
</manifest>
u add these to ~/android/omni/.repo/local_manifests/roomservice.xml
i believe this should get you a build, but u should w8 for someone more experienced to confirm those.
E: also remenber to sync after adding those lines
Code:
repo sync -j4
I don't get a zip file either. Mine terminal output just says Notice File blabla
Code:
Notice file: external/noto-fonts/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/fonts/NotoSansMalayalamUI-Regular.ttf.txt
Notice file: external/noto-fonts/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/fonts/NotoSansTelugu-Bold.ttf.txt
Notice file: external/noto-fonts/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/fonts/NotoSansTelugu-Regular.ttf.txt
Notice file: external/noto-fonts/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/fonts/NotoSansTeluguUI-Bold.ttf.txt
Notice file: external/noto-fonts/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/fonts/NotoSansTeluguUI-Regular.ttf.txt
Notice file: frameworks/base/data/fonts/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/fonts/Roboto-BoldItalic.ttf.txt
Notice file: frameworks/base/data/fonts/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/fonts/Roboto-Italic.ttf.txt
Notice file: frameworks/base/data/fonts/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/fonts/Roboto-Light.ttf.txt
Notice file: frameworks/base/data/fonts/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/fonts/Roboto-LightItalic.ttf.txt
Notice file: frameworks/base/data/fonts/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/fonts/Roboto-Thin.ttf.txt
Notice file: frameworks/base/data/fonts/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/fonts/Roboto-ThinItalic.ttf.txt
Notice file: frameworks/base/data/fonts/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/fonts/RobotoCondensed-Bold.ttf.txt
Notice file: frameworks/base/data/fonts/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/fonts/RobotoCondensed-BoldItalic.ttf.txt
Notice file: frameworks/base/data/fonts/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/fonts/RobotoCondensed-Italic.ttf.txt
Notice file: frameworks/base/data/fonts/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/fonts/RobotoCondensed-Regular.ttf.txt
Notice file: frameworks/base/cmds/am/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/framework/am.jar.txt
Notice file: external/apache-xml/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/framework/apache-xml.jar.txt
Notice file: frameworks/base/cmds/bmgr/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/framework/bmgr.jar.txt
Notice file: external/bouncycastle/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/framework/bouncycastle.jar.txt
Notice file: frameworks/base/cmds/bu/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/framework/bu.jar.txt
Notice file: frameworks/base/cmds/content/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/framework/content.jar.txt
Notice file: external/junit/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/framework/core-junit.jar.txt
Notice file: libcore/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/framework/core.jar.txt
Notice file: frameworks/base/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/framework/ext.jar.txt
Notice file: frameworks/base/core/res/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/framework/framework-res.apk.txt
Notice file: frameworks/base/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/framework/framework.jar.txt
Notice file: frameworks/base/cmds/ime/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/framework/ime.jar.txt
Notice file: frameworks/base/cmds/input/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/framework/input.jar.txt
Notice file: frameworks/base/obex/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/framework/javax.obex.jar.txt
Notice file: frameworks/base/cmds/media/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/framework/media_cmd.jar.txt
Notice file: development/cmds/monkey/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/framework/monkey.jar.txt
Notice file: frameworks/base/cmds/pm/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/framework/pm.jar.txt
Notice file: frameworks/base/cmds/requestsync/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/framework/requestsync.jar.txt
Notice file: frameworks/base/cmds/svc/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/framework/svc.jar.txt
Import includes file: /home/parker/android/omni/out/target/product/mako/obj/SHARED_LIBRARIES/librtp_jni_intermediates/import_includes
Import includes file: /home/parker/android/omni/out/target/product/mako/obj/SHARED_LIBRARIES/libstagefright_amrnb_common_intermediates/import_includes
Import includes file: /home/parker/android/omni/out/target/product/mako/obj/STATIC_LIBRARIES/libgsm_intermediates/import_includes
Import includes file: /home/parker/android/omni/out/target/product/mako/obj/STATIC_LIBRARIES/libstagefright_amrnbdec_intermediates/import_includes
Import includes file: /home/parker/android/omni/out/target/product/mako/obj/STATIC_LIBRARIES/libstagefright_amrnbenc_intermediates/import_includes
Notice file: external/libgsm/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/lib/libgsm.a.txt
Notice file: frameworks/av/media/libstagefright/codecs/amrnb/dec/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/lib/libstagefright_amrnbdec.a.txt
Notice file: frameworks/av/media/libstagefright/codecs/amrnb/enc/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/lib/libstagefright_amrnbenc.a.txt
Notice file: frameworks/av/media/libstagefright/codecs/amrnb/common/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/lib/libstagefright_amrnb_common.so.txt
Notice file: frameworks/base/cmds/wm/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/framework/wm.jar.txt
Import includes file: /home/parker/android/omni/out/target/product/mako/obj/SHARED_LIBRARIES/libfwdlockengine_intermediates/import_includes
Import includes file: /home/parker/android/omni/out/target/product/mako/obj/STATIC_LIBRARIES/libdrmutility_intermediates/import_includes
Import includes file: /home/parker/android/omni/out/target/product/mako/obj/STATIC_LIBRARIES/libfwdlock-common_intermediates/import_includes
Import includes file: /home/parker/android/omni/out/target/product/mako/obj/STATIC_LIBRARIES/libfwdlock-converter_intermediates/import_includes
Import includes file: /home/parker/android/omni/out/target/product/mako/obj/STATIC_LIBRARIES/libfwdlock-decoder_intermediates/import_includes
Notice file: frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/lib/drm/libfwdlockengine.so.txt
Notice file: frameworks/av/drm/libdrmframework/plugins/common/util/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/lib/libdrmutility.a.txt
Import includes file: /home/parker/android/omni/out/target/product/mako/obj/SHARED_LIBRARIES/libGLES_android_intermediates/import_includes
Import includes file: /home/parker/android/omni/out/target/product/mako/obj/SHARED_LIBRARIES/libpixelflinger_intermediates/import_includes
Export includes file: frameworks/native/opengl/libagl/Android.mk -- /home/parker/android/omni/out/target/product/mako/obj/SHARED_LIBRARIES/libGLES_android_intermediates/export_includes
Notice file: system/core/libpixelflinger/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/lib/libpixelflinger.so.txt
Import includes file: /home/parker/android/omni/out/target/product/mako/obj/SHARED_LIBRARIES/audio.a2dp.default_intermediates/import_includes
Import includes file: /home/parker/android/omni/out/target/product/mako/obj/SHARED_LIBRARIES/audio.primary.default_intermediates/import_includes
Import includes file: /home/parker/android/omni/out/target/product/mako/obj/SHARED_LIBRARIES/audio.primary.msm8960_intermediates/import_includes
Import includes file: /home/parker/android/omni/out/target/product/mako/obj/SHARED_LIBRARIES/libtinyalsa_intermediates/import_includes
Import includes file: /home/parker/android/omni/out/target/product/mako/obj/SHARED_LIBRARIES/libaudioroute_intermediates/import_includes
Notice file: system/media/audio_route/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/lib/libaudioroute.so.txt
Notice file: external/tinyalsa/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/lib/libtinyalsa.so.txt
Import includes file: /home/parker/android/omni/out/target/product/mako/obj/SHARED_LIBRARIES/audio.r_submix.default_intermediates/import_includes
Import includes file: /home/parker/android/omni/out/target/product/mako/obj/SHARED_LIBRARIES/audio.usb.default_intermediates/import_includes
Import includes file: /home/parker/android/omni/out/target/product/mako/obj/SHARED_LIBRARIES/audio_policy.default_intermediates/import_includes
Import includes file: /home/parker/android/omni/out/target/product/mako/obj/STATIC_LIBRARIES/libaudiopolicy_legacy_intermediates/import_includes
Import includes file: /home/parker/android/omni/out/target/product/mako/obj/SHARED_LIBRARIES/camera.mako_intermediates/import_includes
Import includes file: /home/parker/android/omni/out/target/product/mako/obj/SHARED_LIBRARIES/libmmcamera_interface2_intermediates/import_includes
make: *** No rule to make target `/home/parker/android/omni/out/target/product/mako/obj/KERNEL_OBJ/usr', needed by `/home/parker/android/omni/out/target/product/mako/obj/SHARED_LIBRARIES/libgenlock_intermediates/genlock.o'. Stop.
make: *** Waiting for unfinished jobs....
real 1m55.515s
user 5m41.412s
sys 0m16.200s
[email protected]:~/android/omni$
parker09 said:
I don't get a zip file either. Mine terminal output just says Notice File blabla
Code:
Notice file: external/noto-fonts/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/fonts/NotoSansMalayalamUI-Regular.ttf.txt
Notice file: external/noto-fonts/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/fonts/NotoSansTelugu-Bold.ttf.txt
Notice file: external/noto-fonts/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/fonts/NotoSansTelugu-Regular.ttf.txt
Notice file: external/noto-fonts/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/fonts/NotoSansTeluguUI-Bold.ttf.txt
Notice file: external/noto-fonts/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/fonts/NotoSansTeluguUI-Regular.ttf.txt
Notice file: frameworks/base/data/fonts/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/fonts/Roboto-BoldItalic.ttf.txt
Notice file: frameworks/base/data/fonts/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/fonts/Roboto-Italic.ttf.txt
Notice file: frameworks/base/data/fonts/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/fonts/Roboto-Light.ttf.txt
Notice file: frameworks/base/data/fonts/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/fonts/Roboto-LightItalic.ttf.txt
Notice file: frameworks/base/data/fonts/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/fonts/Roboto-Thin.ttf.txt
Notice file: frameworks/base/data/fonts/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/fonts/Roboto-ThinItalic.ttf.txt
Notice file: frameworks/base/data/fonts/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/fonts/RobotoCondensed-Bold.ttf.txt
Notice file: frameworks/base/data/fonts/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/fonts/RobotoCondensed-BoldItalic.ttf.txt
Notice file: frameworks/base/data/fonts/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/fonts/RobotoCondensed-Italic.ttf.txt
Notice file: frameworks/base/data/fonts/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/fonts/RobotoCondensed-Regular.ttf.txt
Notice file: frameworks/base/cmds/am/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/framework/am.jar.txt
Notice file: external/apache-xml/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/framework/apache-xml.jar.txt
Notice file: frameworks/base/cmds/bmgr/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/framework/bmgr.jar.txt
Notice file: external/bouncycastle/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/framework/bouncycastle.jar.txt
Notice file: frameworks/base/cmds/bu/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/framework/bu.jar.txt
Notice file: frameworks/base/cmds/content/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/framework/content.jar.txt
Notice file: external/junit/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/framework/core-junit.jar.txt
Notice file: libcore/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/framework/core.jar.txt
Notice file: frameworks/base/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/framework/ext.jar.txt
Notice file: frameworks/base/core/res/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/framework/framework-res.apk.txt
Notice file: frameworks/base/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/framework/framework.jar.txt
Notice file: frameworks/base/cmds/ime/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/framework/ime.jar.txt
Notice file: frameworks/base/cmds/input/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/framework/input.jar.txt
Notice file: frameworks/base/obex/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/framework/javax.obex.jar.txt
Notice file: frameworks/base/cmds/media/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/framework/media_cmd.jar.txt
Notice file: development/cmds/monkey/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/framework/monkey.jar.txt
Notice file: frameworks/base/cmds/pm/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/framework/pm.jar.txt
Notice file: frameworks/base/cmds/requestsync/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/framework/requestsync.jar.txt
Notice file: frameworks/base/cmds/svc/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/framework/svc.jar.txt
Import includes file: /home/parker/android/omni/out/target/product/mako/obj/SHARED_LIBRARIES/librtp_jni_intermediates/import_includes
Import includes file: /home/parker/android/omni/out/target/product/mako/obj/SHARED_LIBRARIES/libstagefright_amrnb_common_intermediates/import_includes
Import includes file: /home/parker/android/omni/out/target/product/mako/obj/STATIC_LIBRARIES/libgsm_intermediates/import_includes
Import includes file: /home/parker/android/omni/out/target/product/mako/obj/STATIC_LIBRARIES/libstagefright_amrnbdec_intermediates/import_includes
Import includes file: /home/parker/android/omni/out/target/product/mako/obj/STATIC_LIBRARIES/libstagefright_amrnbenc_intermediates/import_includes
Notice file: external/libgsm/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/lib/libgsm.a.txt
Notice file: frameworks/av/media/libstagefright/codecs/amrnb/dec/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/lib/libstagefright_amrnbdec.a.txt
Notice file: frameworks/av/media/libstagefright/codecs/amrnb/enc/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/lib/libstagefright_amrnbenc.a.txt
Notice file: frameworks/av/media/libstagefright/codecs/amrnb/common/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/lib/libstagefright_amrnb_common.so.txt
Notice file: frameworks/base/cmds/wm/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/framework/wm.jar.txt
Import includes file: /home/parker/android/omni/out/target/product/mako/obj/SHARED_LIBRARIES/libfwdlockengine_intermediates/import_includes
Import includes file: /home/parker/android/omni/out/target/product/mako/obj/STATIC_LIBRARIES/libdrmutility_intermediates/import_includes
Import includes file: /home/parker/android/omni/out/target/product/mako/obj/STATIC_LIBRARIES/libfwdlock-common_intermediates/import_includes
Import includes file: /home/parker/android/omni/out/target/product/mako/obj/STATIC_LIBRARIES/libfwdlock-converter_intermediates/import_includes
Import includes file: /home/parker/android/omni/out/target/product/mako/obj/STATIC_LIBRARIES/libfwdlock-decoder_intermediates/import_includes
Notice file: frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/lib/drm/libfwdlockengine.so.txt
Notice file: frameworks/av/drm/libdrmframework/plugins/common/util/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/lib/libdrmutility.a.txt
Import includes file: /home/parker/android/omni/out/target/product/mako/obj/SHARED_LIBRARIES/libGLES_android_intermediates/import_includes
Import includes file: /home/parker/android/omni/out/target/product/mako/obj/SHARED_LIBRARIES/libpixelflinger_intermediates/import_includes
Export includes file: frameworks/native/opengl/libagl/Android.mk -- /home/parker/android/omni/out/target/product/mako/obj/SHARED_LIBRARIES/libGLES_android_intermediates/export_includes
Notice file: system/core/libpixelflinger/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/lib/libpixelflinger.so.txt
Import includes file: /home/parker/android/omni/out/target/product/mako/obj/SHARED_LIBRARIES/audio.a2dp.default_intermediates/import_includes
Import includes file: /home/parker/android/omni/out/target/product/mako/obj/SHARED_LIBRARIES/audio.primary.default_intermediates/import_includes
Import includes file: /home/parker/android/omni/out/target/product/mako/obj/SHARED_LIBRARIES/audio.primary.msm8960_intermediates/import_includes
Import includes file: /home/parker/android/omni/out/target/product/mako/obj/SHARED_LIBRARIES/libtinyalsa_intermediates/import_includes
Import includes file: /home/parker/android/omni/out/target/product/mako/obj/SHARED_LIBRARIES/libaudioroute_intermediates/import_includes
Notice file: system/media/audio_route/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/lib/libaudioroute.so.txt
Notice file: external/tinyalsa/NOTICE -- /home/parker/android/omni/out/target/product/mako/obj/NOTICE_FILES/src//system/lib/libtinyalsa.so.txt
Import includes file: /home/parker/android/omni/out/target/product/mako/obj/SHARED_LIBRARIES/audio.r_submix.default_intermediates/import_includes
Import includes file: /home/parker/android/omni/out/target/product/mako/obj/SHARED_LIBRARIES/audio.usb.default_intermediates/import_includes
Import includes file: /home/parker/android/omni/out/target/product/mako/obj/SHARED_LIBRARIES/audio_policy.default_intermediates/import_includes
Import includes file: /home/parker/android/omni/out/target/product/mako/obj/STATIC_LIBRARIES/libaudiopolicy_legacy_intermediates/import_includes
Import includes file: /home/parker/android/omni/out/target/product/mako/obj/SHARED_LIBRARIES/camera.mako_intermediates/import_includes
Import includes file: /home/parker/android/omni/out/target/product/mako/obj/SHARED_LIBRARIES/libmmcamera_interface2_intermediates/import_includes
make: *** No rule to make target `/home/parker/android/omni/out/target/product/mako/obj/KERNEL_OBJ/usr', needed by `/home/parker/android/omni/out/target/product/mako/obj/SHARED_LIBRARIES/libgenlock_intermediates/genlock.o'. Stop.
make: *** Waiting for unfinished jobs....
real 1m55.515s
user 5m41.412s
sys 0m16.200s
[email protected]:~/android/omni$
Click to expand...
Click to collapse
You made sure to have a local_manifest folder under ~/android/omni/.repo/ ?
Inside my local_manifest.xml (Or really whatever you want to name it .xml) is
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="TheMuppets/proprietary_vendor_lge.git" path="vendor/lge" remote="github" revision="cm-10.2" />
<project name="TheMuppets/proprietary_vendor_broadcom.git" path="vendor/broadcom" remote="github" revision="cm-10.2" />
<project name="TheMuppets/proprietary_vendor_nvidia.git" path="vendor/nvidia" remote="github" revision="cm-10.2" />
<project name="TheMuppets/proprietary_vendor_elan.git" path="vendor/elan" remote="github" revision="cm-10.2" />
<project name="TheMuppets/proprietary_vendor_invensense.git" path="vendor/invensense" remote="github" revision="cm-10.2" />
<project name="TheMuppets/proprietary_vendor_widevine.git" path="vendor/widevine" remote="github" revision="cm-10.2" />
<project name="TheMuppets/proprietary_vendor_nxp.git" path="vendor/nxp" remote="github" revision="cm-10.2" />
<project name="TheMuppets/proprietary_vendor_asus.git" path="vendor/asus" remote="github" revision="cm-10.2" />
<project name="TheMuppets/proprietary_vendor_imgtec.git" path="vendor/imgtec" remote="github" revision="cm-10.2" />
<project name="TheMuppets/proprietary_vendor_samsung.git" path="vendor/samsung" remote="github" revision="cm-10.2" />
<project name="omnirom/android_device_asus_flo" path="device/asus/flo" remote="github" revision="android-4.3" />
<project name="omnirom/android_kernel_google_msm" path="kernel/google/msm" remote="github" revision="android-msm-mako-3.4-jb-mr2" />
<project name="omnirom/android_device_lge_mako" path="device/lge/mako" remote="github" revision="android-4.3" />
<project name="omnirom/android_kernel_lge_mako" path="kernel/lge/mako" remote="github" revision="android-4.3" />
</manifest>
TheMuppets repo is where CM team keeps their blobs for all devices they build for. (I have most of them because I build for quite a couple) You're going to need the lge one. Then the omnirom ones are device specific for mako and flo and then subsequently mako's kernel.
Using this I have made working builds for my N4.
These are the steps I do first to build (and get the same errors as OP)
Code:
[email protected]:~$ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 23618 100 23618 0 0 54252 0 --:--:-- --:--:-- --:--:-- 57604
[email protected]:~$ chmod a+x ~/bin/repo
[email protected]:~$ echo "export PATH=${PATH}:~/android/sdk/platform-tools/:~/bin" >> ~/.bashrc
[email protected]:~$ export PATH=${PATH}:~/android/sdk/platform-tools/:~/bin
[email protected]:~$ git config --global user.email "[email protected][B]EMAILREMOVED[/B]"
[email protected]:~$ git config --global user.name "ejparker"
[email protected]:~$ cd ~/android/omni
[email protected]:~/android/omni$ repo init -u https://github.com/omnirom/android.git -b android-4.3
remote: Counting objects: 16, done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 12 (delta 4), reused 11 (delta 3)
Unpacking objects: 100% (12/12), done.
From https://github.com/omnirom/android
68adae3..4a32d1c android-4.3 -> origin/android-4.3
Your identity is: ejparker <[email protected][B]EMAILREMOVED[/B]>
If you want to change this, please re-run 'repo init' with --config-name
repo has been initialized in /home/parker/android/omni
[email protected]:~/android/omni$
That seems to go all fine.
I then sync the repo and that goes well as far as I can tell
Code:
repo sync -j4
Does the fetching of the project and sync'ing the work tree and I get
Code:
Fetching projects: 100% (378/378), done.
Syncing work tree: 100% (378/378), done.
Which seems like its worked - so all good up to this point I'm guessing.
I then do the
Code:
cd ~/android/omni; . build/envsetup.sh; brunch mako
and then when it's finished I don't get a build.
(terminal output too many characters for XDA so put it in pastebin
http://pastebin.com/439iaqtm​
-----
Nburnes said:
You made sure to have a local_manifest folder under ~/android/omni/.repo/ ?
Click to expand...
Click to collapse
My local manifest is under: ~/android/.repo
Nburnes said:
Inside my local_manifest.xml (Or really whatever you want to name it .xml) is
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="TheMuppets/proprietary_vendor_lge.git" path="vendor/lge" remote="github" revision="cm-10.2" />
<project name="TheMuppets/proprietary_vendor_broadcom.git" path="vendor/broadcom" remote="github" revision="cm-10.2" />
<project name="TheMuppets/proprietary_vendor_nvidia.git" path="vendor/nvidia" remote="github" revision="cm-10.2" />
<project name="TheMuppets/proprietary_vendor_elan.git" path="vendor/elan" remote="github" revision="cm-10.2" />
<project name="TheMuppets/proprietary_vendor_invensense.git" path="vendor/invensense" remote="github" revision="cm-10.2" />
<project name="TheMuppets/proprietary_vendor_widevine.git" path="vendor/widevine" remote="github" revision="cm-10.2" />
<project name="TheMuppets/proprietary_vendor_nxp.git" path="vendor/nxp" remote="github" revision="cm-10.2" />
<project name="TheMuppets/proprietary_vendor_asus.git" path="vendor/asus" remote="github" revision="cm-10.2" />
<project name="TheMuppets/proprietary_vendor_imgtec.git" path="vendor/imgtec" remote="github" revision="cm-10.2" />
<project name="TheMuppets/proprietary_vendor_samsung.git" path="vendor/samsung" remote="github" revision="cm-10.2" />
<project name="omnirom/android_device_asus_flo" path="device/asus/flo" remote="github" revision="android-4.3" />
<project name="omnirom/android_kernel_google_msm" path="kernel/google/msm" remote="github" revision="android-msm-mako-3.4-jb-mr2" />
<project name="omnirom/android_device_lge_mako" path="device/lge/mako" remote="github" revision="android-4.3" />
<project name="omnirom/android_kernel_lge_mako" path="kernel/lge/mako" remote="github" revision="android-4.3" />
</manifest>
TheMuppets repo is where CM team keeps their blobs for all devices they build for. (I have most of them because I build for quite a couple) You're going to need the lge one. Then the omnirom ones are device specific for mako and flo and then subsequently mako's kernel. [/code]
Click to expand...
Click to collapse
Yeah I have in my local_manifest.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="TheMuppets/proprietary_vendor_lge" path="vendor/lge" remote="github" revision="cm-10.2" />
<project name="omnirom/android_kernel_google_msm" path="kernel/google/msm" remote="github" revision="android-msm-mako-3.4-jb-mr2" />
<project name="omnirom/android_device_lge_mako" path="device/lge/mako" remote="github" revision="android-4.3" />
</manifest>
parker09 said:
These are the steps I do first to build (and get the same errors as OP)
Code:
[email protected]:~$ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 23618 100 23618 0 0 54252 0 --:--:-- --:--:-- --:--:-- 57604
[email protected]:~$ chmod a+x ~/bin/repo
[email protected]:~$ echo "export PATH=${PATH}:~/android/sdk/platform-tools/:~/bin" >> ~/.bashrc
[email protected]:~$ export PATH=${PATH}:~/android/sdk/platform-tools/:~/bin
[email protected]:~$ git config --global user.email "[email protected][B]EMAILREMOVED[/B]"
[email protected]:~$ git config --global user.name "ejparker"
[email protected]:~$ cd ~/android/omni
[email protected]:~/android/omni$ repo init -u https://github.com/omnirom/android.git -b android-4.3
remote: Counting objects: 16, done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 12 (delta 4), reused 11 (delta 3)
Unpacking objects: 100% (12/12), done.
From https://github.com/omnirom/android
68adae3..4a32d1c android-4.3 -> origin/android-4.3
Your identity is: ejparker <[email protected][B]EMAILREMOVED[/B]>
If you want to change this, please re-run 'repo init' with --config-name
repo has been initialized in /home/parker/android/omni
[email protected]:~/android/omni$
That seems to go all fine.
I then sync the repo and that goes well as far as I can tell
Code:
repo sync -j4
Does the fetching of the project and sync'ing the work tree and I get
Code:
Fetching projects: 100% (378/378), done.
Syncing work tree: 100% (378/378), done.
Which seems like its worked - so all good up to this point I'm guessing.
I then do the
Code:
cd ~/android/omni; . build/envsetup.sh; brunch mako
and then when it's finished I don't get a build.
(terminal output too many characters for XDA so put it in pastebin
http://pastebin.com/439iaqtm​
-----
My local manifest is under: ~/android/.repo
Yeah I have in my local_manifest.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="TheMuppets/proprietary_vendor_lge" path="vendor/lge" remote="github" revision="cm-10.2" />
<project name="omnirom/android_kernel_google_msm" path="kernel/google/msm" remote="github" revision="android-msm-mako-3.4-jb-mr2" />
<project name="omnirom/android_device_lge_mako" path="device/lge/mako" remote="github" revision="android-4.3" />
</manifest>
Click to expand...
Click to collapse
You have the .repo folder in the wrong place
From your own terminal you have
Code:
[email protected]:~/android/omni$
as your build location
But .repo in
Code:
~/android/.repo
It needs to be in
Code:
~/android/omni/.repo/
and then a local_manifests folder as I said. (The period means it is a hidden folder if you didn't know, so CTRL+H in your file manager to view/access it)
dkflint723 said:
So I have followed the guides here http://docs.omnirom.org/Setting_Up_A_Compile_Environment and here http://docs.omnirom.org/Build_for_mako.
I have synced up everything and when I execute the cd ~/android/omni; . build/envsetup.sh; brunch mako command I do not get a .zip file created. Is there an extra step I need to do to have the .zip created so I can flash to my device?
Thank you all in advance.
Click to expand...
Click to collapse
try:
Code:
.build/envsetup.sh && lunch 16 && make otapackage
Nburnes said:
You made sure to have a local_manifest folder under ~/android/omni/.repo/ ?
Inside my local_manifest.xml (Or really whatever you want to name it .xml) is
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="TheMuppets/proprietary_vendor_lge.git" path="vendor/lge" remote="github" revision="cm-10.2" />
<project name="TheMuppets/proprietary_vendor_broadcom.git" path="vendor/broadcom" remote="github" revision="cm-10.2" />
<project name="TheMuppets/proprietary_vendor_nvidia.git" path="vendor/nvidia" remote="github" revision="cm-10.2" />
<project name="TheMuppets/proprietary_vendor_elan.git" path="vendor/elan" remote="github" revision="cm-10.2" />
<project name="TheMuppets/proprietary_vendor_invensense.git" path="vendor/invensense" remote="github" revision="cm-10.2" />
<project name="TheMuppets/proprietary_vendor_widevine.git" path="vendor/widevine" remote="github" revision="cm-10.2" />
<project name="TheMuppets/proprietary_vendor_nxp.git" path="vendor/nxp" remote="github" revision="cm-10.2" />
<project name="TheMuppets/proprietary_vendor_asus.git" path="vendor/asus" remote="github" revision="cm-10.2" />
<project name="TheMuppets/proprietary_vendor_imgtec.git" path="vendor/imgtec" remote="github" revision="cm-10.2" />
<project name="TheMuppets/proprietary_vendor_samsung.git" path="vendor/samsung" remote="github" revision="cm-10.2" />
<project name="omnirom/android_device_asus_flo" path="device/asus/flo" remote="github" revision="android-4.3" />
<project name="omnirom/android_kernel_google_msm" path="kernel/google/msm" remote="github" revision="android-msm-mako-3.4-jb-mr2" />
<project name="omnirom/android_device_lge_mako" path="device/lge/mako" remote="github" revision="android-4.3" />
<project name="omnirom/android_kernel_lge_mako" path="kernel/lge/mako" remote="github" revision="android-4.3" />
</manifest>
TheMuppets repo is where CM team keeps their blobs for all devices they build for. (I have most of them because I build for quite a couple) You're going to need the lge one. Then the omnirom ones are device specific for mako and flo and then subsequently mako's kernel.
Using this I have made working builds for my N4.
Click to expand...
Click to collapse
Nburnes said:
You have the .repo folder in the wrong place
From your own terminal you have
Code:
[email protected]:~/android/omni$
as your build location
But .repo in
Code:
~/android/.repo
It needs to be in
Code:
~/android/omni/.repo/
and then a local_manifests folder as I said. (The period means it is a hidden folder if you didn't know, so CTRL+H in your file manager to view/access it)
Click to expand...
Click to collapse
Ah okay.
I moved it, I'll try build it now.
Does that mean the Wiki article on docs.omnirom.org is wrong? http://docs.omnirom.org/Build_for_mako
Code:
mkdir -p ~/.repo/local_manifests/
shouldn't it be
Code:
mkdir -p ~/android/omni/.repo/local_manifests/
parker09 said:
Ah okay.
I moved it, I'll try build it now.
Does that mean the Wiki article on docs.omnirom.org is wrong? http://docs.omnirom.org/Build_for_mako
Code:
mkdir -p ~/.repo/local_manifests/
shouldn't it be
Code:
mkdir -p ~/android/omni/.repo/local_manifests/
Click to expand...
Click to collapse
It's not wrong, it means that you should be inside your source folder to do that command.
Code:
mkdir -p ~/.repo/local_manifests/
parker09 said:
Ah okay.
I moved it, I'll try build it now.
Does that mean the Wiki article on docs.omnirom.org is wrong? http://docs.omnirom.org/Build_for_mako
Code:
mkdir -p ~/.repo/local_manifests/
shouldn't it be
Code:
mkdir -p ~/android/omni/.repo/local_manifests/
Click to expand...
Click to collapse
You also seem to have
Code:
<project name="omnirom/android_kernel_lge_mako" path="kernel/lge/mako" remote="github" revision="android-4.3" />
Missing from your manifest, else it won't actually pull (all) the mako kernel source.
Gn0m3 said:
It's not wrong, it means that you should be inside your source folder to do that command.
Code:
mkdir -p ~/.repo/local_manifests/
Click to expand...
Click to collapse
Ah okay, I get you.
Nburnes said:
You also seem to have
Code:
<project name="omnirom/android_kernel_lge_mako" path="kernel/lge/mako" remote="github" revision="android-4.3" />
Missing from your manifest, else it won't actually pull (all) the mako kernel source.
Click to expand...
Click to collapse
Ah thanks.
Doing another sync and I'll try again.
Gn0m3 said:
It's not wrong, it means that you should be inside your source folder to do that command.
Code:
mkdir -p ~/.repo/local_manifests/
Click to expand...
Click to collapse
Isn't wrong if you want the .repo folder in ~/android/omni? The ~ qualifies the command to start at the user's home directory. it doesn't matter what folder you are in when the command is executed. I agree that this is misleading.
MOD please delete
gyrene2083 said:
MOD please delete
Click to expand...
Click to collapse
Correct - you would want to follow instructions for your specific phone. The previous posts mention adding binaries/blobs for the Nexus 4 specifically. Sorry I can't be more help than that.
caspian154 said:
Correct - you would want to follow instructions for your specific phone. The previous posts mention adding binaries/blobs for the Nexus 4 specifically. Sorry I can't be more help than that.
Click to expand...
Click to collapse
It was when I read that, that I totally realized it was specific to the Nexus 4. It's my own fault for reading while be up for 18 hours....lol. I suppose I'm going to have to try to figure this one out....but thanks for the answer.
Actually, i did modify a bit omni's wiki toward mako's build, local_manifest isn't needed anymore for the kernel since roomservice got merged, it will get synced when you launch brunch. Themuppets should be declared in local_manifest.xml
Do not edit roomservice.xml, as it is generated by roomservice.
Sent from my Nexus 4 using xda app-developers app
Hi, I'm trying to compile omni for this device, I'm in ubuntu 13.04 64 bits but, when I try to put this:
repo init -u https://github.com/omnirom/android.git -b android-4.3
It says me this error:
[email protected]:~/android/omni$ repo init -u https://github.com/omnirom/android.git -b android-4.3
/home/javierd/bin/repo: línea 1: error sintáctico cerca del elemento inesperado `newline'
/home/javierd/bin/repo: línea 1: `<!DOCTYPE html>'
[email protected]:~/android/omni$
Does somebody know how can I patch this error, it says me with all the roms, but i don't know why :,,(
Javier.D said:
Hi, I'm trying to compile omni for this device, I'm in ubuntu 13.04 64 bits but, when I try to put this:
repo init -u https://github.com/omnirom/android.git -b android-4.3
It says me this error:
[email protected]:~/android/omni$ repo init -u https://github.com/omnirom/android.git -b android-4.3
/home/javierd/bin/repo: línea 1: error sintáctico cerca del elemento inesperado `newline'
/home/javierd/bin/repo: línea 1: `<!DOCTYPE html>'
[email protected]:~/android/omni$
Does somebody know how can I patch this error, it says me with all the roms, but i don't know why :,,(
Click to expand...
Click to collapse
Hi delete ~/bin/repo
&
Code:
$curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$chmod a+x ~/bin/repo
If you have key error delete
Code:
~/.repoconfig
I'm with this error
Code:
target SharedLib: libril (/home/assis/android/omni/out/target/product/mako/obj/SHARED_LIBRARIES/libril_intermediates/LINKED/libril.so)
/home/assis/android/omni/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: /home/assis/android/omni/out/target/product/mako/obj/SHARED_LIBRARIES/libril_intermediates/ril.o: file is empty
collect2: error: ld returned 1 exit status
make: ** [/home/assis/android/omni/out/target/product/mako/obj/SHARED_LIBRARIES/libril_intermediates/LINKED/libril.so] Erro 1
Assis Brandão said:
I'm with this error
Code:
target SharedLib: libril (/home/assis/android/omni/out/target/product/mako/obj/SHARED_LIBRARIES/libril_intermediates/LINKED/libril.so)
/home/assis/android/omni/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: /home/assis/android/omni/out/target/product/mako/obj/SHARED_LIBRARIES/libril_intermediates/ril.o: file is empty
collect2: error: ld returned 1 exit status
make: ** [/home/assis/android/omni/out/target/product/mako/obj/SHARED_LIBRARIES/libril_intermediates/LINKED/libril.so] Erro 1
Click to expand...
Click to collapse
Please provide a full logcat as an attachment.
There is insufficient information to determine what went wrong, although my first guess based on the limited information provided is that something weird happened like you running out of hard drive space. It's rare for "file is empty" to occur instead of "file not found" unless there was an issue related to running out of disk space.

[Q] Next step after repo sync

Alright so I've got the whole repo synced, now I need to get the blobs for my device right? I'm building on the evo lte codenamed Jewel
Made an xml file in android/omni/.repo/local_manifest called roomservice.xml
This is what I put inside:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="Jewel/proprietary_vendor_HTC" path="vendor/HTC" remote="github" revision="cm-10.2" />
</manifest>
Am I doing everything correctly thus far? Miss anything inbetween repo sync and extracting the proprietary blobs?
numel007 said:
Alright so I've got the whole repo synced, now I need to get the blobs for my device right? I'm building on the evo lte codenamed Jewel
Made an xml file in android/omni/.repo/local_manifest called roomservice.xml
This is what I put inside:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="Jewel/proprietary_vendor_HTC" path="vendor/HTC" remote="github" revision="cm-10.2" />
</manifest>
Am I doing everything correctly thus far? Miss anything inbetween repo sync and extracting the proprietary blobs?
Click to expand...
Click to collapse
Not sure what's required for HTC, but I would recommend AGAINST making any manual edits to roomservice.xml - use a different XML file in local_manifests for your own stuff
Entropy512 said:
Not sure what's required for HTC, but I would recommend AGAINST making any manual edits to roomservice.xml - use a different XML file in local_manifests for your own stuff
Click to expand...
Click to collapse
Actually when I checked the file after repo sync, the file didn't even exist. Come to think of it local_manifest wasn't there, so I made it manually. Did I miss something?
Sent from a non-i****
numel007 said:
Actually when I checked the file after repo sync, the file didn't even exist. Come to think of it local_manifest wasn't there, so I made it manually. Did I miss something?
Sent from a non-i****
Click to expand...
Click to collapse
Nope. Although I would change roomservice.xml to your_device_name.xml to stop any potential conflicts. And Entropy512 probably thought you were editing the roomservice.xml referenced here: https://github.com/omnirom/android_build/blob/android-4.3/tools/roomservice.py#L161
numel007 said:
Alright so I've got the whole repo synced, now I need to get the blobs for my device right? I'm building on the evo lte codenamed Jewel
Made an xml file in android/omni/.repo/local_manifest called roomservice.xml
This is what I put inside:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="Jewel/proprietary_vendor_HTC" path="vendor/HTC" remote="github" revision="cm-10.2" />
</manifest>
Am I doing everything correctly thus far? Miss anything inbetween repo sync and extracting the proprietary blobs?
Click to expand...
Click to collapse
In order to build an unofficial device, as I have gathered it:
First(after setting up the build environment, of course, which is easily demonstrated with a quick google search), you must create a local_manifest. Basically, when you repo sync, it downloads all of the files included in the manifest, which you received when you did repo init. However, your device files are not included in the manifest because it's unofficial (not supported). In order to get your device files to download with the repo sync, you create the local_manifest. To create a local_manifest,
in cmd,
cd omni (so you get into your rom directory)
mkdir .repo/local_manifests (creates a folder to put your local manifest in)
touch .repo/local_manifests/local_manifest.xml (creates the local manifest.xml)
Now go to your file explorer. open omni directory. there should be nothing, unless you've already repo synced. If you have already repo synced, no worries. press control+h. a hidden folder called .repo will appear. double click it. then >local_manifests> open local_manifest.xml. In this xml, you will need to put your device tree, your kernel tree, and your vendor tree. Additionally, you will need trees that contain common files with other devices. These are all able to be found by looking on your device forum. It looks as though you may have the vendor tree in your local_manifest right now. I have found the items that you need to add to your local_manifest. simply add this:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="github"
fetch="git://github.com/" />
<!-- CyanogenMod -->
<project name="CyanogenMod/android_device_htc_jewel" path="device/htc/jewel" remote="github" revision="cm-10.2" />
<project name="CyanogenMod/android_device_htc_s4-common" path="device/htc/s4-common" remote="github" revision="cm-10.2" />
<project name="CyanogenMod/android_device_htc_msm8960-common" path="device/htc/msm8960-common" remote="github" revision="cm-10.2" />
<project name="CyanogenMod/android_kernel_htc_msm8960" path="kernel/htc/msm8960" remote="github" revision="cm-10.2" />
<!-- Add HTC Proprietary Files -->
<project name="TheMuppets/proprietary_vendor_htc" path="vendor/htc" remote="github" revision="cm-10.2" />
<!-- Add qcom-caf source for our phone -->
<project path="hardware/qcom/media-caf" name="SlimRoms/hardware_qcom_media-caf" remote="github" revision="jb4.3" />
<project path="hardware/qcom/display-caf" name="SlimRoms/hardware_qcom_display-caf" remote="github" revision="jb4.3" />
<project path="hardware/qcom/audio-caf" name="SlimRoms/hardware_qcom_audio-caf" remote="github" revision="jb4.3" />
</manifest>
(end)
Save.
Now you repo sync. If you have never repo synced, it'll take a while. If you've already repo synced and just added the local_manifest, it shouldn't take long at all.
Next you have to edit the device tree in order to get it to build and add a line to vendorsetup.sh. However, I have not been able to look at what changes need to be made in order to get it to work. I was gonna take a look at it all on sunday. Maybe someone else can step in here to tell him what he needs to do?
Sent from my TF300T using xda app-developers app
andrewnelson23 said:
In order to build an unofficial device, as I have gathered it:
Sent from my TF300T using xda app-developers app
Click to expand...
Click to collapse
Well gee thanks!
Sent from a non-i****
Alright repo sync with the new local_manifest.xml comes up with this error:
remote: Counting objects: 8, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 6 (delta 2), reused 5 (delta 1)
Unpacking objects: 100% (6/6), done.
From https://github.com/omnirom/android
4a32d1c..f246d15 android-4.3 -> origin/android-4.3
project .repo/manifests/
Updating 4a32d1c..f246d15
Fast-forward
default.xml | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
fatal: remote github already exists with different attributes
andrewnelson23 said:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="github"
fetch="git://github.com/" />
<!-- CyanogenMod -->
<project name="CyanogenMod/android_device_htc_jewel" path="device/htc/jewel" remote="github" revision="cm-10.2" />
<project name="CyanogenMod/android_device_htc_s4-common" path="device/htc/s4-common" remote="github" revision="cm-10.2" />
<project name="CyanogenMod/android_device_htc_msm8960-common" path="device/htc/msm8960-common" remote="github" revision="cm-10.2" />
<project name="CyanogenMod/android_kernel_htc_msm8960" path="kernel/htc/msm8960" remote="github" revision="cm-10.2" />
<!-- Add HTC Proprietary Files -->
<project name="TheMuppets/proprietary_vendor_htc" path="vendor/htc" remote="github" revision="cm-10.2" />
<!-- Add qcom-caf source for our phone -->
<project path="hardware/qcom/media-caf" name="SlimRoms/hardware_qcom_media-caf" remote="github" revision="jb4.3" />
<project path="hardware/qcom/display-caf" name="SlimRoms/hardware_qcom_display-caf" remote="github" revision="jb4.3" />
<project path="hardware/qcom/audio-caf" name="SlimRoms/hardware_qcom_audio-caf" remote="github" revision="jb4.3" />
</manifest>
Click to expand...
Click to collapse
Why SlimRoms qcom-caf when all those projects exist at OmniRom Github? The same goes for android_device_htc_msm8960-common.
These projects should be OmnRom's, because he's going to have enough problems as it is setting up the correct device and vendor trees.
numel007 said:
Alright repo sync with the new local_manifest.xml comes up with this error:
remote: Counting objects: 8, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 6 (delta 2), reused 5 (delta 1)
Unpacking objects: 100% (6/6), done.
From https://github.com/omnirom/android
4a32d1c..f246d15 android-4.3 -> origin/android-4.3
project .repo/manifests/
Updating 4a32d1c..f246d15
Fast-forward
default.xml | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
fatal: remote github already exists with different attributes
Click to expand...
Click to collapse
Hmm so this either means that you edited something in the default.XML, but that error talks about the remote github existing with different attributes. So when you defined the remote in the local manifest, might be clashing with the manifest remote for github. Hopefully to fix you can just rrmove the <remote> line in the local manifest. I think. I'm not terribly experienced with all of this. Perhaps chasmodo can shed some light on that I know he's much more experience with all of this.
chasmodo said:
Why SlimRoms qcom-caf when all those projects exist at OmniRom Github? The same goes for android_device_htc_msm8960-common.
These projects should be OmnRom's, because he's going to have enough problems as it is setting up the correct device and vendor trees.
Click to expand...
Click to collapse
Oh I wasnt aware of that. I just found the sources of a ROM on his forums and put those in there, didn't even think about looking for the same trees on the omni GH. Again I'm not super experienced. So numel007, if there is a git in the omni GH matching any of the ones listed in the local manifest, put the omni one in instead. So as chasmodo said all of the qcom caf stuff and the device-msm8960.
Sent from my SGH-T999 using xda app-developers app
andrewnelson23 said:
Hmm so this either means that you edited something in the default.XML, but that error talks about the remote github existing with different attributes.
Click to expand...
Click to collapse
It doesn't mean he edited anything in the default.xml or manifest.xml. It probably means that the same qcom projects etc are already defined in the default/manifest, but he has added the different ones with the same attributes (project name and path) to his local_manifest.xm following your advice.
andrewnelson23 said:
Oh I wasnt aware of that.
Click to expand...
Click to collapse
Always check the target Rom Github before offering porting advice.
andrewnelson23 said:
In order to build an unofficial device, as I have gathered it:
First(after setting up the build environment, of course, which is easily demonstrated with a quick google search), you must create a local_manifest. Basically, when you repo sync, it downloads all of the files included in the manifest, which you received when you did repo init. However, your device files are not included in the manifest because it's unofficial (not supported). In order to get your device files to download with the repo sync, you create the local_manifest. To create a local_manifest,
in cmd,
cd omni (so you get into your rom directory)
mkdir .repo/local_manifests (creates a folder to put your local manifest in)
touch .repo/local_manifests/local_manifest.xml (creates the local manifest.xml)
Now go to your file explorer. open omni directory. there should be nothing, unless you've already repo synced. If you have already repo synced, no worries. press control+h. a hidden folder called .repo will appear. double click it. then >local_manifests> open local_manifest.xml. In this xml, you will need to put your device tree, your kernel tree, and your vendor tree. Additionally, you will need trees that contain common files with other devices. These are all able to be found by looking on your device forum. It looks as though you may have the vendor tree in your local_manifest right now. I have found the items that you need to add to your local_manifest. simply add this:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="github"
fetch="git://github.com/" />
<!-- CyanogenMod -->
<project name="CyanogenMod/android_device_htc_jewel" path="device/htc/jewel" remote="github" revision="cm-10.2" />
<project name="CyanogenMod/android_device_htc_s4-common" path="device/htc/s4-common" remote="github" revision="cm-10.2" />
<project name="CyanogenMod/android_device_htc_msm8960-common" path="device/htc/msm8960-common" remote="github" revision="cm-10.2" />
<project name="CyanogenMod/android_kernel_htc_msm8960" path="kernel/htc/msm8960" remote="github" revision="cm-10.2" />
<!-- Add HTC Proprietary Files -->
<project name="TheMuppets/proprietary_vendor_htc" path="vendor/htc" remote="github" revision="cm-10.2" />
<!-- Add qcom-caf source for our phone -->
<project path="hardware/qcom/media-caf" name="SlimRoms/hardware_qcom_media-caf" remote="github" revision="jb4.3" />
<project path="hardware/qcom/display-caf" name="SlimRoms/hardware_qcom_display-caf" remote="github" revision="jb4.3" />
<project path="hardware/qcom/audio-caf" name="SlimRoms/hardware_qcom_audio-caf" remote="github" revision="jb4.3" />
</manifest>
(end)
Save.
Now you repo sync. If you have never repo synced, it'll take a while. If you've already repo synced and just added the local_manifest, it shouldn't take long at all.
Next you have to edit the device tree in order to get it to build and add a line to vendorsetup.sh. However, I have not been able to look at what changes need to be made in order to get it to work. I was gonna take a look at it all on sunday. Maybe someone else can step in here to tell him what he needs to do?
Sent from my TF300T using xda app-developers app
Click to expand...
Click to collapse
Hey Thanks for working on this I am going through trying to get a build out for the One S and running into all sorts of build errors when I have some time over the weekend I will compare local_manifests and see what I missed.
numel007 said:
Alright repo sync with the new local_manifest.xml comes up with this error:
remote: Counting objects: 8, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 6 (delta 2), reused 5 (delta 1)
Unpacking objects: 100% (6/6), done.
From https://github.com/omnirom/android
4a32d1c..f246d15 android-4.3 -> origin/android-4.3
project .repo/manifests/
Updating 4a32d1c..f246d15
Fast-forward
default.xml | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
fatal: remote github already exists with different attributes
Click to expand...
Click to collapse
Remove
<remote name="github"
fetch="https://github.com/" />
From all your local manifests. (Or rename it from github to something else)
1. these steps, I can follow them for my lg g2 to hookup cm10.2 source with Omnirom?
2. Also I got propriatory blobs from the cm10.2 rom, However I notice many more on stock rom, anybody know if I can use all of these or explicitly the ones from the cm10.2 rom?
3. There are also more in the cm rom, can I use all the blobs in the folders or only the ones on the propriatory blob txt?
4. what about the symlinked propriatary files in stock rom folders? Ignore those?
Sent from my LG-D802
This is what I get guess I will have to go through it and sort out the missing things....
Which would you like? [aosp_arm-eng] 16
build/core/product_config.mk:222: *** Can not locate config makefile for product "omni_ville". Stop.
Traceback (most recent call last):
File "build/tools/roomservice.py", line 287, in
fetch_device(device)
File "build/tools/roomservice.py", line 255, in fetch_device
git_data = search_github_for_device(device)
File "build/tools/roomservice.py", line 68, in search_github_for_device
check_repo_exists(git_data)
File "build/tools/roomservice.py", line 52, in check_repo_exists
"roomservice".format(device, android_team))
Exception: ville not found in omnirom Github, exiting roomservice
build/core/product_config.mk:222: *** Can not locate config makefile for product "omni_ville". Stop.
** Don't have a product spec for: 'omni_ville'
** Do you have the right repo manifest?
mo976 said:
This is what I get guess I will have to go through it and sort out the missing things....
Which would you like? [aosp_arm-eng] 16
build/core/product_config.mk:222: *** Can not locate config makefile for product "omni_ville". Stop.
Traceback (most recent call last):
File "build/tools/roomservice.py", line 287, in
fetch_device(device)
File "build/tools/roomservice.py", line 255, in fetch_device
git_data = search_github_for_device(device)
File "build/tools/roomservice.py", line 68, in search_github_for_device
check_repo_exists(git_data)
File "build/tools/roomservice.py", line 52, in check_repo_exists
"roomservice".format(device, android_team))
Exception: ville not found in omnirom Github, exiting roomservice
build/core/product_config.mk:222: *** Can not locate config makefile for product "omni_ville". Stop.
** Don't have a product spec for: 'omni_ville'
** Do you have the right repo manifest?
Click to expand...
Click to collapse
Sounds like you have not added the omni_ville.mk in the vendor/omini/products folder. Add it by copying one that is already in their and edit it for your device
Sent from my Blade III using xda app-developers app
robt77 said:
Sounds like you have not added the omni_ville.mk in the vendor/omini/products folder. Add it by copying one that is already in their and edit it for your device
Click to expand...
Click to collapse
Vendor/omni/products folder does not exist. Device.mk files belong in /device/manufacturer/device folder.
chasmodo said:
Vendor/omni/products folder does not exist. Device.mk files belong in /device/manufacturer/device folder.
Click to expand...
Click to collapse
Do i need to create the above path? For me no manifacturer folder under device
matrixzone said:
Do i need to create the above path? For me no manifacturer folder under device
Click to expand...
Click to collapse
It SHOULD create it when you brunch your device. Mine auto-downloaded and created grouper, tilapia, and manta.
dibblebill said:
It SHOULD create it when you brunch your device. Mine auto-downloaded and created grouper, tilapia, and manta.
Click to expand...
Click to collapse
I am creating for d2att which is not currently supported
Sent from my SAMSUNG-SGH-I747 using Tapatalk

[GUIDE] Compile CM/AOSP for MOTO E [SOURCES FOR MOTO E]

How to Build CyanogenMod for Moto E (codename: condor)
What you’ll need
Add a comment to this section
A Moto E
A relatively recent computer (Linux distribution (http://www.linuxmint.com/) w/a reasonable amount of RAM and about 35 GB of free storage. The less RAM you have, the longer the build will take. Using SSDs results in faster builds than traditional hard drives.
A USB cable compatible with the Moto E (typically micro USB, but older devices may use mini USB or have a proprietary cable)
A decent Internet connection & reliable electricity
Some familiarity with basic Android operation and terminology. It would help if you’ve installed custom roms on other devices and are familiar with what a recovery image such as ClockworkMod is, for example. It may also be useful to know some basic command line concepts such as cd for “change directory”, the concept of directory hierarchies, that in Linux they are separated by /, etc.
Install the Build Packages
sudo apt-get install
Code:
bison build-essential curl flex git gnupg gperf libesd0-dev libncurses5-dev libsdl1.2-dev libwxgtk2.8-dev libxml2 libxml2-utils lzop openjdk-6-jdk openjdk-6-jre phablet-tools pngcrush schedtool squashfs-tools xsltproc zip zlib1g-dev
FOR 64 BITS
Code:
g++-multilib gcc-multilib lib32ncurses5-dev lib32readline-gplv2-dev lib32z1-dev
Create the directories
Code:
$ mkdir -p ~/bin
$ mkdir -p ~/android/system
Initialize the CyanogenMod source repository
Code:
$ cd ~/android/system/
$ repo init -u git://github.com/CyanogenMod/android.git -b cm-11.0
repo sync -c
Get prebuilt apps
Code:
cd ~/android/system/vendor/cm
./get-prebuilts
GET MOTOROLA FILE FOR BUILD
Code:
ALL SOURCES TO COMPILE CYANOGENMOD OR OTHER ROM FOR MOTO E....
[URL="https://github.com/xperiafan-xda?tab=repositories"]SOURCES[/URL]
ALL IS DONE
Code:
cd ~/android/system
. build/envsetup.sh
brunch condor
Thanks for the guide!!
All sources...
Im fork all soucers that you need to compile without problem..
All is already patched...
xperiafan13 said:
Im fork all soucers that you need to compile without problem..
All is already patched...
Click to expand...
Click to collapse
Dear Sir,
I tried to build a custom ROM for moto E with your sources. But im getting following error when. Could you please advice me to resolve this matter.
hardware/qcom/display/msm8960/libhwcomposer/hwc_utils.cpp: In function 'int qhwc::hwc_sync(hwc_context_t*, hwc_display_contents_1_t*, int, int)':
hardware/qcom/display/msm8960/libhwcomposer/hwc_utils.cpp:676:37: error: aggregate 'qhwc::hwc_sync(hwc_context_t*, hwc_display_contents_1_t*, int, int)::msm_rotator_buf_sync rotData' has incomplete type and cannot be defined
hardware/qcom/display/msm8960/libhwcomposer/hwc_utils.cpp:684:26: error: 'MSM_ROTATOR_IOCTL_BUFFER_SYNC' was not declared in this scope
make: *** [/home/nodeone/moto_e/cm11/out/target/product/condor/obj/SHARED_LIBRARIES/hwcomposer.msm8610_intermediates/hwc_utils.o] Error 1
make: *** Waiting for unfinished jobs....
roomservie.xml
============
<project name="xperiafan-xda/android_device_moto_condor" path="device/moto/condor" revision="cm-11.0" />
<project name="xperiafan-xda/android_device_qcom_common" path="device/moto/qcom-common" remote="github" />
<project name="xperiafan-xda/kernel_moto_condor" path="kernel/moto/condor" revision="Kit-Kat" />
<project name="JackpotClavin/android_vendor_moto_condor" path="vendor/moto/condor" revision="cm-11.0" />
Thank you,
Best Regards,
Lasith.
i have been trying to flash unofficial cm11 on moto e . everything works but when i open any app on it if just minimizes itself im not able to use any app on cm11
Dear sir,
I save that you have used following configuraion path. Could you please tell me from where i can get this. This is not in your repo.
vendor/carbon/config/common_phone.mk
Thank you,
Best Regards,
lasith.
lasithwaruna said:
Dear Sir,
I tried to build a custom ROM for moto E with your sources. But im getting following error when. Could you please advice me to resolve this matter.
hardware/qcom/display/msm8960/libhwcomposer/hwc_utils.cpp: In function 'int qhwc::hwc_sync(hwc_context_t*, hwc_display_contents_1_t*, int, int)':
hardware/qcom/display/msm8960/libhwcomposer/hwc_utils.cpp:676:37: error: aggregate 'qhwc::hwc_sync(hwc_context_t*, hwc_display_contents_1_t*, int, int)::msm_rotator_buf_sync rotData' has incomplete type and cannot be defined
hardware/qcom/display/msm8960/libhwcomposer/hwc_utils.cpp:684:26: error: 'MSM_ROTATOR_IOCTL_BUFFER_SYNC' was not declared in this scope
make: *** [/home/nodeone/moto_e/cm11/out/target/product/condor/obj/SHARED_LIBRARIES/hwcomposer.msm8610_intermediates/hwc_utils.o] Error 1
make: *** Waiting for unfinished jobs....
roomservie.xml
============
<project name="xperiafan-xda/android_device_moto_condor" path="device/moto/condor" revision="cm-11.0" />
<project name="xperiafan-xda/android_device_qcom_common" path="device/moto/qcom-common" remote="github" />
<project name="xperiafan-xda/kernel_moto_condor" path="kernel/moto/condor" revision="Kit-Kat" />
<project name="JackpotClavin/android_vendor_moto_condor" path="vendor/moto/condor" revision="cm-11.0" />
Thank you,
Best Regards,
Lasith.
Click to expand...
Click to collapse
check here, mmay be some others commits to do, idk.
https://github.com/OpenDesireProjec...1916e666f6cc1/include/linux/msm_rotator.h#L15
@satthak sharma
Do a nandroid backup .Go to recovery n wipe cache and dalvik cache then reboot see if this works.
I've been trying to build aokp rom from source over here!! Unfortunately i dont have the device tree ,vendor tree to go further with its compilation!! Can anyone help me here??
•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•

[Guide][Lollipop] How to Compile Your own ROM's for the Zenfone 2 Z00A/Z008

Well I've been getting a lot of questions on how users can take development into their own hands and start compiling your very own builds of your favorite ROM's. Because of this I have decided to write up a guide that will explain all the steps you need to take to compile a ROM.
NOTE: if your problem is that you cant get your build booting but you already know how to compile ROM's then skip to step 5
Step 1: Install A linux distribution
you will need to be on a linux distribution such as Ubuntu to compile android from source. You can do it on OSX as well but I don't have instructions for that because I haven't done it. So if you aren't on a linux distribution that will be the first thing you need to do. there's thousands of guides online on how to do that so go do that
Step 2: set up the build environment
you will need a lot of packages installed to successfully compile without any errors which ill list here
if you're using ubuntu or another debian based distro then type this in your terminal
Code:
sudo apt-get install bison build-essential curl flex git gnupg gperf libesd0-dev libncurses5-dev libsdl1.2-dev libwxgtk2.8-dev libxml2 libxml2-utils lzop openjdk-6-jdk openjdk-6-jre pngcrush schedtool squashfs-tools xsltproc zip zlib1g-dev g++-multilib gcc-multilib lib32ncurses5-dev lib32readline-gplv2-dev lib32z1-dev openjdk-7-jdk android androidsdk-uiautomatorviewer android-copyright android-src-vendor android-emulator android-tools-adb android-headers android-tools-adbd androidsdk-ddms android-tools-fastboot androidsdk-hierarchyviewer android-tools-fsutils androidsdk-traceview yasm
you probably dont need all of those installed but its better to have one extra package then one missing package.
now that you have all the packages needed. its time to set up repo so you are able to sync the sources. type this into your terminal
Code:
mkdir -p ~/bin
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
Step 3: getting the ROM sources
time to play the waiting game! For this part of the guide I will explain how to fetch cyanogenmod's sources.
in your home folder, make a folder called cyanogenmod. Now open the folder and open a terminal inside of it.
inside the terminal type
Code:
repo init -u git://github.com/CyanogenMod/android.git -b cm-12.1
now you might get an error that says something like "Error, tell me who you are!" so you are going to want to type
Code:
git config --global user.email [email protected]
then
Code:
git config --global user.name YourGithubName
you can use fake credentials but i recommend making a git and using your real information.
now run the command once more
Code:
repo init -u git://github.com/CyanogenMod/android.git -b cm-12.1
now it will properly set up the repository. After that type in
Code:
repo sync
and wait for all the sources to download. It will probably take a few hours so I suggest you go do something else and come back later.
If you get any errors while syncing type
Code:
repo sync -j1 -f
Step 4: set up Zenfone specific sources
now that you have cyanogenmods sources downloaded you will need to add zenfones sources.
you can find the zenfone sources here:
https://github.com/CM-zenfone2
for now go into the .repo folder inside your cyanogenmod folder. you may have to enable "show hidden folders" in your file managers settings to see it. inside of this folder create another one called local_manifests . inside this folder create a file called local_manifest.xml .
now open that xml file with a text editor and paste this into it
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<!-- REMOVE AOSP PROJECTS -->
<remove-project name="platform/hardware/intel/common/libmix" path="hardware/intel/common/libmix" />
<remove-project name="platform/hardware/intel/common/libstagefrighthw" path="hardware/intel/common/libstagefrighthw" />
<remove-project name="platform/hardware/intel/common/libva" path="hardware/intel/common/libva" />
<remove-project name="platform/hardware/intel/common/omx-components" path="hardware/intel/common/omx-components" />
<remove-project name="platform/hardware/intel/common/utils" path="hardware/intel/common/utils" />
<remove-project name="platform/hardware/intel/common/wrs_omxil_core" path="hardware/intel/common/wrs_omxil_core" />
<remove-project name="platform/hardware/intel/img/hwcomposer" path="hardware/intel/img/hwcomposer" />
<remove-project name="platform/hardware/intel/img/libdrm" path="hardware/intel/img/libdrm" />
<remove-project name="platform/hardware/intel/img/psb_video" path="hardware/intel/img/psb_video" />
<!-- ADD CM-ZENFONE2 PROJECTS -->
<project name="CM-zenfone2/android_hardware_intel_common_libmix" path="hardware/intel/common/libmix" remote="github" />
<project name="CM-zenfone2/android_hardware_intel_common_libstagefrighthw" path="hardware/intel/common/libstagefrighthw" remote="github" />
<project name="CM-zenfone2/android_hardware_intel_common_libva" path="hardware/intel/common/libva" remote="github" />
<project name="CM-zenfone2/android_hardware_intel_common_omx-components" path="hardware/intel/common/omx-components" remote="github" />
<project name="CM-zenfone2/android_hardware_intel_common_utils" path="hardware/intel/common/utils" remote="github" />
<project name="CM-zenfone2/android_hardware_intel_common_wrs_omxil_core" path="hardware/intel/common/wrs_omxil_core" remote="github" />
<project name="CM-zenfone2/android_hardware_intel_img_hwcomposer" path="hardware/intel/img/hwcomposer" remote="github" />
<project name="CM-zenfone2/android_hardware_intel_img_libdrm" path="hardware/intel/img/libdrm" remote="github" />
<project name="CM-zenfone2/android_hardware_intel_img_psb_video" path="hardware/intel/img/psb_video" remote="github" />
<!-- CM-ZENFONE2 DEVICE PROJECTS -->
<project name="CM-zenfone2/android_device_asus_Z00A" path="device/asus/Z00A" remote="github" />
<project name="CM-zenfone2/android_device_asus_Z008" path="device/asus/Z008" remote="github" />
<project name="CM-zenfone2/android_device_asus_mofd-common" path="device/asus/mofd-common" remote="github" />
<project name="CM-zenfone2/android_kernel_asus_moorefield" path="kernel/asus/moorefield" remote="github" />
<project name="CM-zenfone2/proprietary_vendor_asus" path="vendor/asus" remote="github" />
</manifest>
now save and close that xml file. go back to your terminal in the cyanogenmod folder and run
Code:
repo sync -j1 --force-sync
this will now pull in the zenfone files you need.
Zenfone sources are now synced into the official CM github so these steps aren't needed. the only extra thing to do now is:
in your vendor folder
Code:
git clone https://github.com/TheMuppets/proprietary_vendor_asus.git -b cm-12.1
then rename the folder to "asus"
Step 5: adding device specific commits
this is probably the step that most people don't do and therefore get builds that won't boot. You need to add 4 A bunch of very important commits to get your ROM properly booting.
commit 1
go inside of your external/tinyalsa folder and open a terminal then type in:
Code:
git fetch http://review.cyanogenmod.org/CyanogenMod/android_external_tinyalsa refs/changes/43/103343/1 && git cherry-pick FETCH_HEAD
now close the terminal and go to the folder hardware/intel/img/hwcomposer and open a terminal. type this in:
Code:
git fetch http://review.cyanogenmod.org/CyanogenMod/android_hardware_intel_img_hwcomposer refs/changes/82/117182/1 && git cherry-pick FETCH_HEAD
and
Code:
git fetch http://review.cyanogenmod.org/CyanogenMod/android_hardware_intel_img_hwcomposer refs/changes/83/117183/1 && git cherry-pick FETCH_HEAD
open up hardware/intel/img/libdrm and paste this in the terminal:
Code:
git fetch http://review.cyanogenmod.org/CyanogenMod/android_hardware_intel_img_libdrm refs/changes/01/117201/1 && git cherry-pick FETCH_HEAD
put this in hardware/intel/common/libmix
Code:
git fetch http://review.cyanogenmod.org/CyanogenMod/android_hardware_intel_common_libmix refs/changes/91/117191/1 && git cherry-pick FETCH_HEAD
now go into the folder hardware/ril. Open the terminal and type:
Code:
git fetch http://review.cyanogenmod.org/CyanogenMod/android_hardware_ril refs/changes/25/102725/2 && git cherry-pick FETCH_HEAD
now open the frameworks/native folder and type in the terminal:
Code:
git fetch http://review.cyanogenmod.org/CyanogenMod/android_frameworks_native refs/changes/36/108636/2 && git cherry-pick FETCH_HEAD
these are the 4 commits that those commands are adding for anybody interested:
https://github.com/TeamEOS/system_core/commit/870fff040f14f4a659807d74419300ef0f223a30
https://github.com/TeamEOS/system_core/commit/7fb271f606394692cbf303f3e7d4889e4ff04369
https://github.com/TeamEOS/hardware_ril/commit/bb9b4e567e5bba35ae380ee0a56833ba385af654
https://github.com/TeamEOS/external_tinyalsa/commit/3bba475d5ad4db3f813ff121ff3d195043307f46
NOTE:New commits for the quick charging UI have been added that you need to add. check post 3 for them
now we have set everything we need properly to build the rom!
Step 6: Start the build
finally, time to start building! open a terminal in the cyanogenmod folder and type
Code:
. build/envsetup.sh
now type
Code:
brunch Z00A
for Z00A or
Code:
brunch Z008
for Z008.
this will also take a while depending on your computers specs (around 4 hours).
When its done you will find the zip in the folder out/target/product/Z00A (or Z008).
you can now put this zip on your device and flash away
to update sources and make a new build you can do repo sync and step 5 and 6 again
I hope this guide can help motivate people interested in building to give it a go as well as help grow the community even more then it already is! feel free to post any questions you have here and I will help to the best of my ability.
reserved
I will expand on this more but to build a rom other then cyanogenmod, (for example EOS) you would go into the device/asus/Z00A folder and change the cm.mk file to eos.mk as well as everything inside that file that refers to cyanogenmod to eos. most ROM's you do something similar to that but instead of changing to eos you change it to the rom you are building. Refer to other device sources of the ROM you want to build as a guide to what to do
For quick charging UI
paste this command into your frameworks/native folder
Code:
git fetch http://review.cyanogenmod.org/CyanogenMod/android_frameworks_native refs/changes/64/109364/3 && git cherry-pick FETCH_HEAD
then paste this into your frameworks/base folder
Code:
git fetch http://review.cyanogenmod.org/CyanogenMod/android_frameworks_base refs/changes/66/109366/7 && git cherry-pick FETCH_HEAD
and lastly paste this into system/core
Code:
git fetch http://review.cyanogenmod.org/CyanogenMod/android_system_core refs/changes/65/109365/6 && git cherry-pick FETCH_HEAD
Thanks bro, I started this but I'm very noob xD
Hebelm16 said:
Thanks bro, I started this but I'm very noob xD
Enviado desde mi ASUS_Z00AD mediante Tapatalk
Click to expand...
Click to collapse
Nice! No worries we all start somewhere
Great bro thanks
Good Job Bro Thanks
Niropa said:
Nice! No worries we all start somewhere
Click to expand...
Click to collapse
I swear I was looking for this type of teacher from a very very long time..
And when you said it will take a long time, how much is the data to be downloaded? Actually the speed differs here so I will estimate myself how much time it will take
S#@DY said:
I swear I was looking for this type of teacher from a very very long time..
And when you said it will take a long time, how much is the data to be downloaded? Actually the speed differs here so I will estimate myself how much time it will take
Click to expand...
Click to collapse
Generally its changing but i downloaded 40gb for blisspop know i downloading euphoria os repo we will see the size
S#@DY said:
I swear I was looking for this type of teacher from a very very long time..
And when you said it will take a long time, how much is the data to be downloaded? Actually the speed differs here so I will estimate myself how much time it will take
Click to expand...
Click to collapse
It will be around 50gb so compare that to your internet speed
Niropa said:
It will be around 50gb so compare that to your internet speed
Click to expand...
Click to collapse
That would take 2 days
If I have any free time next month am going to try to learn all this rom compiling etc and build a temasek based rom.
GGL-Daz said:
If I have any free time next month am going to try to learn all this rom compiling etc and build a temasek based rom.
Click to expand...
Click to collapse
Great to hear! Temasek is actually very easy, you would follow this guide exactly but instead of syncing cyanogenmods sources you would sync temaseks which you can find on his github
Sorry @Niropa how add source? (step 4)
Hebelm16 said:
Sorry @Niropa how add source? (step 4)
Click to expand...
Click to collapse
what are you having trouble with?
also there might be an issue with the steps I showed to cherry-pick the commits so im going to update it right now
Code:
. build/envsetup.sh
lunch <rom name>_<device model>-userdebug
make bacon -j8
This works as well and eats your cpu little less compared to brunch. You could add in the OP @Niropa
Vatsal said:
Code:
. build/envsetup.sh
lunch <rom name>_<device model>-userdebug
make bacon -j8
This works as well and eats your cpu little less compared to brunch. You could add in the OP @Niropa
Click to expand...
Click to collapse
right because brunch uses mka instead of make. mka uses all cores/threads available so your build will finish faster
hi noob here..
i have following steps in the first post.
however, i got error like below:
device/asus/mofd-common/libhealthd/healthd_board_mofd_v1.cpp: In function 'int mapBatteryStatusString(const char*)':
device/asus/mofd-common/libhealthd/healthd_board_mofd_v1.cpp:26:12: error: 'HEALTHD_MAP_CONTINUE_SEARCH' was not declared in this scope
return HEALTHD_MAP_CONTINUE_SEARCH;
^
device/asus/mofd-common/libhealthd/healthd_board_mofd_v1.cpp: In function 'int mapChargeRateString(const char*)':
device/asus/mofd-common/libhealthd/healthd_board_mofd_v1.cpp:32:16: error: 'BATTERY_CHARGE_RATE_FAST_CHARGING' is not a member of 'android'
return android::BATTERY_CHARGE_RATE_FAST_CHARGING;
^
device/asus/mofd-common/libhealthd/healthd_board_mofd_v1.cpp:34:16: error: 'BATTERY_CHARGE_RATE_UNKNOWN' is not a member of 'android'
return android::BATTERY_CHARGE_RATE_UNKNOWN;
^
device/asus/mofd-common/libhealthd/healthd_board_mofd_v1.cpp: In function 'void healthd_board_init(healthd_config*)':
device/asus/mofd-common/libhealthd/healthd_board_mofd_v1.cpp:39:13: error: 'struct healthd_config' has no member named 'batteryChargeRatePath'
config->batteryChargeRatePath = "/sys/class/power_supply/battery/status";
^
device/asus/mofd-common/libhealthd/healthd_board_mofd_v1.cpp:40:13: error: 'struct healthd_config' has no member named 'mapBatteryStatusString'
config->mapBatteryStatusString = mapBatteryStatusString;
^
device/asus/mofd-common/libhealthd/healthd_board_mofd_v1.cpp:41:13: error: 'struct healthd_config' has no member named 'mapChargeRateString'
config->mapChargeRateString = mapChargeRateString;
^
make: *** [/home/myusuf1810/cyanogenmod/out/target/product/Z00A/obj/STATIC_LIBRARIES/libhealthd.mofd_v1_intermediates/healthd_board_mofd_v1.o] Error 1
make: *** Waiting for unfinished jobs....
#### make failed to build some targets (03:29 (mm:ss)) ####
Click to expand...
Click to collapse
i retried the whole steps on new folder, get the same result.
is it the code or my mistake for missing some steps?
ucupsz said:
hi noob here..
i have following steps in the first post.
however, i got error like below:
i retried the whole steps on new folder, get the same result.
is it the code or my mistake for missing some steps?
Click to expand...
Click to collapse
hey! no worries you did nothing wrong. because of the new quick charging UI the cm zenfone team added theres a few new things you have to cherry-pick.
paste this command into your frameworks/native folder
Code:
git fetch http://review.teameos.org/frameworks_native refs/changes/14/914/1 && git cherry-pick FETCH_HEAD
then paste this into your frameworks/base folder
Code:
git fetch http://review.teameos.org/frameworks_base refs/changes/16/916/1 && git cherry-pick FETCH_HEAD
and lastly paste this into system/core
Code:
git fetch http://review.teameos.org/system_core refs/changes/15/915/1 && git cherry-pick FETCH_HEAD
wow!! thanks so much Niropa! it works!
took 3 hrs on my rig )
so, i try to go to review.teameos.org and searching for libhealthd which is shown in error message. and get to the changes you shown. (914-916).
however, i'm a bit lost on how to get the link "refs/changes/14/914/1" "refs/changes/15/915/1" and "refs/changes/16/916/1" to be inputted to the command line.
from the searching, what i found was numbering 914, 915 and 916.
so if i had similar error (some update on the code), can you show me how i can get to "refs/changes......"

policy_scan.cpp : aborted (core dumped)

Edit: IMPORTANT !
Latest version of glibc, the entire C library (2.22-3 on Arch Linux), seems to brakes things for android build: as reported in this other thread by @Poesini (and many others in same thread), previous version of glibc should be right, but the newest isn't OK on Arch. So please, when you updating your system, DO NOT UPDATE GLIBC!. (Downgrading still possible, but isn't the funniest part: -> https://bbs.archlinux.org/viewtopic.php?id=200845). Others Linux Distros (like Ubuntu for example) should be good, as they have not update glibc yet, but PLEASE be aware about this problem!
Thanks @Trafalgar Square for taking the time to help me !
HI all!
Well, have a little problem over here. I'm trying to compile from sources Temasek (6.0.1) for OnePlus Two, with this repo:
Code:
repo init -u https://github.com/temasek/android.git -b cm-13.0
(thanks @temasek)
and this roomservice.xml :
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="Trafalgar-Square/android_device_oneplus_oneplus2" path="device/oneplus/oneplus2" remote="github" revision="temasek-mm6.0" />
<project name="benschhold/android_vendor_oneplus" path="vendor/oneplus" remote="github" revision="cm-13.0" />
<project name="benschhold/android_kernel_oneplus_msm8994" path="kernel/oneplus/msm8994" remote="github" revision="cm-13.0" />
<project name="CyanogenMod/android_external_stlport" path="external/stlport" remote="github" revision="cm-13.0" />
<project name="CyanogenMod/android_external_sony_boringssl-compat" path="external/sony/boringssl-compat" remote="github" revision="cm-13.0" />
<project name="benschhold/android_device_oppo_common" path="device/oppo/common" remote="github" revision="cm-13.0" />
</manifest>
(Thanks @Trafalgar Square by the way).
Well, every time I execute "lunch cm_oneplus2-userdebug" followed by "breakfast cm_oneplus2-userdebug", it's end in:
Code:
flex-2.5.39: loadlocale.c:131: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_COLLATE) / sizeof (_nl_value_type_LC_COLLATE[0]))' failed.
touch /home/bertac_t/android/temasek/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.hpp
build/core/binary.mk:662: recipe for target '/home/bertac_t/android/temasek/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_scan.cpp' failed
[COLOR="Red"]make: *** [/home/bertac_t/android/temasek/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_scan.cpp] Aborted (core dumped)[/COLOR]
make: *** Waiting for unfinished jobs....
echo '#ifndef 'policy_parse_h > /home/bertac_t/android/temasek/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.h
Lex: libsepol <= external/selinux/libsepol/cil/src/cil_lexer.l
echo '#define 'policy_parse_h >> /home/bertac_t/android/temasek/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.h
flex-2.5.39: loadlocale.c:131: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_COLLATE) / sizeof (_nl_value_type_LC_COLLATE[0]))' failed.
build/core/binary.mk:662: recipe for target '/home/bertac_t/android/temasek/out/host/linux-x86/obj/STATIC_LIBRARIES/libsepol_intermediates/cil/src/cil_lexer.cpp' failed
[COLOR="Red"]make: *** [/home/bertac_t/android/temasek/out/host/linux-x86/obj/STATIC_LIBRARIES/libsepol_intermediates/cil/src/cil_lexer.cpp] Aborted (core dumped)[/COLOR]
cat /home/bertac_t/android/temasek/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.hpp >> /home/bertac_t/android/temasek/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.h
echo '#endif' >> /home/bertac_t/android/temasek/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.h
make: Leaving directory '/home/bertac_t/android/temasek'
where sentences highlight in red seems to be the problem.
I found THIS on XDA, which seems to be a glibc problem. But, well, I've tried to follow the "fix" gave by @martinoff, but no sign of a build_rom script in my directories...
Thanks to all who will help me !
Instructions
Hello and thank you for using Q/A,
. build/envsetup.sh
make clobber
breakfast oneplus2
brunch oneplus2
Kind regards
Trafalgar Square
Trafalgar Square said:
Hello and thank you for using Q/A,
. build/envsetup.sh
make clobber
breakfast oneplus2
brunch oneplus2
Kind regards
Trafalgar Square
Click to expand...
Click to collapse
First, thanks for your answer mate, but still the same error...
New
Hi again,
please try this:
https://raw.githubusercontent.com/Trafalgar-Square/roomservice/temasek-mm6.0/oneplus2.xml
Add this to the end of your cm.mk:
Code:
# Custom unofficial build tag
TARGET_UNOFFICIAL_BUILD_ID := temasek
repo sync --force-sync
make clean
. build/envsetup.sh
breakfast oneplus2
brunch oneplus2
Kind regards
Trafalgar Square
AICP, CyanPop and Temasek maintainer
Up ! Read first post PLEASE !
@Darth, you can close this thread, I just up so people can be informed about this problem.
Thanks man !
Thread closed per OP request. :good:

Categories

Resources