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

Root [TUT] Building CyanogenMod 7 for the Prevail from source

Hey guys I am running into this error:

Code:
system/core/libmincrypt/tools/DumpPublicKey.java:27: warning: sun.misc.BASE64Encoder is Sun proprietary API and may be removed in a future release
import sun.misc.BASE64Encoder;
               ^
1 warning

I have been trying for the past two days to remedy... I feel like I just want to remove the line

import sun.misc.BASE64Encoder;

from system/core/libmincrypt/tools/DumpPublicKey

but I am sure that is just going to break something else...

Ive tried installing the jdk and downgrading gcc to version 4.4

help..

EDIT: Note im compiling cm9 not cm7 but the instructions are the same..
 
Hey guys I am running into this error:

Code:
system/core/libmincrypt/tools/DumpPublicKey.java:27: warning: sun.misc.BASE64Encoder is Sun proprietary API and may be removed in a future release
import sun.misc.BASE64Encoder;
               ^
1 warning

I have been trying for the past two days to remedy... I feel like I just want to remove the line

import sun.misc.BASE64Encoder;

from system/core/libmincrypt/tools/DumpPublicKey

but I am sure that is just going to break something else...

Ive tried installing the jdk and downgrading gcc to version 4.4

help..

EDIT: Note im compiling cm9 not cm7 but the instructions are the same..

You do know that warning != error, right?
 
didnt work.. I think I need to drop the apache org.apache.commons.codec.binary.Base64 in that spot... but i need to figure out how the script will find the jar
 
Thanks kouma I figured it out... I still had some remnants of openjdk on my system... it looks as tho it was causing interference..
 
Hey Hroark......thanks for responding back!!
A little background what I have going on so far.....
Am on Linux Mint 12 (ubuntu is a headache for me) on a 32 bit system dedicated to Linux....

Have tried 3 different compile/build attempts to no avail....deleted and am using a tut from droid forums [GUIDE] How to build your own ROM from CM7 source and just finished syncing the repo.....have followed that tut almost exactly except for getting the java and sdk stuff cause i already had it installed...also in that tut where it came to the dev Index of /ubuntu jaunty multiverse and dev Index of /ubuntu jaunty-updates multiverse..is where it also messed up my sources.list

One thing that I have noticed is I am on the oneiric deb (guess thats what it is ) on linux mint...the canonical from your tut above did something to my sources.list which didnt allow me to update anything anymore....
I have the sdk, and java,
Hmmmmm....excuse the noobishness...just trying to take off and fly:trytofly:...if you need more info just let me know..is there something that I need to change in your tut so I can get it to work on my machine?

Sorry for the bombardment of info and questions!! Thanks for the help though!!!

o370
 
Hey Hroark......thanks for responding back!!
A little background what I have going on so far.....
Am on Linux Mint 12 (ubuntu is a headache for me) on a 32 bit system dedicated to Linux....

Have tried 3 different compile/build attempts to no avail....deleted and am using a tut from droid forums [GUIDE] How to build your own ROM from CM7 source and just finished syncing the repo.....have followed that tut almost exactly except for getting the java and sdk stuff cause i already had it installed...also in that tut where it came to the dev Index of /ubuntu jaunty multiverse and dev Index of /ubuntu jaunty-updates multiverse..is where it also messed up my sources.list

One thing that I have noticed is I am on the oneiric deb (guess thats what it is ) on linux mint...the canonical from your tut above did something to my sources.list which didnt allow me to update anything anymore....
I have the sdk, and java,
Hmmmmm....excuse the noobishness...just trying to take off and fly:trytofly:...if you need more info just let me know..is there something that I need to change in your tut so I can get it to work on my machine?

Sorry for the bombardment of info and questions!! Thanks for the help though!!!

o370


did you use the zip file from this thread and overwrite the files in your cm7 folder ?
 
did you use the zip file from this thread and overwrite the files in your cm7 folder ?

I don't think I did it correctly......folders within the zip and add them to; for instance.....device---->device in the cm7 system folder...frameworks from zip----->frameworks cm7 system???? or each individual file from within the zip into the respective folders in the cm7 system?

Again sorry for the noobishness, just want to be clear.
 
I don't think I did it correctly......folders within the zip and add them to; for instance.....device---->device in the cm7 system folder...frameworks from zip----->frameworks cm7 system???? or each individual file from within the zip into the respective folders in the cm7 system?

Again sorry for the noobishness, just want to be clear.


can you try doing this

edit the file

cm7/device/samsung/prevail/BoardConfig.mk

and change


WPA_SUPPLICANT_VERSION := VER_0_8_X


to

WPA_SUPPLICANT_VERSION := VER_0_6_X


and tell me if it builds without errors
 
Ok Hroark...here's what it is doing now......

arget thumb C: libeffects <= frameworks/base/media/libeffects/factory/EffectsFactory.c
make: *** No rule to make target `out/target/product/sholes/obj/lib/libaudio.so', needed by `out/target/product/sholes/obj/SHARED_LIBRARIES/libaudioflinger_intermediates/LINKED/libaudioflinger.so'. Stop.
make: *** Waiting for unfinished jobs....
frameworks/base/services/audioflinger/AudioFlinger.cpp: In member function 'android::status_t android::AudioFlinger::moveEffectChain_l(int, android::AudioFlinger::PlaybackThread*, android::AudioFlinger::PlaybackThread*, bool)':
frameworks/base/services/audioflinger/AudioFlinger.cpp:5054: warning: 'strategy' may be used uninitialized in this function
frameworks/base/services/audioflinger/AudioFlinger.cpp: In member function 'virtual android::sp<android::IEffect> android::AudioFlinger::createEffect(pid_t, effect_descriptor_t*, const android::sp<android::IEffectClient>&, int32_t, int, int, android::status_t*, int*, int*)':
frameworks/base/services/audioflinger/AudioFlinger.cpp:4910: warning: 'd.effect_descriptor_s::flags' may be used uninitialized in this function

:confused::confused::confused::confused:

It went back to the command line after "flags' may be used uninitialized in this function"
 
I dont know that is weird

I use Ubunto 11.4 64 Bit

I have heard that other people have Android build issues with newer versions of Linux

so that may be your issue
 
I dont know that is weird

I use Ubunto 11.4 64 Bit

I have heard that other people have Android build issues with newer versions of Linux

so that may be your issue


:eek::eek:.....oh noooooooo....:eek::eek:!!

Ok, I am going to give ubuntu another shot and see what happens....with my last instal of ubuntu on a dual boot system I could not connect to the internet and when I was able to (for a VERY brief second) it would knock my phone off of wifi?????? Never was able to pinpoint the solution to that so went to mint....This install of ubuntu will be on a dedicated linux machine..so I shall see....will report back....
Thanks
o370
 
Hroark......Got Ubuntu up and running :D ....I am gonna reattempt ur tut from above....do I need anything 32bit specific that should replace anything from above??
 
well I am using the 64 bit version

I think there may some differences when you install the necessary java sdk files and stuff

I would say go for it and when you stuck, post the errors you are getting

Well here we go......here is the very first error

E: Malformed line 59 in source list /etc/apt/sources.list (dist parse)
E: The list of sources could not be read.

This was after the sudo apt-get update....


The above error is fixed I believe....getting this now....

Package sun-java6-jdk is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Unable to locate package lib32ncurses5-dev
E: Unable to locate package ia32-libs
E: Unable to locate package lib32readline5-dev
E: Unable to locate package lib32z-dev
E: Package 'sun-java6-jdk' has no installation candidate
 
Back
Top Bottom