编译器:
D:\android-ndk-r14b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64\lib\gcc\arm-linux-androideabi\4.9.x\include
D:\android-ndk-r14b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64\lib\gcc\arm-linux-androideabi\4.9.x\armv7-a
D:/develop2/Java/jdk1.7.0_17/bin/../jre/bin/server;D:/develop2/Java/jdk1.7.0_17/bin/../jre/bin;D:/develop2/Java/jdk1.7.0_17/bin/../jre/lib/amd64;D:\develop2\Java\jdk1.7.0_17\bin;D:\develop2\Java\jdk1.7.0_17\jre\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\apache-maven-3.3.9\bin;D:\MentorGraphics\Sourcery_CodeBench_Lite_for_ARM_GNU_Linux\libexec\gcc\arm-none-linux-gnueabi\4.8.3;D:\android-ndk-r14b;C:\adb;%USERPROFILE%\AppData\Local\Microsoft\WindowsApps;;D:\adt2\eclipse;D:\MentorGraphics\Sourcery_CodeBench_Lite_for_ARM_GNU_Linux\bin
<----------------xq------------------>
D:\adt\android-ndk-r9b\toolchains\arm-linux-androideabi-4.6\prebuilt\windows-x86_64\bin\arm-linux-androideabi-gcc --sysroot=D:\adt\android-ndk-r9b\platforms\android-13\arch-arm -shared -o libtpu.so UI_IPInteface.cpp
D:\adt\android-ndk-r9b\ndk-build
<----------------xq------------------>
<----------------mine------------------->
D:\android-ndk-r14b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64\bin\arm-linux-androideabi-gcc --sysroot=D:\android-ndk-r14b\platforms\android-18\arch-arm -shared -o libtputest.so tputest.c
D:\android-ndk-r14b\ndk-build
<----------------mine------------------->
D:\android-ndk-r14b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64\bin\arm-linux-androideabi-gcc --sysroot=D:\android-ndk-r14b\platforms\android-21\arch-arm -o go main.cpp -L. -ltpu -lhardware
D:\android-ndk-r14b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64\bin\arm-linux-androideabi-gcc --sysroot=D:\android-ndk-r14b\platforms\android-21\arch-arm -shared -o libhardware.so hardware.cpp
虚拟机配置
虚机配置
程序路径
/home/roverjy/Desktop/TPU/test
共享windows 路径\\192.168.22.129\tpu
libhard.so libtpu.so 代码
/home/roverjy/Desktop/TPU/test
生成libhard.so
/home/roverjy/Desktop/TPU/my-android-toolchain/bin/arm-linux-androideabi-gcc --sysroot=/home/roverjy/Desktop/TPU/my-android-toolchain/sysroot -shared -o libhard.so hardware.c
生成 libtpu.so
/home/roverjy/Desktop/TPU/my-android-toolchain/bin/arm-linux-androideabi-gcc --sysroot=/home/roverjy/Desktop/TPU/my-android-toolchain/sysroot -shared -o libtpu.so UI_TPInteface.c -lhard -L.
adb remount
adb push libhard.so /system/lib
adb push libtpu.so /system/lib
libhard.so libtpu.so 拷贝到jni目录下
用户名;密码
202012","311600
启动SSHD
am start -n com.teslacoilsw.quicksshd/.QuickSSHD