Home | History | Annotate | only in /external/libvncserver/examples/android
Up to higher level directory
NameDateSize
jni/21-Aug-2018
Makefile.am21-Aug-2018196
README21-Aug-20181.4K

README

      1 
      2 This example VNC server for Android is adopted from
      3 http://code.google.com/p/android-vnc-server/ with some additional
      4 fixes applied.
      5 
      6 To build, you'll need the Android Native Development Kit from
      7 http://developer.android.com/sdk/ndk/.
      8 
      9 
     10 Building with autotools
     11 -----------------------
     12 
     13 This has the advantage that the LibVNCServer sources are properly set up
     14 using the configure script.
     15 
     16 1. Read <NDK location>/docs/STANDALONE-TOOLCHAIN.html.
     17 
     18 2. Setup your toolchain according to step 3 in the above file.
     19 
     20 3. Execute 
     21 
     22     ./configure --host=arm-eabi CC=arm-linux-androideabi-gcc
     23 
     24    in the LibVNCServer root directory.
     25 
     26 4. Execute
     27 
     28     make
     29 
     30    in the LibVNCServer root directory. This will build the whole
     31    LibVNCServer distribution for Android, including androidvncserver.
     32 
     33 
     34 
     35 
     36 Building with the NDK build system
     37 ----------------------------------
     38 
     39 This is probably easier than the autotools method, but you'll have to edit
     40 some files manually.
     41 
     42 1. Edit rfb/rfbconfig.h to match your Android target. For instance, comment out
     43    LIBVNCSERVER_HAVE_LIBJPEG if you don't have libjpeg for Android.
     44 
     45 2. Edit the HAVE_X variables in jni/Android.mk accordingly.
     46 
     47 3. Execute
     48 
     49     ndk-build -C .
     50 
     51    in the examples/android directory. The resulting binary will be in libs/.
     52 
     53 
     54 
     55 Installing && Running
     56 ---------------------
     57 
     58 This can be done via
     59 
     60  adb push androidvncserver /data/local/
     61  adb shell /data/local/androidvncserver
     62 
     63 
     64