編譯 x3288 開發板 android5.1 源碼包時 遇到的問題和解決方法

1, lzop 找不到:java

    sudo apt-get install lzoppython

2, /usr/bin  jar   command not found:android

    肯定本身的jdk安裝目錄, 個人安裝目錄是 /usr/lib/jvm/jdk1.7_80, 執行如下命令:bash

   cd /usr/binpython2.7

    sudo ln -s -f /usr/lib/jvm/jdk1.7_80/bin/jarjvm

    若是報  javah 找不到 則執行ui

    sudo ln -s -f /usr/lib/jvm/jdk1.7_80/bin/javahget

3, /bin/bash  javadoc  command not found:input

    cd /bingenerator

    sudo ln -s -f /usr/lib/jvm/jdk1.7_80/bin/javadoc

4, Traceback (most recent call last):
  File "../../base/android/jni_generator/jni_generator.py", line 1527, in <module>
    sys.exit(main(sys.argv))
  File "../../base/android/jni_generator/jni_generator.py", line 1518, in main
    GenerateJNIHeader(input_file, output_file, options)
  File "../../base/android/jni_generator/jni_generator.py", line 1401, in GenerateJNIHeader
    jni_from_javap = JNIFromJavaP.CreateFromClass(input_file, options)
  File "../../base/android/jni_generator/jni_generator.py", line 650, in CreateFromClass
    stderr=subprocess.PIPE)
  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
    raise child_exception
    OSError: [Errno 2] No such file or directory
    make: ***     [out/target/product/rk3288/obj/GYP/shared_intermediates/ui/gl/jni/Surface_jni.h] Error 1

    緣由 javap不存在於環境變量中

    第一種方法:

    

    使用 sudo update-alternatives --config javap 查看指向,選擇合適的版本,若是不存在,則添加javap

    sudo update-alternatives --install /usr/bin/javap javap /usr/lib/jvm/jdk1.6.0_45/bin/javap 300

    配置 sudo update-alternatives --config javap 注:若是隻有一個可選的話,則不會列表,即無需處理

 

    第二種方法:

    cd /usr/bin

    sudo ln -s -f /usr/lib/jvm/jdk1.7_80/bin/javap

相關文章
相關標籤/搜索