summaryrefslogtreecommitdiffstats
path: root/examples/android/README
diff options
context:
space:
mode:
authorChristian Beier <dontmind@freeshell.org>2011-07-23 17:56:05 +0200
committerChristian Beier <dontmind@freeshell.org>2011-07-23 17:56:05 +0200
commit5a5cfbe24c307c842a736ac222307f8f63950296 (patch)
tree2ab320902e61ff6a5568803cc97d34eafc061358 /examples/android/README
parent488ad8a60969222eb0d417955820bac00982abb5 (diff)
downloadlibtdevnc-5a5cfbe24c307c842a736ac222307f8f63950296.tar.gz
libtdevnc-5a5cfbe24c307c842a736ac222307f8f63950296.zip
Add androidvncserver example.
Diffstat (limited to 'examples/android/README')
-rw-r--r--examples/android/README54
1 files changed, 54 insertions, 0 deletions
diff --git a/examples/android/README b/examples/android/README
new file mode 100644
index 0000000..5baea22
--- /dev/null
+++ b/examples/android/README
@@ -0,0 +1,54 @@
+
+This example VNC server for Android is adopted from
+http://code.google.com/p/android-vnc-server/ with some additional
+fixes applied.
+
+To build, you'll need the Android Native Development Kit from
+http://developer.android.com/sdk/ndk/.
+
+
+Building with autotools
+-----------------------
+
+This has the advantage that the LibVNCServer sources are properly set up
+using the configure script.
+
+1. Read <NDK location>/docs/STANDALONE-TOOLCHAIN.html.
+
+2. Setup your toolchain according to step 3 in the above file.
+
+3. Execute
+
+ ./configure --host=arm-eabi CC=arm-linux-androideabi-gcc
+
+ in the LibVNCServer root directory.
+
+4. Execute
+
+ make
+
+ in the LibVNCServer root directory. This will build the whole
+ LibVNCServer distribution for Android, including androidvncserver.
+
+
+
+
+Building with the NDK build system
+----------------------------------
+
+This is probably easier than the autotools method, but you'll have to edit
+some files manually.
+
+1. Edit rfb/rfbconfig.h to match your Android target. For instance, comment out
+ LIBVNCSERVER_HAVE_LIBJPEG if you don't have libjpeg for Android.
+
+2. Edit the HAVE_X variables in jni/Android.mk accordingly.
+
+3. Execute
+
+ ndk-build -C .
+
+ in the examples/android directory. The resulting binary will be in libs/.
+
+
+