1.ndk-build 版本有要求 ,不能r21,r10e可以用
2.vim ~/.bashrc
export NDK_HOME=/home/tianbo/下载/android-ndk-r21b export PATH=$PATH:$NDK_HOME
3.详细地址:https://www.lofter.com/lpost/1ede179c_1caed164d https://developer.android.google.cn/ndk/downloads/
The droid-VNC-server projects consists in three main modules parts: the daemon, wrapper libs and the GUI.
-
Daemon - Provides the vnc server functionality, injects input/touch events, clipboard management, etc Available in jni/ folder
-
Wrapper libs - Compiled against the AOSP so everyone can build the daemon/GUI without having to fetch +2GB files. Currently there are 2 wrappers, gralloc and flinger.
Available in nativeMethods/ folder, and precompiled libs in nativeMethods/lib/
- GUI - GUI handles user-friendly control. Connects to the daemon using local IPC.
-------------- Compile C daemon --------------------- On project folder: $ ndk-build $ ./updateExecsAndLibs.sh
-------------- Compile Wrapper libs ----------------- $ cd <aosp_folder> $ . build/envsetup.sh $ lunch $ ln -s /nativeMethods/ external/
To build: $ cd external/nativeMethods $ mm . $ cd $ ./updateExecsAndLibs.sh
-------------- Compile GUI------- ------------------- Import using eclipse as a regular Android project