[HOW-TO]Build from source, Tutorial and Troubleshooting - Galaxy S 4 General

This is the thread for the tutorial about how to build android from source and it is simplified version of what google described Here and also you can post your build errors here and I will try to solve it if I can.
You should have some basic knowledge about Ubuntu system and how to work with it though if you don't understand something you can always ask in this thread.
I am starting this thread by requests I have got from this device's user though I don't have device, this process is fairly common for all devices and as you all know I have build MoKee Open source for i9500.
Let's start with tutorial :
Requirement :
You will need Ubuntu 64-bit environment running on your computer on either virtual machine or either as a separate OS
Some knowledge about repo, java, language C/C++, Shell and basic command-prompt
Lots of patience
A good internet connection (Don't do this if you have less than 512kb/s internet speed otherwise it will take forever to finish this process)
A minimum of 80GB of space on your ubuntu partition (Single build)
1. Installing required package for android building
Java JDK6 or later version
Code:
sudo apt-get install openjdk-6-jdk
Install Python
Code:
sudo apt-get install python
Install android sdk and sdk tools
Download android sdk from: http://developer.android.com/sdk/index.html
Extract it to your home directory and rename it to android-sdk
At home press ctrl+h to see hidden files and folder
Open .bashrc file with text editor
Add following lines at the end of it
Code:
# Android tools
export PATH=${PATH}:~/android-sdk/tools
export PATH=${PATH}:~/android-sdk/platform-tools
export PATH=${PATH}:~/bin
Go to your home folder and open .profile file with text editor
Add following lines at the bottom of that file.
Code:
PATH="$HOME/android-sdk/tools:$HOME/android-sdk/platform-tools:$PATH"
Now you have successfully install android-sdk
To check open new terminal and type android and you will see android-sdk UI
Installing other required libs and package for build
For all ubuntu variant
Code:
sudo apt-get install git-core gnupg flex bison gperf build-essential \
zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs \
x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev \
libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown \ libxml2-utils xsltproc
For Ubuntu 10.10 only
Code:
sudo ln -s /usr/lib32/mesa/libGL.so.1 /usr/lib32/mesa/libGL.so
For ubuntu 11.10 only
Code:
sudo apt-get install libx11-dev:i386
For ubuntu 12.10 only
Code:
sudo apt-get install git gnupg flex bison gperf build-essential \
zip curl libc6-dev libncurses5-dev x11proto-core-dev \
libx11-dev libreadline6-dev libgl1-mesa-glx \
libgl1-mesa-dev g++-multilib mingw32 tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev
sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
For Ubuntu 13.04 and 13.10 only
Code:
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev zlib1g-dev:i386 libc6-dev lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 lib32z-dev libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc readline-common libreadline6-dev libreadline6 lib32readline-gplv2-dev libncurses5-dev lib32readline5 lib32readline6 libreadline-dev libreadline6-dev:i386 libreadline6:i386 bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev lib32bz2-dev libsdl1.2-dev libesd0-dev squashfs-tools pngcrush schedtool libwxgtk2.8-dev python
sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
Now we have to configure USB for all devices
Code:
gksudo gedit /etc/udev/rules.d/51-android.rules
That will open a file named 51-android.rules, Copy paste following usb configuration to that file and save it and close it
Code:
#Acer
SUBSYSTEM=="usb", ATTR{idVendor}=="0502", MODE="0666"
#ASUS
SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", MODE="0666"
#Dell
SUBSYSTEM=="usb", ATTR{idVendor}=="413c", MODE="0666"
#Foxconn
SUBSYSTEM=="usb", ATTR{idVendor}=="0489", MODE="0666"
#Garmin-Asus
SUBSYSTEM=="usb", ATTR{idVendor}=="091E", MODE="0666"
#Google
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666"
#HTC
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666"
#Huawei
SUBSYSTEM=="usb", ATTR{idVendor}=="12d1", MODE="0666"
#K-Touch
SUBSYSTEM=="usb", ATTR{idVendor}=="24e3", MODE="0666"
#KT Tech
SUBSYSTEM=="usb", ATTR{idVendor}=="2116", MODE="0666"
#Kyocera
SUBSYSTEM=="usb", ATTR{idVendor}=="0482", MODE="0666"
#Lenevo
SUBSYSTEM=="usb", ATTR{idVendor}=="17EF", MODE="0666"
#LG
SUBSYSTEM=="usb", ATTR{idVendor}=="1004", MODE="0666"
#Motorola
SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", MODE="0666"
#NEC
SUBSYSTEM=="usb", ATTR{idVendor}=="0409", MODE="0666"
#Nook
SUBSYSTEM=="usb", ATTR{idVendor}=="2080", MODE="0666"
#Nvidia
SUBSYSTEM=="usb", ATTR{idVendor}=="0955", MODE="0666"
#OTGV
SUBSYSTEM=="usb", ATTR{idVendor}=="2257", MODE="0666"
#Pantech
SUBSYSTEM=="usb", ATTR{idVendor}=="10A9", MODE="0666"
#Philips
SUBSYSTEM=="usb", ATTR{idVendor}=="0471", MODE="0666"
#PMC-Sierra
SUBSYSTEM=="usb", ATTR{idVendor}=="04da", MODE="0666"
#Qualcomm
SUBSYSTEM=="usb", ATTR{idVendor}=="05c6", MODE="0666"
#SK Telesys
SUBSYSTEM=="usb", ATTR{idVendor}=="1f53", MODE="0666"
#Samsung
SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", MODE="0666"
#Sharp
SUBSYSTEM=="usb", ATTR{idVendor}=="04dd", MODE="0666"
#Sony Ericsson
SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", MODE="0666"
#Toshiba
SUBSYSTEM=="usb", ATTR{idVendor}=="0930", MODE="0666"
#ZTE
SUBSYSTEM=="usb", ATTR{idVendor}=="19D2", MODE="0666"
Now execute that file doing following command
Code:
sudo chmod a+r /etc/udev/rules.d/51-android.rules
2. Setting up Repo Environment
Install Repo :
Open Terminal and run following commands one by one
Code:
mkdir ~/bin
PATH=~/bin:$PATH
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repo
Initialize Repo:
Here Working_Directory means folder to which you want to start your project (Either CM or Paranoid or Carbon or PAC-man or AOKP), you can give any name you want
Code:
mkdir Working_Directory
cd Working_Directory
Source specific repo commands :
For Example :
Code:
AOSP - 4.4.2
repo init -u https://android.googlesource.com/platform/manifest -b android-4.4.2_r1
CM-11
repo init -u git://github.com/CyanogenMod/android.git -b cm-11.0
For MoKee
repo init -u https://github.com/MoKee/android.git -b kk_mkt
Now Sync Repo
Repo sync will download almost 6 to 12 GiB of sources, So it will take a while, depending on your internet connection
Code:
repo sync
== Device specific configuration for I9500 in post 2 ==

I9500 Specifics
I9500 Specific repo Download :
--You have to download required repository for I9500.
- For example, CM11 you will need following local manifests, as given Here
- I think this is the standard manifests you will need for I9500 for any and all ROM.
- Go to your working directory and press ctrl+H and you will find a folder named .repo
- Go to .repo folder and create a folder name local_manifests.
- In local_manifests folder create a blank document named roomservice.xml/local_manifests.xml and copy following code inside it.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="TheMuppets/proprietary_vendor_samsung" path="vendor/samsung" remote="github" revision="cm-11.0" />
<project name="intervigilium/android_device_samsung_i9500" path="device/samsung/i9500" remote="github" revision="cm-11.0" />
<project name="intervigilium/android_kernel_samsung_exynos5410" path="kernel/samsung/exynos5410" remote="github" revision="cm-11.0" />
<project name="intervigilium/android_hardware_samsung_slsi_exynos5410" path="hardware/samsung_slsi/exynos5410" remote="github" revision="cm-11.0" />
<project name="intervigilium/android_hardware_samsung_slsi_exynos" path="hardware/samsung_slsi/exynos" remote="github" revision="cm-11.0" />
<project name="CyanogenMod/android_hardware_samsung" path="hardware/samsung" remote="github" revision="cm-11.0" />
<project name="intervigilium/android_hardware_samsung_slsi_exynos5-insignal" path="hardware/samsung_slsi/exynos5-insignal" remote="github" revision="cm-11.0" />
<project name="intervigilium/android_hardware_samsung_slsi_openmax" path="hardware/samsung_slsi/openmax" remote="github" revision="cm-11.0" />
<project name="CyanogenMod/android_packages_apps_SamsungServiceMode" path="packages/apps/SamsungServiceMode" remote="github" revision="cm-11.0" />
</manifest>
Than you have to sync repo again
Code:
repo sync
For CM11 this is all what you need and you can go to the post 3 for next process, For any other ROMs you have to edit some files as below :
1. Change in device/samsung/i9500 at local repo
For reference you can go to Here as reference and look what I have changed and do according to your build.
Normally u have to change all the makefiles like I have changed cm.mk to mokee.mk under device/samsung/i9500
Look at here, and change according to your repo source
Second file you have to change is dependencies if needed, If you have put local_manifests.xml/roomservice.xml and sync it than you will not need it.
Just double check that you have all the dependency repos otherwise build will fail.
Last in device/samsung/i9500 change vendorsetup.sh
Look at Here and change according to your repo source
2. Change in vendor/ at local repo
This will depend on different ROMs and Sources according to build needs, So if you want me to give you what to change post here with vendor source on github and I will modify it for you or I will help you do that.
Now go to the post 3 for further explanation on compiling process..

Compiling of ROM
Run following commands one by one
Code:
cd Working_Directory
. build/envsetup.sh
lunch
Select the number of combo according to your vendorsetup.sh file.
Than run following command
Code:
make bacon
or
make otapackage
This will take a while for compiling and all the process, once it will finish successfully, you will find your ROM under, Working_Directory/out/target/product/i9500/
How to Improve your build process using ccache ?
Go to your home directory and press ctrl+H and edit .bashrc
Add folloeing line at the end of the text file
Code:
export USE_CCACHE=1
Than run following commands one by one.
The suggested cache size is 50-100G. (This is size in GB)
Code:
export USE_CCACHE=1
export CCACHE_DIR=~/.ccache
prebuilts/misc/linux-x86/ccache/ccache -M 50G
=== This is what All I have to explain for building from source, Let me know if you need any further explanation on compiling , I will be happy to help all of you===
Cheers
== Raj ==

Thanks man i need this badly will have to redownload my sources and start over

Omni Rom Build Failed
Hey Guys Please Help What did i do wrong I keep Getting this error Message I'm trying to compile for Omni Rom 4.4
BlaqueSouls-Mac-Pro:~ blaquesoul$ cd /Volumes/android
BlaqueSouls-Mac-Pro:android blaquesoul$ cd omnirom
BlaqueSouls-Mac-Promnirom blaquesoul$ . build/envsetup.sh
including device/generic/armv7-a-neon/vendorsetup.sh
including device/generic/mips/vendorsetup.sh
including device/generic/x86/vendorsetup.sh
including device/samsung/i9500/vendorsetup.sh
including sdk/bash_completion/adb.bash
BlaqueSouls-Mac-Promnirom blaquesoul$ lunch
You're building on Darwin
Lunch menu... pick a combo:
1. aosp_arm-eng
2. aosp_x86-eng
3. aosp_mips-eng
4. vbox_x86-eng
5. mini_armv7a_neon-userdebug
6. mini_mips-userdebug
7. mini_x86-userdebug
8. omni_i9500-userdebug
Which would you like? [aosp_arm-eng] 8
build/core/product_config.mk:222: *** Can not locate config makefile for product "omni_i9500". Stop.
WARNING: Trying to fetch a device that's already there
Traceback (most recent call last):
File "build/tools/roomservice.py", line 297, in <module>
fetch_dependencies(device)
File "build/tools/roomservice.py", line 253, in fetch_dependencies
create_dependency_manifest(dependencies)
File "build/tools/roomservice.py", line 238, in create_dependency_manifest
revision=revision)
File "build/tools/roomservice.py", line 146, in create_manifest_project
project_exists = check_project_exists(url)
File "build/tools/roomservice.py", line 120, in check_project_exists
for project in iterate_manifests():
File "build/tools/roomservice.py", line 110, in iterate_manifests
man = ES.parse(file)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1182, in parse
tree.parse(source, parser)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 656, in parse
parser.feed(data)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1642, in feed
self._raiseerror(v)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror
raise err
xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 1, column 0
build/core/product_config.mk:222: *** Can not locate config makefile for product "omni_i9500". Stop.
** Don't have a product spec for: 'omni_i9500'
** Do you have the right repo manifest?
Please help

BlaqueDroid said:
Hey Guys Please Help What did i do wrong I keep Getting this error Message I'm trying to compile for Omni Rom 4.4
BlaqueSouls-Mac-Pro:~ blaquesoul$ cd /Volumes/android
BlaqueSouls-Mac-Pro:android blaquesoul$ cd omnirom
BlaqueSouls-Mac-Promnirom blaquesoul$ . build/envsetup.sh
including device/generic/armv7-a-neon/vendorsetup.sh
including device/generic/mips/vendorsetup.sh
including device/generic/x86/vendorsetup.sh
including device/samsung/i9500/vendorsetup.sh
including sdk/bash_completion/adb.bash
BlaqueSouls-Mac-Promnirom blaquesoul$ lunch
You're building on Darwin
Lunch menu... pick a combo:
1. aosp_arm-eng
2. aosp_x86-eng
3. aosp_mips-eng
4. vbox_x86-eng
5. mini_armv7a_neon-userdebug
6. mini_mips-userdebug
7. mini_x86-userdebug
8. omni_i9500-userdebug
Which would you like? [aosp_arm-eng] 8
build/core/product_config.mk:222: *** Can not locate config makefile for product "omni_i9500". Stop.
WARNING: Trying to fetch a device that's already there
Traceback (most recent call last):
File "build/tools/roomservice.py", line 297, in <module>
fetch_dependencies(device)
File "build/tools/roomservice.py", line 253, in fetch_dependencies
create_dependency_manifest(dependencies)
File "build/tools/roomservice.py", line 238, in create_dependency_manifest
revision=revision)
File "build/tools/roomservice.py", line 146, in create_manifest_project
project_exists = check_project_exists(url)
File "build/tools/roomservice.py", line 120, in check_project_exists
for project in iterate_manifests():
File "build/tools/roomservice.py", line 110, in iterate_manifests
man = ES.parse(file)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1182, in parse
tree.parse(source, parser)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 656, in parse
parser.feed(data)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1642, in feed
self._raiseerror(v)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror
raise err
xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 1, column 0
build/core/product_config.mk:222: *** Can not locate config makefile for product "omni_i9500". Stop.
** Don't have a product spec for: 'omni_i9500'
** Do you have the right repo manifest?
Please help
Click to expand...
Click to collapse
Delete local manifest folder from .repo folder...
And than do . build/envsetup.sh && lunch omni_i9500-userdebug
Let me know how it goes ..
Sent from my C6603 using Tapatalk

x10forevers said:
Delete local manifest folder from .repo folder...
And than do . build/envsetup.sh && lunch omni_i9500-userdebug
Let me know how it goes ..
Sent from my C6603 using Tapatalk
Click to expand...
Click to collapse
Its Still Complaining about the same thing and now I'm kinda confused and don't know what I'm doin wrong
---------- Post added at 04:39 AM ---------- Previous post was at 04:03 AM ----------
x10forevers said:
Delete local manifest folder from .repo folder...
And than do . build/envsetup.sh && lunch omni_i9500-userdebug
Let me know how it goes ..
Sent from my C6603 using Tapatalk
Click to expand...
Click to collapse
Now this is the error I get
BlaqueSouls-Mac-Promnirom blaquesoul$ lunch
You're building on Darwin
Lunch menu... pick a combo:
1. aosp_arm-eng
2. aosp_x86-eng
3. aosp_mips-eng
4. vbox_x86-eng
5. mini_armv7a_neon-userdebug
6. mini_mips-userdebug
7. mini_x86-userdebug
8. full_i9500-userdebug
9. omni_i9500-userdebug
Which would you like? [aosp_arm-eng] 9
Traceback (most recent call last):
File "build/tools/roomservice.py", line 297, in <module>
fetch_dependencies(device)
File "build/tools/roomservice.py", line 253, in fetch_dependencies
create_dependency_manifest(dependencies)
File "build/tools/roomservice.py", line 238, in create_dependency_manifest
revision=revision)
File "build/tools/roomservice.py", line 146, in create_manifest_project
project_exists = check_project_exists(url)
File "build/tools/roomservice.py", line 120, in check_project_exists
for project in iterate_manifests():
File "build/tools/roomservice.py", line 110, in iterate_manifests
man = ES.parse(file)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1182, in parse
tree.parse(source, parser)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 656, in parse
parser.feed(data)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1642, in feed
self._raiseerror(v)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror
raise err
xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 1, column 0
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.2
TARGET_PRODUCT=omni_i9500
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a15
HOST_ARCH=x86
HOST_OS=darwin
HOST_OS_EXTRA=Darwin-13.0.0-x86_64-i386-64bit
HOST_BUILD_TYPE=release
BUILD_ID=KOT49H
OUT_DIR=/Volumes/android/omnirom/out
============================================
BlaqueSouls-Mac-Promnirom blaquesoul$

BlaqueDroid said:
Its Still Complaining about the same thing and now I'm kinda confused and don't know what I'm doin wrong
---------- Post added at 04:39 AM ---------- Previous post was at 04:03 AM ----------
Now this is the error I get
BlaqueSouls-Mac-Promnirom blaquesoul$ lunch
You're building on Darwin
Lunch menu... pick a combo:
1. aosp_arm-eng
2. aosp_x86-eng
3. aosp_mips-eng
4. vbox_x86-eng
5. mini_armv7a_neon-userdebug
6. mini_mips-userdebug
7. mini_x86-userdebug
8. full_i9500-userdebug
9. omni_i9500-userdebug
Which would you like? [aosp_arm-eng] 9
Traceback (most recent call last):
File "build/tools/roomservice.py", line 297, in <module>
fetch_dependencies(device)
File "build/tools/roomservice.py", line 253, in fetch_dependencies
create_dependency_manifest(dependencies)
File "build/tools/roomservice.py", line 238, in create_dependency_manifest
revision=revision)
File "build/tools/roomservice.py", line 146, in create_manifest_project
project_exists = check_project_exists(url)
File "build/tools/roomservice.py", line 120, in check_project_exists
for project in iterate_manifests():
File "build/tools/roomservice.py", line 110, in iterate_manifests
man = ES.parse(file)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1182, in parse
tree.parse(source, parser)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 656, in parse
parser.feed(data)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1642, in feed
self._raiseerror(v)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror
raise err
xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 1, column 0
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.2
TARGET_PRODUCT=omni_i9500
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a15
HOST_ARCH=x86
HOST_OS=darwin
HOST_OS_EXTRA=Darwin-13.0.0-x86_64-i386-64bit
HOST_BUILD_TYPE=release
BUILD_ID=KOT49H
OUT_DIR=/Volumes/android/omnirom/out
============================================
BlaqueSouls-Mac-Promnirom blaquesoul$
Click to expand...
Click to collapse
I think its python error in your system, M not that much experienced in building android on mac.
Can you install python again or the newer version of python ?
may be python3.0

x10forevers said:
I think its python error in your system, M not that much experienced in building android on mac.
Can you install python again or the newer version of python ?
may be python3.0
Click to expand...
Click to collapse
Okay I fixed my python issue but now when its compiling this is what I'm getting and is there anyways to bypass already defined files or do i have to remove them one by one
---------- Post added at 09:43 AM ---------- Previous post was at 09:33 AM ----------
BlaqueDroid said:
Okay I fixed my python issue but now when its compiling this is what I'm getting and is there anyways to bypass already defined files or do i have to remove them one by one
Click to expand...
Click to collapse
build/core/Makefile:70: warning: overriding commands for target `/Volumes/android/omni/out/target/product/i9500/system/vendor/lib/hw/gralloc.exynos5.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/Volumes/android/omni/out/target/product/i9500/system/vendor/lib/hw/gralloc.exynos5.so'
No private recovery resources for TARGET_DEVICE i9500
/Applications/Xcode.app/Contents/Developer/usr/bin/make C_INCLUDE_PATH=/Volumes/android/omni/external/elfutils/libelf -C kernel/samsung/exynos5410 O=/Volumes/android/omni/out/target/product/i9500/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /Volumes/android/omni/prebuilts/gcc/darwin-x86/arm/arm-eabi-4.7/bin/arm-eabi-" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= omnirom_i9500_defconfig
GEN /Volumes/android/omni/out/target/product/i9500/obj/KERNEL_OBJ/Makefile
***
*** Can't find default configuration "arch/arm/configs/omnirom_i9500_defconfig"!
***
make[3]: *** [omnirom_i9500_defconfig] Error 1
make[2]: *** [omnirom_i9500_defconfig] Error 2
make[1]: *** [sub-make] Error 2
make: *** [/Volumes/android/omni/out/target/product/i9500/obj/KERNEL_OBJ/.config] Error 2

BlaqueDroid said:
Okay I fixed my python issue but now when its compiling this is what I'm getting and is there anyways to bypass already defined files or do i have to remove them one by one
---------- Post added at 09:43 AM ---------- Previous post was at 09:33 AM ----------
build/core/Makefile:70: warning: overriding commands for target `/Volumes/android/omni/out/target/product/i9500/system/vendor/lib/hw/gralloc.exynos5.so'
build/core/base_rules.mk:529: warning: ignoring old commands f hior target `/Volumes/android/omni/out/target/product/i9500/system/vendor/lib/hw/gralloc.exynos5.so'
No private recovery resources for TARGET_DEVICE i9500
/Applications/Xcode.app/Contents/Developer/usr/bin/make C_INCLUDE_PATH=/Volumes/android/omni/external/elfutils/libelf -C kernel/samsung/exynos5410 O=/Volumes/android/omni/out/target/product/i9500/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /Volumes/android/omni/prebuilts/gcc/darwin-x86/arm/arm-eabi-4.7/bin/arm-eabi-" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= omnirom_i9500_defconfig
GEN /Volumes/android/omni/out/target/product/i9500/obj/KERNEL_OBJ/Makefile
***
*** Can't find default configuration "arch/arm/configs/omnirom_i9500_defconfig"!
***
make[3]: *** [omnirom_i9500_defconfig] Error 1
make[2]: *** [omnirom_i9500_defconfig] Error 2
make[1]: *** [sub-make] Error 2
make: *** [/Volumes/android/omni/out/target/product/i9500/obj/KERNEL_OBJ/.config] Error 2
Click to expand...
Click to collapse
u have to edit boardconfig.Mk file in device/Samsung/i9500
Find the line omnirom_i9500_defconfig and replace it with whatever kernel you are using.
Can you give me link of the kernel source you are using ?
If you are using intervigilium kernel than you have to edit it to cyanogenmod_i9500_defconfig
Sent from my C6603 using Tapatalk

x10forevers said:
u have to edit boardconfig.Mk file in device/Samsung/i9500
Find the line omnirom_i9500_defconfig and replace it with whatever kernel you are using.
Can you give me link of the kernel source you are using ?
If you are using intervigilium kernel than you have to edit it to cyanogenmod_i9500_defconfig
Sent from my C6603 using Tapatalk
Click to expand...
Click to collapse
Im using this kernel https://github.com/intervigilium/android_kernel_samsung_exynos5410/archive/cm-11.0.zip or do u have a a better one

lviv73 said:
Epic forums are ridiculous,man I wish I got the Vibrant insteead.Yeah Epic progress is slow but if someone dont want to release something for whatever reason its their right no to do so,and after trying out these froyos is see why they don't release them.Just wait when devs polish up these froyo leaks I'm sure they will release them.
But for people that want betas devs should post beta test versions on twitter for those that can't wait,so these forums wont be havin all these bull**** ass posts.
Click to expand...
Click to collapse
Check reply above you, I answered your question
Sent from my C6603 using Tapatalk

x10forevers said:
Check reply above you, I answered your question
Sent from my C6603 using Tapatalk
Click to expand...
Click to collapse
its compiling now and i hope i don't another hick up and thanks man for your patience with me and i hope i get this right today

BlaqueDroid said:
its compiling now and i hope i don't another hick up and thanks man for your patience with me and i hope i get this right today
Click to expand...
Click to collapse
Compiling is more than a hiccup its freaking bad cough if its not right. Lol
Sent from my C6603 using Tapatalk

x10forevers said:
Compiling is more than a hiccup its freaking bad cough if its not right. Lol
Sent from my C6603 using Tapatalk
Click to expand...
Click to collapse
Im crossing my fingers right now and I'm definitely not getting a samsung phone with an exynos chip no more
and today i saw that I9505 just got a test 4.4 KitKat

x10forevers said:
Compiling is more than a hiccup its freaking bad cough if its not right. Lol
Sent from my C6603 using Tapatalk
Click to expand...
Click to collapse
Hey Man should i be worried when it says this ......it hasn't stopped yet so hopefully theres nothing wrong with the build
host C++: libclangDriver <= external/clang/lib/Driver/Tool.cpp
host C++: libclangDriver <= external/clang/lib/Driver/ToolChain.cpp
host C++: libclangDriver <= external/clang/lib/Driver/ToolChains.cpp
external/llvm/include/llvm/ADT/Twine.h: In static member function ‘static bool clang::driver::toolchains::Linux::addLibStdCXXIncludePaths(llvm::Twine, llvm::Twine, llvm::Twine, llvm::Twine, const llvm:pt::ArgList&, llvm:pt::ArgStringList&)’:
external/llvm/include/llvm/ADT/Twine.h:152: warning: ‘<anonymous>.llvm::Twine::LHS’ may be used uninitialized in this function
external/llvm/include/llvm/ADT/Twine.h:152: note: ‘<anonymous>.llvm::Twine::LHS’ was declared here
external/llvm/include/llvm/ADT/Twine.h:155: warning: ‘<anonymous>.llvm::Twine::RHS’ may be used uninitialized in this function
external/llvm/include/llvm/ADT/Twine.h:155: note: ‘<anonymous>.llvm::Twine::RHS’ was declared here
external/llvm/include/llvm/ADT/Twine.h:152: warning: ‘<anonymous>.llvm::Twine::LHS’ may be used uninitialized in this function
external/llvm/include/llvm/ADT/Twine.h:152: note: ‘<anonymous>.llvm::Twine::LHS’ was declared here
external/llvm/include/llvm/ADT/Twine.h:155: warning: ‘<anonymous>.llvm::Twine::RHS’ may be used uninitialized in this function
external/llvm/include/llvm/ADT/Twine.h:155: note: ‘<anonymous>.llvm::Twine::RHS’ was declared here
external/llvm/include/llvm/ADT/Twine.h: In member function ‘virtual void clang::driver::toolchains::Linux::AddClangCXXStdlibIncludeArgs(const llvm:pt::ArgList&, llvm:pt::ArgStringList&) const’:
external/llvm/include/llvm/ADT/Twine.h:152: warning: ‘<anonymous>.llvm::Twine::LHS’ may be used uninitialized in this function
external/llvm/include/llvm/ADT/Twine.h:152: note: ‘<anonymous>.llvm::Twine::LHS’ was declared here
external/llvm/include/llvm/ADT/Twine.h:155: warning: ‘<anonymous>.llvm::Twine::RHS’ may be used uninitialized in this function
external/llvm/include/llvm/ADT/Twine.h:155: note: ‘<anonymous>.llvm::Twine::RHS’ was declared here
external/llvm/include/llvm/ADT/Twine.h: In constructor ‘clang::driver::toolchains::Linux::Linux(const clang::driver:river&, const llvm::Triple&, const llvm:pt::ArgList&)’:
external/llvm/include/llvm/ADT/Twine.h:152: warning: ‘<anonymous>.llvm::Twine::LHS’ may be used uninitialized in this function
external/llvm/include/llvm/ADT/Twine.h:152: note: ‘<anonymous>.llvm::Twine::LHS’ was declared here
external/llvm/include/llvm/ADT/Twine.h:155: warning: ‘<anonymous>.llvm::Twine::RHS’ may be used uninitialized in this function
external/llvm/include/llvm/ADT/Twine.h:155: note: ‘<anonymous>.llvm::Twine::RHS’ was declared here
external/llvm/include/llvm/ADT/Twine.h:152: warning: ‘<anonymous>.llvm::Twine::LHS’ may be used uninitialized in this function
external/llvm/include/llvm/ADT/Twine.h:152: note: ‘<anonymous>.llvm::Twine::LHS’ was declared here
external/llvm/include/llvm/ADT/Twine.h:155: warning: ‘<anonymous>.llvm::Twine::RHS’ may be used uninitialized in this function
external/llvm/include/llvm/ADT/Twine.h:155: note: ‘<anonymous>.llvm::Twine::RHS’ was declared here
host C++: libclangDriver <= external/clang/lib/Driver/Tools.cpp
host C++: libclangDriver <= external/clang/lib/Driver/Types.cpp
host C++: libclangDriver <= external/clang/lib/Driver/WindowsToolChain.cpp
host StaticLib: libclangDriver (/Volumes/android/omni/out/host/darwin-x86/obj/STATIC_LIBRARIES/libclangDriver_intermediates/libclangDriver.a)

BlaqueDroid said:
Hey Man should i be worried when it says this ......it hasn't stopped yet so hopefully theres nothing wrong with the build
host C++: libclangDriver <= external/clang/lib/Driver/Tool.cpp
host C++: libclangDriver <= external/clang/lib/Driver/ToolChain.cpp
host C++: libclangDriver <= external/clang/lib/Driver/ToolChains.cpp
external/llvm/include/llvm/ADT/Twine.h: In static member function ‘static bool clang::driver::toolchains::Linux::addLibStdCXXIncludePaths(llvm::Twine, llvm::Twine, llvm::Twine, llvm::Twine, const llvm:pt::ArgList&, llvm:pt::ArgStringList&)’:
external/llvm/include/llvm/ADT/Twine.h:152: warning: ‘<anonymous>.llvm::Twine::LHS’ may be used uninitialized in this function
external/llvm/include/llvm/ADT/Twine.h:152: note: ‘<anonymous>.llvm::Twine::LHS’ was declared here
external/llvm/include/llvm/ADT/Twine.h:155: warning: ‘<anonymous>.llvm::Twine::RHS’ may be used uninitialized in this function
external/llvm/include/llvm/ADT/Twine.h:155: note: ‘<anonymous>.llvm::Twine::RHS’ was declared here
external/llvm/include/llvm/ADT/Twine.h:152: warning: ‘<anonymous>.llvm::Twine::LHS’ may be used uninitialized in this function
external/llvm/include/llvm/ADT/Twine.h:152: note: ‘<anonymous>.llvm::Twine::LHS’ was declared here
external/llvm/include/llvm/ADT/Twine.h:155: warning: ‘<anonymous>.llvm::Twine::RHS’ may be used uninitialized in this function
external/llvm/include/llvm/ADT/Twine.h:155: note: ‘<anonymous>.llvm::Twine::RHS’ was declared here
external/llvm/include/llvm/ADT/Twine.h: In member function ‘virtual void clang::driver::toolchains::Linux::AddClangCXXStdlibIncludeArgs(const llvm:pt::ArgList&, llvm:pt::ArgStringList&) const’:
external/llvm/include/llvm/ADT/Twine.h:152: warning: ‘<anonymous>.llvm::Twine::LHS’ may be used uninitialized in this function
external/llvm/include/llvm/ADT/Twine.h:152: note: ‘<anonymous>.llvm::Twine::LHS’ was declared here
external/llvm/include/llvm/ADT/Twine.h:155: warning: ‘<anonymous>.llvm::Twine::RHS’ may be used uninitialized in this function
external/llvm/include/llvm/ADT/Twine.h:155: note: ‘<anonymous>.llvm::Twine::RHS’ was declared here
external/llvm/include/llvm/ADT/Twine.h: In constructor ‘clang::driver::toolchains::Linux::Linux(const clang::driver:river&, const llvm::Triple&, const llvm:pt::ArgList&)’:
external/llvm/include/llvm/ADT/Twine.h:152: warning: ‘<anonymous>.llvm::Twine::LHS’ may be used uninitialized in this function
external/llvm/include/llvm/ADT/Twine.h:152: note: ‘<anonymous>.llvm::Twine::LHS’ was declared here
external/llvm/include/llvm/ADT/Twine.h:155: warning: ‘<anonymous>.llvm::Twine::RHS’ may be used uninitialized in this function
external/llvm/include/llvm/ADT/Twine.h:155: note: ‘<anonymous>.llvm::Twine::RHS’ was declared here
external/llvm/include/llvm/ADT/Twine.h:152: warning: ‘<anonymous>.llvm::Twine::LHS’ may be used uninitialized in this function
external/llvm/include/llvm/ADT/Twine.h:152: note: ‘<anonymous>.llvm::Twine::LHS’ was declared here
external/llvm/include/llvm/ADT/Twine.h:155: warning: ‘<anonymous>.llvm::Twine::RHS’ may be used uninitialized in this function
external/llvm/include/llvm/ADT/Twine.h:155: note: ‘<anonymous>.llvm::Twine::RHS’ was declared here
host C++: libclangDriver <= external/clang/lib/Driver/Tools.cpp
host C++: libclangDriver <= external/clang/lib/Driver/Types.cpp
host C++: libclangDriver <= external/clang/lib/Driver/WindowsToolChain.cpp
host StaticLib: libclangDriver (/Volumes/android/omni/out/host/darwin-x86/obj/STATIC_LIBRARIES/libclangDriver_intermediates/libclangDriver.a)
Click to expand...
Click to collapse
If it is compiling than it would not be an issue.
If it is stopping or giving an error than only problem otherwise its fine.

x10forevers said:
If it is compiling than it would not be an issue.
If it is stopping or giving an error than only problem otherwise its fine.
Click to expand...
Click to collapse
Okay Cool its still Compiling and can't wait for this to finish and its been join on for a good 2 hours

x10forevers said:
u have to edit boardconfig.Mk file in device/Samsung/i9500
Find the line omnirom_i9500_defconfig and replace it with whatever kernel you are using.
Can you give me link of the kernel source you are using ?
If you are using intervigilium kernel than you have to edit it to cyanogenmod_i9500_defconfig
Sent from my C6603 using Tapatalk
Click to expand...
Click to collapse
Hey Man this where it stopped and can't make heads or tails
aapt: warning: string 'permlab_accessInputFlinger' has no default translation in frameworks/base/core/res/res; found: et hy ka km lo ms ne si
aapt: warning: string 'permlab_hotwordRecognition' has no default translation in frameworks/base/core/res/res; found: az_AZ ne_NP si_LK
aapt: warning: string 'status_bar_device_locked' has no default translation in frameworks/base/core/res/res; found: az et hy ka km lo mn ms ne si
aapt: warning: string 'wifi_display_notification_message' has no default translation in frameworks/base/core/res/res; found: az az_AZ et hy ka km lo mn ms ne ne_NP si si_LK
aapt: warning: string 'wifi_display_notification_title' has no default translation in frameworks/base/core/res/res; found: az az_AZ et hy ka km lo mn ms ne ne_NP si si_LK
device/samsung/i9500/overlay/frameworks/base/core/res/res/values/config.xml:226: error: Resource at config_forceDisableHardwareKeyboard appears in overlay but not in the base package; use <add-resource> to add.
device/samsung/i9500/overlay/frameworks/base/core/res/res/values/config.xml:232: error: Resource at config_disableHomeUnlockSetting appears in overlay but not in the base package; use <add-resource> to add.
device/samsung/i9500/overlay/frameworks/base/core/res/res/values/config.xml:237: error: Resource at config_panelAutoBrightnessValue appears in overlay but not in the base package; use <add-resource> to add.
make: *** [/Volumes/android/omni/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk] Error 1
make: *** Deleting file `/Volumes/android/omni/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk'
BlaqueSouls-Mac-Promni blaquesoul$

BlaqueDroid said:
Hey Man this where it stopped and can't make heads or tails
aapt: warning: string 'permlab_accessInputFlinger' has no default translation in frameworks/base/core/res/res; found: et hy ka km lo ms ne si
aapt: warning: string 'permlab_hotwordRecognition' has no default translation in frameworks/base/core/res/res; found: az_AZ ne_NP si_LK
aapt: warning: string 'status_bar_device_locked' has no default translation in frameworks/base/core/res/res; found: az et hy ka km lo mn ms ne si
aapt: warning: string 'wifi_display_notification_message' has no default translation in frameworks/base/core/res/res; found: az az_AZ et hy ka km lo mn ms ne ne_NP si si_LK
aapt: warning: string 'wifi_display_notification_title' has no default translation in frameworks/base/core/res/res; found: az az_AZ et hy ka km lo mn ms ne ne_NP si si_LK
device/samsung/i9500/overlay/frameworks/base/core/res/res/values/config.xml:226: error: Resource at config_forceDisableHardwareKeyboard appears in overlay but not in the base package; use <add-resource> to add.
device/samsung/i9500/overlay/frameworks/base/core/res/res/values/config.xml:232: error: Resource at config_disableHomeUnlockSetting appears in overlay but not in the base package; use <add-resource> to add.
device/samsung/i9500/overlay/frameworks/base/core/res/res/values/config.xml:237: error: Resource at config_panelAutoBrightnessValue appears in overlay but not in the base package; use <add-resource> to add.
make: *** [/Volumes/android/omni/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk] Error 1
make: *** Deleting file `/Volumes/android/omni/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk'
BlaqueSouls-Mac-Promni blaquesoul$
Click to expand...
Click to collapse
Here is the Head
Code:
[B]device/samsung/i9500/overlay/frameworks/base/core/res/res/values/config.xml:226[/B]: error: Resource at config_forceDisableHardwareKeyboard appears in overlay but not in the base package; use <add-resource> to add.
[B]device/samsung/i9500/overlay/frameworks/base/core/res/res/values/config.xml:232[/B]: error: Resource at config_disableHomeUnlockSetting appears in overlay but not in the base package; use <add-resource> to add.
[B]device/samsung/i9500/overlay/frameworks/base/core/res/res/values/config.xml:237[/B]: error: Resource at config_panelAutoBrightnessValue appears in overlay but not in the base package; use <add-resource> to add.
So, GO to device/samsung/i9500/overlay/frameworks/base/core/res/res/values/config.xml
open config.xml and delete line 226, 232 and 237
Save it and compile it again
and next time if u paste your errors use code format so it won't be long that covers whole page, Just to make it more convenient, or use pastebin and give link to here...

Related

[Tutorial][S4] How to make your very own Jellybean 4.1.1 on the HTC One S!

Hello everyone! I am anxiously awaiting jellybean for our phone and I know that many of you are also, so I decided to make this thread and help speed things up ! I am currently watching my repo sync so I am hard at work developing this for us but other users can work to, so we get it done faster . So if you are not on ubuntu 10 or 11, LEAVE because this is likely not going to work for you . A few things first: 1. the "$" is an indication of the command, there is one $ before every command and it is already in your terminal so do not type it. 2. You may want to copy and paste commands... 3. This will either not boot or have many bugs, as expected.
There are currently 2 JB roms available, here (by me) and here (by djsubtronic)
GENERAL JELLYBEAN THREAD IS HERE
1) First thing is first, install the required packages:
Open terminal and KEEP IT OPEN FOR ALL OF THIS!!!!!!!!!!!!
Code:
$ sudo apt-get install openjdk-6-jdk
$ sudo apt-get install python
$ sudo apt-get install git-core
Next, download the android sdk for linux and extract it to your home directory. Name it "android-sdk" (without the quotes) for simplicity. In you home folder, show the hidden files (hit Ctrl + H). Open the .bashrc file in the text editor. Add the following lines at the bottom (end) of it:
Code:
# Android tools
export PATH=${PATH}:~/android-sdk/tools
export PATH=${PATH}:~/android-sdk/platform-tools
export PATH=${PATH}:~/bin
Save it and then go back to the home folder. Edit the .profile file and add this to the end:
Code:
PATH="$HOME/android-sdk/tools:$HOME/android-sdk/platform-tools:$PATH"
You now have the sdk installed. In your terminal, enter:
Code:
$ cd android-sdk
$ android
When the sdk manager pops up, download platform-tools, and update the tools folder if needed.
If it does not pop up, try one the following 3 commands and see if it does:
Code:
$ cd tools
$ android
Or
Code:
$ cd platfrom-tools
$ android
Code:
$ cd
$ android
And if none of those bring up the manager, close your terminal window. Then open terminal and type:
Code:
$ android
MORE FILES?!?!?! Yes.
Code:
$ sudo apt-get install git-core gnupg flex bison gperf build-essential \
zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs \
x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev \
libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown \
libxml2-utils
$ sudo ln -s /usr/lib/i386-linux-gnu/libX11.so.6 /usr/lib/i386-linux-gnu/libX11.so
$ sudo apt-get install git-core gnupg flex bison gperf build-essential \
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
libgl1-mesa-dev g++-multilib mingw32 openjdk-6-jdk tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev:i386
$ sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
Finally! Past the downloads (for now... wait for the repo sync)
2) Configure the usb:
Code:
$ gksudo gedit /etc/udev/rules.d/51-android.rules
In the blank text field, paste the following:
Code:
#Acer
SUBSYSTEM=="usb", ATTR{idVendor}=="0502", MODE="0666"
#ASUS
SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", MODE="0666"
#Dell
SUBSYSTEM=="usb", ATTR{idVendor}=="413c", MODE="0666"
#Foxconn
SUBSYSTEM=="usb", ATTR{idVendor}=="0489", MODE="0666"
#Garmin-Asus
SUBSYSTEM=="usb", ATTR{idVendor}=="091E", MODE="0666"
#Google
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666"
#HTC
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666"
#Huawei
SUBSYSTEM=="usb", ATTR{idVendor}=="12d1", MODE="0666"
#K-Touch
SUBSYSTEM=="usb", ATTR{idVendor}=="24e3", MODE="0666"
#KT Tech
SUBSYSTEM=="usb", ATTR{idVendor}=="2116", MODE="0666"
#Kyocera
SUBSYSTEM=="usb", ATTR{idVendor}=="0482", MODE="0666"
#Lenevo
SUBSYSTEM=="usb", ATTR{idVendor}=="17EF", MODE="0666"
#LG
SUBSYSTEM=="usb", ATTR{idVendor}=="1004", MODE="0666"
#Motorola
SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", MODE="0666"
#NEC
SUBSYSTEM=="usb", ATTR{idVendor}=="0409", MODE="0666"
#Nook
SUBSYSTEM=="usb", ATTR{idVendor}=="2080", MODE="0666"
#Nvidia
SUBSYSTEM=="usb", ATTR{idVendor}=="0955", MODE="0666"
#OTGV
SUBSYSTEM=="usb", ATTR{idVendor}=="2257", MODE="0666"
#Pantech
SUBSYSTEM=="usb", ATTR{idVendor}=="10A9", MODE="0666"
#Philips
SUBSYSTEM=="usb", ATTR{idVendor}=="0471", MODE="0666"
#PMC-Sierra
SUBSYSTEM=="usb", ATTR{idVendor}=="04da", MODE="0666"
#Qualcomm
SUBSYSTEM=="usb", ATTR{idVendor}=="05c6", MODE="0666"
#SK Telesys
SUBSYSTEM=="usb", ATTR{idVendor}=="1f53", MODE="0666"
#Samsung
SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", MODE="0666"
#Sharp
SUBSYSTEM=="usb", ATTR{idVendor}=="04dd", MODE="0666"
#Sony Ericsson
SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", MODE="0666"
#Toshiba
SUBSYSTEM=="usb", ATTR{idVendor}=="0930", MODE="0666"
#ZTE
SUBSYSTEM=="usb", ATTR{idVendor}=="19D2", MODE="0666"
Save the new text file and close it. Enter this command in your terminal window:
Code:
$ sudo chmod a+r /etc/udev/rules.d/51-android.rules
3) Installing the repo:
Code:
$ mkdir ~/bin
$ PATH=~/bin:$PATH
$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
4) Initialize (init) the repo:
Code:
$ mkdir WORKING_DIRECTORY
$ cd WORKING_DIRECTORY
$ repo init -u https://android.googlesource.com/platform/manifest -b android-4.1.1_r1
or, if you want to do CM10, replace the last line (repo init -u blahblahblah) with:
Code:
$ repo init -u git://github.com/CyanogenMod/android.git -b jellybean
4.5) If you already have the repo initialized and all of the above done, and are just starting over, do this:
Code:
$ cd WORKING_DIRECTORY
$ repo init -b android-4.1.1_r1
$ repo sync
Don't do it if you are starting new.
5) Sync the needed files (repo)
Code:
$ repo sync -j1
When it asks, enter your REAL name and email
6) Compile:
Code:
$ source build/envsetup.sh
or
Code:
$ . build/envsetup.sh
7) Who's hungry?
Code:
$ lunch
Seriously, you have to!
8) Adding HTC One S (ville) to the list
Code:
$ cd WORKING_DIRECTORY/device
$ mkdir htc
$ cd htc
9) I have no name for this (github sync )
Code:
$ git clone git://github.com/intervigilium/android_device_htc_ville.git -b jellybean-ril ville
or
Code:
$ git clone git://github.com/intervigilium/android_device_htc_ville.git -b jellybean ville
10) Navigate to "ville"
Code:
$ cd ville
11) Connect your HTC One S to the computer and verify that adb is working (usb debugging) and once that is verified do this:
Code:
$ ./extract-files.sh
You can disconnect after this is done.
11.5) Every .cpp file in device/htc/ville/libsensors needs these lines to be added after the #includes section:
Code:
#define LOGE
#define LOGE_IF
The following lines must be added to /device/htc/ville/liblights/lights.c after the #includes section:
Code:
#define LOGE
#define LOGE_IF
#define LOGV
(Thanks to djsubtronic for this step!)
12) Time to build!
Code:
$ cd ~/WORKING_DIRECTORY
then:
Code:
$ source build/envsetup.sh
or
Code:
$ . build/envsetup.sh
13) Verify the ville is there:
Code:
$ lunch
14) Choose from the list
15) Compile!
The # stand for the number of cores plus one (Example: my VAIO has 2 cores so I do -j3, if it were quad core I would do -j5)
Code:
$ make -j#
Flashable zip command (instead of above command):
Code:
$ make -j# otapackage
Thanks to dastin1015 for this (Look at it for a general build): http://forum.xda-developers.com/showthread.php?t=1762641
Thanks to everyone with a ville github account!
Post your results in this thread. Also, ask questions here too!
If I have done something wrong, just tell me politely what it is and I will fix it. It is late here and this is a long thread so there is likely at least one mistake. Thanks!
ERRORS AND FIXES:
Code:
build/core/product_config.mk:205: *** No matches for product "device_ville". Stop.
** Don't have a product spec for: 'device_ville'
** Do you have the right repo manifest?
Add this:
Code:
PRODUCT_NAME := device_ville
PRODUCT_DEVICE := ville
PRODUCT_BRAND := Android
PRODUCT_MODEL := Full Android on ville
to the bottom (end) of device_ville.mk
Ville does not show up in lunch menu? Make the file "vendorsetup.sh". Edit it and add this:
Code:
add_lunch_combo device_ville-userdebug
Nice
Enviado desde mi HTC One S usando Tapatalk 2
Reserved for fixes and updates
Nice one.
You can add that every .cpp file in device/htc/ville/libsensors needs these lines to be added after the #includes section:
Code:
#define LOGE
#define LOGE_IF
djsubtronic said:
Nice one.
Click to expand...
Click to collapse
I'll post pictures tomorrow or the next day
djsubtronic said:
Nice one.
You can add that every .cpp file in device/htc/ville/libsensors needs these lines to be added after the #includes section:
Code:
#define LOGE
#define LOGE_IF
Click to expand...
Click to collapse
How would I say that (under what step do you recommend)
BiteBlaze said:
How would I say that (under what step do you recommend)
Click to expand...
Click to collapse
Needs to be done before make, so I would say just before the build steps.
djsubtronic said:
Needs to be done before make, so I would say just before the build steps.
Click to expand...
Click to collapse
I'll add that now
I won't be able to post pictures until monday so if anyone has screenshots of the terminal window at certain points in the instructions, email me. Goodnight and good luck!
Has anybody tried doing this?
Reviewers said:
Has anybody tried doing this?
Click to expand...
Click to collapse
There is a check the general sections topic on Jelly Bean. There are plenty of people trying. The only one with a booting build thus far is Team Liquid's Nocoast.
Why doesn't it work on ubuntu 10.04?
Add to OP after the libsensors bit:
The following lines must be added to /device/htc/ville/liblights/lights.c after the #includes section
Code:
#define LOGE
#define LOGE_IF
#define LOGV
---------- Post added at 12:31 PM ---------- Previous post was at 12:03 PM ----------
Stuck on this:
in function wpa_driver_nl80211_ops:driver_nl80211.c(.data.rel. ro.wpa_driver_nl80211_ops+0x1c8): error: undefined reference to 'wpa_driver_nl80211_driver_cmd'
Added this line to device/htc/ville/BoardConfig.mk: BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_wl12xx
and then got another error...
make: *** No rule to make target `out/target/product/ville/obj/STATIC_LIBRARIES/lib_driver_cmd_wl12xx_intermediates/lib_driver_cmd_wl12xx.a', needed by `out/target/product/ville/obj/EXECUTABLES/wpa_supplicant_intermediates/LINKED/wpa_supplicant'. Stop.
How to get that file?
Alie360 said:
Why doesn't it work on ubuntu 10.04?
Click to expand...
Click to collapse
It does. It doesn't work on 12
~ BiteBlaze via HTC One S... If I have helped you out, hit the Thanks button
BiteBlaze said:
It does. It doesn't work on 12
~ BiteBlaze via HTC One S... If I have helped you out, hit the Thanks button
Click to expand...
Click to collapse
You wrote "So if you are not on ubuntu 10 or 11, LEAVE because this is likely not going to work for you "...
I was assuming it was working only on 12
Alie360 said:
You wrote "So if you are not on ubuntu 10 or 11, LEAVE because this is likely not going to work for you "...
I was assuming it was working only on 12
Click to expand...
Click to collapse
Haha ok I get it you had it backwards. I mean that only people on 10 or 11 can do this ("If you are NOT on ubuntu 10 or 11, this is likely not going to work for you)
djsubtronic said:
Add to OP after the libsensors bit:
The following lines must be added to /device/htc/ville/liblights/lights.c after the #includes section
Code:
#define LOGE
#define LOGE_IF
#define LOGV
---------- Post added at 12:31 PM ---------- Previous post was at 12:03 PM ----------
Stuck on this:
in function wpa_driver_nl80211_ops:driver_nl80211.c(.data.rel. ro.wpa_driver_nl80211_ops+0x1c8): error: undefined reference to 'wpa_driver_nl80211_driver_cmd'
Added this line to device/htc/ville/BoardConfig.mk: BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_wl12xx
and then got another error...
make: *** No rule to make target `out/target/product/ville/obj/STATIC_LIBRARIES/lib_driver_cmd_wl12xx_intermediates/lib_driver_cmd_wl12xx.a', needed by `out/target/product/ville/obj/EXECUTABLES/wpa_supplicant_intermediates/LINKED/wpa_supplicant'. Stop.
How to get that file?
Click to expand...
Click to collapse
Added to the OP. Did you find the file?
BiteBlaze said:
Added to the OP. Did you find the file?
Click to expand...
Click to collapse
I undid the change from BoardConfig.mk
http://translate.google.co.uk/trans...a=X&ei=crACUOCNFOeY1AXcxNWzBw&ved=0CHAQ7gEwCQ
That link has a link to a git that has drivers for the nl80211, wpa_supplicant, and hostapd. Trying to get it to work using those files.
djsubtronic said:
I undid the change from BoardConfig.mk
http://translate.google.co.uk/trans...a=X&ei=crACUOCNFOeY1AXcxNWzBw&ved=0CHAQ7gEwCQ
That link has a link to a git that has drivers for the nl80211, wpa_supplicant, and hostapd. Trying to get it to work using those files.
Click to expand...
Click to collapse
Good. I will try tomorrow. I am glad to say they are upgrading my internet to about 15MBs! I should get a good build on monday
villainhalf said:
There is a check the general sections topic on Jelly Bean. There are plenty of people trying. The only one with a booting build thus far is Team Liquid's Nocoast.
Click to expand...
Click to collapse
I think I will post a link to the general thread in the OP. Nocoast refuses to release it or give us any more info... hopefully some info comes today... maybe screenshots? Or hopefully what the issues are and maybe a logcat

[Tutorial] Build CM10.1 / CM10 for i9001

I thought that this would get the development of JB for our device a bit faster. I am going to be explaining for Ubuntu 12.04 and up.
If you get any errors use pastebin and link it here. Good luck
Requirements
64bit Ubuntu
You will need 25GB (or more) free to complete a single build, and up to 80GB (or more) for a full set of builds.
JDK 6
Code:
sudo apt-get install openjdk-6-jdk
Python 2.4--2.7
Code:
sudo apt-get install python
Git 1.7 or newer
Code:
sudo apt-get install git-core
Installing Android SDK
Download the SDK here: http://developer.android.com/sdk/index.html
Extract the SDK and place it in your home directory.
I renamed my SDK to android-sdk to make it easier to navigate to.
Go to your home folder, press Ctrl+H to show hidden files, and open up your .bashrc file.
Add these lines at the bottom of the file(Change path according to your SDK dir):
Code:
# Android tools
export PATH=${PATH}:~/android-sdk/tools
export PATH=${PATH}:~/android-sdk/platform-tools
export PATH=${PATH}:~/bin
Find your .profile file and add this at the bottom of the file:
Code:
PATH="$HOME/android-sdk/tools:$HOME/android-sdk/platform-tools:$PATH"
Check for updates by entering this in terminal:
Code:
android
Install required packages(12.04)
Code:
sudo apt-get install git gnupg flex bison gperf build-essential \
zip curl libc6-dev libncurses5-dev x11proto-core-dev \
libx11-dev libreadline6-dev libgl1-mesa-glx \
libgl1-mesa-dev g++-multilib mingw32 tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev
sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
Configure your USB
Code:
gksudo gedit /etc/udev/rules.d/51-android.rules
Inside of the blank text file insert :
Code:
#Acer
SUBSYSTEM=="usb", ATTR{idVendor}=="0502", MODE="0666"
#ASUS
SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", MODE="0666"
#Dell
SUBSYSTEM=="usb", ATTR{idVendor}=="413c", MODE="0666"
#Foxconn
SUBSYSTEM=="usb", ATTR{idVendor}=="0489", MODE="0666"
#Garmin-Asus
SUBSYSTEM=="usb", ATTR{idVendor}=="091E", MODE="0666"
#Google
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666"
#HTC
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666"
#Huawei
SUBSYSTEM=="usb", ATTR{idVendor}=="12d1", MODE="0666"
#K-Touch
SUBSYSTEM=="usb", ATTR{idVendor}=="24e3", MODE="0666"
#KT Tech
SUBSYSTEM=="usb", ATTR{idVendor}=="2116", MODE="0666"
#Kyocera
SUBSYSTEM=="usb", ATTR{idVendor}=="0482", MODE="0666"
#Lenevo
SUBSYSTEM=="usb", ATTR{idVendor}=="17EF", MODE="0666"
#LG
SUBSYSTEM=="usb", ATTR{idVendor}=="1004", MODE="0666"
#Motorola
SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", MODE="0666"
#NEC
SUBSYSTEM=="usb", ATTR{idVendor}=="0409", MODE="0666"
#Nook
SUBSYSTEM=="usb", ATTR{idVendor}=="2080", MODE="0666"
#Nvidia
SUBSYSTEM=="usb", ATTR{idVendor}=="0955", MODE="0666"
#OTGV
SUBSYSTEM=="usb", ATTR{idVendor}=="2257", MODE="0666"
#Pantech
SUBSYSTEM=="usb", ATTR{idVendor}=="10A9", MODE="0666"
#Philips
SUBSYSTEM=="usb", ATTR{idVendor}=="0471", MODE="0666"
#PMC-Sierra
SUBSYSTEM=="usb", ATTR{idVendor}=="04da", MODE="0666"
#Qualcomm
SUBSYSTEM=="usb", ATTR{idVendor}=="05c6", MODE="0666"
#SK Telesys
SUBSYSTEM=="usb", ATTR{idVendor}=="1f53", MODE="0666"
#Samsung
SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", MODE="0666"
#Sharp
SUBSYSTEM=="usb", ATTR{idVendor}=="04dd", MODE="0666"
#Sony Ericsson
SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", MODE="0666"
#Toshiba
SUBSYSTEM=="usb", ATTR{idVendor}=="0930", MODE="0666"
#ZTE
SUBSYSTEM=="usb", ATTR{idVendor}=="19D2", MODE="0666"
Save the file and enter this into the terminal :
Code:
sudo chmod a+r /etc/udev/rules.d/51-android.rules
Install repo
Code:
mkdir -p ~/bin
mkdir -p ~/android-sdk
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repo
Initialize the repo(use "-b jellybean" for CM10)
Code:
mkdir WORKING_DIRECTORY
cd WORKING_DIRECTORY
repo init -u git://github.com/CyanogenMod/android.git -b cm-10.1
When asked for, enter your real name and email.
Sync your repo
Enter this into terminal. This will take a while according to your connection.
Code:
repo sync -j16
NOTE: According to your connection change the -j16. I use -j16 with a 100Mbit connection. Drop to -j8 if you have 10Mbit connection or even less if you have a slower connection or you will get connection errors.
Click to expand...
Click to collapse
Add i9001 to the device list
Change your directory to where you will clone the device tree:
Code:
cd WORKING_DIRECTORY/device
mkdir samsung
cd samsung
Clone the device tree from remote to local (Change git to whatever you want, I used the ADC team as an example) :
Code:
git clone git://github.com/AriesVE-DevCon-TEAM/android_device_samsung_ariesve.git -b cm-10.1 ariesve
NOTE: Use -b jb-3.0 for CM10
Now cd to ariesve :
Code:
cd ariesve
Connect your phone to your computer and make sure debugging is open and adb is set up.
Get vendor files :
Code:
cd ~/WORKING_DIRECTORY/vendor
mkdir samsung
cd samsung
git clone git://github.com/ivendor/android_vendor_samsung_ariesve.git -b jellybean ariesve
Get extra files
Code:
~/WORKING_DIRECTORY/vendor/cm/get-prebuilts
Go back to your home dir to build :
Code:
cd ~/WORKING_DIRECTORY
Get some needed files
FOR CM10.1:
You can either fetch from a dev's git or just download frameworks/av and frameworks/native completely and replace it with your own if you find that easier. I'll just do the latter for the sake of simplicity:
Code:
cd frameworks
rm -rf av
rm -rf native
git clone https://github.com/camcory/android_frameworks_av.git -b cm-10.1 av
git clone https://github.com/camcory/android_frameworks_native.git -b cm-10.1 native
cd ..
FOR CM10:
Download this script and give it permission to execute in settings and open it. Choose to run from terminal and follow the script. This should fix any errors you get while compiling. Credits to blackmambazzz for the script.
Code:
[url]http://www.mediafire.com/?b1kj0slcwo9r707[/url]
Build CM
Prepare to compile :
Code:
. build/envsetup.sh
Now compile for device
Code:
brunch ariesve -j#
Change # according to your CPU cores. It should usually be CPU cores+1.
If you wish to be able to see the errors despite it being very slow enter -j1.
Click to expand...
Click to collapse
Fixes for some errors
If you are running into issues such as:
Code:
Which would you like? [full-eng] 5
build/core/product_config.mk:209: *** No matches for product "ariesve". Stop.
Device ariesve not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Repository for shooter not found in the CyanogenMod Github repository list. If this is in error, you may need to manually add it to your local_manifest.xml.
build/core/product_config.mk:209: *** No matches for product "ariesve". Stop.
** Don't have a product spec for: 'ariesve'
** Do you have the right repo manifest?
What you need to do is to edit your blob to match the PRODUCT_NAME to the file name. For example with mine I have full_ariesve.mk therefore in this file I need to have PRODUCT_NAME to match it. Whatever error it is looking for you just need to change the PRODUCT_NAME line to match what the error shows.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
If you run into issues with Java being the incorrect version here is the fix:
Make sure Java 6 JDK is installed by typing in:
Code:
java -version
Open the file main.mk in build/core and delete this line from the java error code section:
Code:
$(error stop)
Credits
arco68
ivendor
Doomsday94
dastin1015
camcory
This tutorial is based off of this one : http://forum.xda-developers.com/showthread.php?t=1762641
This is my first time making a tutorial so please tell me if I missed something . I wish you guys luck on your builds.
Here is an example of what happens if it builds correctly :
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Nice tutorial dude!
Really easy to understand and well wrote.
Keep up the good work!
Thank you so much I bookmarked this thread and I might really try it. Have been wondering about this already but I m not a programmer of profession, though I have a bit of experience in it.. will see.. thank you !
Instead of the combination
Code:
lunch # && make -j# otapackage
you also can use simply
Code:
brunch ariesve
which will do the same.
Thank You Very Much ,, I'm Now in repo sync, When it finishes , i'll see if it builds well ( hopefully ) :good:
Nice guide...now at office...will try after going home.
Sent from my GT-I9001 using xda premium
crybert said:
Instead of the combination
Code:
lunch # && make -j# otapackage
you also can use simply
Code:
brunch ariesve
which will do the same.
Click to expand...
Click to collapse
Yeah I guess but you need to add ariesve to the brunch list. I thought this would be easier or do I know it wrong? Thanks for your suggestion
Edit: Ahaha, sorry crybert. I had tried before but the device wasn't in the list so I thought we had to add it there. After checking again it's there
Sent from my GT-I9001 using xda premium
Xistance said:
Enter toolchain path to .bashrc in your home dir. Use ctrl+h to see it. Enter your username where needed.
Click to expand...
Click to collapse
Is the toolchain in android sdk ??
UpGado said:
Is the toolchain in android sdk ??
Click to expand...
Click to collapse
Yeah, fixed that. Sorry for the wrong path :S
After getting a PM I noticed I got some paths wrong. I fixed them all now and it should be fully okay. Sorry if anyone couldn't build it correctly before this .
Edit : Please follow the steps starting with the repo init. Before, since I made you guys cd to the wrong folder to init repo the sync also went to the wrong folder. CD to the working dir and init repo again and then sync. If you don't want to wait that long again for it to sync again since I probably made you sync to the wrong folder, use Ctrl+H at where you synced and copy paste the .repo folder to the WORKING_DIRECTORY folder and sync again.
Perhaps an stupid and noob question, but why Ubuntu x64? And not x32? :silly:
mrjraider said:
Perhaps an stupid and noob question, but why Ubuntu x64? And not x32? :silly:
Click to expand...
Click to collapse
I don't know the specific reason but Google said it must be 64bit. You shouldn't even be trying to build with less than 4GB of RAM anyway. It wasn't a stupid question. All questions are welcome here .
Xistance said:
I don't know the specific reason but Google said it must be 64bit. You shouldn't even be trying to build with less than 4GB of RAM anyway. It wasn't a stupid question. All questions are welcome here .
Click to expand...
Click to collapse
Also a decent CPU? I got an intel dual core 2,0 ghz and 3GB RAM..
Haha, I am not able to try it haha.
Thanks for the info :silly:
mrjraider said:
Also a decent CPU? I got an intel dual core 2,0 ghz and 3GB RAM..
Haha, I am not able to try it haha.
Thanks for the info :silly:
Click to expand...
Click to collapse
You can still build it if you want . It might be a little slower than usual but if you are willing do it for the development of JB for our device than it is fine.
i am trying to make ics with arco source following this tutorial with repo sync of ics.
i am facing these errors..
build/core/base_rules.mk:166: *** hardware/msm7k/liblights: MODULE.TARGET.SHARED_LIBRARIES.lights.msm7x30 already defined by device/samsung/ariesve/liblight. Stop.
i am getting this error???? Help
Edit : i corrected it but now i am stucking at
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.1
TARGET_PRODUCT=cm_ariesve
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=ITL41D
============================================
build/core/main.mk:322: implicitly installing apns-conf_sdk.xml
No private recovery resources for TARGET_DEVICE ariesve
make: *** No rule to make target `hardware/qcom/gps/loc_api/libloc_api-rpc/inc-50000/loc_api_cb.h', needed by `out/target/product/ariesve/obj/include/libloc_api-rpc/inc/loc_api_cb.h'. Stop.
????????
nikku_hot123 said:
i am trying to make ics with arco source following this tutorial with repo sync of ics.
i am facing these errors..
build/core/base_rules.mk:166: *** hardware/msm7k/liblights: MODULE.TARGET.SHARED_LIBRARIES.lights.msm7x30 already defined by device/samsung/ariesve/liblight. Stop.
i am getting this error???? Help
Edit : i corrected it but now i am stucking at
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.1
TARGET_PRODUCT=cm_ariesve
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=ITL41D
============================================
build/core/main.mk:322: implicitly installing apns-conf_sdk.xml
No private recovery resources for TARGET_DEVICE ariesve
make: *** No rule to make target `hardware/qcom/gps/loc_api/libloc_api-rpc/inc-50000/loc_api_cb.h', needed by `out/target/product/ariesve/obj/include/libloc_api-rpc/inc/loc_api_cb.h'. Stop.
????????
Click to expand...
Click to collapse
First of all,
PLATFORM_VERSION=4.0.1
BUILD_ID=ITL41D
Why is your version and build ID that? The version it says is ICS, not JB. They should be 4.1.1 and JRO03L(I think that was it). Did you make sure to clone the git as jellybean?
okey my source was incorrect i resynched the source of cm9 as i am trying to make cm9 with your tutorial.
now i cloned ivendor ics branch. but while compiling now i am getting following error after 15 minutes.
Plz help???
Code:
target thumb C: audio.a2dp.default <= external/bluetooth/bluez/audio/../sbc/sbc_primitives_neon.c
target thumb C: audio.a2dp.default <= external/bluetooth/bluez/audio/../sbc/sbc_primitives_armv6.c
target thumb C: libpower <= hardware/libhardware_legacy/power/power.c
target thumb C: audio.primary.default <= hardware/libhardware/modules/audio/audio_hw.c
target thumb C++: audio.primary.msm7x30 <= hardware/qcom/media/audio/msm7x30/AudioHardware.cpp
make: *** No rule to make target `out/target/product/ariesve/obj/lib/libaudioalsa.so', needed by `out/target/product/ariesve/obj/SHARED_LIBRARIES/audio.primary.msm7x30_intermediates/LINKED/audio.primary.msm7x30.so'. Stop.
make: *** Waiting for unfinished jobs....
target thumb C++: audio.primary.msm7x30 <= hardware/qcom/media/audio/msm7x30/audio_hw_hal.cpp
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp: In function 'android::status_t android_audio_legacy::updateDeviceInfo(int, int, uint32_t, uint32_t)':
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:410: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:433: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:463: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:463: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.h: In constructor 'android_audio_legacy::AudioHardware::AudioHardware()':
hardware/qcom/media/audio/msm7x30/AudioHardware.h:618: warning: 'android_audio_legacy::AudioHardware::mOutput' will be initialized after
hardware/qcom/media/audio/msm7x30/AudioHardware.h:613: warning: 'bool android_audio_legacy::AudioHardware::mBluetoothVGS'
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:527: warning: when initialized here
hardware/qcom/media/audio/msm7x30/AudioHardware.h:636: warning: 'android_audio_legacy::AudioHardware::mEffectEnabled' will be initialized after
hardware/qcom/media/audio/msm7x30/AudioHardware.h:611: warning: 'int android_audio_legacy::AudioHardware::mFmFd'
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:527: warning: when initialized here
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:595: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp: In member function 'virtual android::status_t android_audio_legacy::AudioHardware::setVoiceVolume(float)':
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1379: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1380: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1381: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp: In function 'android::status_t android_audio_legacy::do_route_audio_rpc(uint32_t, bool, bool, uint32_t, uint32_t)':
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1561: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1651: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1653: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1659: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1659: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1673: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1676: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1680: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1686: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1711: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1711: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp: In member function 'android::status_t android_audio_legacy::AudioHardware::doRouting(android_audio_legacy::AudioHardware::AudioStreamInMSM72xx*)':
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:2358: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:2361: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp: In member function 'virtual ssize_t android_audio_legacy::AudioHardware::AudioStreamInMSM72xx::read(void*, ssize_t)':
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:4132: warning: format '%d' expects type 'int', but argument 4 has type 'ssize_t'
nikku_hot123 said:
okey my source was incorrect i resynched the source of cm9 as i am trying to make cm9 with your tutorial.
now i cloned ivendor ics branch. but while compiling now i am getting following error after 15 minutes.
Plz help???
Code:
target thumb C: audio.a2dp.default <= external/bluetooth/bluez/audio/../sbc/sbc_primitives_neon.c
target thumb C: audio.a2dp.default <= external/bluetooth/bluez/audio/../sbc/sbc_primitives_armv6.c
target thumb C: libpower <= hardware/libhardware_legacy/power/power.c
target thumb C: audio.primary.default <= hardware/libhardware/modules/audio/audio_hw.c
target thumb C++: audio.primary.msm7x30 <= hardware/qcom/media/audio/msm7x30/AudioHardware.cpp
make: *** No rule to make target `out/target/product/ariesve/obj/lib/libaudioalsa.so', needed by `out/target/product/ariesve/obj/SHARED_LIBRARIES/audio.primary.msm7x30_intermediates/LINKED/audio.primary.msm7x30.so'. Stop.
make: *** Waiting for unfinished jobs....
target thumb C++: audio.primary.msm7x30 <= hardware/qcom/media/audio/msm7x30/audio_hw_hal.cpp
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp: In function 'android::status_t android_audio_legacy::updateDeviceInfo(int, int, uint32_t, uint32_t)':
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:410: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:433: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:463: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:463: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.h: In constructor 'android_audio_legacy::AudioHardware::AudioHardware()':
hardware/qcom/media/audio/msm7x30/AudioHardware.h:618: warning: 'android_audio_legacy::AudioHardware::mOutput' will be initialized after
hardware/qcom/media/audio/msm7x30/AudioHardware.h:613: warning: 'bool android_audio_legacy::AudioHardware::mBluetoothVGS'
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:527: warning: when initialized here
hardware/qcom/media/audio/msm7x30/AudioHardware.h:636: warning: 'android_audio_legacy::AudioHardware::mEffectEnabled' will be initialized after
hardware/qcom/media/audio/msm7x30/AudioHardware.h:611: warning: 'int android_audio_legacy::AudioHardware::mFmFd'
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:527: warning: when initialized here
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:595: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp: In member function 'virtual android::status_t android_audio_legacy::AudioHardware::setVoiceVolume(float)':
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1379: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1380: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1381: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp: In function 'android::status_t android_audio_legacy::do_route_audio_rpc(uint32_t, bool, bool, uint32_t, uint32_t)':
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1561: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1651: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1653: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1659: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1659: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1673: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1676: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1680: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1686: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1711: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1711: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp: In member function 'android::status_t android_audio_legacy::AudioHardware::doRouting(android_audio_legacy::AudioHardware::AudioStreamInMSM72xx*)':
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:2358: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:2361: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp: In member function 'virtual ssize_t android_audio_legacy::AudioHardware::AudioStreamInMSM72xx::read(void*, ssize_t)':
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:4132: warning: format '%d' expects type 'int', but argument 4 has type 'ssize_t'
Click to expand...
Click to collapse
For CM9 you need to cherry-pick or pull the following commit for working audio: http://review.cyanogenmod.com/#/c/21004/
thanks cybert.
i fixed that but now i am getting error related to camera HAL??
Code:
target thumb C++: camera.msm7x30 <= device/samsung/ariesve/camerahal/cameraHAL.cpp
device/samsung/ariesve/camerahal/cameraHAL.cpp:34:27: error: ui/OverlayHtc.h: No such file or directory
target thumb C++: copybit.msm7x30 <= hardware/qcom/display/libcopybit/copybit_c2d.cpp
device/samsung/ariesve/camerahal/cameraHAL.cpp: In function 'int camera_set_preview_window(camera_device*, preview_stream_ops*)':
device/samsung/ariesve/camerahal/cameraHAL.cpp:495: error: invalid use of incomplete type 'struct android::eek:verlay'
device/samsung/ariesve/camerahal/CameraHardwareInterface.h:29: error: forward declaration of 'struct android::eek:verlay'
target thumb C++: copybit.msm7x30 <= hardware/qcom/display/libcopybit/software_converter.cpp
make: *** [out/target/product/ariesve/obj/SHARED_LIBRARIES/camera.msm7x30_intermediates/cameraHAL.o] Error 1
make: *** Waiting for unfinished jobs....
hardware/qcom/display/libcopybit/copybit_c2d.cpp:177: warning: missing initializer for member 'hw_module_t::dso'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:177: warning: missing initializer for member 'hw_module_t::reserved'
hardware/qcom/display/libcopybit/copybit_c2d.cpp: In function 'int msm_copybit(copybit_context_t*, blitlist*, uint32)':
hardware/qcom/display/libcopybit/copybit_c2d.cpp:728: warning: comparison between signed and unsigned integer expressions
hardware/qcom/display/libcopybit/copybit_c2d.cpp: In function 'int open_copybit(const hw_module_t*, const char*, hw_device_t**)':
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1330: warning: missing initializer for member 'C2D_RGB_SURFACE_DEF::width'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1330: warning: missing initializer for member 'C2D_RGB_SURFACE_DEF::height'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1330: warning: missing initializer for member 'C2D_RGB_SURFACE_DEF::buffer'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1330: warning: missing initializer for member 'C2D_RGB_SURFACE_DEF::phys'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1330: warning: missing initializer for member 'C2D_RGB_SURFACE_DEF::stride'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::width'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::height'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::plane0'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::phys0'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::stride0'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::plane1'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::phys1'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::stride1'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::plane2'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::phys2'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::stride2'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1486: warning: comparison between signed and unsigned integer expressions
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1490: warning: comparison between signed and unsigned integer expressions
hardware/qcom/display/libcopybit/copybit_c2d.cpp: In function 'int set_image(int, uint32, const copybit_image_t*, int*, uint32_t*, eC2DFlags)':
hardware/qcom/display/libcopybit/copybit_c2d.cpp:488: warning: 'yuvInfo.yuvPlaneInfo::plane2_offset' may be used uninitialized in this function
hardware/qcom/display/libcopybit/copybit_c2d.cpp:490: warning: 'yuvInfo.yuvPlaneInfo::plane2_stride' may be used uninitialized in this function
nikku_hot123 said:
thanks cybert.
i fixed that but now i am getting error related to camera HAL??
Code:
target thumb C++: camera.msm7x30 <= device/samsung/ariesve/camerahal/cameraHAL.cpp
device/samsung/ariesve/camerahal/cameraHAL.cpp:34:27: error: ui/OverlayHtc.h: No such file or directory
target thumb C++: copybit.msm7x30 <= hardware/qcom/display/libcopybit/copybit_c2d.cpp
device/samsung/ariesve/camerahal/cameraHAL.cpp: In function 'int camera_set_preview_window(camera_device*, preview_stream_ops*)':
device/samsung/ariesve/camerahal/cameraHAL.cpp:495: error: invalid use of incomplete type 'struct android::eek:verlay'
device/samsung/ariesve/camerahal/CameraHardwareInterface.h:29: error: forward declaration of 'struct android::eek:verlay'
target thumb C++: copybit.msm7x30 <= hardware/qcom/display/libcopybit/software_converter.cpp
make: *** [out/target/product/ariesve/obj/SHARED_LIBRARIES/camera.msm7x30_intermediates/cameraHAL.o] Error 1
make: *** Waiting for unfinished jobs....
hardware/qcom/display/libcopybit/copybit_c2d.cpp:177: warning: missing initializer for member 'hw_module_t::dso'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:177: warning: missing initializer for member 'hw_module_t::reserved'
hardware/qcom/display/libcopybit/copybit_c2d.cpp: In function 'int msm_copybit(copybit_context_t*, blitlist*, uint32)':
hardware/qcom/display/libcopybit/copybit_c2d.cpp:728: warning: comparison between signed and unsigned integer expressions
hardware/qcom/display/libcopybit/copybit_c2d.cpp: In function 'int open_copybit(const hw_module_t*, const char*, hw_device_t**)':
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1330: warning: missing initializer for member 'C2D_RGB_SURFACE_DEF::width'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1330: warning: missing initializer for member 'C2D_RGB_SURFACE_DEF::height'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1330: warning: missing initializer for member 'C2D_RGB_SURFACE_DEF::buffer'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1330: warning: missing initializer for member 'C2D_RGB_SURFACE_DEF::phys'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1330: warning: missing initializer for member 'C2D_RGB_SURFACE_DEF::stride'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::width'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::height'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::plane0'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::phys0'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::stride0'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::plane1'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::phys1'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::stride1'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::plane2'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::phys2'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::stride2'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1486: warning: comparison between signed and unsigned integer expressions
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1490: warning: comparison between signed and unsigned integer expressions
hardware/qcom/display/libcopybit/copybit_c2d.cpp: In function 'int set_image(int, uint32, const copybit_image_t*, int*, uint32_t*, eC2DFlags)':
hardware/qcom/display/libcopybit/copybit_c2d.cpp:488: warning: 'yuvInfo.yuvPlaneInfo::plane2_offset' may be used uninitialized in this function
hardware/qcom/display/libcopybit/copybit_c2d.cpp:490: warning: 'yuvInfo.yuvPlaneInfo::plane2_stride' may be used uninitialized in this function
Click to expand...
Click to collapse
You need this: http://review.cyanogenmod.com/#/c/13285/

Creating your CM ROM for Galaxy S plus

Credits:
Thanks to Arco, Realtyem and andres_a whose posts helped me to build the ROM from sources.
Most of the post is copied from the guide YardE's guide and a pdf whose author I could not find later. (Please let me know if I have missed somebody.)
*******************************************************
First get the build tools:
*******************************************************
1. Get the packages required for building the ROM.
On 10.04
Code:
sudo apt-get install git-core gnupg flex bison gperf build-essential \
zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs \
x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev \
libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown \
libxml2-utils
sudo ln -s /usr/lib32/mesa/libGL.so.1 /usr/lib32/mesa/libGL.so
2. Download repo tool,
Code:
curl [url]https://dl-ssl.google.com/dl/googlesource/git-repo/repo[/url] > /tmp/repo
sudo mv /tmp/repo /usr/local/bin
export PATH=$PATH:/usr/local/bin
*******************************************************
Next: Get the source
*******************************************************
I have tried to build the source code from CyanogenMod for ICS version of Android and the device Samsung Galaxy S plus. (Already ported by Arco )
This example uses their repositories to download the code,
1. Get the android source code:
Code:
cd ~/work/cyanogenmod
repo init -u git://github.com/CyanogenMod/android.git -b ics
repo sync
The repo sync command takes some time which depends on your internet connection speed.
2. The above commands download the generic source code. For creating the ROM for the device Galaxy S Plus, we need to use the Arco's repositories.
3. Create a local_manifest.xml in ~/work/cyanogenmod/.repo as follows
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="arco" fetch="https://github.com/arco"/>
<project path="device/samsung/ariesve" name="android_device_samsung_ariesve" revision="ics" remote="arco"/>
<project path="kernel/ariesve" name="samsung-kernel-ariesve" remote="arco" revision="ics"/>
<project path="vendor/samsung/ariesve" name="android_vendor_samsung_ariesve" remote="arco" revision="ics"/>
<project path="frameworks/base" name="android_frameworks_base" remote="arco" revision="ics" />
<project path="kernel/msm7x30" name="samsung-kernel-msm7x30" remote="arco" revision="ics-2.6.35" />
</manifest>
4. Perform repo sync.
Code:
repo sync
*******************************************************
Building Kernel
*******************************************************
It is not necessary to build kernel – the one Arco have build is already located in ~/work/cyanogenmod/device/samsung/ariesve/prebuilt.
But if you still want to do that by our own, you should do the next thing: Download running kernel's config from your dvevice, then ungzip it and
save it as ~/work/cyanogenmod/kernel/ariesve/.config
Code:
adb pull /proc/config.gz
cat config.gz | gunzip > ~/work/cyanogenmod/kernel/ariesve/.config
rm config.gz
After that you should declare cross-compiler path variable:
Code:
export CCOMPILER=~/work/cyanogenmod/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-
Next step is to run
Code:
make oldconfig
Feel free to modify config, for example in ncurses gui:
Code:
make menuconfig
When you're done just execute
Code:
make ARCH=arm CROSS_COMPILE=$CCOMPILER -j5
where -j5 is number of your CPU cores+1;
When compile is over, the resulting zImage will be located in ~/work/cyanogenmod/kernel/ariesve/arch/arm/boot
As mentioned before, you should place it into ~/work/cyanogenmod/device/samsung/ariesve/prebuilt
So when kernel is ready, it's time for the greatest thing:
*******************************************************
Building CyanogenMod 9
*******************************************************
So when all the sources are downloaded, and (optional) kernel is built
let's start to build the CM.
First of all, download prebuilds:
Code:
~/work/cyanogenmod/vendor/cm/get-prebuilts
If you skipped kernel build chapter, please, export CCOMPILER
variable as mentioned there.
Next, edit file: ~/work/cyanogenmod/vendor/samsung/ariesve/device-vendorblobs.mk
and change “ancora” to “ariesve” on lines 25-28
and file ~/work/cyanogenmod/device/samsung/ariesve/BoardConfig.mk
and change “ancora” to “ariesve” on line 132.
The final part is actually building:
Code:
cd ~/work/cyanogenmod
bash
source build/envsetup.sh
lunch full_ariesve-eng
I wrote “bash” in the list of commands because envsetup.sh script
doesn't support some other shells.
Run the make command.
*******************************************************
Build issues.
*******************************************************
1. If you face an issue due to OverlayHtc.h file not found as below:
Code:
Notice file: hardware/libhardware_legacy/NOTICE -- out/target/product/ariesve/obj/NOTICE_FILES/src//system/lib/libpower.so.txt
Copy: out/target/product/ariesve/obj/lib/libaudioalsa.so
Copy: out/target/product/ariesve/obj/lib/libcamera.
target thumb C++: camera.msm7x30 <= device/samsung/ariesve/camerahal/cameraHAL.cpp
device/samsung/ariesve/camerahal/cameraHAL.cpp:31:27: error: ui/OverlayHtc.h: No such file or directory
Notice file: hardware/qcom/display/libcopybit/NOTICE -- out/target/product/ariesve/obj/NOTICE_FILES/src//system/lib/hw/copybit.msm7x30.so.txt
device/samsung/ariesve/camerahal/cameraHAL.cpp: In function 'camera_memory_t* wrap_memory_data(priv_camera_device_t*, const android::sp<android::IMemory>&)':
device/samsung/ariesve/camerahal/cameraHAL.cpp:268: warning: format '%x' expects type 'unsigned int', but argument 4 has type 'ssize_t'
device/samsung/ariesve/camerahal/cameraHAL.cpp: In function 'int camera_set_preview_window(camera_device*, preview_stream_ops*)':
device/samsung/ariesve/camerahal/cameraHAL.cpp:488: error: invalid use of incomplete type 'struct android::eek:verlay'
device/samsung/ariesve/camerahal/CameraHardwareInterface.h:29: error: forward declaration of 'struct android::eek:verlay'
make: *** [out/target/product/ariesve/obj/SHARED_LIBRARIES/camera.msm7x30_intermediates/cameraHAL.o] Error 1
make: *** Waiting for unfinished jobs....
You need to get the fix by using following command:
Code:
cd ~/work/cyanogenmod/frameworks/base/ && git fetch [url]http://review.cyanogenmod.com/CyanogenMod/android_frameworks_base[/url] refs/changes/85/13285/8 && git cherry-pick FETCH_HEAD
(Thanks to the post on xda: http://forum.xda-developers.com/showthread.php?p=27475486#post27475486)
2. If you face an issue in compiling charger.c with following error:
Code:
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/crespo/obj/EXECUTABLES/charger_intermediates/charger.o: in function main:system/core/charger/charger.c:958: error: undefined reference to 'gr_font_size'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/crespo/obj/EXECUTABLES/charger_intermediates/charger.o: in function main:system/core/charger/charger.c:991: error: undefined reference to 'gr_fb_blank'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/crespo/obj/EXECUTABLES/charger_intermediates/charger.o: in function main:system/core/charger/charger.c:699: error: undefined reference to 'gr_fb_blank'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/crespo/obj/EXECUTABLES/charger_intermediates/charger.o: in function main:system/core/charger/charger.c:732: error: undefined reference to 'gr_fb_blank'
If you aren't afraid of doing some editing, grab the function "gr_fb_blank"(line 377) and "gr_font_size" (line 210) out of bootable/recovery/minui/graphics.c and paste them into device/samsung/crespo/graphics.c (at the end of the file, and at line 158, respectively) for now. Tested booting, and tested system off charging and both seem to be ok. I'm not gonna look at logs since nothing is acting wonky lol.
(Thanks to the post on xda: http://forum.xda-developers.com/showthread.php?t=1399035&page=676)
==================================================
Ref. threads:
http://forum.xda-developers.com/showthread.php?t=1650615
Nice, but I don't recommend to use the outdated framework/base repo by arco.
Instead I suggest to use the CM repo and do the following.
Needs to be done once
Code:
cd frameworks/base
git remote add arco git://github.com/arco/android_frameworks_base.git
git fetch arco
Needs to be done after every repo sync
Code:
git cherry-pick 748a5e5f70858e5f5f77c65b7c185ec980f821f5
git cherry-pick f6d9aa858cbcabb29c1f941e2e8f0672360985ba
git cherry-pick 1a3e62ddae28b3f871ced2c1d40a18c7d8a6ea7d
So you can use the CM9 repo with the necessary changes made by arco.
EDIT:
And the CODE-Tags will make your post better readable.
I think that unknown pdf file tutorial is of vpukin..
Sent from my GT-I9001 using Tapatalk 2
also this isnt needed to synch in manifest.xml
<project path="vendor/samsung/ancora" name="android_vendor_samsung_ancora" remote="arco" revision="ics"/>
Click to expand...
Click to collapse
it isnt i9001 related
texten said:
also this isnt needed to synch in manifest.xml
it isnt i9001 related
Click to expand...
Click to collapse
right.
"ancora" is Galaxy W I8150, arco's phone
...but...where is the sense of this thread? only a cm9 tutorial for...build another ones?
Good guide , But why is there a $ in front of each command ? , when i enter them it gives error
PS: You can surround all codes with CODE Tags
Thanks for suggestion.
I would update the guide with code tags.
what packages I need to download for ubuntu 12.04?[finded]
hemansan said:
2. Download repo tool,
Code:
curl [url]https://dl-ssl.google.com/dl/googlesource/git-repo/repo[/url] > /tmp/repo
sudo mv /tmp/repo /usr/local/bin
export PATH=$PATH:/usr/local/bin
Click to expand...
Click to collapse
one command is missing
Code:
sudo chmod +x /usr/local/bin/repo

[DEV] - Compile Unofficial CM10 for Pantech Flex

To compile Unofficial CyanogenMod for Pantech Flex P8010 (oscar), following the next steps.
1º - Prepare the Build Environment:
This step is based on the following tutorial: [Tutorial] Compile JB on Ubuntu - Thanks dastin1015.
A) Install Python and Git:
Code:
$ sudo apt-get install python
Code:
$ sudo apt-get install git-core
B) Install Android SDK:
- Download the SDK here: http://developer.android.com/sdk/index.html
- Extract the SDK and place it in your home directory.
- I renamed my SDK to android-sdk to make it easier to navigate to.
- Go to your home folder, press Ctrl+H to show hidden files, and open up your .bashrc file.
- Add these lines at the bottom of the file:
Code:
# Android tools
export PATH=${PATH}:~/android-sdk/tools
export PATH=${PATH}:~/android-sdk/platform-tools
export PATH=${PATH}:~/bin
- Find your .profile file and add this at the bottom of the file:
Code:
PATH="$HOME/android-sdk/tools:$HOME/android-sdk/platform-tools:$PATH"
You have now successfully installed the Android SDK.
To check for updates issue this into your terminal:
Code:
$ android
C) Install required packages:
Building on Ubuntu 10.10/11.10:
Code:
$ sudo apt-get install git-core gnupg flex bison gperf build-essential \
zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs \
x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev \
libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown \
libxml2-utils xsltproc
On Ubuntu 10.10:
Code:
$ sudo ln -s /usr/lib32/mesa/libGL.so.1 /usr/lib32/mesa/libGL.so
On Ubuntu 11.10:
Code:
$ sudo apt-get install libx11-dev:i386
On newer versions of Ubuntu such as 11.10 you may need to do the following:
Code:
$ sudo ln -s /usr/lib/i386-linux-gnu/libX11.so.6 /usr/lib/i386-linux-gnu/libX11.so
Building on Ubuntu 12.04/10:
Code:
$ sudo apt-get install git-core gnupg flex bison gperf build-essential \
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
libgl1-mesa-dev g++-multilib mingw32 openjdk-6-jdk tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev:i386 \
pngcrush optipng
Code:
$ sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
D) Install Oracle Java 6:
To install Oracle Java 6 in Ubuntu via PPA: http://www.webupd8.org/2012/11/oracle-sun-java-6-installer-available.html
Code:
$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
$ sudo apt-get install oracle-java6-installer
After the installation, check the version of java, using the command:
Code:
$ java -version
Output console:
Code:
java version "1.6.0_38"
Java(TM) SE Runtime Environment (build 1.6.0_38-b05)
Java HotSpot(TM) 64-Bit Server VM (build 20.13-b02, mixed mode)
Note: The installed version of java, may have been updated, but should be kept in version 1.6.XX
Verify the symlinks:
Code:
$ ls -la /etc/alternatives/java* && ls -la /etc/alternatives/jar
Output console:
Code:
lrwxrwxrwx 1 root root 39 ene 17 08:02 /etc/alternatives/java -> /usr/lib/jvm/java-6-oracle/jre/bin/java
lrwxrwxrwx 1 root root 45 ene 17 08:02 /etc/alternatives/java.1.gz -> /usr/lib/jvm/java-6-oracle/man/man1/java.1.gz
lrwxrwxrwx 1 root root 36 ene 17 08:02 /etc/alternatives/javac -> /usr/lib/jvm/java-6-oracle/bin/javac
lrwxrwxrwx 1 root root 46 ene 17 08:02 /etc/alternatives/javac.1.gz -> /usr/lib/jvm/java-6-oracle/man/man1/javac.1.gz
lrwxrwxrwx 1 root root 38 ene 17 08:02 /etc/alternatives/javadoc -> /usr/lib/jvm/java-6-oracle/bin/javadoc
lrwxrwxrwx 1 root root 48 ene 17 08:02 /etc/alternatives/javadoc.1.gz -> /usr/lib/jvm/java-6-oracle/man/man1/javadoc.1.gz
lrwxrwxrwx 1 root root 36 ene 17 08:02 /etc/alternatives/javah -> /usr/lib/jvm/java-6-oracle/bin/javah
lrwxrwxrwx 1 root root 46 ene 17 08:02 /etc/alternatives/javah.1.gz -> /usr/lib/jvm/java-6-oracle/man/man1/javah.1.gz
lrwxrwxrwx 1 root root 36 ene 17 08:02 /etc/alternatives/javap -> /usr/lib/jvm/java-6-oracle/bin/javap
lrwxrwxrwx 1 root root 46 ene 17 08:02 /etc/alternatives/javap.1.gz -> /usr/lib/jvm/java-6-oracle/man/man1/javap.1.gz
lrwxrwxrwx 1 root root 42 ene 17 08:02 /etc/alternatives/java_vm -> /usr/lib/jvm/java-6-oracle/jre/bin/java_vm
lrwxrwxrwx 1 root root 41 ene 17 08:02 /etc/alternatives/javaws -> /usr/lib/jvm/java-6-oracle/jre/bin/javaws
lrwxrwxrwx 1 root root 47 ene 17 08:02 /etc/alternatives/javaws.1.gz -> /usr/lib/jvm/java-6-oracle/man/man1/javaws.1.gz
lrwxrwxrwx 1 root root 34 ene 17 08:02 /etc/alternatives/jar -> /usr/lib/jvm/java-6-oracle/bin/jar
E) Configure your USB:
Code:
$ gksudo gedit /etc/udev/rules.d/51-android.rules
Inside of this blank text file insert:
Code:
#Acer
SUBSYSTEM=="usb", ATTR{idVendor}=="0502", MODE="0666"
#ASUS
SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", MODE="0666"
#Dell
SUBSYSTEM=="usb", ATTR{idVendor}=="413c", MODE="0666"
#Foxconn
SUBSYSTEM=="usb", ATTR{idVendor}=="0489", MODE="0666"
#Garmin-Asus
SUBSYSTEM=="usb", ATTR{idVendor}=="091E", MODE="0666"
#Google
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666"
#HTC
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666"
#Huawei
SUBSYSTEM=="usb", ATTR{idVendor}=="12d1", MODE="0666"
#K-Touch
SUBSYSTEM=="usb", ATTR{idVendor}=="24e3", MODE="0666"
#KT Tech
SUBSYSTEM=="usb", ATTR{idVendor}=="2116", MODE="0666"
#Kyocera
SUBSYSTEM=="usb", ATTR{idVendor}=="0482", MODE="0666"
#Lenevo
SUBSYSTEM=="usb", ATTR{idVendor}=="17EF", MODE="0666"
#LG
SUBSYSTEM=="usb", ATTR{idVendor}=="1004", MODE="0666"
#Motorola
SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", MODE="0666"
#NEC
SUBSYSTEM=="usb", ATTR{idVendor}=="0409", MODE="0666"
#Nook
SUBSYSTEM=="usb", ATTR{idVendor}=="2080", MODE="0666"
#Nvidia
SUBSYSTEM=="usb", ATTR{idVendor}=="0955", MODE="0666"
#OTGV
SUBSYSTEM=="usb", ATTR{idVendor}=="2257", MODE="0666"
#Pantech
SUBSYSTEM=="usb", ATTR{idVendor}=="10A9", MODE="0666"
#Philips
SUBSYSTEM=="usb", ATTR{idVendor}=="0471", MODE="0666"
#PMC-Sierra
SUBSYSTEM=="usb", ATTR{idVendor}=="04da", MODE="0666"
#Qualcomm
SUBSYSTEM=="usb", ATTR{idVendor}=="05c6", MODE="0666"
#SK Telesys
SUBSYSTEM=="usb", ATTR{idVendor}=="1f53", MODE="0666"
#Samsung
SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", MODE="0666"
#Sharp
SUBSYSTEM=="usb", ATTR{idVendor}=="04dd", MODE="0666"
#Sony Ericsson
SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", MODE="0666"
#Toshiba
SUBSYSTEM=="usb", ATTR{idVendor}=="0930", MODE="0666"
#ZTE
SUBSYSTEM=="usb", ATTR{idVendor}=="19D2", MODE="0666"
Save the file and close it and then issue this command:
Code:
$ sudo chmod a+r /etc/udev/rules.d/51-android.rules
2º - Create the Directories
You will need to set up some directories in your build environment.
Note: For the next steps, I modified the installation path sources, because in this way you can include other repositories (CAF, AOSP, etc ...).
To create them:
Code:
mkdir -p ~/bin
mkdir -p ~/android
mkdir -p ~/android/cyanogenmod
mkdir -p ~/android/cyanogenmod/jellybean
3º - Install the repo:
Enter the following to download make executable the "repo" binary:
Code:
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
Note: You may need to reboot for these changes to take effect.
4º - Install the CM10 Repository:
Now enter the following to initialize the CyanogenMod repository:
Code:
cd ~/android/cyanogenmod/jellybean/
repo init -u git://github.com/CyanogenMod/android.git -b jellybean
repo sync -j16
5º - Obtain the oscar device tree:
Create/Edit a file with the name roomservice.xml in the ".repo/local_manifests/" directory. To see this directory, you have to press Ctrl-H in your file manager.
Code:
mkdir -p ~/android/cyanogenmod/jellybean/.repo/local_manifests/
gedit ~/android/cyanogenmod/jellybean/.repo/local_manifests/roomservice.xml
Add these lines:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="mifl/android_device_pantech_oscar" path="device/pantech/oscar" remote="github" revision="jellybean" />
<project name="mifl/android_device_pantech_qcom-common" path="device/pantech/qcom-common" remote="github" revision="jellybean" />
<project name="mifl/android_device_pantech_msm8960-common" path="device/pantech/msm8960-common" remote="github" revision="jellybean" />
<project name="mifl/android_kernel_pantech_p8010" path="kernel/pantech/p8010" remote="github" revision="jellybean" />
</manifest>
Synchronize the repositories:
Code:
cd ~/android/cyanogenmod/jellybean/
repo sync
6º - Copy proprietary files:
Option 1:
To compile Pantech oscar, connect the device to the computer and ensure that ADB is working properly.
Code:
cd ~/android/cyanogenmod/jellybean/device/pantech/oscar
./extract-files.sh
Option 2:
You can also include the repository with the necessary files for compilation:
Code:
gedit ~/android/cyanogenmod/jellybean/.repo/local_manifests/roomservice.xml
Add this line:
Code:
<project name="mifl/android_vendor_pantech_oscar" path="vendor/pantech/oscar" remote="github" revision="jellybean" />
Synchronize the repositories:
Code:
cd ~/android/cyanogenmod/jellybean/
repo sync
7º - Download RomManager:
Note: This only needs to be done when an update to RomManager is released. If you are-up-to date, you may skip to Building CyanogenMod.
Download RomManager which is needed by the build:
Code:
cd ~/android/cyanogenmod/jellybean
./vendor/cm/get-prebuilts
8º - Building CyanogenMod:
First, check for updates in the source:
Code:
cd ~/android/cyanogenmod/jellybean/
repo sync
Now, the environment must be configured to build and the ROM compiled.
Code:
. build/envsetup.sh && brunch oscar
9º - Compiled files:
Files generated in the compilation are in the /out directory, the build file is:
~/android/cyanogenmod/jellybean/out/target/product/oscar/cm-10-XXXXX-UNOFFICIAL-oscar.zip
-------------------------------
I hope that more users try to compile the ROM, and report bugs they find. Any help is greatly appreciated.
Greetings.
**Reserved for future updates**
**Reserved for future updates**
**Reserved for future updates**
I followed your instructions to the lleter, and this is what i get.
build/core/product_config.mk:189: *** _nic.PRODUCTS.[[device/*/oscar/cm.mk]]: "device/*/oscar/cm.mk" does not exist.
Device oscar not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/Cyanogen
Repository for oscar not found in the CyanogenMod Github repository list. If this is in error, you may need to manuato your local_manifests/roomservice.xml.
build/core/product_config.mk:189: *** _nic.PRODUCTS.[[device/*/oscar/cm.mk]]: "device/*/oscar/cm.mk" does not exist.
** Don't have a product spec for: 'cm_oscar'
** Do you have the right repo manifest?
superbart007 said:
I followed your instructions to the lleter, and this is what i get.
build/core/product_config.mk:189: *** _nic.PRODUCTS.[[device/*/oscar/cm.mk]]: "device/*/oscar/cm.mk" does not exist.
Device oscar not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/Cyanogen
Repository for oscar not found in the CyanogenMod Github repository list. If this is in error, you may need to manuato your local_manifests/roomservice.xml.
build/core/product_config.mk:189: *** _nic.PRODUCTS.[[device/*/oscar/cm.mk]]: "device/*/oscar/cm.mk" does not exist.
** Don't have a product spec for: 'cm_oscar'
** Do you have the right repo manifest?
Click to expand...
Click to collapse
Sorry:
There is an error in the wording of post. The kernel repository was wrong, must be changed p9070 for P8010.
Code:
<project name="mifl/android_kernel_pantech_p8010" path="kernel/pantech/p8010" remote="github" revision="jellybean" />
The rest of the repositories are well, and have been updated today and compiled fine.
----------------------------------------------------------------------------------------------------------------
Update:
In CyanogenMod Source, ~/.repo/local_manifest.xml file has been changed to ~/.repo/local_manifests/roomservice.xml
To adapt to change into the your "~/.repo" dir, must create the dir "local_manifests", rename the file local_manifest.xml to roomservice.xml, and move it into the new dir.
----------------------------------------------------------------------------------------------------------------
Greetings.
Ok tried our again still no joy. But also your instructions never mention how the dir pantech, and oscar are made, and when i goto build it say it can't find the mk file in the /devices/pantech/oscar.
Sent from my PantechP8010 using xda app-developers app
superbart007 said:
Ok tried our again still no joy. But also your instructions never mention how the dir pantech, and oscar are made, and when i goto build it say it can't find the mk file in the /devices/pantech/oscar.
Sent from my PantechP8010 using xda app-developers app
Click to expand...
Click to collapse
Projects in the file roomservice.xml have this structure:
Code:
<project name="mifl/android_device_pantech_oscar" path="device/pantech/oscar" remote="github" revision="jellybean" />
Each of the fields is:
name: name of the repository.
path: directory where the files are placed.
remote: git server
Revision: version (branch) to synchronize.
Each time you add a line to your roomservice.xml, you must synchronize the repositories:
Code:
cd ~/android/cyanogenmod/jellybean/
repo sync
Greetings.
Ok thank you, I'm new at doing this, and I'm trying to learn.
Sent from my PantechP8010 using xda app-developers app
Berry does this compile include gapps pu or do i need to use a jb one from goo.im
Sent from my PantechP8010 using xda app-developers app
superbart007 said:
Berry does this compile include gapps pu or do i need to use a jb one from goo.im
Sent from my PantechP8010 using xda app-developers app
Click to expand...
Click to collapse
You have to download Google Apps and flash from CWM Recovery.
Greetings.
Ok cool thanks
Sent from my PantechP8010 using xda app-developers app
Refactor to use repo msm8960-common
Changes in the repositories structure:
The repositories are needed:
Code:
android_device_pantech_oscar
| - android_device_pantech_qcom-common
| - android_device_pantech_msm8960-common
| - android_kernel_pantech_p8010
| - android_vendor_pantech_oscar
To complete this refactoring, you need to add a repository to your file: ~/.repo/local_manifests/roomservice.xml:
Code:
<project name="mifl/android_device_pantech_msm8960-common" path="device/pantech/msm8960-common" remote="github" revision="jellybean" />
And synchronize:
Code:
repo sync
Greetings.
mifl said:
Changes in the repositories structure:
The repositories are needed:
Code:
android_device_pantech_oscar
| - android_device_pantech_qcom-common
| - android_device_pantech_msm8960-common
| - android_kernel_pantech_p8010
| - android_vendor_pantech_oscar
To complete this refactoring, you need to add a repository to your file: ~/.repo/local_manifest/roomservice.xml:
Code:
<project name="mifl/android_device_pantech_msm8960-common" path="device/pantech/msm8960-common" remote="github" revision="jellybean" />
And synchronize:
Code:
repo sync
Greetings.
Click to expand...
Click to collapse
im getting this error message on step 8
Device oscar not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Repository for oscar not found in the CyanogenMod Github repository list. If this is in error, you may need to manually add it to your local_manifests/roomservice.xml.
build/core/product_config.mk:189: *** _nic.PRODUCTS.[[device/*/oscar/cm.mk]]: "device/*/oscar/cm.mk" does not exist. Stop.
** Don't have a product spec for: 'cm_oscar'
** Do you have the right repo manifest?
No such item in brunch menu. Try 'breakfast'
Please help
atadres said:
im getting this error message on step 8
Device oscar not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Repository for oscar not found in the CyanogenMod Github repository list. If this is in error, you may need to manually add it to your local_manifests/roomservice.xml.
build/core/product_config.mk:189: *** _nic.PRODUCTS.[[device/*/oscar/cm.mk]]: "device/*/oscar/cm.mk" does not exist. Stop.
** Don't have a product spec for: 'cm_oscar'
** Do you have the right repo manifest?
No such item in brunch menu. Try 'breakfast'
Please help
Click to expand...
Click to collapse
Can you write the contents of your file: ~/.repo/local_manifest/roomservice.xml
Greetings.
mifl said:
Can you write the contents of your file: ~/.repo/local_manifest/roomservice.xml
Greetings.
Click to expand...
Click to collapse
sure heres what it says
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="mifl/android_device_pantech_oscar" path="device/pantech/oscar" remote="github" revision="jellybean" />
<project name="mifl/android_device_pantech_msm8960-common" path="device/pantech/msm8960-common" remote="github" revision="jellybean" />
<project name="mifl/android_device_pantech_qcom-common" path="device/pantech/qcom-common" remote="github" revision="jellybean" />
<project name="mifl/android_kernel_pantech_p8010" path="kernel/pantech/p8010" remote="github" revision="jellybean" />
</manifest>
atadres said:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="mifl/android_device_pantech_oscar" path="device/pantech/oscar" remote="github" revision="jellybean" />
<project name="mifl/android_device_pantech_msm8960-common" path="device/pantech/msm8960-common" remote="github" revision="jellybean" />
<project name="mifl/android_device_pantech_qcom-common" path="device/pantech/qcom-common" remote="github" revision="jellybean" />
<project name="mifl/android_kernel_pantech_p8010" path="kernel/pantech/p8010" remote="github" revision="jellybean" />
</manifest>
Click to expand...
Click to collapse
The file seems fine.
To ensure:
Code:
cp ~/android/cyanogenmod/jellybean/.repo/local_manifests/roomservice.xml ~/android/cyanogenmod/jellybean/.repo/local_manifest.xml
Synchronize the repository:
Code:
repo sync
If synchronizing the repository, you get an error, saying it has duplicate projects, you should delete the file: local_manifest.xml.
Greetings.
Ok got it build with no errors, but it just boot loops at the 1st showing of pantech. It could be that you are using cm10.1(jelly bean), and that there is only ics available for this phone. Could you post the changes to build cm9 and then I could give that a try.
superbart007 said:
Ok got it build with no errors, but it just boot loops at the 1st showing of pantech. It could be that you are using cm10.1(jelly bean), and that there is only ics available for this phone. Could you post the changes to build cm9 and then I could give that a try.
Click to expand...
Click to collapse
Before installing the rom, have you applied?
Wipe data/factory reset;
Wipe cache partition;
Advanced -> Wipe dalvik cache;
Greetings.
Yes wiped every thing.
Sent from my PantechP8010 using xda app-developers app

Build Aosp Extended on Ubuntu 18.04 (Bionic Beaver)

Build AOSP on ubuntu 18.04 Bionic Beaver
1. I suggest using screen when build so install it
sudo apt-get install screen
2. Add this line to /etc/apt/sources.list
deb http://cz.archive.ubuntu.com/ubuntu trusty main
3. Update repository list
sudo apt-get update
4. Install dependencies for building
mkdir -p ~/bin
wget 'https://storage.googleapis.com/git-repo-downloads/repo' -P ~/bin
chmod +x ~/bin/repo
sudo apt-get install openjdk-8-jdk android-tools-adb bc bison build-essential curl flex g++-multilib gcc-multilib gnupg gperf imagemagick lib32ncurses5-dev lib32readline-dev lib32z1-dev libesd0-dev liblz4-tool libncurses5-dev libsdl1.2-dev libssl-dev libwxgtk3.0-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc yasm zip zlib1g-dev git-core python
5. Setup git
git config --global user.name "your name"
git config --global user.email "your email"
6. Add repo path and enable ccache
nano ~/.bashrc
Add these lines to the bottom of bashrc
export PATH=~/bin:$PATH
export USE_CCACHE=1
export LC_ALL=C
Then to enable these use command
source ~/.bashrc
7. Make working directory
mkdir ~/android
cd ~/android
8. Initialise repo source (In this example we will use AospExtended Oreo )
repo init -u git://github.com/AospExtended/manifest.git -b 8.1.x
9. Sync repository (this could take a while depending on your internet connection, replace x with number of cores available remember to leave some free for system processes)
repo sync -c -jx --force-sync --no-clone-bundle --no-tags
10. Configure how much drive space ccache can use (I recommend 25-30gb)
prebuilts/misc/linux-x86/ccache/ccache -M 25G
11. Configure how much ram Jacks server can use (I recommend at least 8gb but the more resources you use the faster it will build)
export ANDROID_JACK_VM_ARGS="-Xmx8g -Dfile.encoding=UTF-8 -XX:+TieredCompilation"
12. Download device specific trees
Kernel tree
Device tree
Device Common Tree
Vendor Tree
these are specific to each device so you need ones that match your device
13. Build Initialise
. build/envsetup.sh
lunch aosp_devicename-userdebug
An example for Xiaomi Mi Max 2 codename (oxygen)
lunch aosp_oxygen-userdebug
14. Then to start building (replace x with available cores again the more cores made available the quicker it will compile)
make aex -jx
eva0034 said:
Build AOSP on ubuntu 18.04 Bionic Beaver
1. I suggest using screen when build so install it
sudo apt-get install screen
2. Add this line to /etc/apt/sources.list
deb http://cz.archive.ubuntu.com/ubuntu trusty main
3. Update repository list
sudo apt-get update
4. Install dependencies for building
mkdir -p ~/bin
wget 'https://storage.googleapis.com/git-repo-downloads/repo' -P ~/bin
chmod +x ~/bin/repo
sudo apt-get install openjdk-8-jdk android-tools-adb bc bison build-essential curl flex g++-multilib gcc-multilib gnupg gperf imagemagick lib32ncurses5-dev lib32readline-dev lib32z1-dev libesd0-dev liblz4-tool libncurses5-dev libsdl1.2-dev libssl-dev libwxgtk3.0-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc yasm zip zlib1g-dev git-core python
5. Setup git
git config --global user.name "your name"
git config --global user.email "your email"
6. Add repo path and enable ccache
nano ~/.bashrc
Add these lines to the bottom of bashrc
export PATH=~/bin:$PATH
export USE_CCACHE=1
Then to enable these use command
source ~/.bashrc
7. Make working directory
mkdir ~/android
cd ~/android
8. Initialise repo source (In this example we will use AospExtended Oreo )
repo init -u git://github.com/AospExtended/manifest.git -b 8.1.x
9. Sync repository (this could take a while depending on your internet connection, replace x with number of cores available remember to leave some free for system processes)
repo sync -c -jx --force-sync --no-clone-bundle --no-tags
10. Configure how much drive space ccache can use (I recommend 25-30gb)
prebuilts/misc/linux-x86/ccache/ccache -M 25G
11. Configure how much ram Jacks server can use (I recommend at least 8gb but the more resources you use the faster it will build)
export ANDROID_JACK_VM_ARGS="-Xmx8g -Dfile.encoding=UTF-8 -XX:+TieredCompilation"
12. Download device specific trees
Kernel tree
Device tree
Device Common Tree
Vendor Tree
these are specific to each device so you need ones that match your device
13. Build Initialise
. build/envsetup.sh
lunch aosp_devicename-userdebug
An example for Xiaomi Mi Max 2 codename (oxygen)
lunch aosp_oxygen-userdebug
14. Then to start building (replace x with available cores again the more cores made available the quicker it will compile)
make aex -jx
Click to expand...
Click to collapse
If you wish to use with another rom this guide add
Code:
sudo apt install selinux
.
If you get an error mentioning STATIC_LIBRARIES/libedify_intermediates/lexer.cpp make sure to also add
"export LC_ALL=C"
in your ~/.bashrc file.
@eva0034 I followed this guide but instead i replaced repo init 8.1.x with 7.1.1 because my device only has nougat support. I get stuck in repository sync at 99% every time. When I abort it shows failure to fetch snapdragon camera.
I posted on aex telegram and they advised me to delete snapdragon camera in repo/manifest xml.
I can't find this folder or file anywhere. Any idea?
undeclared identifiers n7100 build
what do i need to do to fix the errors below?
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:489:17: error: use of undeclared identifier 'GRALLOC_USAGE_YUV_ADDR'
if (usage & GRALLOC_USAGE_YUV_ADDR) {
^
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:494:87: warning: format specifies type 'unsigned int' but the argument has type 'void *' [-Wformat]
ALOGD_IF(debug_level > 0, "%s vaddr[0]=%x vaddr[1]=%x vaddr[2]=%x", __func__, vaddr[0], vaddr[1], vaddr[2]);
~~ ^~~~~~~~
system/core/liblog/include/log/log_main.h:206:62: note: expanded from macro 'ALOGD_IF'
((__predict_false(cond)) ? ((void)ALOG(LOG_DEBUG, LOG_TAG, __VA_ARGS__)) \
^~~~~~~~~~~
system/core/liblog/include/log/log_main.h:306:67: note: expanded from macro 'ALOG'
#define ALOG(priority, tag, ...) LOG_PRI(ANDROID_##priority, tag, __VA_ARGS__)
^~~~~~~~~~~
system/core/liblog/include/log/log_main.h:70:69: note: expanded from macro 'LOG_PRI'
#define LOG_PRI(priority, tag, ...) android_printLog(priority, tag, __VA_ARGS__)
^~~~~~~~~~~
system/core/liblog/include/log/log_main.h:61:34: note: expanded from macro 'android_printLog'
__android_log_print(prio, tag, __VA_ARGS__)
^~~~~~~~~~~
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:494:97: warning: format specifies type 'unsigned int' but the argument has type 'void *' [-Wformat]
ALOGD_IF(debug_level > 0, "%s vaddr[0]=%x vaddr[1]=%x vaddr[2]=%x", __func__, vaddr[0], vaddr[1], vaddr[2]);
~~ ^~~~~~~~
system/core/liblog/include/log/log_main.h:206:62: note: expanded from macro 'ALOGD_IF'
((__predict_false(cond)) ? ((void)ALOG(LOG_DEBUG, LOG_TAG, __VA_ARGS__)) \
^~~~~~~~~~~
system/core/liblog/include/log/log_main.h:306:67: note: expanded from macro 'ALOG'
#define ALOG(priority, tag, ...) LOG_PRI(ANDROID_##priority, tag, __VA_ARGS__)
^~~~~~~~~~~
system/core/liblog/include/log/log_main.h:70:69: note: expanded from macro 'LOG_PRI'
#define LOG_PRI(priority, tag, ...) android_printLog(priority, tag, __VA_ARGS__)
^~~~~~~~~~~
system/core/liblog/include/log/log_main.h:61:34: note: expanded from macro 'android_printLog'
__android_log_print(prio, tag, __VA_ARGS__)
^~~~~~~~~~~
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:494:107: warning: format specifies type 'unsigned int' but the argument has type 'void *' [-Wformat]
ALOGD_IF(debug_level > 0, "%s vaddr[0]=%x vaddr[1]=%x vaddr[2]=%x", __func__, vaddr[0], vaddr[1], vaddr[2]);
~~ ^~~~~~~~
system/core/liblog/include/log/log_main.h:206:62: note: expanded from macro 'ALOGD_IF'
((__predict_false(cond)) ? ((void)ALOG(LOG_DEBUG, LOG_TAG, __VA_ARGS__)) \
^~~~~~~~~~~
system/core/liblog/include/log/log_main.h:306:67: note: expanded from macro 'ALOG'
#define ALOG(priority, tag, ...) LOG_PRI(ANDROID_##priority, tag, __VA_ARGS__)
^~~~~~~~~~~
system/core/liblog/include/log/log_main.h:70:69: note: expanded from macro 'LOG_PRI'
#define LOG_PRI(priority, tag, ...) android_printLog(priority, tag, __VA_ARGS__)
^~~~~~~~~~~
system/core/liblog/include/log/log_main.h:61:34: note: expanded from macro 'android_printLog'
__android_log_print(prio, tag, __VA_ARGS__)
^~~~~~~~~~~
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:454:49: warning: unused parameter 'module' [-Wunused-parameter]
static int gralloc_lock(gralloc_module_t const* module, buffer_handle_t handle,
^
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:505:51: warning: unused parameter 'module' [-Wunused-parameter]
static int gralloc_unlock(gralloc_module_t const* module, buffer_handle_t handle)
^
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:585:89: warning: format specifies type 'unsigned int' but the argument has type 'void *' [-Wformat]
ALOGD_IF(debug_level > 0, "%s paddr[0]=0x%x paddr[1]=0x%x paddr[2]=0x%x", __func__, paddr[0], paddr[1], paddr[2]);
~~ ^~~~~~~~
system/core/liblog/include/log/log_main.h:206:62: note: expanded from macro 'ALOGD_IF'
((__predict_false(cond)) ? ((void)ALOG(LOG_DEBUG, LOG_TAG, __VA_ARGS__)) \
^~~~~~~~~~~
system/core/liblog/include/log/log_main.h:306:67: note: expanded from macro 'ALOG'
#define ALOG(priority, tag, ...) LOG_PRI(ANDROID_##priority, tag, __VA_ARGS__)
^~~~~~~~~~~
system/core/liblog/include/log/log_main.h:70:69: note: expanded from macro 'LOG_PRI'
#define LOG_PRI(priority, tag, ...) android_printLog(priority, tag, __VA_ARGS__)
^~~~~~~~~~~
system/core/liblog/include/log/log_main.h:61:34: note: expanded from macro 'android_printLog'
__android_log_print(prio, tag, __VA_ARGS__)
^~~~~~~~~~~
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:585:99: warning: format specifies type 'unsigned int' but the argument has type 'void *' [-Wformat]
ALOGD_IF(debug_level > 0, "%s paddr[0]=0x%x paddr[1]=0x%x paddr[2]=0x%x", __func__, paddr[0], paddr[1], paddr[2]);
~~ ^~~~~~~~
system/core/liblog/include/log/log_main.h:206:62: note: expanded from macro 'ALOGD_IF'
((__predict_false(cond)) ? ((void)ALOG(LOG_DEBUG, LOG_TAG, __VA_ARGS__)) \
^~~~~~~~~~~
system/core/liblog/include/log/log_main.h:306:67: note: expanded from macro 'ALOG'
#define ALOG(priority, tag, ...) LOG_PRI(ANDROID_##priority, tag, __VA_ARGS__)
^~~~~~~~~~~
system/core/liblog/include/log/log_main.h:70:69: note: expanded from macro 'LOG_PRI'
#define LOG_PRI(priority, tag, ...) android_printLog(priority, tag, __VA_ARGS__)
^~~~~~~~~~~
system/core/liblog/include/log/log_main.h:61:34: note: expanded from macro 'android_printLog'
__android_log_print(prio, tag, __VA_ARGS__)
^~~~~~~~~~~
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:585:109: warning: format specifies type 'unsigned int' but the argument has type 'void *' [-Wformat]
ALOGD_IF(debug_level > 0, "%s paddr[0]=0x%x paddr[1]=0x%x paddr[2]=0x%x", __func__, paddr[0], paddr[1], paddr[2]);
~~ ^~~~~~~~
system/core/liblog/include/log/log_main.h:206:62: note: expanded from macro 'ALOGD_IF'
((__predict_false(cond)) ? ((void)ALOG(LOG_DEBUG, LOG_TAG, __VA_ARGS__)) \
^~~~~~~~~~~
system/core/liblog/include/log/log_main.h:306:67: note: expanded from macro 'ALOG'
#define ALOG(priority, tag, ...) LOG_PRI(ANDROID_##priority, tag, __VA_ARGS__)
^~~~~~~~~~~
system/core/liblog/include/log/log_main.h:70:69: note: expanded from macro 'LOG_PRI'
#define LOG_PRI(priority, tag, ...) android_printLog(priority, tag, __VA_ARGS__)
^~~~~~~~~~~
system/core/liblog/include/log/log_main.h:61:34: note: expanded from macro 'android_printLog'
__android_log_print(prio, tag, __VA_ARGS__)
^~~~~~~~~~~
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:580:52: warning: unused parameter 'module' [-Wunused-parameter]
static int gralloc_getphys(gralloc_module_t const* module, buffer_handle_t handle, void** paddr)
^
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:593:5: warning: use of GNU old-style field designator extension [-Wgnu-designator]
open: gralloc_device_open
^~~~~
.open =
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:598:5: warning: use of GNU old-style field designator extension [-Wgnu-designator]
base:
^~~~~
.base =
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:600:9: warning: use of GNU old-style field designator extension [-Wgnu-designator]
common:
^~~~~~~
.common =
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:602:13: warning: use of GNU old-style field designator extension [-Wgnu-designator]
tag: HARDWARE_MODULE_TAG,
^~~~
.tag =
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:603:13: warning: use of GNU old-style field designator extension [-Wgnu-designator]
version_major: 1,
^~~~~~~~~~~~~~
.module_api_version =
hardware/libhardware/include/hardware/hardware.h:114:23: note: expanded from macro 'version_major'
#define version_major module_api_version
^
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:604:13: warning: use of GNU old-style field designator extension [-Wgnu-designator]
version_minor: 0,
^~~~~~~~~~~~~~
.hal_api_version =
hardware/libhardware/include/hardware/hardware.h:132:23: note: expanded from macro 'version_minor'
#define version_minor hal_api_version
^
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:605:13: warning: use of GNU old-style field designator extension [-Wgnu-designator]
id: GRALLOC_HARDWARE_MODULE_ID,
^~~
.id =
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:606:13: warning: use of GNU old-style field designator extension [-Wgnu-designator]
name: "Graphics Memory Allocator Module",
^~~~~
.name =
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:607:13: warning: use of GNU old-style field designator extension [-Wgnu-designator]
author: "ARM Ltd.",
^~~~~~~
.author =
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:608:13: warning: use of GNU old-style field designator extension [-Wgnu-designator]
methods: &gralloc_module_methods,
^~~~~~~~
.methods =
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:609:13: warning: use of GNU old-style field designator extension [-Wgnu-designator]
dso: NULL,
^~~~
.dso =
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:610:13: warning: use of GNU old-style field designator extension [-Wgnu-designator]
reserved : {0,},
^~~~~~~~~~
.reserved =
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:612:9: warning: use of GNU old-style field designator extension [-Wgnu-designator]
registerBuffer: gralloc_register_buffer,
^~~~~~~~~~~~~~~
.registerBuffer =
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:613:9: warning: use of GNU old-style field designator extension [-Wgnu-designator]
unregisterBuffer: gralloc_unregister_buffer,
^~~~~~~~~~~~~~~~~
.unregisterBuffer =
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:614:9: warning: use of GNU old-style field designator extension [-Wgnu-designator]
lock: gralloc_lock,
^~~~~
.lock =
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:615:9: warning: use of GNU old-style field designator extension [-Wgnu-designator]
unlock: gralloc_unlock,
^~~~~~~
.unlock =
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:616:9: warning: use of GNU old-style field designator extension [-Wgnu-designator]
getphys: gralloc_getphys,
^~~~~~~~
.getphys =
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:617:9: warning: use of GNU old-style field designator extension [-Wgnu-designator]
perform: NULL,
^~~~~~~~
.perform =
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:618:9: warning: use of GNU old-style field designator extension [-Wgnu-designator]
lock_ycbcr: NULL,
^~~~~~~~~~~
.lock_ycbcr =
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:620:5: warning: use of GNU old-style field designator extension [-Wgnu-designator]
framebuffer: NULL,
^~~~~~~~~~~~
.framebuffer =
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:621:5: warning: use of GNU old-style field designator extension [-Wgnu-designator]
flags: 0,
^~~~~~
.flags =
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:622:5: warning: use of GNU old-style field designator extension [-Wgnu-designator]
numBuffers: 0,
^~~~~~~~~~~
.numBuffers =
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:623:5: warning: use of GNU old-style field designator extension [-Wgnu-designator]
bufferMask: 0,
^~~~~~~~~~~
.bufferMask =
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:624:5: warning: use of GNU old-style field designator extension [-Wgnu-designator]
lock: PTHREAD_MUTEX_INITIALIZER,
^~~~~
.lock =
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:625:5: warning: use of GNU old-style field designator extension [-Wgnu-designator]
currentBuffer: NULL,
^~~~~~~~~~~~~~
.currentBuffer =
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:626:5: warning: use of GNU old-style field designator extension [-Wgnu-designator]
ion_client: -1,
^~~~~~~~~~~
.ion_client =
hardware/samsung/exynos4/hal/libgralloc_ump/gralloc_module.cpp:616:9: error: field designator 'getphys' does not refer to any field in type 'gralloc_module_t'
getphys: gralloc_getphys,
^
42 warnings and 2 errors generated.
[ 0% 20/63617] build /home/shaun/Desktop/android/out/target/product/n7100/obj/NOTICE_FILES/src/system/lib/liblights_helper.a.txt
Notice file: hardware/samsung/liblights/NOTICE -- /home/shaun/Desktop/android/out/target/product/n7100/obj/NOTICE_FILES/src/system/lib/liblights_helper.a.txt
[ 0% 21/63617] build /home/shaun/Desktop/android/out/target/product/n7100/obj/SHARED_LIBRARIES/lights.smdk4x12_intermediates/link_type
Check module type: /home/shaun/Desktop/android/out/target/product/n7100/obj/SHARED_LIBRARIES/lights.smdk4x12_intermediates/link_type
[ 0% 22/63617] build /home/shaun/Desktop/android/out/target/product/n7100/obj/SHARED_LIBRARIES/gralloc.exynos4_intermediates/alloc_device.o
FAILED: /home/shaun/Desktop/android/out/target/product/n7100/obj/SHARED_LIBRARIES/gralloc.exynos4_intermediates/alloc_device.o
/bin/bash -c "(echo "target thumb C++: gralloc.exynos4 <= hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp" ) && (mkdir -p /home/shaun/Desktop/android/out/target/product/n7100/obj/SHARED_LIBRARIES/gralloc.exynos4_intermediates/ ) && (PWD=/proc/self/cwd prebuilts/misc/linux-x86/ccache/ccache prebuilts/clang/host/linux-x86/clang-4053586/bin/clang++ -I device/samsung/smdk4412-common/include -I device/samsung/n7100/include -I bionic/libc/include -I hardware/samsung/exynos4/hal/libgralloc_ump/../include -I hardware/samsung/exynos4/hal/libgralloc_ump -I /home/shaun/Desktop/android/out/target/product/n7100/obj/SHARED_LIBRARIES/gralloc.exynos4_intermediates -I /home/shaun/Desktop/android/out/target/product/n7100/gen/SHARED_LIBRARIES/gralloc.exynos4_intermediates -I libnativehelper/include_deprecated \$(cat /home/shaun/Desktop/android/out/target/product/n7100/obj/SHARED_LIBRARIES/gralloc.exynos4_intermediates/import_includes) -I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I hardware/ril/include -I libnativehelper/include -I frameworks/native/include -I frameworks/native/opengl/include -I frameworks/av/include -isystem /home/shaun/Desktop/android/out/target/product/n7100/obj/include -isystem bionic/libc/arch-arm/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-arm -isystem bionic/libc/kernel/android/scsi -isystem bionic/libc/kernel/android/uapi -c -fno-exceptions -Wno-multichar -ffunction-sections -fdata-sections -funwind-tables -fstack-protector-strong -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -fno-short-enums -no-canonical-prefixes -DNDEBUG -g -Wstrict-aliasing=2 -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -DNDEBUG -UDEBUG -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-expansion-to-defined -fdebug-prefix-map=\$PWD/= -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -nostdlibinc -msoft-float -mfloat-abi=softfp -mfpu=neon -march=armv7-a -target arm-linux-androideabi -Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin -Wsign-promo -Wno-inconsistent-missing-override -Wno-null-dereference -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-thread-safety-negative -fvisibility-inlines-hidden -std=gnu++14 -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -fno-rtti -DLOG_TAG=\"gralloc\" -DSAMSUNG_EXYNOS -DSAMSUNG_EXYNOS_CACHE_UMP -DUSE_PARTIAL_FLUSH -DSAMSUNG_EXYNOS4x12 -fPIC -D_USING_LIBCXX -DANDROID_STRICT -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -MD -MF /home/shaun/Desktop/android/out/target/product/n7100/obj/SHARED_LIBRARIES/gralloc.exynos4_intermediates/alloc_device.d -o /home/shaun/Desktop/android/out/target/product/n7100/obj/SHARED_LIBRARIES/gralloc.exynos4_intermediates/alloc_device.o hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp )"
target thumb C++: gralloc.exynos4 <= hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp
In file included from hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:30:
bionic/libc/include/string.h:164:1: warning: empty struct has size 0 in C, size 1 in C++ [-Wextern-c-compat]
struct __bionic_zero_size_is_okay_t {};
^
In file included from hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:41:
hardware/samsung/exynos4/hal/libgralloc_ump/../include/gralloc_priv.h:169:5: warning: field 'ion_client' will be initialized after field 'yaddr' [-Wreorder]
ion_client(0),
^
hardware/samsung/exynos4/hal/libgralloc_ump/../include/gralloc_priv.h:198:5: warning: field 'ion_client' will be initialized after field 'yaddr' [-Wreorder]
ion_client(0),
^
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:118:17: error: use of undeclared identifier 'GRALLOC_USAGE_HW_FIMC1'; did you mean 'GRALLOC_USAGE_HW_FB'?
if (usage & GRALLOC_USAGE_HW_FIMC1) {
^~~~~~~~~~~~~~~~~~~~~~
GRALLOC_USAGE_HW_FB
hardware/libhardware/include/hardware/gralloc.h:96:5: note: 'GRALLOC_USAGE_HW_FB' declared here
GRALLOC_USAGE_HW_FB = 0x00001000U,
^
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:196:37: error: use of undeclared identifier 'GRALLOC_USAGE_HWC_HWOVERLAY'
if ( (usage < 0 || usage & (GRALLOC_USAGE_HWC_HWOVERLAY | GRALLOC_USAGE_HW_FIMC1)) &&
^
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:196:67: error: use of undeclared identifier 'GRALLOC_USAGE_HW_FIMC1'; did you mean 'GRALLOC_USAGE_HW_FB'?
if ( (usage < 0 || usage & (GRALLOC_USAGE_HWC_HWOVERLAY | GRALLOC_USAGE_HW_FIMC1)) &&
^~~~~~~~~~~~~~~~~~~~~~
GRALLOC_USAGE_HW_FB
hardware/libhardware/include/hardware/gralloc.h:96:5: note: 'GRALLOC_USAGE_HW_FB' declared here
GRALLOC_USAGE_HW_FB = 0x00001000U,
^
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:199:25: error: use of undeclared identifier 'GRALLOC_USAGE_PRIVATE_NONECACHE'; did you mean 'GRALLOC_USAGE_PRIVATE_MASK'?
if (usage & GRALLOC_USAGE_PRIVATE_NONECACHE) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GRALLOC_USAGE_PRIVATE_MASK
hardware/libhardware/include/hardware/gralloc.h:144:5: note: 'GRALLOC_USAGE_PRIVATE_MASK' declared here
GRALLOC_USAGE_PRIVATE_MASK = 0xF0000000U,
^
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:208:25: error: use of undeclared identifier 'GRALLOC_USAGE_PRIVATE_NONECACHE'; did you mean 'GRALLOC_USAGE_PRIVATE_MASK'?
if (usage & GRALLOC_USAGE_PRIVATE_NONECACHE) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GRALLOC_USAGE_PRIVATE_MASK
hardware/libhardware/include/hardware/gralloc.h:144:5: note: 'GRALLOC_USAGE_PRIVATE_MASK' declared here
GRALLOC_USAGE_PRIVATE_MASK = 0xF0000000U,
^
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:234:86: warning: format specifies type 'unsigned int' but the argument has type 'private_handle_t *' [-Wformat]
ALOGD_IF(debug_level > 0, "%s hnd=%x paddr=%x yaddr=%x offset=%x", __func__, hnd, current_address, gReservedMemSize, buffer_offset);
~~ ^~~
system/core/liblog/include/log/log_main.h:206:62: note: expanded from macro 'ALOGD_IF'
((__predict_false(cond)) ? ((void)ALOG(LOG_DEBUG, LOG_TAG, __VA_ARGS__)) \
^~~~~~~~~~~
system/core/liblog/include/log/log_main.h:306:67: note: expanded from macro 'ALOG'
#define ALOG(priority, tag, ...) LOG_PRI(ANDROID_##priority, tag, __VA_ARGS__)
^~~~~~~~~~~
system/core/liblog/include/log/log_main.h:70:69: note: expanded from macro 'LOG_PRI'
#define LOG_PRI(priority, tag, ...) android_printLog(priority, tag, __VA_ARGS__)
^~~~~~~~~~~
system/core/liblog/include/log/log_main.h:61:34: note: expanded from macro 'android_printLog'
__android_log_print(prio, tag, __VA_ARGS__)
^~~~~~~~~~~
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:238:17: error: use of undeclared identifier 'GRALLOC_USAGE_HW_ION'
if (usage & GRALLOC_USAGE_HW_ION) {
^
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:248:34: error: use of undeclared identifier 'GRALLOC_USAGE_HWC_HWOVERLAY'
if (usage < 0 || usage & GRALLOC_USAGE_HWC_HWOVERLAY )
^
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:259:21: error: use of undeclared identifier 'GRALLOC_USAGE_PRIVATE_NONECACHE'; did you mean 'GRALLOC_USAGE_PRIVATE_MASK'?
if (usage & GRALLOC_USAGE_PRIVATE_NONECACHE) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GRALLOC_USAGE_PRIVATE_MASK
hardware/libhardware/include/hardware/gralloc.h:144:5: note: 'GRALLOC_USAGE_PRIVATE_MASK' declared here
GRALLOC_USAGE_PRIVATE_MASK = 0xF0000000U,
^
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:275:21: error: use of undeclared identifier 'GRALLOC_USAGE_PRIVATE_NONECACHE'; did you mean 'GRALLOC_USAGE_PRIVATE_MASK'?
if (usage & GRALLOC_USAGE_PRIVATE_NONECACHE) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GRALLOC_USAGE_PRIVATE_MASK
hardware/libhardware/include/hardware/gralloc.h:144:5: note: 'GRALLOC_USAGE_PRIVATE_MASK' declared here
GRALLOC_USAGE_PRIVATE_MASK = 0xF0000000U,
^
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:507:29: error: use of undeclared identifier 'GRALLOC_USAGE_HW_ION'
if (!(l_usage & GRALLOC_USAGE_HW_ION)) {
^
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:508:28: error: use of undeclared identifier 'GRALLOC_USAGE_HW_ION'
l_usage |= GRALLOC_USAGE_HW_ION; // Exynos HWC wants ION-friendly memory allocation
^
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:512:29: error: use of undeclared identifier 'GRALLOC_USAGE_PRIVATE_NONECACHE'; did you mean 'GRALLOC_USAGE_PRIVATE_MASK'?
if (!(l_usage & GRALLOC_USAGE_PRIVATE_NONECACHE)) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GRALLOC_USAGE_PRIVATE_MASK
hardware/libhardware/include/hardware/gralloc.h:144:5: note: 'GRALLOC_USAGE_PRIVATE_MASK' declared here
GRALLOC_USAGE_PRIVATE_MASK = 0xF0000000U,
^
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:513:28: error: use of undeclared identifier 'GRALLOC_USAGE_PRIVATE_NONECACHE'; did you mean 'GRALLOC_USAGE_PRIVATE_MASK'?
l_usage |= GRALLOC_USAGE_PRIVATE_NONECACHE; // Exynos HWC wants ION-friendly memory allocation
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GRALLOC_USAGE_PRIVATE_MASK
hardware/libhardware/include/hardware/gralloc.h:144:5: note: 'GRALLOC_USAGE_PRIVATE_MASK' declared here
GRALLOC_USAGE_PRIVATE_MASK = 0xF0000000U,
^
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:525:24: error: use of undeclared identifier 'GRALLOC_USAGE_HW_ION'
l_usage |= GRALLOC_USAGE_HW_ION;
^
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:553:27: error: use of undeclared identifier 'GRALLOC_USAGE_HW_ION'
if (l_usage & GRALLOC_USAGE_HW_ION)
^
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:570:27: error: use of undeclared identifier 'GRALLOC_USAGE_HW_ION'
if (l_usage & GRALLOC_USAGE_HW_ION)
^
hardware/samsung/exynos4/hal/libgralloc_ump/alloc_device.cpp:664:62: warning: unused parameter 'name' [-Wunused-parameter]
int alloc_device_open(hw_module_t const* module, const char* name, hw_device_t** device)
^
5 warnings and 16 errors generated.
[ 0% 23/63617] build /home/shaun/Desktop/android/out/target/product/n7100/obj/STATIC_LIBRARIES/liblights_helper_intermediates/lights_helper.o
target thumb C: liblights_helper <= hardware/samsung/liblights/lights_helper.c
[ 0% 24/63617] build /home/shaun/Desktop/android/out/target/product/n7100/obj/SHARED_LIBRARIES/lights.smdk4x12_intermediates/lights.o
target thumb C: lights.smdk4x12 <= hardware/samsung/liblights/lights.c
[ 0% 25/63617] build setup-jack-server
Ensuring Jack server is installed and started
Jack server already installed in "/home/shaun/.jack-server"
Launching Jack server java -XX:MaxJavaStackTraceDepth=-1 -Djava.io.tmpdir=/tmp -Xmx8g -Dfile.encoding=UTF-8 -XX:+TieredCompilation -cp /home/shaun/.jack-server/launcher.jar com.android.jack.launcher.ServerLauncher
[ 0% 26/63617] build /home/shaun/Desktop/android/out/target/product/n7100/obj/KERNEL_OBJ/.config
Building Kernel Config
make: Entering directory '/home/shaun/Desktop/android/kernel/samsung/smdk4412'
GEN /home/shaun/Desktop/android/out/target/product/n7100/obj/KERNEL_OBJ/Makefile
arch/arm/mach-exynos/Kconfig:875:warning: choice value used outside its choice group
arch/arm/mach-exynos/Kconfig:877:warning: defaults for choice values not supported
warning: (SEC_MODEM_M0_C2C && SEC_MODEM_M0 && SEC_MODEM_U1 && SEC_MODEM_IRON && SEC_MODEM_T0_TD_DUAL) selects LINK_DEVICE_HSIC which has unmet direct dependencies (MISC_DEVICES && MACH_U1 && SEC_MODEM)
warning: (SEC_MODEM_M0_C2C && SEC_MODEM_M0 && SEC_MODEM_IRON && SEC_MODEM_T0_TD_DUAL) selects UMTS_MODEM_XMM6262 which has unmet direct dependencies (MISC_DEVICES && MACH_U1 && SEC_MODEM)
warning: (ARM) selects SECCOMP_FILTER which has unmet direct dependencies (HAVE_ARCH_SECCOMP_FILTER && SECCOMP && NET)
warning: (ARM) selects SECCOMP_FILTER which has unmet direct dependencies (HAVE_ARCH_SECCOMP_FILTER && SECCOMP && NET)
warning: (SEC_MODEM_M0_C2C && SEC_MODEM_M0 && SEC_MODEM_U1 && SEC_MODEM_IRON && SEC_MODEM_T0_TD_DUAL) selects LINK_DEVICE_HSIC which has unmet direct dependencies (MISC_DEVICES && MACH_U1 && SEC_MODEM)
warning: (SEC_MODEM_M0_C2C && SEC_MODEM_M0 && SEC_MODEM_IRON && SEC_MODEM_T0_TD_DUAL) selects UMTS_MODEM_XMM6262 which has unmet direct dependencies (MISC_DEVICES && MACH_U1 && SEC_MODEM)
#
Can someone tell me what step am i missing. I didn't get a shot of the vendor, it was done on another screen but it was from the Muppets git lge same branch. Thanks.
Samia Palos said:
If you wish to use with another rom this guide add
Code:
sudo apt install selinux
.
Click to expand...
Click to collapse
this caused to my machine to hang at ubuntu screen at reboot. I entered recovery mode and used sudo apt-get remove selinux but it still hangs.
any idea?
Airtioteclint said:
this caused to my machine to hang at ubuntu screen at reboot. I entered recovery mode and used sudo apt-get remove selinux but it still hangs.
any idea?
Click to expand...
Click to collapse
Don't actually install SELinux. You can build other ROMs just fine without it. (I have only really tried Lineage and Dirty Unicorns though.
Hey there eva0034. I appreciate you writing this up for people!
I attempted using this method for the Galaxy S6 (zerofltexx) but ran in to this hurdle when attempting to lunch.
Code:
[SIZE="3"][COLOR="seagreen"][email protected]:~/android$ lunch aosp_zerofltexx-userdebug[/COLOR]
vendor/aosp/config/bootanimation.mk:28: Target bootanimation res is undefined, using generic bootanimation
Looking for dependencies
Traceback (most recent call last):
File "build/tools/roomservice.py", line 368, in <module>
main()
File "build/tools/roomservice.py", line 312, in main
fetch_dependencies(repo_path)
File "build/tools/roomservice.py", line 225, in fetch_dependencies
dependencies = json.load(dep_f)
File "/usr/lib/python2.7/json/__init__.py", line 291, in load
**kw)
File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 380, in raw_decode
obj, end = self.scan_once(s, idx)
ValueError: Expecting , delimiter: line 7 column 5 (char 123)[/SIZE]
These are the trees that I am using:
Code:
[SIZE="3"][COLOR="seagreen"][email protected]:~/android$ git clone https://github.com/TeamNexus/android_device_samsung_zerofltexx.git -b nx-8.1 device/samsung/zerofltexx[/COLOR]
Cloning into 'device/samsung/zerofltexx'...
remote: Counting objects: 389, done.
remote: Total 389 (delta 0), reused 0 (delta 0), pack-reused 389
Receiving objects: 100% (389/389), 8.31 MiB | 4.02 MiB/s, done.
Resolving deltas: 100% (220/220), done.
[COLOR="seagreen"][email protected]:~/android$ git clone https://github.com/TeamNexus/android_device_samsung_zero-common.git -b nx-8.1 device/samsung/zero-common[/COLOR]
Cloning into 'device/samsung/zero-common'...
remote: Counting objects: 11826, done.
remote: Compressing objects: 100% (92/92), done.
remote: Total 11826 (delta 58), reused 94 (delta 51), pack-reused 11683
Receiving objects: 100% (11826/11826), 21.12 MiB | 6.67 MiB/s, done.
Resolving deltas: 100% (7040/7040), done.
[COLOR="seagreen"][email protected]:~/android$ git clone https://github.com/TeamNexus/android_kernel_samsung_exynos7420.git -b nx-8.1 kernel/samsung/exynos7420[/COLOR]
Cloning into 'kernel/samsung/exynos7420'...
remote: Counting objects: 5141645, done.
remote: Compressing objects: 100% (43/43), done.
remote: Total 5141645 (delta 20), reused 19 (delta 10), pack-reused 5141592
Receiving objects: 100% (5141645/5141645), 1.24 GiB | 9.76 MiB/s, done.
Resolving deltas: 100% (4260989/4260989), done.
Checking out files: 100% (48940/48940), done.
[COLOR="seagreen"][email protected]:~/android$ git clone https://github.com/TeamNexus/android_vendor_samsung_zero-common.git -b nx-8.1 vendor/samsung/zero-common[/COLOR]
Cloning into 'vendor/samsung/zero-common'...
remote: Counting objects: 2106, done.
remote: Compressing objects: 100% (48/48), done.
remote: Total 2106 (delta 27), reused 48 (delta 14), pack-reused 2031
Receiving objects: 100% (2106/2106), 116.09 MiB | 9.64 MiB/s, done.
Resolving deltas: 100% (1151/1151), done.
Checking out files: 100% (486/486), done.
[/SIZE]
And this is what it looks like when I run the envsetup.sh:
Code:
[SIZE="3"][COLOR="SeaGreen"][email protected]:~/android$ . build/envsetup.sh[/COLOR]
including device/samsung/zerofltexx/vendorsetup.sh
including vendor/aosp/vendorsetup.sh
including sdk/bash_completion/adb.bash[/SIZE]
Wondering if you or anybody else has any ideas as to how to solve this? Do I have to add something to "aex_manifest.xml" in local_manifests perhaps? Thank you to anybody who may be able to help. Am new to this
Edit: Got past the above issues by using a roomservice.xml file and get to around 6% of actual compiling but it throws an error when it gets to building the kernel. I give up for now... too hard for my tiny brain
not doing anything after "make aex -j2"
It just show it at the bottom of the command line and does nothing
Thanks
Shmart1 said:
It just show it at the bottom of the command line and does nothing
Click to expand...
Click to collapse
Maybe if you typed the proper command it might work
Finally to build:
. build/envsetup.sh
lunch aosp_device_codename-userdebug
mka aex -jx
Can someone tell me how to install vendor tree and kernel? i use A605K device, and i researched a bit.
but i still don't know how to install kernel tree and vendor tree. i know device tree and common tree can be installed by put device name folder in sourcefolder/devices folder, and how can i build vendor tree and kernel tree?
tmvkrpxl0 said:
Can someone tell me how to install vendor tree and kernel? i use A605K device, and i researched a bit.
but i still don't know how to install kernel tree and vendor tree. i know device tree and common tree can be installed by put device name folder in sourcefolder/devices folder, and how can i build vendor tree and kernel tree?
Click to expand...
Click to collapse
Since there is no current developer for your device, you are going to have to do create all the trees and kernel all by yourself..
Where the android source code is stored in ubuntu 18.10?
---------- Post added at 08:03 PM ---------- Previous post was at 07:37 PM ----------
aoleary said:
Since there is no current developer for your device, you are going to have to do create all the trees and kernel all by yourself..
Click to expand...
Click to collapse
Can someone tell me where the android source code is stored in ubuntu 18.10?
Vladut123 said:
Where the android source code is stored in ubuntu 18.10?
---------- Post added at 08:03 PM ---------- Previous post was at 07:37 PM ----------
Can someone tell me where the android source code is stored in ubuntu 18.10?
Click to expand...
Click to collapse
You have to press Ctrl+H to see the repo folder
Sent from my [device_name] using XDA-Developers Legacy app
eva0034 said:
Build AOSP on ubuntu 18.04 Bionic Beaver
12. Download device specific trees
Kernel tree
Device tree
Device Common Tree
Vendor Tree
these are specific to each device so you need ones that match your device
Click to expand...
Click to collapse
can you tell more about these steps. For example, where I should download Kernel tree, to which directory? Or where I should download device tree and other components that you mention?
https://github.com/kegang0619/androi...msung_j5y17lte
https://github.com/kegang0619/androi...nos7870-common
Vendor tree:= https://github.com/kegang0619/android_vendor_samsung
Kernel Source:= https://github.com/kegang0619/FlareKernel_AOSP_V2
ROM Source:= https://github.com/AospExtended/plat...rameworks_base
Haste or Dogbin URL:=
https://del.dog/hixepifazo.rb
List Of Things You Have Tried To Do To Try And Resolve This Error:=
I'm building an AEX Oreo ROM. Here are the repositories I cloned https://github.com/kegang0619?tab=repositories
FAILED: TARGET_KERNEL_BINARIES
After a few searches, I thought that must be declared in the BoardConfig.mk of the device tree. But I couldn't figure out.
Any help would be appreciated.
What's the use of screen package?
I did the following but when i do make aex -j$(nproc) it gives this error
ninja: error: unknown target 'aex', did you mean 'dex'?

Categories

Resources