CM13 Build Error Please Help - Galaxy S III Q&A, Help & Troubleshooting

I changed the build computer and tried to build but the terminal shows this error.
Changed Computer
Acer Aspire V5-132
Intel Celeron 1019Y (1 GHz, Ivy Bridge)
Intel HD Graphics (350 MHz, Boost 800 MHz)
DDR3L RAM 6GB
HGST 5400rpm 500GB HDD
Ubuntu 14.04.5 LTS 64-bit
to
HP 15-ay012dx
Intel Core i5-6200U (2.3 GHz, Boost 2.8 GHz)
Intel HD Graphics 520 (300 MHz, Boost 1 GHz)
DDR4 RAM 4GB
HGST 5400rpm 1TB HDD
Ubuntu 14.04.5 LTS 64-bit
I didn't edit the code.
But when i build CM13 by Acer Computer it builds successfully, but on HP Computer it fails.
This is the error log.
make: *** [/home/penguin97/android/system/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/with-local/classes.dex] Error 41
make: *** Waiting for unfinished jobs....
DroidDoc took 25 sec. to write docs to /home/penguin97/android/system/out/target/common/docs/api-stubs
make: Leaving directory `/home/penguin97/android/system'
#### make failed to build some targets (03:33:38 (hh:mm:ss)) ####
Please help.

galaxys3kt said:
I changed the build computer and tried to build but the terminal shows this error.
Changed Computer
Acer Aspire V5-132
Intel Celeron 1019Y (1 GHz, Ivy Bridge)
Intel HD Graphics (350 MHz, Boost 800 MHz)
DDR3L RAM 6GB
HGST 5400rpm 500GB HDD
Ubuntu 14.04.5 LTS 64-bit
to
HP 15-ay012dx
Intel Core i5-6200U (2.3 GHz, Boost 2.8 GHz)
Intel HD Graphics 520 (300 MHz, Boost 1 GHz)
DDR4 RAM 4GB
HGST 5400rpm 1TB HDD
Ubuntu 14.04.5 LTS 64-bit
I didn't edit the code.
But when i build CM13 by Acer Computer it builds successfully, but on HP Computer it fails.
This is the error log.
make: *** [/home/penguin97/android/system/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/with-local/classes.dex] Error 41
make: *** Waiting for unfinished jobs....
DroidDoc took 25 sec. to write docs to /home/penguin97/android/system/out/target/common/docs/api-stubs
make: Leaving directory `/home/penguin97/android/system'
#### make failed to build some targets (03:33:38 (hh:mm:ss)) ####
Please help.
Click to expand...
Click to collapse
Dou you have enough storage space to compile? ~100gb partition

rpdroky said:
Dou you have enough storage space to compile? ~100gb partition
Click to expand...
Click to collapse
Yes.
I have 100GB Partiton for Ubuntu.

galaxys3kt said:
Yes.
I have 100GB Partiton for Ubuntu.
Click to expand...
Click to collapse
Run this in yre terminal
Code:
sudo apt-get install -y bison ccache phablet-tools build-essential curl flex git gnupg gperf libesd0-dev liblz4-tool libncurses5-dev libsdl1.2-dev libwxgtk2.8-dev libxml2 libxml2-utils lzop maven pngcrush schedtool squashfs-tools xsltproc zip zlib1g-dev g++-multilib gcc-multilib lib32ncurses5-dev lib32readline-gplv2-dev lib32z1-dev
And make sure you have a 4GB swap partition because 8GB RAM is recommended in most cases for building

Related

[solved] Cm7 build error

Problem sloved!
Hi!
I am trying to build cm7 from source for my acer liquid. But about 5 min after starting the build I run into this error:
Install: out/host/linux-x86/bin/simg2img
host Executable: sqlite3 (out/host/linux-x86/obj/EXECUTABLES/sqlite3_intermediates/sqlite3)
/usr/bin/ld: cannot find -lncurses
collect2: ld returned 1 exit status
make: *** [out/host/linux-x86/obj/EXECUTABLES/sqlite3_intermediates/sqlite3] Error 1
I am using Ubuntu 12.04 64 bit on my Laptop with an AMD E-350 processor.
All help welcome,
Alex
iKrautDroid said:
Hi!
I am trying to build cm7 from source for my acer liquid. But about 5 min after starting the build I run into this error:
Install: out/host/linux-x86/bin/simg2img
host Executable: sqlite3 (out/host/linux-x86/obj/EXECUTABLES/sqlite3_intermediates/sqlite3)
/usr/bin/ld: cannot find -lncurses
collect2: ld returned 1 exit status
make: *** [out/host/linux-x86/obj/EXECUTABLES/sqlite3_intermediates/sqlite3] Error 1
I am using Ubuntu 12.04 64 bit on my Laptop with an AMD E-350 processor.
All help welcome,
Alex
Click to expand...
Click to collapse
Make sure you have all the needed packages to build.
yea, install the required packages for 12.04 here
Hmm, i just ran:
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-dev:i386 \
g++-multilib mingw32 openjdk-6-jdk tofrodos python-markdown \
libxml2-utils xsltproc zlib1g-dev:i386
again and it installed libncurses5, which for some reason wasnt installed when I first set up my build environment. Thanks lithid, problem solved!

Does anyone have a computer powerful enough to compile 4.2 from source?

I'm working on getting ParanoidAndroid 4.2 working, but it needs some stuff from 4.2 that can only be compiled from source to boot. Does anyone have a PC powerful enough for a community effort for (at least a booting) 4.2 build?
It can be AOSP or CM10.1 (PA sources for 2.99 aren't available yet)
Specs that would be useful:
At least 8Gb of RAM
At least Quad core
Running some sort of Linux build
Later on this year I will probably get a PC powerful enough to build from source, so until then I need some help from other users.
Thanks
My laptop has 8gb ram, quadcore 1.5ghz AMD processor and backbox(based on Ubuntu 11).
Just leave the direction you want me to do.
Edit: I'm downloading cm10.1 source ATM.
Sent from my GT-I9100 using xda app-developers app
Quinny899 said:
I'm working on getting ParanoidAndroid 4.2 working, but it needs some stuff from 4.2 that can only be compiled from source to boot. Does anyone have a PC powerful enough for a community effort for (at least a booting) 4.2 build?
It can be AOSP or CM10.1 (PA sources for 2.99 aren't available yet)
Specs that would be useful:
At least 8Gb of RAM
At least Quad core
Running some sort of Linux build
Later on this year I will probably get a PC powerful enough to build from source, so until then I need some help from other users.
Thanks
Click to expand...
Click to collapse
I have built 4.2 a couple of time using Quallenauge's repo, AOSP and CM10 but couldn't them to boot. At the moment I am building CM 9.1 using JackpotClavin's repo with the 3.0.21 kernel, can try 4.2 again if you have any idea on why it doesn't boot. I have built CM 7.2 numerous times for my rk2818 but the G9 file system is a bit odd.
Have you got CM10 to boot using the repo on its own? It's labelled "does not boot yet", so it might be built differently.
Also, are you using trevd's OMAPZoom one?
Quinny899 said:
Have you got CM10 to boot using the repo on its own? It's labelled "does not boot yet", so it might be built differently.
Also, are you using trevd's OMAPZoom one?
Click to expand...
Click to collapse
Update Some progress to report, CM9 is booting with 3.0.21 kernel using 4.0.26 image. CM must have been updating their server yesterday, never could get 10.1 so switched to CM 10 and building it now.
julle131 said:
My laptop has 8gb ram, quadcore 1.5ghz AMD processor and backbox(based on Ubuntu 11).
Just leave the direction you want me to do.
Edit: I'm downloading cm10.1 source ATM.
Sent from my GT-I9100 using xda app-developers app
Click to expand...
Click to collapse
Hope you are having better luck than me. So far two system freezes and one reboot while trying to build CM10. AMD A4-3400 2.7 GHz - Memory: 4.0 GB, takes over 3 hours to build CM9.
stevemp said:
Hope you are having better luck than me. So far two system freezes and one reboot while trying to build CM10. AMD A4-3400 2.7 GHz - Memory: 4.0 GB, takes over 3 hours to build CM9.
Click to expand...
Click to collapse
I have problem acquiring the source. 3 times failed downloading the 350/353. I have AMD A8-3500m 1.5Ghz, overlcocked to 1.9Ghz. Memory 8gb, so it will probably take even more for me. It takes almost ~2.5h to compile Boot2Gecko for SGS2.
I have an intel i5 3570K based computer with 16GB of ram. I would be willing to compile it if anyone wants. I am more of a windows person though but I do have Ubuntu 12.10 installed. I would just need some detailed instructions on how to get the source and compile it for the tablet.
I can build that, but in my case the cyanogenmod hangs on boot screen and adb is stopped then :-/
It's not clear for me, how this behavior can be changed with properties. For timing reasons I was not able to try out the hint from trevd, which suggested to add adbd service at the init script.
julle131 said:
I have problem acquiring the source. 3 times failed downloading the 350/353. I have AMD A8-3500m 1.5Ghz, overlcocked to 1.9Ghz. Memory 8gb, so it will probably take even more for me. It takes almost ~2.5h to compile Boot2Gecko for SGS2.
Click to expand...
Click to collapse
Same for me, 10.1 stopped at 350 every time so I switched to Quallenauge's github which is 4.1.2. Took about 20 minutes to download. CM prebuilt is broken there also, term doesn't download. Just remove term from vendor/cm/config/common.mk or set it up your self.
repo init -u git://github.com/Quallenauge/android.git -b jellybean
---------- Post added at 02:46 PM ---------- Previous post was at 02:37 PM ----------
Quallenauge said:
I can build that, but in my case the cyanogenmod hangs on boot screen and adb is stopped then :-/
It's not clear for me, how this behavior can be changed with properties. For timing reasons I was not able to try out the hint from trevd, which suggested to add adbd service at the init script.
Click to expand...
Click to collapse
I use SDE to export data and check CM9 log files that way. I am still trying to build, my computer crashes a lot so hope this time it finishes. I am retired so have lots of free time to spend working on build, thanks for giving me a hobby to keep me busy.
---------- Post added at 03:13 PM ---------- Previous post was at 02:46 PM ----------
Djirin said:
I have an intel i5 3570K based computer with 16GB of ram. I would be willing to compile it if anyone wants. I am more of a windows person though but I do have Ubuntu 12.10 installed. I would just need some detailed instructions on how to get the source and compile it for the tablet.
Click to expand...
Click to collapse
Sure, join the fun. I use Xubuntu 12.10 so my setup should work for you.
Install the packages needed for building.
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-dev:i386 \
g++-multilib mingw32 openjdk-6-jdk tofrodos python-markdown \
libxml2-utils xsltproc zlib1g-dev:i386
Download and install Java Linux x64 68.72 MB jdk-6u38-linux-x64.bin --> http://www.oracle.com/technetwork/java/javase/downloads/jdk6u38-downloads-1877406.html
Code:
chmod +x jdk-6u34-linux-x64.bin
sudo ./jdk-6u34-linux-x64.bin
sudo mv jdk1.6.0_34 /usr/lib/jvm/
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.6.0_34/bin/java 1
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.6.0_34/bin/javac 1
sudo update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.6.0_34/bin/javaws 1
sudo update-alternatives --config java
sudo update-alternatives --config javac
sudo update-alternatives --config javaws
Choose the new version after each command.
Check to make sure it installed --> java –version
Install 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
Get Quallenauge repo and sync
repo init -u git://github.com/Quallenauge/android.git -b jellybean
repo sync
Setup enviroment and start building.
source build/envsetup.sh
lunch
make
That should get you started, might have missed something though, if you run into errors ask and maybe someone can help.
Got all the packages installed and repo synced. Boy that took a good hour to do.
So what do I need to do to make sure it gets configured to work on the archos tablet? More than happy to use my CPU time to compile whatever is needed
stevemp said:
Same for me, 10.1 stopped at 350 every time so I switched to Quallenauge's github which is 4.1.2. Took about 20 minutes to download. CM prebuilt is broken there also, term doesn't download. Just remove term from vendor/cm/config/common.mk or set it up your self.
repo init -u git://github.com/Quallenauge/android.git -b jellybean
---------- Post added at 02:46 PM ---------- Previous post was at 02:37 PM ----------
I use SDE to export data and check CM9 log files that way. I am still trying to build, my computer crashes a lot so hope this time it finishes. I am retired so have lots of free time to spend working on build, thanks for giving me a hobby to keep me busy.
---------- Post added at 03:13 PM ---------- Previous post was at 02:46 PM ----------
Sure, join the fun. I use Xubuntu 12.10 so my setup should work for you.
Install the packages needed for building.
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-dev:i386 \
g++-multilib mingw32 openjdk-6-jdk tofrodos python-markdown \
libxml2-utils xsltproc zlib1g-dev:i386
Download and install Java Linux x64 68.72 MB jdk-6u38-linux-x64.bin --> http://www.oracle.com/technetwork/java/javase/downloads/jdk6u38-downloads-1877406.html
Code:
chmod +x jdk-6u34-linux-x64.bin
sudo ./jdk-6u34-linux-x64.bin
sudo mv jdk1.6.0_34 /usr/lib/jvm/
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.6.0_34/bin/java 1
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.6.0_34/bin/javac 1
sudo update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.6.0_34/bin/javaws 1
sudo update-alternatives --config java
sudo update-alternatives --config javac
sudo update-alternatives --config javaws
Choose the new version after each command.
Check to make sure it installed --> java –version
Install 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
Get Quallenauge repo and sync
repo init -u git://github.com/Quallenauge/android.git -b jellybean
repo sync
Setup enviroment and start building.
source build/envsetup.sh
lunch
make
That should get you started, might have missed something though, if you run into errors ask and maybe someone can help.
Click to expand...
Click to collapse
OK after all that window of wonderful compiling text flying by.. it took maybe an hour? I didn't pay attention to when I started it. So I ended up with this at the end..
I am a complete newb when it comes to this. I have compiled my own kernel before but that has been years ago and nothing remotely like this!
Code:
Copying: /home/dragon/out/target/product/generic/obj/NOTICE_FILES/src/kernel.txt
build/tools/generate-notice-files.py /home/dragon/out/target/product/generic/obj/NOTICE.txt /home/dragon/out/target/product/generic/obj/NOTICE.html "Notices for files contained in the filesystem images in this directory:" /home/dragon/out/target/product/generic/obj/NOTICE_FILES/src
Combining NOTICE files into HTML
Combining NOTICE files into text
Generated: (/home/dragon/out/target/product/generic/android-info.txt)
Installed file list: /home/dragon/out/target/product/generic/installed-files.txt
Target system fs image: /home/dragon/out/target/product/generic/obj/PACKAGING/systemimage_intermediates/system.img
Running: mkyaffs2image -f /home/dragon/out/target/product/generic/system /home/dragon/out/target/product/generic/obj/PACKAGING/systemimage_intermediates/system.img
Install system fs image: /home/dragon/out/target/product/generic/system.img
Target ram disk: /home/dragon/out/target/product/generic/ramdisk.img
Target userdata fs image: /home/dragon/out/target/product/generic/userdata.img
Running: mkyaffs2image -f /home/dragon/out/target/product/generic/data /home/dragon/out/target/product/generic/userdata.img
Djirin said:
OK after all that window of wonderful compiling text flying by.. it took maybe an hour? I didn't pay attention to when I started it. So I ended up with this at the end..
I am a complete newb when it comes to this. I have compiled my own kernel before but that has been years ago and nothing remotely like this!
Code:
Copying: /home/dragon/out/target/product/generic/obj/NOTICE_FILES/src/kernel.txt
build/tools/generate-notice-files.py /home/dragon/out/target/product/generic/obj/NOTICE.txt /home/dragon/out/target/product/generic/obj/NOTICE.html "Notices for files contained in the filesystem images in this directory:" /home/dragon/out/target/product/generic/obj/NOTICE_FILES/src
Combining NOTICE files into HTML
Combining NOTICE files into text
Generated: (/home/dragon/out/target/product/generic/android-info.txt)
Installed file list: /home/dragon/out/target/product/generic/installed-files.txt
Target system fs image: /home/dragon/out/target/product/generic/obj/PACKAGING/systemimage_intermediates/system.img
Running: mkyaffs2image -f /home/dragon/out/target/product/generic/system /home/dragon/out/target/product/generic/obj/PACKAGING/systemimage_intermediates/system.img
Install system fs image: /home/dragon/out/target/product/generic/system.img
Target ram disk: /home/dragon/out/target/product/generic/ramdisk.img
Target userdata fs image: /home/dragon/out/target/product/generic/userdata.img
Running: mkyaffs2image -f /home/dragon/out/target/product/generic/data /home/dragon/out/target/product/generic/userdata.img
Click to expand...
Click to collapse
I just started porting CM about a year ago myself, just takes time to learn.
http://wiki.cyanogenmod.org/index.php?title=Main_Page is a good place to start.
What you compiled --> http://forum.xda-developers.com/showpost.php?p=35292640&postcount=124
JackpotClavin ported CM9 (ICS) --> http://forum.xda-developers.com/showthread.php?t=1735281 His github (needs to be updated for JB) --> https://github.com/JackpotClavin
Hashcode has ported CM10, AOKP, and AOSP to the Kindle Fire, similar to G9 --> http://forum.xda-developers.com/showthread.php?t=1591850
As you can see a lot to learn.
Test
Mostly working: video, audio, and wifi. :victory:
Tested Chrome, You Tube HQ, Gmail, Play Store, Play Music, Play Movies. All work ok for me. Camera not working. Needs to be cleaned up and optimized, tired so maybe someone wants to help.
Quadrant score = 2154
AnTuTu Benchmark = 7301
Download link --> https://hotfile.com/dl/188900617/9a6e2c2/cm10-rom.tar.gz.html
updated
Sv: Does anyone have a computer powerful enough to compile 4.2 from source?
Hi.
Do you awesome people still need some computer time ?
I got a desktop with an AMD quad-core 3.4 GHz CPU, 16 GB RAM, and 100 GB (sata 2 ) HDD.
A clean cm 10.1 build for my maguro usually takes about 40 minutes.
I'm gonna install Ubuntu in about 12-14 hours.
Would love to help out. I got a gen10 80 sx on the way.
these typos came from my Galaxy Nexus [I9250]
Reptilez_DK said:
Hi.
Do you awesome people still need some computer time ?
I got a desktop with an AMD quad-core 3.4 GHz CPU, 16 GB RAM, and 100 GB (sata 2 ) HDD.
A clean cm 10.1 build for my maguro usually takes about 40 minutes.
I'm gonna install Ubuntu in about 12-14 hours.
Would love to help out. I got a gen10 80 sx on the way.
these typos came from my Galaxy Nexus [I9250]
Click to expand...
Click to collapse
That would be amazing for someone to make a g10 ROM with. We some 4.2 stuff now, but thanks so much for the offer
Sent from my Galaxy Nexus using Tapatalk HD
Sv: Does anyone have a computer powerful enough to compile 4.2 from source?
Quinny899 said:
That would be amazing for someone to make a g10 ROM with. We some 4.2 stuff now, but thanks so much for the offer
Sent from my Galaxy Nexus using Tapatalk HD
Click to expand...
Click to collapse
I'm not a developer at all, so I just thought I could let you guys remotely do your magic.
Edit: also, I have a pretty decent connection ( 40/40 Mbit ), so I'll be able to sync whatever source.
these typos came from my Galaxy Nexus [I9250]
I'm not a developer and have only just bought a 101xs, ive installed custom roms on my gnote and gtab however. I do have a decent pc if anyone needs me to do anything with it though
Specs are:
And bulldozer 6 core cpu
16gb ram
2tbs storage drive and sata 3 ssd system drive ( win7 but could dual boot if required)
Also have a 120mbps connection
Let me know if I can do anything
Sent from my GT-N7000 using xda premium

errors while building the android source code

I trying to build the android source code in ubuntu 13.10, but i got so many errors
i have solved some of them then i got strucked . Now i want your help to build the androi source code,
before to that i will tel my system specification :
i am using Pentium D machine with 4 GB RAM with 50 GB free space in hard drive
using ubuntu 13.10 which is of 64 bit OS
And what are the packages i have installed
Python 2.7.5+, GNU Make 3.81, java version "1.6.0_45"
And i have followed the procedure for build such as :
a) G41M-Combo:~/bin/source $
: source build/envsetup.sh
b) G41M-Combo:~/bin/source $
: lunch
c) G41M-Combo:~/bin/source $
: 13
d) G41M-Combo:~/bin/source $
: make -j3
in 4th step i am using pentium D machine it is of 2 core so i have tried make -j2 also
but i did not got much difference
i am attaching the screen shot with this question ..
sayedjunedalam said:
I trying to build the android source code in ubuntu 13.10, but i got so many errors
i have solved some of them then i got strucked . Now i want your help to build the androi source code,
before to that i will tel my system specification :
i am using Pentium D machine with 4 GB RAM with 50 GB free space in hard drive
using ubuntu 13.10 which is of 64 bit OS
And what are the packages i have installed
Python 2.7.5+, GNU Make 3.81, java version "1.6.0_45"
And i have followed the procedure for build such as :
a) G41M-Combo:~/bin/source $
: source build/envsetup.sh
b) G41M-Combo:~/bin/source $
: lunch
c) G41M-Combo:~/bin/source $
: 13
d) G41M-Combo:~/bin/source $
: make -j3
in 4th step i am using pentium D machine it is of 2 core so i have tried make -j2 also
but i did not got much difference
i am attaching the screen shot with this question ..
Click to expand...
Click to collapse
Do you have the following packages installed:
bison build-essential curl flex git-core gnupg gperf libesd0-dev libncurses5-dev libsdl1.2-dev libwxgtk2.8-dev libxml2 libxml2-utils lzop openjdk-6-jdk openjdk-6-jre pngcrush schedtool squashfs-tools xsltproc zip zlib1g-dev g++-multilib gcc-multilib lib32ncurses5-dev lib32readline-gplv2-dev lib32z1-dev? (source: http://wiki.cyanogenmod.org/w/Build_for_bravo)

[GUIDE][LINUX][Fedora 25] Setting up an Android compile environment

This post is mainly to communicate the packages required to get Fedora 25 ready to build android/AOSP. I don't intend to cover the Installation of Fedora, or the actual steps to generate the build (manifests, proprietary code, etc).
From a clean installation of Fedora 25:
Update the installation
Code:
dnf update
Install additional packages that we need to compile AOSP
(adapted from the Omni guide for F-19_64)
Code:
dnf -y install zip curl gcc gcc-c++ flex bison gperf glibc-devel.{x86_64,i686} zlib-devel.{x86_64,i686} ncurses-devel.i686 libX11-devel.i686 libstdc++.i686 readline-devel.i686 libXrender.i686 libXrandr.i686 perl-Digest-MD5-File python-markdown mesa-libGL-devel.i686 git schedtool pngcrush ncurses-compat-libs java-1.8.0-openjdk-devel xz-lzma-compat
Now let's grab some stuff from Google
Code:
mkdir -p ~/bin
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
Add to end of ~/.bashrc
Code:
export PATH=~/bin:$PATH
Configure git to identify you
Code:
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
At this point, the environment is ready to compile AOSP.
The remaining steps (getting & building the code, generating local manifest(s), looking up errors) are not distribution dependent, and are already posted in many places.
Create vendor directory, initialize repo , and download/sync the code (see vendor manifest page).
example:
Code:
mkdir -p ~/android/slim7
cd ~/android/slim7
repo init -u git://github.com/SlimRoms/platform_manifest.git -b ng7.1
repo sync -j#
Happy building,
-Cyril279
Super helpful guide. Thank you. I also ran the following to make sure I had all the stuff I needed.
Code:
sudo dnf groupinstall 'C Development Tools and Libraries'
Does LineageOS require extra packages? I am pretty sure it requires ImageMagick too.
cyril279 said:
This post is mainly to communicate the packages required to get Fedora 25 ready to build android/AOSP. I don't intend to cover the Installation of Fedora, or the actual steps to generate the build (manifests, proprietary code, etc).
-Cyril279
Click to expand...
Click to collapse
You created Android with Fedora?
FEDORA 30 Lineage 15.0
Code:
bash-5.0# java -version
java version "1.8.0_221"
Java(TM) SE Runtime Environment (build 1.8.0_221-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.221-b11, mixed mode)
Code:
ninja: no work to do.
[2/3] glob vendor/*/*/Android.bp
[1/1] /home/U-16/WORKING_DIRECTORY/out...ORKING_DIRECTORY/out/soong/build.ninja
18:43:57 *******************************************************
18:43:57 You are attempting to build with an unsupported JDK.
18:43:57
18:43:57 Only an OpenJDK based JDK is supported.
18:43:57
18:43:57 Please follow the machine setup instructions at:
18:43:57 https://source.android.com/source/initializing.html
18:43:57 *******************************************************
18:43:57 stop
make: *** [build/core/main.mk:21: run_soong_ui] error 1
bash-5.0#
taras-fedora-syn said:
You created Android with Fedora?
Click to expand...
Click to collapse
Yes. Let the errors be your guide.
cyril279 said:
errors
Click to expand...
Click to collapse
Hi! Compiling AOSP 7.1.2 for Sharp Z2 MT6797
eMachines eME642 AMD® Athlon(tm) ii p340 dual-core processor × 2
Fedora 34
Is my processor too weak?​
Notice file: prebuilts/tools/common/netbeans-visual/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//framework/org-openide-util.jar.txt
make: *** No rule to make target 'out/host/linux-x86/obj32/lib/libbcinfo.so', needed by 'out/host/linux-x86/obj32/lib/libbcc.so'. Stop.
LOG https://gist.githubusercontent.com/...9b1ad4b81a9de6124470aef15e89bca/gistfile1.txt

CM14.1 Build Error Please Help

I can't build CM14.1.
Acer Aspire V5-132
Intel Celeron 1019Y (1 GHz, Ivy Bridge)
Intel HD Graphics (350 MHz, Boost 800 MHz)
DDR3L RAM 6GB, swap 2GB, Total 8GB
HGST 5400rpm 500GB HDD (Ubuntu Partition is 100GB)
Ubuntu 16.10 64-bit
This is my Computer Specification.
When i build CM13 it builds successfully, but if i build CM14.1 it fails.
This is the error log.
Please help.
[ 39% 13511/33813] Ensure Jack server is installed and started
Jack server already installed in "/home/penguin97/.jack-server"
Launching Jack server java -XX:MaxJavaStackTraceDepth=-1 -Djava.io.tmpdir=/tmp -Dfile.encoding=UTF-8 -XX:+TieredCompilation -cp /home/penguin97/.jack-server/launcher.jar com.android.jack.launcher.ServerLauncher
[ 39% 13524/33813] Building with Jack: /home/penguin97/android/system/...ommon/obj/JAVA_LIBRARIES/core-all_intermediates/with-local/classes.dex
FAILED: /bin/bash /home/penguin97/android/system/out/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/with-local/classes.dex.rsp
Out of memory error (version 1.2-rc4 'Carnac' (298900 f95d7bdecfceb327f9d201a1348397ed8a843843 by [email protected])).
GC overhead limit exceeded.
Try increasing heap size with java option '-Xmx<size>'.
Warning: This may have produced partial or corrupted output.
[ 39% 13524/33813] Building with Jack: /home/penguin97/android/system/.../JAVA_LIBRARIES/android-support-annotations_intermediates/classes.jack
ninja: build stopped: subcommand failed.
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/home/penguin97/android/system'
#### make failed to build some targets (04:36:53 (hh:mm:ss)) ####
Have you tried increasing the heap size as instructed?.
Beamed in by telepathy.
How can i increase the heap size?
shivadow said:
Have you tried increasing the heap size as instructed?.
Beamed in by telepathy.
Click to expand...
Click to collapse
How can i increase the heap size?
galaxys3kt said:
Try increasing heap size with java option '-Xmx<size>'.
Click to expand...
Click to collapse
Reading is a virtue...
Beamed in by telepathy.

Categories

Resources