Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Q] can not find symbol when compiling cm 11.0

OP tomheng

31st May 2014, 07:20 AM   |  #1  
OP Junior Member
Thanks Meter: 1
 
3 posts
Join Date:Joined: Apr 2011
can not find symbol when compiling cm 11.0 on debian.

any help will be greatful.

Code:
packages/apps/Settings/src/com/android/settings/hardware/DisplayColor.java:109: cannot find symbol
symbol  : method getDefValue()
location: class org.cyanogenmod.hardware.DisplayColorCalibration
                int defaultValue = DisplayColorCalibration.getDefValue();
                                                          ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
31st May 2014, 04:25 PM   |  #2  
RandomPooka's Avatar
Senior Member
Thanks Meter: 556
 
1,042 posts
Join Date:Joined: Oct 2010
Donate to Me
More
Quote:
Originally Posted by tomheng

can not find symbol when compiling cm 11.0 on debian.

any help will be greatful.

Code:
packages/apps/Settings/src/com/android/settings/hardware/DisplayColor.java:109: cannot find symbol
symbol  : method getDefValue()
location: class org.cyanogenmod.hardware.DisplayColorCalibration
                int defaultValue = DisplayColorCalibration.getDefValue();
                                                          ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error

I got the same error just now and I'm trying to track down the java class it's referring to. Perhaps getDefValue has changed in it.

---------- Post added at 09:38 AM ---------- Previous post was at 09:32 AM ----------

The missing value is in the "common" device folder for your hardware. In my case, /device/lge/g2-common

specifically, it's in the file /device/lge/g2-common/cmhw/org/cyanogenmod/hardware/DisplayColorCalibration.java

It SHOULD work if you add in the proper support for getDefValue as found in THIS COMMIT

I'm going to make the changes and give it another try

---------- Post added at 10:25 AM ---------- Previous post was at 09:38 AM ----------

Well, my G2 build (VZW vs980) completed. Copied it to my device and flashed. Apart from an odd glitch where the vibration notification was going nonstop until I manually adjusted the audio mode (to vibrate only, then back to sound), everything works well.
Last edited by RandomPooka; 31st May 2014 at 04:32 PM.
2nd June 2014, 12:24 PM   |  #3  
OP Junior Member
Thanks Meter: 1
 
3 posts
Join Date:Joined: Apr 2011
i recomipiled successfully, after modify the file according your answer.

thanks a lot, and i will move on my ROM
The Following User Says Thank You to tomheng For This Useful Post: [ View ]
2nd June 2014, 12:47 PM   |  #4  
RandomPooka's Avatar
Senior Member
Thanks Meter: 556
 
1,042 posts
Join Date:Joined: Oct 2010
Donate to Me
More
Quote:
Originally Posted by tomheng

i recomipiled successfully, after modify the file according your answer.

thanks a lot, and i will move on my ROM

Very glad to hear it!
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes