• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Cyanogemod source help

pressy4pie

Android Enthusiast
Feb 20, 2012
358
156
/media/connor
Ok, so im trying to get this to build from source just so i can mess around with it but i cant seem to figure it out..

i have downloaded the cyanogen repo (and the official repo also), but when i go to build it it allways fails.. i put Requisites device profile from github (renamed to "admire" as per the .mk files.) and when i ran
Code:
$ . build/envsetup.sh
and then
Code:
 $ lunch admire-eng
(thats the build name..) it gave me an error so i looked in device_admire.mk and changed the name to admire (rather then full_admire) and copyed that file and dumped it into
Code:
/vendor/cyanogen/products/
and now it sees the device profile correctly, but i cant get it to compile.. the error i get after running
Code:
lunch admire-eng
then
Code:
brunch admire-eng
gets me...

Code:
make: *** No rule to make target `device/samsung/admire/prebuilt/lib/liblog.so', needed by `out/target/product/admire/system/lib/liblog.so'.  Stop.

Thanks in advance
 
I just checked the github, and there's a lot of files that didn't get added (due to the .gitignore file, specifically the majority of the prebuilt files). If you get the new files and overwrite the old ones, and just run this command line, it should build fine:

Code:
. build/envsetup.sh && brunch full_admire-eng

Also, I wouldn't suggest running the extract-files.sh script, I mainly made it for my own convenience, and it will introduce problems because some of the prebuilts need to be modified by hand to work correctly in CM7.
 
  • Like
Reactions: pressy4pie
Upvote 0
i had to do a reinstall of ubuntu 10.04 cause something broke.. lol. so once i get all the dependencies and such ill try again. Thanks:)

edit: ok now im still getting errors.. it must be java related because i couldnt even get crespo to compile as a test... i hava the java jdk 6 update 31 installed.. is that right? should i try 7?
 
Upvote 0
ok, i must be starting to sound pretty stupid, but i can not seem to get java to install right since they took it off the repo..

i downloaded it from oracle got it to self extract and tried to export a path to it but when i type
Code:
java -version
i still get could not be found... i know it installed correctly because if i cd into
Code:
 /usr/java/jdk1.6.0_29/bin
and test it works...
 
Upvote 0
ok, i must be starting to sound pretty stupid, but i can not seem to get java to install right since they took it off the repo..

i downloaded it from oracle got it to self extract and tried to export a path to it but when i type
Code:
java -version
i still get could not be found... i know it installed correctly because if i cd into
Code:
 /usr/java/jdk1.6.0_29/bin
and test it works...

Code:
echo "export PATH=/usr/java/jdk1.6.0_29/bin:$PATH" >> ~/.bashrc
source ~/.bashrc
java -version
 
Upvote 0
ok i have java working now, but now i get some error with sdk. Ill try again in a couple days.

I let my mother borrow my computer for like an hour and she managed to somehow kill my internal wireless card so i have to take it to bestbuy and have those greedy idiots replace it. (i think the best buy reps are in the same "Not even a person" category and the sales reps for the metro stores.)
 
Upvote 0
oh so true. I would love nothing more then to slap them with my $800 dollar computer but alas it is my only means of well life in general, so because it is cheaper then doing it myself (I have there ridiculous warranty) i will have to let them do it. so in the mean time, i will kill some zombies of the Nazi variety on XBOX...
 
Upvote 0
Ohhh. Ok, it didnt take nearly as long to get to this time,
Code:
make: *** [out/host/linux-x86/obj/EXECUTABLES/bb2sym_intermediates/bb2sym.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [out/host/linux-x86/obj/EXECUTABLES/bb2sym_intermediates/trace_reader.o] Error 1

is the error i get..
sorry for all the nooby-ness.
 
Upvote 0
Ohhh. Ok, it didnt take nearly as long to get to this time,
Code:
make: *** [out/host/linux-x86/obj/EXECUTABLES/bb2sym_intermediates/bb2sym.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [out/host/linux-x86/obj/EXECUTABLES/bb2sym_intermediates/trace_reader.o] Error 1

is the error i get..
sorry for all the nooby-ness.

lol doesn't really tell me anything other than it's failing while building bb2sym. You might be missing a library, or something, I don't know. You sure you sync'd the cm7 (gingerbread) repo and such? I'm running Kubuntu 11.10, and have no build problems (other than those I create occasionally).
 
Upvote 0
Yea thats all i got out of it too.

i synced the repo (Which took FOREVER) and im on Ubuntu 10.04 (the version its made to run on?) should i update to 11.10?

Yeah, syncing takes forever. You've got build-essential installed, and all the other prerequisite packages yeah? If the docs say it should build on 10.04 then it should build on 10.04. I've just never tried.
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones