FORUMS

CloudPlayer: DIY HiFi Music Streaming Solution

In our Helpful Guide to Music Streaming Services, we mentioned several different services … more

Optimize Battery Life with This Useful App

Battery life is an important aspect of your smartphone, especially if you use it for more … more

The OnePlus 2 & The Year of Smartphone Compromises

We are very close to entering the last third of 2015, and we have now seen many of … more

OnePlus 2 Teardown, Major Android Vulnerability – XDA TV

The OnePlus 2 has been officially released. That and much more news is … more

Compilation Assistance

669 posts
Thanks Meter: 212
 
Post Reply Subscribe to Thread Email Thread
Command I'm using to start compiling:
Code:
cd android/omni/ && repo sync -f --no-clone-bundle && . build/envsetup.sh && lunch omni_geespr-userdebug
Output:
Code:
including device/generic/armv7-a-neon/vendorsetup.sh
including device/generic/mips/vendorsetup.sh
including device/generic/x86/vendorsetup.sh
including device/lge/geespr/vendorsetup.sh
including sdk/bash_completion/adb.bash

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.2
TARGET_PRODUCT=omni_geespr
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.13.0-6-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=KOT49H
OUT_DIR=/home/bmos/android/omni/out
============================================
Last edited by VoluntaryMan; 3rd February 2014 at 03:20 PM.
 
 
3rd February 2014, 03:11 AM |#2  
Senior Member
Thanks Meter: 2,075
 
More
Quote:
Originally Posted by VoluntaryMan

Command I'm using to start compiling:

Code:
cd android/omni/ && repo sync -f --no-clone-bundle && . build/envsetup.sh && lunch omni_geespr-userdebug

Try
Code:
lunch geespr
instead. Also, I use brunch instead of lunch, and I've found it useful to prefix the command with 'time' (so you can see how long it takes), and end it with '2> build.log' so you can review the log for errors instead of reading the terminal. For example:

Code:
time brunch geespr 2> build.log
The Following User Says Thank You to Pons For This Useful Post: [ View ]
3rd February 2014, 03:18 AM |#3  
VoluntaryMan's Avatar
OP Senior Member
Flag Cumberland Center, ME
Thanks Meter: 212
 
More
Quote:
Originally Posted by PonsAsinorem

Try

Code:
lunch geespr
instead. Also, I use brunch instead of lunch, and I've found it useful to prefix the command with 'time' (so you can see how long it takes), and end it with '2> build.log' so you can review the log for errors instead of reading the terminal. For example:

Code:
time brunch geespr 2> build.log

That's got it working, thanks
Last edited by VoluntaryMan; 3rd February 2014 at 03:23 PM.
3rd February 2014, 07:07 PM |#4  
Senior Member
Flag Paradise City
Thanks Meter: 243
 
More
can i hijack a bit your thread?
i try to build omnirom 4.3jb for the official supported xperia T (mint).
i must say, under linux mint i was able to build 4.4kitkat homemade.

now iam on elementary os (ubuntu 12.04) and try to build 4.3.
i have installed jdk1.6 (oracle)
everything should be set up correctly, atleast iam quiet sure about it^^

roomservice.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!--Please do not manually edit this file-->
<manifest>
  <project name="android_device_sony_mint" path="device/sony/mint" remote="omnirom" revision="android-4.3" />
  <project name="omnirom/android_device_sony_common" path="device/sony/common" remote="github" revision="android-4.3" />
  <project name="omnirom/android_device_sony_qcom-common" path="device/sony/qcom-common" remote="github" revision="android-4.3" />
  <project name="omnirom/android_device_sony_blue-common" path="device/sony/blue-common" remote="github" revision="android-4.3" />
  <project name="omnirom/android_kernel_sony_msm8960" path="kernel/sony/msm8960" remote="github" revision="android-4.3" />
  <project name="omnirom/android_hardware_sony_DASH" path="hardware/sony/DASH" remote="github" revision="android-4.3" />
</manifest>
local_manifest.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
  <project path="vendor/sony" name="DonkeyCoyote/proprietary_vendor_sony" remote="github" revision="android-4.3" />
  <remove-project name="device/samsung/toro" />
  <remove-project name="device/asus/deb" />
  <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_lge_mako" />
  <remove-project name="android_device_samsung_maguro" />
  <remove-project name="android_device_samsung_manta" />
  <remove-project name="device/samsung/toroplus" />
  <remove-project name="device/samsung/tuna" />

</manifest>
no errors at repo sync.


. build/envsetup.sh
Code:
including device/generic/armv7-a-neon/vendorsetup.sh
including device/generic/mips/vendorsetup.sh
including device/generic/x86/vendorsetup.sh
including device/samsung_slsi/arndale/vendorsetup.sh
including device/sony/mint/vendorsetup.sh
including device/ti/panda/vendorsetup.sh
including sdk/bash_completion/adb.bash
is it normal that there is samsung/ti stuff written?

this is the important output for errors, i think xD
at the beginning many warnings in build/core/ .mk files (old commands for target...ignored)
"brunch mint"--->
Code:
build/core/base_rules.mk:520: Warnung: Die Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/bin/fsck_msdos« werden überschrieben
bootable/recovery/dosfstools/Android.mk:21: Warnung: Alte Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/bin/fsck_msdos« werden ignoriert
build/core/copy_headers.mk:15: Warnung: Die Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/obj/include/qcom/display-caf/copybit.h« werden überschrieben
build/core/copy_headers.mk:15: Warnung: Alte Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/obj/include/qcom/display-caf/copybit.h« werden ignoriert
build/core/copy_headers.mk:15: Warnung: Die Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/obj/include/qcom/display-caf/copybit_priv.h« werden überschrieben
build/core/copy_headers.mk:15: Warnung: Alte Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/obj/include/qcom/display-caf/copybit_priv.h« werden ignoriert
PRODUCT_COPY_FILES device/generic/goldfish/data/etc/apns-conf.xml:system/etc/apns-conf.xml ignored.
build/core/Makefile:70: Warnung: Die Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/etc/permissions/android.software.live_wallpaper.xml« werden überschrieben
build/core/base_rules.mk:520: Warnung: Alte Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/etc/permissions/android.software.live_wallpaper.xml« werden ignoriert
build/core/Makefile:70: Warnung: Die Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/lib/libMPU3050.so« werden überschrieben
build/core/base_rules.mk:520: Warnung: Alte Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/lib/libMPU3050.so« werden ignoriert
build/core/Makefile:70: Warnung: Die Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/lib/libfmradio.so« werden überschrieben
build/core/base_rules.mk:520: Warnung: Alte Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/lib/libfmradio.so« werden ignoriert
build/core/Makefile:70: Warnung: Die Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/lib/libmllite.so« werden überschrieben
build/core/base_rules.mk:520: Warnung: Alte Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/lib/libmllite.so« werden ignoriert
build/core/Makefile:70: Warnung: Die Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/lib/libmlplatform.so« werden überschrieben
build/core/base_rules.mk:520: Warnung: Alte Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/lib/libmlplatform.so« werden ignoriert
build/core/Makefile:70: Warnung: Die Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/lib/libsensors_akm8972.so« werden überschrieben
build/core/base_rules.mk:520: Warnung: Alte Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/lib/libsensors_akm8972.so« werden ignoriert
PRODUCT_COPY_FILES vendor/sony/mint/proprietary/lib/libsysmon_idd.so:system/lib/libsysmon_idd.so ignored.
No private recovery resources for TARGET_DEVICE mint
make  -C kernel/sony/msm8960 O=/home/hubertus/android/omni/out/target/product/mint/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/hubertus/android/omni/prebuilts/misc/linux-x86/ccache/ccache /home/hubertus/android/omni/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-" headers_install
host C: acp <= build/tools/acp/acp.c
make[1]: Betrete Verzeichnis '/home/hubertus/android/omni/kernel/sony/msm8960'
host StaticLib: libhost (/home/hubertus/android/omni/out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/libhost.a)
host Executable: mkbootfs (/home/hubertus/android/omni/out/host/linux-x86/obj/EXECUTABLES/mkbootfs_intermediates/mkbootfs)
/bin/bash: m4: Kommando nicht gefunden.
make: *** [/home/hubertus/android/omni/out/target/product/mint/obj/ETC/sepolicy_intermediates/policy.conf] Fehler 127
make: *** Datei »/home/hubertus/android/omni/out/target/product/mint/obj/ETC/sepolicy_intermediates/policy.conf« wird gelöscht
make: *** Warte auf noch nicht beendete Prozesse...
  GEN     /home/hubertus/android/omni/out/target/product/mint/obj/KERNEL_OBJ/Makefile
#
# configuration written to .config
#
make[1]: Verlasse Verzeichnis '/home/hubertus/android/omni/kernel/sony/msm8960'
it ends with "exit directory '/home/hubertus/android/omni/kernel/sony/msm8960'

is there something wrong with my .mk files, or is it a path error? what can be the error 127?

i looked around xda, but i not found comprehensive posts.

how about my roomservice.xml/local_manifest.xml look? should be allright?

thanks for reading
Last edited by immerblind; 3rd February 2014 at 07:14 PM.
5th February 2014, 07:43 AM |#5  
Senior Member
Flag Paradise City
Thanks Meter: 243
 
More
ok, i fixed it myself. if someone has a similar problem, maybe that will help...
i found out something was wrong inside my .bashrc file. iam not sure if that can cause such problems? but after rework that file to the usual paths we need for compilation, everything worked fine building 4.3omnirom
in my .bashrc i ****ed up the export PATH=${PATH}:~/bin and some more lines. after changing to the right line, everything fine
18th March 2014, 04:45 PM |#6  
thomas1991_12's Avatar
Senior Member
Flag Liempde
Thanks Meter: 2,045
 
Donate to Me
More
Quote:
Originally Posted by immerblind

can i hijack a bit your thread?
i try to build omnirom 4.3jb for the official supported xperia T (mint).
i must say, under linux mint i was able to build 4.4kitkat homemade.

now iam on elementary os (ubuntu 12.04) and try to build 4.3.
i have installed jdk1.6 (oracle)
everything should be set up correctly, atleast iam quiet sure about it^^

roomservice.xml

Code:
<?xml version="1.0" encoding="UTF-8"?>
<!--Please do not manually edit this file-->
<manifest>
  <project name="android_device_sony_mint" path="device/sony/mint" remote="omnirom" revision="android-4.3" />
  <project name="omnirom/android_device_sony_common" path="device/sony/common" remote="github" revision="android-4.3" />
  <project name="omnirom/android_device_sony_qcom-common" path="device/sony/qcom-common" remote="github" revision="android-4.3" />
  <project name="omnirom/android_device_sony_blue-common" path="device/sony/blue-common" remote="github" revision="android-4.3" />
  <project name="omnirom/android_kernel_sony_msm8960" path="kernel/sony/msm8960" remote="github" revision="android-4.3" />
  <project name="omnirom/android_hardware_sony_DASH" path="hardware/sony/DASH" remote="github" revision="android-4.3" />
</manifest>
local_manifest.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
  <project path="vendor/sony" name="DonkeyCoyote/proprietary_vendor_sony" remote="github" revision="android-4.3" />
  <remove-project name="device/samsung/toro" />
  <remove-project name="device/asus/deb" />
  <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_lge_mako" />
  <remove-project name="android_device_samsung_maguro" />
  <remove-project name="android_device_samsung_manta" />
  <remove-project name="device/samsung/toroplus" />
  <remove-project name="device/samsung/tuna" />

</manifest>
no errors at repo sync.


. build/envsetup.sh
Code:
including device/generic/armv7-a-neon/vendorsetup.sh
including device/generic/mips/vendorsetup.sh
including device/generic/x86/vendorsetup.sh
including device/samsung_slsi/arndale/vendorsetup.sh
including device/sony/mint/vendorsetup.sh
including device/ti/panda/vendorsetup.sh
including sdk/bash_completion/adb.bash
is it normal that there is samsung/ti stuff written?

this is the important output for errors, i think xD
at the beginning many warnings in build/core/ .mk files (old commands for target...ignored)
"brunch mint"--->
Code:
build/core/base_rules.mk:520: Warnung: Die Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/bin/fsck_msdos« werden überschrieben
bootable/recovery/dosfstools/Android.mk:21: Warnung: Alte Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/bin/fsck_msdos« werden ignoriert
build/core/copy_headers.mk:15: Warnung: Die Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/obj/include/qcom/display-caf/copybit.h« werden überschrieben
build/core/copy_headers.mk:15: Warnung: Alte Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/obj/include/qcom/display-caf/copybit.h« werden ignoriert
build/core/copy_headers.mk:15: Warnung: Die Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/obj/include/qcom/display-caf/copybit_priv.h« werden überschrieben
build/core/copy_headers.mk:15: Warnung: Alte Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/obj/include/qcom/display-caf/copybit_priv.h« werden ignoriert
PRODUCT_COPY_FILES device/generic/goldfish/data/etc/apns-conf.xml:system/etc/apns-conf.xml ignored.
build/core/Makefile:70: Warnung: Die Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/etc/permissions/android.software.live_wallpaper.xml« werden überschrieben
build/core/base_rules.mk:520: Warnung: Alte Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/etc/permissions/android.software.live_wallpaper.xml« werden ignoriert
build/core/Makefile:70: Warnung: Die Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/lib/libMPU3050.so« werden überschrieben
build/core/base_rules.mk:520: Warnung: Alte Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/lib/libMPU3050.so« werden ignoriert
build/core/Makefile:70: Warnung: Die Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/lib/libfmradio.so« werden überschrieben
build/core/base_rules.mk:520: Warnung: Alte Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/lib/libfmradio.so« werden ignoriert
build/core/Makefile:70: Warnung: Die Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/lib/libmllite.so« werden überschrieben
build/core/base_rules.mk:520: Warnung: Alte Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/lib/libmllite.so« werden ignoriert
build/core/Makefile:70: Warnung: Die Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/lib/libmlplatform.so« werden überschrieben
build/core/base_rules.mk:520: Warnung: Alte Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/lib/libmlplatform.so« werden ignoriert
build/core/Makefile:70: Warnung: Die Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/lib/libsensors_akm8972.so« werden überschrieben
build/core/base_rules.mk:520: Warnung: Alte Befehle für das Ziel »/home/hubertus/android/omni/out/target/product/mint/system/lib/libsensors_akm8972.so« werden ignoriert
PRODUCT_COPY_FILES vendor/sony/mint/proprietary/lib/libsysmon_idd.so:system/lib/libsysmon_idd.so ignored.
No private recovery resources for TARGET_DEVICE mint
make  -C kernel/sony/msm8960 O=/home/hubertus/android/omni/out/target/product/mint/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/hubertus/android/omni/prebuilts/misc/linux-x86/ccache/ccache /home/hubertus/android/omni/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-" headers_install
host C: acp <= build/tools/acp/acp.c
make[1]: Betrete Verzeichnis '/home/hubertus/android/omni/kernel/sony/msm8960'
host StaticLib: libhost (/home/hubertus/android/omni/out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/libhost.a)
host Executable: mkbootfs (/home/hubertus/android/omni/out/host/linux-x86/obj/EXECUTABLES/mkbootfs_intermediates/mkbootfs)
/bin/bash: m4: Kommando nicht gefunden.
make: *** [/home/hubertus/android/omni/out/target/product/mint/obj/ETC/sepolicy_intermediates/policy.conf] Fehler 127
make: *** Datei »/home/hubertus/android/omni/out/target/product/mint/obj/ETC/sepolicy_intermediates/policy.conf« wird gelöscht
make: *** Warte auf noch nicht beendete Prozesse...
  GEN     /home/hubertus/android/omni/out/target/product/mint/obj/KERNEL_OBJ/Makefile
#
# configuration written to .config
#
make[1]: Verlasse Verzeichnis '/home/hubertus/android/omni/kernel/sony/msm8960'
it ends with "exit directory '/home/hubertus/android/omni/kernel/sony/msm8960'

is there something wrong with my .mk files, or is it a path error? what can be the error 127?

i looked around xda, but i not found comprehensive posts.

how about my roomservice.xml/local_manifest.xml look? should be allright?

thanks for reading

sorry for the late response, but it seems you need the 'm4' binary. try;
sudo apt-get install m4
The Following User Says Thank You to thomas1991_12 For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes