I'm on the newest version of Ubuntu. I've set up a build environment and I've init my repo using a custom ROMs manifest. Current branch 4.4.4_r2.0.1 is kk-ras-mr4_r1. Now when I get to $ make -jx (where x is the number of jobs) to build boot.IMG, system.IMG, etc I get a error. Your version is: java version 1.7.0_67
The correct version is: java we 1.6
Is their apt-get command to install it? Every site/ guide I've Googled has let me down.
Sent from my Nexus 5 using XDA Free mobile app
Bump
Sent from my Nexus 5 using XDA Free mobile app
Related
Hey everyone!
Long story short, I built a new desktop and can not for the life of me get java installed correctly.
IE
Code:
/bin/bash: prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc: No such file or directory
Checking build tools versions...
************************************************************
You are attempting to build with the incorrect version
of javac.
Your version is: /bin/bash: javac: command not found.
The correct version is: 1.6.
Please follow the machine setup instructions at
http://source.android.com/download
I have searched and tried many tutorials from various places to no avail.
My setup as current: Ubuntu 10.10 64, I used Java6u31-i586.bin
I used this code to set java:
Code:
sudo update-alternatives --install "/usr/bin/java" "java" "/opt/java/32/jdk1.6.0_31/bin/java" 1
sudo update-alternatives --set java /opt/java/32/jdk1.6.0_31/bin/java
any help or direction would GREATLY apreciated!!!
Thanks in advance!
You have to use sun Java 6... jdk .... sudo apt-get update.... sudo apt-get install sun-java6. You can't build gingerbread with Java 5, mist be 6
Sent from my SAMSUNG-SGH-I997 using xda premium
thats very true! however I am using 6 the problem is Ubuntu has taken java out of there repositories due to a security flaw so you have to install it manually.
Check How-to-geek, they had a script posted there about a month ago.
CM7 Infuse - XDA Premium
marty331 said:
Check How-to-geek, they had a script posted there about a month ago.
CM7 Infuse - XDA Premium
Click to expand...
Click to collapse
Sweet!! Thanks
Sent from my SGH-I997 using xda premium
seemles said:
Sweet!! Thanks
Sent from my SGH-I997 using xda premium
Click to expand...
Click to collapse
http://christiansons.net/mike/blog/2010/07/sun-java-6-on-ubuntu-10-04-10-10-and-later/
marty331 said:
http://christiansons.net/mike/blog/2010/07/sun-java-6-on-ubuntu-10-04-10-10-and-later/
Click to expand...
Click to collapse
Thanks for all the help guys! I actually ended up finding a super easy setup. Its a mix between 2 tutorials if all goes well after my repo syncs ill make a tutorial my self. There seems to be alot of left out small but important steps that would greatly benefit ppl new to Linux but not necessarily noobs to deving.
Sent from my SGH-I997 using xda premium
Update : After a weeks of searching reading reinstalling again and again and again my whole problem ended up being my new PC had too much balls lol. Set my BIOS levels to safest possible and boom! In only 14 min I compiled CM7 lol!
That's what an 8 core 3.1 Ghz CPU and a 5.2 Ghz FSB can do! Hehe :-D
I cant seem to find a guide on how you do this, can someone link me or explain thanks.
So do i do all this after i've flashed CyanogenMod?
Build Instructions Setup a standard CyanogenMod 9 build environment (there are plenty of tutorials on the web already on how to do this). Then
1. Add add the following entries to your local manifest
Code:
where you replace XXX with your device (i815, p6200, p6210, p6800, p6810, or t869). 2. Make sure that your device is running the newest build of CyanogenMod 9 or stock ICS if your device has it. 3. Make sure your device is plugged in and has debugging enabled. 4. Run the extract-files script from your particular device tree. 5. Run vendor/cm/get-prebuilts 6. Your sources are now ready, to build run
Code:
$ . build/envsetup.sh # this sets up the build environment $ lunch cm_XXX-userdebug # this selects your device $ mka bacon # this builds CM
Click to expand...
Click to collapse
Sent from GT-P6800 using xda premium
Don't need to do any of it. Those are instructions for building the Rom. Just flash wipe with ioceras cwm and enjoy.
Sent from my GT-P6800 using xda premium
Awesome, thanks.
Sent from GT-P6800 using xda premium
Hi,
Where I can get the .zip for the experimental builds?
Not the nightlies
If these .zip files doesn't exist, how can I do my own? Where I can find a guide or somenthing to do that.
Thanks!
Sent from my SGH-T699 using XDA Premium 4 mobile app
falle21 said:
Hi,
Where I can get the .zip for the experimental builds?
Not the nightlies
If these .zip files doesn't exist, how can I do my own? Where I can find a guide or somenthing to do that.
Thanks!
Sent from my SGH-T699 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
I don't recommend trying to set up a rig to build for novice users. With that said, it is something you can do with some time and effort. If you choose to build Android on your machine, it will (probably) be tough. It also may take your machine hours to do the work. Keep that in mind..
Google is your friend. Keep in mind, you cannot compile Android on Windows, so you will need a virtual machine or a (dual boot) Linux partition on your hard drive.
Once you have the basics in place, I'm sure the rest of us can help you iron out any little issues with linking.
-----
*** Note to all forum members: Thanks in advance for NOT making this thread a flame war about operating systems! Thank you!
Thanks a lot, a google about this but i cant find good information. Thanks for the answer
Sent from my SGH-T699 using XDA Premium 4 mobile app
falle21 said:
Thanks a lot, a google about this but i cant find good information. Thanks for the answer
Sent from my SGH-T699 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
The CyanogenMod Wiki has some good information for how to get started:
http://wiki.cyanogenmod.org/w/Build_for_apexqtmo (This guide has a few things specific to building CM 10.2, but you change the repo init line to read cm-11.0 instad, and you'll be fine to follow along with what I'm mentioning)
To build the Hypnotoad builds, you follow that through the point that you are done with Section 2.7 (Get prebuilt apps)
Then instead of running breakfast, and trying to extract blobs, add the manifest linked in the development thread to .repo/local_manifests.
Run repo sync again,
apply the cherry pick list (after envsetup, repopick <list>)
Then skip to section 2.11 (Start the build)
If you want to use ccache to speed up subsequent builds, follow section 2.10
Thanks! I gonna research and try.
Thanks for the information
Sent from my SGH-T699 using XDA Premium 4 mobile app
Is it possible to manually install/build the make command on an android device. Before you suggest it, botbrew doesn't want to work for my Nexus 5 or TMO SGS4. Thanks in advanced!
Sent from my Nexus 5 using XDA Premium 4 mobile app
Don't see why you need make. There's an apk here ( http://botbrew.com/). Don't know if this is possible, if you want to compile stuff why not cross-compile?
beekay201 said:
Don't see why you need make. There's an apk here ( http://botbrew.com/). Don't know if this is possible, if you want to compile stuff why not cross-compile?
Click to expand...
Click to collapse
Not brew spews all kinds of errors and won't work. How would I cross compile the make command for my phone or utils and or packages in general??
Sent from my Nexus 5 using XDA Premium 4 mobile app
codecaine21 said:
Not brew spews all kinds of errors and won't work. How would I cross compile the make command for my phone or utils and or packages in general??
Sent from my Nexus 5 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
What do you want to do? Build stuff? Do you have a bunch of makefiles you need running? I think that you'd still need a toolchain to build stuff, not just make.
My suggestion was to cross compile stuff on your PC that runs on your PHONE.
beekay201 said:
What do you want to do? Build stuff? Do you have a bunch of makefiles you need running? I think that you'd still need a toolchain to build stuff, not just make.
My suggestion was to cross compile stuff on your PC that runs on your PHONE.
Click to expand...
Click to collapse
Exactly what I want to do. Build a program from source. A C program tarball. But yes I have make files and all that good stuff. I can easily build on my Linux box but not my phone.
How do I go about building a toolchain and cross compiling? Do you have any links handy?
Sent from my Nexus 5 using XDA Premium 4 mobile app
I think the NDK is what I'm looking for. I hope it can cross compile lakes with make files, multiple c programs and shared object files.
Sent from my Nexus 5 using XDA Premium 4 mobile app
Hello. I was wondering how hard it would be to compile a wpasupplicant module with eap-fast support? My work uses eap_fast and I have successfully recompiled Ubuntu 14.04 on my work PC to work with it but I didn't know how it was done for Android/Nexus 5? Do you have to get the SDK and recompile the whole ROM? If so, is there a github that is ready to go to check out?
Sent from my Nexus 5 using XDA Free mobile app
MrObvious said:
Hello. I was wondering how hard it would be to compile a wpasupplicant module with eap-fast support? My work uses eap_fast and I have successfully recompiled Ubuntu 14.04 on my work PC to work with it but I didn't know how it was done for Android/Nexus 5? Do you have to get the SDK and recompile the whole ROM? If so, is there a github that is ready to go to check out?
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
Bump. Again, this is a question on how to compile part of the ROM for the wpasupplicant part, not how to fix it for my wifi.