5,603,920 Members 41,869 Now Online
XDA Developers Android and Mobile Development Forum

[GUIDE][A First For Xda] How to Build a rom + more using only the Linux terminal!

Tip us?
 
moneyvirus
Old
#11  
Senior Member
Thanks Meter 31
Posts: 144
Join Date: Nov 2012
Quote:
Originally Posted by gerciolisz View Post
It seems he is using java1.7 .. He must change all things to work under 1.6 but i dont remember how XD it is explained somewhere at xda university

Sent from my LG-P880 using xda app-developers app
well apperently i'm not using java 1.7.

java version "1.6.0_27"
OpenJDK Runtime Environment (IcedTea6 1.12.6) (6b27-1.12.6-1ubuntu0.12.04.4)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

this is what i got @laufersteppenwolf
 
gerciolisz
Old
(Last edited by gerciolisz; 20th February 2014 at 10:18 AM.)
#12  
Senior Member
Thanks Meter 92
Posts: 317
Join Date: Feb 2013
Quote:
Originally Posted by moneyvirus View Post
well apperently i'm not using java 1.7.

java version "1.6.0_27"
OpenJDK Runtime Environment (IcedTea6 1.12.6) (6b27-1.12.6-1ubuntu0.12.04.4)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

this is what i got @laufersteppenwolf
I mean there was a command which shows every detail about wchich things are using which java.. Sometimes you can have java 1.6 installed but some parts of system are using 1.7.. Ill try to find it


Edit. I remember it was in compiling cm11 thread somewhere on xda.
There was something about setting up java alternatives AS far AS i remember
Sent from my LG-P880 using xda app-developers app
 
king960
Old
#13  
king960's Avatar
Senior Member
Thanks Meter 40
Posts: 248
Join Date: Feb 2013
Location: warsaw
Nice tutorial If i was a developer of roms o would definetely use your way, i like the old school linux throught terminal exploring

Sent from my LT22i using xda app-developers app
 
laufersteppenwolf
Old
#14  
laufersteppenwolf's Avatar
Forum Moderator / Recognized Developer
Thanks Meter 3705
Posts: 1,936
Join Date: Jul 2012
Location: Lauf, Baden-Württemberg

 
DONATE TO ME
Quote:
Originally Posted by moneyvirus View Post
well apperently i'm not using java 1.7.

java version "1.6.0_27"
OpenJDK Runtime Environment (IcedTea6 1.12.6) (6b27-1.12.6-1ubuntu0.12.04.4)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

this is what i got @laufersteppenwolf
Alright, then just ignore the error It's saying it'd be the wrong java version, because you're using openJDK, and not oracle, but openJDK is just as fine as oracle

Quote:
Originally Posted by gerciolisz View Post
I mean there was a command which shows every detail about wchich things are using which java.. Sometimes you can have java 1.6 installed but some parts of system are using 1.7.. Ill try to find it


Edit. I remember it was in compiling cm11 thread somewhere on xda.
There was something about setting up java alternatives AS far AS i remember
Sent from my LG-P880 using xda app-developers app
Java 7 (1.7) is also compatible. It isn't officially supported, and you might run into problems compiling pure AOSP, but other custom ROMs should compile just fine
Sony Ericsson Xperia X8: GingerDX v31b ; alfs CM7 v09c
LG Optimus 4x HD: my own version of CM 10.1 , CWM recovery, UNlocked BL

Crying that it's an application bug is like crying over the speed of light: you should deal with reality, not what you wish reality was. - Linus Torvalds
The Following User Says Thank You to laufersteppenwolf For This Useful Post: [ Click to Expand ]
 
moneyvirus
Old
#15  
Senior Member
Thanks Meter 31
Posts: 144
Join Date: Nov 2012
Thanks for the feedback i'm still having 1 question the Vendor, the unoffical tree is completly clear but i can't find it in the offical source so i mean something like

$ git clone https://github.com/P880-dev/proprietary_vendor_lge.git lge but than on the offical cyanogenmod github.
 
laufersteppenwolf
Old
#16  
laufersteppenwolf's Avatar
Forum Moderator / Recognized Developer
Thanks Meter 3705
Posts: 1,936
Join Date: Jul 2012
Location: Lauf, Baden-Württemberg

 
DONATE TO ME
Quote:
Originally Posted by moneyvirus View Post
Thanks for the feedback i'm still having 1 question the Vendor, the unoffical tree is completly clear but i can't find it in the offical source so i mean something like

$ git clone https://github.com/P880-dev/proprietary_vendor_lge.git lge but than on the offical cyanogenmod github.
here you go:
Code:
cd vendor
git clone git@github.com:TheMuppets/proprietary_vendor_lge.git -b cm-11.0 lge
croot
Sony Ericsson Xperia X8: GingerDX v31b ; alfs CM7 v09c
LG Optimus 4x HD: my own version of CM 10.1 , CWM recovery, UNlocked BL

Crying that it's an application bug is like crying over the speed of light: you should deal with reality, not what you wish reality was. - Linus Torvalds
The Following 2 Users Say Thank You to laufersteppenwolf For This Useful Post: [ Click to Expand ]
 
gerciolisz
Old
#17  
Senior Member
Thanks Meter 92
Posts: 317
Join Date: Feb 2013
ok i found it..

source: http://forum.xda-developers.com/nexu...od-11-t2515305
Quote:
Verify the symlinks. Javac, Java, Javaws, Javadoc, Javah, Javap and Jar should all point to the right Java location and version:

Code:
Code:
$ ls -la /etc/alternatives/java* && ls -la /etc/alternatives/jar
If they are pointing to the wrong versions you have to change that to OpenJDK6.

Select the default Java version for your system:
Code:
Code:
$ sudo update-alternatives --config javac 
$ sudo update-alternatives --config java 
$ sudo update-alternatives --config javaws 
$ sudo update-alternatives --config javadoc 
$ sudo update-alternatives --config javah 
$ sudo update-alternatives --config javap 
$ sudo update-alternatives --config jar
That's it.
when i had problems with compiling and got some famous errors i changed to this OpenJDK6 with this method and it solved it so if is not solution for your problem maybe its helpful for others

when i was compiling some time ago i must read few compiling threads to make it work and understand it
The Following User Says Thank You to gerciolisz For This Useful Post: [ Click to Expand ]
 
moneyvirus
Old
#18  
Senior Member
Thanks Meter 31
Posts: 144
Join Date: Nov 2012
ok probbably this is a really stupid from my side but this is what i did.
and probbably i'm too noob for this, but i tried this:

i downloaded by example rastakat.
downloaded all the steps... without any error.

But in the last step when i type lunch and i have to choose wich version i would like to compile i can't find P880......
i have the feeling i have to edit some stuff but to be honest i don't know that yet....
will try later on.
 
gerciolisz
Old
#19  
Senior Member
Thanks Meter 92
Posts: 317
Join Date: Feb 2013
maybe you need custom local manifest to p880-dev sources or official p880 sources..
 
laufersteppenwolf
Old
#20  
laufersteppenwolf's Avatar
Forum Moderator / Recognized Developer
Thanks Meter 3705
Posts: 1,936
Join Date: Jul 2012
Location: Lauf, Baden-Württemberg

 
DONATE TO ME
Quote:
Originally Posted by moneyvirus View Post
ok probbably this is a really stupid from my side but this is what i did.
and probbably i'm too noob for this, but i tried this:

i downloaded by example rastakat.
downloaded all the steps... without any error.

But in the last step when i type lunch and i have to choose wich version i would like to compile i can't find P880......
i have the feeling i have to edit some stuff but to be honest i don't know that yet....
will try later on.
You've set yourself a pretty hard task, first of all, compiling a yet unsupported ROM, but mostly a (more-less) AOSP ROM...
this means you can't use lunch, but you need to do the following:
  • Download the p880-dev device tree, kernel and vendor blobs
  • Edit the "inherit" paths inside the .mk files of the device tree
  • Without (except for the above mentioned) changes, you can run "lunch cm_p880-eng"
  • Then you can make -j<your_value> bacon
Sony Ericsson Xperia X8: GingerDX v31b ; alfs CM7 v09c
LG Optimus 4x HD: my own version of CM 10.1 , CWM recovery, UNlocked BL

Crying that it's an application bug is like crying over the speed of light: you should deal with reality, not what you wish reality was. - Linus Torvalds

The Following User Says Thank You to laufersteppenwolf For This Useful Post: [ Click to Expand ]
THREAD CLOSED
Subscribe
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes