Having problems setting up build enviroment for building android - Android Q&A, Help & Troubleshooting

I'm trying to setup my build enviroment. I have mint linux 14 64bit. when following the guide on http://xda-university.com/as-a-developer/getting-started-building-android-from-source, i seem to be getting errors. the lines it says to use in terminal are
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
Here is the printout of result.
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
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
gnupg is already the newest version.
libc6-dev is already the newest version.
zip is already the newest version.
The following extra packages will be installed:
g++-4.7-multilib gcc-4.7-base:i386 gcc-4.7-multilib gcc-multilib
icedtea-6-jre-cacao icedtea-6-jre-jamvm lib32gcc1 lib32gomp1 lib32itm1
lib32quadmath0 lib32stdc++6 libX11-dev libbison-dev libc6:i386
libc6-dev:i386 libc6-dev-i386 libc6-i386 libdrm-dev libdrm-intel1:i386
libdrm-nouveau2:i386 libdrm-radeon1:i386 libdrm2:i386 libexpat1:i386
libffi6:i386 libfl-dev libgcc1:i386 libgl1-mesa-dri:i386 libglapi-mesa:i386
libgpm2:i386 libice-dev libllvm3.1:i386 libncurses5:i386 libpciaccess0:i386
libpthread-stubs0 libpthread-stubs0:i386 libpthread-stubs0-dev
libpthread-stubs0-dev:i386 libreadline6:i386 libsm-dev libstdc++6:i386
libtinfo-dev:i386 libtinfo5:i386 libtxc-dxtn-s2tc0:i386 libx11-6:i386
libx11-doc libx11-xcb-dev libx11-xcb1:i386 libxau-dev libxau-dev:i386
libxau6:i386 libxcb-glx0:i386 libxcb-glx0-dev libxcb1:i386 libxcb1-dev
libxcb1-dev:i386 libxdamage-dev libxdamage1:i386 libxdmcp-dev
libxdmcp-dev:i386 libxdmcp6:i386 libxext-dev libxext6:i386 libxfixes-dev
libxfixes3:i386 libxt-dev libxxf86vm-dev libxxf86vm1:i386 lintian
linux-libc-dev linux-libc-dev:i386 m4 mesa-common-dev mingw32-binutils
mingw32-runtime openjdk-6-jre openjdk-6-jre-headless openjdk-6-jre-lib
python-pygments x11proto-damage-dev x11proto-dri2-dev x11proto-fixes-dev
x11proto-gl-dev x11proto-input-dev x11proto-kb-dev x11proto-xext-dev
x11proto-xf86vidmode-dev xorg-sgml-doctools xtrans-dev zlib1g:i386
Suggested packages:
bison-doc lib32stdc++6-4.7-dbg lib32mudflap0 glibc-doc:i386 locales:i386
manpages-dev:i386 libglide3:i386 gpm:i386 libice-doc ncurses-doc:i386
libsm-doc libxcb-doc libxcb-doc:i386 libxext-doc libxt-doc
binutils-multiarch libhtml-parser-perl libperlio-gzip-perl
libtext-template-perl gcc-doc cpp-doc openjdk-6-demo openjdk-6-source
visualvm sun-java6-fonts fonts-ipafont-gothic fonts-ipafont-mincho
ttf-telugu-fonts ttf-oriya-fonts ttf-kannada-fonts ttf-bengali-fonts
python-markdown-doc ttf-bitstream-vera
Recommended packages:
libx11-doc:i386 gcc:i386 c-compiler:i386
The following NEW packages will be installed:
bison curl flex g++-4.7-multilib g++-multilib gcc-4.7-base:i386
gcc-4.7-multilib gcc-multilib git-core gperf icedtea-6-jre-cacao
icedtea-6-jre-jamvm lib32gcc1 lib32gomp1 lib32itm1 lib32quadmath0
lib32stdc++6 libX11-dev libX11-dev:i386 libbison-dev libc6:i386
libc6-dev:i386 libc6-dev-i386 libc6-i386 libdrm-dev libdrm-intel1:i386
libdrm-nouveau2:i386 libdrm-radeon1:i386 libdrm2:i386 libexpat1:i386
libffi6:i386 libfl-dev libgcc1:i386 libgl1-mesa-dev libgl1-mesa-dri:i386
libgl1-mesa-glx:i386 libglapi-mesa:i386 libgpm2:i386 libice-dev
libllvm3.1:i386 libncurses5:i386 libncurses5-dev:i386 libpciaccess0:i386
libpthread-stubs0 libpthread-stubs0:i386 libpthread-stubs0-dev
libpthread-stubs0-dev:i386 libreadline6:i386 libreadline6-dev:i386 libsm-dev
libstdc++6:i386 libtinfo-dev:i386 libtinfo5:i386 libtxc-dxtn-s2tc0:i386
libx11-6:i386 libx11-doc libx11-xcb-dev libx11-xcb1:i386 libxau-dev
libxau-dev:i386 libxau6:i386 libxcb-glx0:i386 libxcb-glx0-dev libxcb1:i386
libxcb1-dev libxcb1-dev:i386 libxdamage-dev libxdamage1:i386 libxdmcp-dev
libxdmcp-dev:i386 libxdmcp6:i386 libxext-dev libxext6:i386 libxfixes-dev
libxfixes3:i386 libxml2-utils libxt-dev libxxf86vm-dev libxxf86vm1:i386
linux-libc-dev:i386 m4 mesa-common-dev mingw32 mingw32-binutils
mingw32-runtime openjdk-6-jdk openjdk-6-jre openjdk-6-jre-headless
openjdk-6-jre-lib python-markdown python-pygments tofrodos x11proto-core-dev
x11proto-damage-dev x11proto-dri2-dev x11proto-fixes-dev x11proto-gl-dev
x11proto-input-dev x11proto-kb-dev x11proto-xext-dev
x11proto-xf86vidmode-dev xorg-sgml-doctools xsltproc xtrans-dev zlib1g:i386
zlib1g-dev:i386
The following packages will be upgraded:
lintian linux-libc-dev
2 upgraded, 106 newly installed, 0 to remove and 120 not upgraded.
Need to get 45.6 MB/125 MB of archives.
After this operation, 487 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Err http://archive.ubuntu.com/ubuntu/ quantal-updates/main linux-libc-dev amd64 3.5.0-18.29
404 Not Found [IP: 91.189.91.15 80]
Err http://archive.ubuntu.com/ubuntu/ quantal-updates/universe openjdk-6-jre-lib all 6b24-1.11.5-0ubuntu1~12.10.1
404 Not Found [IP: 91.189.91.15 80]
Err http://archive.ubuntu.com/ubuntu/ quantal-updates/main linux-libc-dev i386 3.5.0-18.29
404 Not Found [IP: 91.189.91.15 80]
Err http://security.ubuntu.com/ubuntu/ quantal-security/universe openjdk-6-jre-lib all 6b24-1.11.5-0ubuntu1~12.10.1
404 Not Found [IP: 91.189.92.181 80]
Err http://security.ubuntu.com/ubuntu/ quantal-security/universe openjdk-6-jre-headless amd64 6b24-1.11.5-0ubuntu1~12.10.1
404 Not Found [IP: 91.189.92.181 80]
Err http://security.ubuntu.com/ubuntu/ quantal-security/universe icedtea-6-jre-cacao amd64 6b24-1.11.5-0ubuntu1~12.10.1
404 Not Found [IP: 91.189.92.181 80]
Err http://security.ubuntu.com/ubuntu/ quantal-security/universe icedtea-6-jre-jamvm amd64 6b24-1.11.5-0ubuntu1~12.10.1
404 Not Found [IP: 91.189.92.181 80]
Err http://security.ubuntu.com/ubuntu/ quantal-security/universe openjdk-6-jre amd64 6b24-1.11.5-0ubuntu1~12.10.1
404 Not Found [IP: 91.189.92.181 80]
Err http://security.ubuntu.com/ubuntu/ quantal-security/universe openjdk-6-jdk amd64 6b24-1.11.5-0ubuntu1~12.10.1
404 Not Found [IP: 91.189.92.181 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_3.5.0-18.29_amd64.deb 404 Not Found [IP: 91.189.91.15 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/o/openjdk-6/openjdk-6-jre-lib_6b24-1.11.5-0ubuntu1~12.10.1_all.deb 404 Not Found [IP: 91.189.92.181 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/o/openjdk-6/openjdk-6-jre-headless_6b24-1.11.5-0ubuntu1~12.10.1_amd64.deb 404 Not Found [IP: 91.189.92.181 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_3.5.0-18.29_i386.deb 404 Not Found [IP: 91.189.91.15 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/o/openjdk-6/icedtea-6-jre-cacao_6b24-1.11.5-0ubuntu1~12.10.1_amd64.deb 404 Not Found [IP: 91.189.92.181 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/o/openjdk-6/icedtea-6-jre-jamvm_6b24-1.11.5-0ubuntu1~12.10.1_amd64.deb 404 Not Found [IP: 91.189.92.181 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/o/openjdk-6/openjdk-6-jre_6b24-1.11.5-0ubuntu1~12.10.1_amd64.deb 404 Not Found [IP: 91.189.92.181 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/o/openjdk-6/openjdk-6-jdk_6b24-1.11.5-0ubuntu1~12.10.1_amd64.deb 404 Not Found [IP: 91.189.92.181 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Can anyone make heads or tails of this?

memphian said:
Can anyone make heads or tails of this?
Click to expand...
Click to collapse
The errors you are running into relate to the version of Java you are trying to install. Since JRE 6 and JDK 6 have long not been included in the main package repository you are getting an error saying that they can't be found, as a result you will need to install them from a different source. I would recommend taking a look at this guide on setting up the proper version of Java for your build environment (Even though the guide is for Ubuntu it should still work on Mint). Additionally you never want to use Icedtea version of Java for building Android and it is recommend to use the official Oracle/Sun JDK 6 and JRE 6 for building Android.

shimp208 said:
The errors you are running into relate to the version of Java you are trying to install. Since JRE 6 and JDK 6 have long not been included in the main package repository you are getting an error saying that they can't be found, as a result you will need to install them from a different source. I would recommend taking a look at this guide on setting up the proper version of Java for your build environment (Even though the guide is for Ubuntu it should still work on Mint). Additionally you never want to use Icedtea version of Java for building Android and it is recommend to use the official Oracle/Sun JDK 6 and JRE 6 for building Android.
Click to expand...
Click to collapse
I'll check it out thanks.
Sent from my Nexus 4 using xda app-developers app

i was running on the same problem you need to install oracle java 1.6 (jdk spew errors, for some reason)
Code:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install oracle-java6-installer
sudo update-alternatives --config java (Here choose oracle)
that should do, it did it for me ^^
Cia fellow Mint

Think I have gotten past that point. Thanks guys.

The problem I'm running into now is that on the tutorial it says that a command has to be added to ~/.bashrc script. However, I don't see ~/.bashrc in home folder.
Sent from my Nexus 4 using xda app-developers app

memphian said:
The problem I'm running into now is that on the tutorial it says that a command has to be added to ~/.bashrc script. However, I don't see ~/.bashrc in home folder.
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
link to tutorial pls?

glorer said:
link to tutorial pls?
Click to expand...
Click to collapse
http://xda-university.com/as-a-developer/getting-started-building-android-from-source
Here it is sorry.
Sent from my Nexus 4 using xda app-developers app

ok i used nemo and found the .profile, not the barsch thought soo
Code:
sudo nemo
menu view -> Show hidden files or ctrl+h
home
<user>
and it should be sitting there

glorer said:
ok i used nemo and found the .profile, not the barsch thought soo
Code:
sudo nemo
menu view -> Show hidden files or ctrl+h
home
<user>
and it should be sitting there
Click to expand...
Click to collapse
I'm thinking .profile should be used. Not sure.

memphian said:
I'm thinking .profile should be used. Not sure.
Click to expand...
Click to collapse
If you navigate to your home directory using the built in file manager the .bashrc and/or the .profile will be hidden by default by pressing ctrl + h should show all the hidden files in the home directory. The .bashrc is typically used in this step since not all versions of mint come with .bashrc you can create using the following command:
Code:
touch ~/.bashrc
Then you can input the command into the .bashrc file.
Sent from my Nexus 10 using xda premium

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!

{Q} Android Kitchen

Heloo every one !
i just have format my win7 & install win8 64bit ,
i face problem with my kitchen !!
it was installed correctly before i format my pc !
but now it giving me this error after i press ./menu !!
Code:
[COLOR="Black"]Welcome to dsixda's Android Kitchen
Please wait ..
Error: The application 'gcc' is not installed - the kitchen
will not function properly without it. Ensure you did
not miss a step during installation! Refer to the
Android Kitchen FAQ at xda-developers.com for further
assistance.
** PLEASE READ THE FAQ BEFORE ASKING QUESTIONS!! **[/COLOR]
i tried to uninstall it and install fresh version but still i have this issue ?!
is my win8 64bit related to this issue ?
am working now to dev. a new rom but i face this problem and i need to fix my kitchen !?
i use some solution :
- re-install java sdk
-re-install gcc 3 times !
- fixing compatibility thing !
-all packages already checked & installed
-Also i move it to another part of hard desk !
i Already search google =D​
Try this...just in case you're missing anything. That is everything you could need to build from source...therefore should be good enough for kitchen
sudo apt-get install git 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 tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev:i386
Haze028 said:
Try this...just in case you're missing anything. That is everything you could need to build from source...therefore should be good enough for kitchen
sudo apt-get install git 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 tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev:i386
Click to expand...
Click to collapse
Code:
-bash: sudo: command not found
still same problem =)​
Probs
Hey, I've got a problem with KITCHEN on Porting a ROM. Here it is. The Kitchen's thread is closed, I dont have any idea who am I going to approach.
Converting to update-script, please wait ...
- Initial formatting ...
- assert ...
- write_raw_image ...
- run_program ...
- delete ...
- symlink ...
scripts/convert_updater_script: line 386: diff: command not found
ERROR: Problem converting symlinks
ChristianFerrer said:
Hey, I've got a problem with KITCHEN on Porting a ROM. Here it is. The Kitchen's thread is closed, I dont have any idea who am I going to approach.
Converting to update-script, please wait ...
- Initial formatting ...
- assert ...
- write_raw_image ...
- run_program ...
- delete ...
- symlink ...
scripts/convert_updater_script: line 386: diff: command not found
ERROR: Problem converting symlinks
Click to expand...
Click to collapse
Here Sir. This is the best and absolutely most functional Kitchen ever built to this point that's currently compatible to more devices than any others ever before this one built. This should take care of your needs and the Developer stays on the projects to improve functions and improve compatibility across the board. I highly doubt you'll be disappointed.
http://forum.xda-developers.com/showthread.php?p=62845957
Gratefully sent from my Rooted N9510 JollyRoger4G

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][COMPLETE]How to build ROM with Google Cloud

What is this Tutorial?
This tutorial will help you learn about building a custom ROM from source on Google Cloud.
Who this tutorial is for?
This tutorial is for those who want to build a custom ROM from source, but are unable to do that because of following reasons:
1. Low network speed
2. Limited bandwidth
3. Irregular power supply which obstructs the repo sync (yes, this is a reason in some countries )
What is needed for you to start with this thread?
1. A google account
2. A credit card – This is a must to start using Google Cloud Update: I read that people have successfully used debit cards as well.; so try your luck
With you card you can activate free trial and use Google Cloud without any charges for 12 months. Your card will be charged for $1 for verification purpose (and that’s it, the charges on my credit card got reversed in a day- I’m not sure about the reversal of the charges on debit card charges will be reversed on the cards [But I'm not responsible if they don't revert it ]).
3. A PC with good (average will also do, I used 512 kbps connection) internet connection (to access Google Cloud, your bandwidth will not be used much).
4. Common sense (you should have it as you are reading this thread)
5. Willingness to read, search and ask right questions in right forums, communities
So, let’s start our journey!
Part – I
Activating Google Cloud FREE Trial
1. Go to Google Cloud website: https://cloud.google.com/ and click on Free Trial button
{
"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"
}
2. Login with your Google account username and password.
3. Click on SIGN UP FOR FREE TRIAL
Enter all the details and click on Accept and start free trial button
4. It will start your free trial and create first project for you
Congratulations! You have completed the most important Part – I of the process and you are now ready to setup the environment for building your ROM!
Update: Now the free trial validity is 1 year so more time to learn how to build the ROM
 
Part – II
Creating Virtual machine on Google Compute Engine
1. Click on the 2 lines menu displayed on the left top corner to bring on the Products and Services list on left side.
2. In this menu, click on Compute Engine
3. It’ll show following page, click on Create Instance button
4. On Create Instance page, specify the details like Name, Zone (if you want to change them). In Machine Type combo, select a machine configuration that you would like to have.
I use 4 cores and 15 GB memory
5. In Boot disk section, click on Change button.
6. On Boot disk details page, select the OS that you want to have on VM Instance. I always used Ubuntu 14.04 LTS (and it never let me down). Update: Now I use 16.04 LTS
Enter the size of disk. I used 500 GB so that I can sync 2-3 ROMs in the same VM Instance Then click on Select button.
Note: With this configuration I was able to clean build a ROM in around 70 minutes. The repo sync took around 25-30 minutes (which would have taken a week on my slow internet connection)
7. It’ll take you back to Create Instance page. Here you can specify the Firewall by checking both the check boxes. Finally click on Create button to create the VM Instance.
8. It’ll take a minute or two and create the VM instance. It’ll be in running state as indicated by the Green check box in front of the VM Name.
Note: You can start or stop the instance by selecting it and then clicking on stop or start button. It is advised to stop the VM instance once you are done with using it.
9. Click on the 3 dots menu near SSH and select option Open in browser window.
10. It’ll start the SSH connection to the VM Instance that you have created.
11. Run following command to get su
Code:
sudo –s
Now you are ready to install the required packages to build the ROM from source. You can follow this nice guide created by @jackeagle to start:
http://forum.xda-developers.com/showpost.php?p=54118614&postcount=2
That was it!
Wish you all the best for building your first ROM
How to upload the ROM zip on internet?
Many guys, who were able to build the ROM successfully, were asking about how to get the ROM zip on phone
Thanks @hackslash for this nice post: http://forum.xda-developers.com/showpost.php?p=68750149&postcount=146
Upload to AFH: https://forum.xda-developers.com/showpost.php?p=73420609&postcount=315
You can also upload it on Google drive by following these steps:
http://olivermarshall.net/how-to-upload-a-file-to-google-drive-from-the-command-line/ (thanks @Papdya for sharing this link)
Nitin
Awesome guide. I'm sure it'll help out those who are trying hard to build their first ROM and get involved in building stuff. Just a suggestion though
I find @akhilnarang script to be easy to setup server and it's just few commands away. It'd be nice if you include that
Link : github.com/akhilnarang/scripts
-ThugLife™✌
Shreesha.Murthy said:
Awesome guide. I'm sure it'll help out those who are trying hard to build their first ROM and get involved in building stuff. Just a suggestion though
I find @akhilnarang script to be easy to setup server and it's just few commands away. It'd be nice if you include that
Link : github.com/akhilnarang/scripts
-ThugLife™
Click to expand...
Click to collapse
Sure buddy! I'll have a look an include them.
I suffered a lot to build my first ROM (you know that)... So thought to share this easy and fast way to build the ROM. I observed that initially we have to build many times due to errors (coming from lack of knowledge about building). This will reduce the time that is required for "build - error - fix- rebuild" cycle and learn ROM building quickly :fingers-crossed:
Nice
You can add guide to add a disk, format and mount that too
That was my main stuggle when I was trying to use it first
Good for our reading. Thanks
akhilnarang said:
Nice
You can add guide to add a disk, format and mount that too
That was my main stuggle when I was trying to use it first
Click to expand...
Click to collapse
I'll have to understand it from you first
Sent from my Nexus 4 using XDA Free mobile app
To make sure i understand, technically I could build roms on a chromebook with this guide? And the guide listed at the end, do we download all those things on our computer or on the cloud platform? Thanks!
allanlgz said:
To make sure i understand, technically I could build roms on a chromebook with this guide? And the guide listed at the end, do we download all those things on our computer or on the cloud platform? Thanks!
Click to expand...
Click to collapse
Cloud platform m8 :wink:
-ThugLife™✌
allanlgz said:
To make sure i understand, technically I could build roms on a chromebook with this guide? And the guide listed at the end, do we download all those things on our computer or on the cloud platform? Thanks!
Click to expand...
Click to collapse
As @Shreesha.Murthy says, you do everything on Google cloud. That's the whole point of writing this thread
Sent from my Nexus 4 using XDA Free mobile app
Shreesha.Murthy said:
Cloud platform m8 :wink:
-ThugLife™✌
Click to expand...
Click to collapse
Thanks m8. I've never built before but feel comfortable with all the commands and everything. Just one last question, if I want to build for the Sprint LG G3 ls990, I'd have to use the device tree and everything device specific from CM for ls990 (or any other that has all device specific things) to get it to work on my ls990, correct?
Also, thanks so much for the guide it looks really helpful
allanlgz said:
Thanks m8. I've never built before but feel comfortable with all the commands and everything. Just one last question, if I want to build for the Sprint LG G3 ls990, I'd have to use the device tree and everything device specific from CM for ls990 (or any other that has all device specific things) to get it to work on my ls990, correct?
Also, thanks so much for the guide it looks really helpful
Click to expand...
Click to collapse
Yes, you can use the device trees from CM. Do it... :fingers-crossed:
Trying to build
I use the guide link posted at the end however when trying to run the commands I get these errors:
sudo apt-get install git-core gnupg ccache lzop flex bison gperf build-essential zip curl zli
b1g-dev zlib1g-dev:i386 libc6-dev lib32ncurses5 lib32z1 lib32bz2-1.0 lib32ncurses5-dev x11proto-core-dev libx11-
dev:i386 libreadline6-dev:i386 lib32z-dev libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 tofrodos pyt
hon-markdown libxml2-utils xsltproc readline-common libreadline6-dev libreadline6 lib32readline-gplv2-dev libncu
rses5-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
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'lib32z1-dev' instead of 'lib32z-dev'
E: Unable to locate package zlib1g-dev
E: Unable to locate package libx11-dev
E: Unable to locate package libreadline6-dev
E: Unable to locate package libgl1-mesa-glx
E: Unable to locate package libreadline6-dev
E: Unable to locate package libreadline6
[email protected]:~# sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
ln: failed to create symbolic link ‘/usr/lib/i386-linux-gnu/libGL.so’: No such file or directory
Have followed instructions perfectly so far
allanlgz said:
Trying to build
I use the guide link posted at the end however when trying to run the commands I get these errors:
sudo apt-get install git-core gnupg ccache lzop flex bison gperf build-essential zip curl zli
b1g-dev zlib1g-dev:i386 libc6-dev lib32ncurses5 lib32z1 lib32bz2-1.0 lib32ncurses5-dev x11proto-core-dev libx11-
dev:i386 libreadline6-dev:i386 lib32z-dev libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 tofrodos pyt
hon-markdown libxml2-utils xsltproc readline-common libreadline6-dev libreadline6 lib32readline-gplv2-dev libncu
rses5-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
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'lib32z1-dev' instead of 'lib32z-dev'
E: Unable to locate package zlib1g-dev
E: Unable to locate package libx11-dev
E: Unable to locate package libreadline6-dev
E: Unable to locate package libgl1-mesa-glx
E: Unable to locate package libreadline6-dev
E: Unable to locate package libreadline6
[email protected]:~# sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
ln: failed to create symbolic link ‘/usr/lib/i386-linux-gnu/libGL.so’: No such file or directory
Have followed instructions perfectly so far
Click to expand...
Click to collapse
Well, those guides are pretty outdated for now. Scroll up or see the 3rd post where I've mentioned about the script. It's automatic and saves you from headache
-ThugLife™✌
Shreesha.Murthy said:
Well, those guides are pretty outdated for now. Scroll up or see the 3rd post where I've mentioned about the script. It's automatic and saves you from headache
-ThugLife™✌
Click to expand...
Click to collapse
alright m8 thanks so much! that sets up the whole build environment right? after running script i can just start builds?
allanlgz said:
alright m8 thanks so much! that sets up the whole build environment right? after running script i can just start builds?
Click to expand...
Click to collapse
Yeah, you just need to sync the ROM source you're trying to build+ device trees and make it compatible for the ROM and you're good to go
-ThugLife™✌
allanlgz said:
Trying to build
I use the guide link posted at the end however when trying to run the commands I get these errors:
sudo apt-get install git-core gnupg ccache lzop flex bison gperf build-essential zip curl zli
b1g-dev zlib1g-dev:i386 libc6-dev lib32ncurses5 lib32z1 lib32bz2-1.0 lib32ncurses5-dev x11proto-core-dev libx11-
dev:i386 libreadline6-dev:i386 lib32z-dev libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 tofrodos pyt
hon-markdown libxml2-utils xsltproc readline-common libreadline6-dev libreadline6 lib32readline-gplv2-dev libncu
rses5-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
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'lib32z1-dev' instead of 'lib32z-dev'
E: Unable to locate package zlib1g-dev
E: Unable to locate package libx11-dev
E: Unable to locate package libreadline6-dev
E: Unable to locate package libgl1-mesa-glx
E: Unable to locate package libreadline6-dev
E: Unable to locate package libreadline6
[email protected]:~# sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
ln: failed to create symbolic link ‘/usr/lib/i386-linux-gnu/libGL.so’: No such file or directory
Have followed instructions perfectly so far
Click to expand...
Click to collapse
This has been answered in that thread. If you see closely, you'll find out that the packages that are showing error have :i386 in their name. Remove :i386 from their names and you should be good to go.
Or use the scripts that @Shreesha.Murthy has linked
Nitin
thanks for guiding.....:good::good::good:
now i am try to make a rom for my device
@nitin.chobhe - Nice work!
What should be noted that in european countries it seems to only work for people who have a buisiness, at least as per Tos u can't choose and/or use as private person, but most of us have decent internet and power supply and a good enough pc.
Just a note for those who may wonder.

Errors during kernel compilation

Hi, now I'm trying to compile kernel from official sources for Google Pixel 4a (sunfish). I've got some errors, so I need some help.
UPD: I'm using Ubuntu 20.04 through WSL
What I did:
1. cloned this repo
2. downloaded toolchains from this repo. I tried every version except 7.x. First, I tried tools from google's repo, but i've got errors like "there's no gcc" or "gcc is too old -- you are using 4.9 instead of 5.1", so I found other repo.
3. Installed this packages:
sudo apt-get install git gnupg flex bison build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses-dev x11proto-core-dev libx11-dev lib32z1-dev libgl1-mesa-dev libxml2-utils xsltproc unzip fontconfig ccache u-boot-tools
Click to expand...
Click to collapse
4. followed this xda guide.
5. of course, set CROSS_COMPILE and CROSS_COMPILE_ARM32 in toolchain folders, also set
export ARCH=arm64 && export SUBARCH=arm64
6. run
make clean
make mrproper
make sunfish_defconfig
make -j$(nproc --all)
7. here is terminal output (pastebin). If you scroll, you can see, that there are errors during compilation process. And as I understand, process was stopped because of this errors.
I hope someone could help me to find out where is the problem.
Hi, did you solve the problem?
I encounter the same error recently, and I'm also curious about the solution
Thanks a lot

Categories

Resources