Android L
1.切换Java版本到1.7
sudo update-alternatives –config java
sudo update-alternatives –config javac
2.ld文件覆盖
cp /usr/bin/ld.gold prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/x86_64-linux/bin/ld
cp /usr/bin/ld.gold prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/x86_64-linux/bin/ld
cp /usr/bin/ld.gold prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/bin/ld
3.切换make版本到3.8.1
目前只能单独编译systemimage, 编译命令如下 ./sunmi/software/make-3.81/make systemimage
Android M
cp /usr/bin/ld.gold prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/x86_64-linux/bin/ld
cp /usr/bin/ld.gold prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/bin/ld
另外一种环境变量配置方法
- sudo apt-get update
- sudo apt-get install lrzsz
- sudo apt-get remove openjdk*
- download jdk 1.7
- cd usr/local/
- mkdir java
- cp jdk1.7 /usr/local/java
- sudo vim /etc/profile
- source /etc/profile
- java -version
JAVA_HOME=/usr/local/java/jdk1.7.0_72
CLASSPATH=.:$JAVA_HOME/lib.tools.jar
PATH=$JAVA_HOME/bin:$PATH
export JAVA_HOME CLASSPATH PATH
FEATURED TAGS
Android
debug
dumpsys
shell
linux
Permission
心理学
ubuntu
JNI
android
IMS
systemui
selinux
eSIM
androidstudio
performance
pms
wms
view
iptables
netd
property
c++
kernel
mqtt
usb
company
statusbar
docker
hardware
webrtc
recovery
web
camera
rk3288
A133
driver
rockchip
rk3399
chip
rk3588
a133
qt
t113
buildroot
AI
MCU