-
Notifications
You must be signed in to change notification settings - Fork 479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
droidVNCserver compiled for armeabi architecture #126
Comments
Can you explain how can I compile it with libvncserver 0.9.11 but for an Android device 6.01 x86_64? |
I did not try myself. You probably need to edit |
I can't find an library that is compatible with X86 and X86/64. |
You may try #118 (comment) . Apart from that, I do not have any further information about this particular issue. I am sorry. |
@hoehermann |
I don't think that there are all libraries available. I was not able to compile it. |
I somehow made it work fine in Android L (tested in a 5.1.1), but the mouse is inverted. Edit: Found the answer about the xy mouse inverted. In my case, is a ZTE device, so I started the app with -z parameter: working fine :) |
Ever since Android 5.0, Android enforces PIC (position independent code). As a result, the binary supplied in @f95fa6b will not start, resulting in #98 #104 #107 #119 . After the partial success described in #117, I want to share my experience, too. I did not compile the Java (GUI frontend) part of droidVncServer, I concentrated on the VNC server exclusively.
I have a Samsung Galaxy Nexus "Maguro" phone running CyanogenMod 13.0, which is Android 6.0.1 "Marshmallow".
Here is what I did:
Based on this article by Nick Desaulniers, I installed the current linux version "r14" of the Android NDK for compiling native applications. I set my
PATH
to temporarily include the supplied cross compilers andndk-build
.droidVNCserver is relies on a VNC server implementation included in the module
vnc
.vnc
itself shall be statically linked against three librariesjpeg libpng openssl
. Additionally.vnc
uses two dynamically loaded librariesflinger gralloc
.I compiled
vnc
and its libraries withAPP_ALLOW_MISSING_DEPS=true ndk-build
. I neededAPP_ALLOW_MISSING_DEPS=true
since ndk-build complained about zlib being missing (although it is allegedly included in the Android system). Thejpeg
module fails for any architecture other thanarmeabi
(same in Trouble compiling. #91 and Does not compile with current NDK #106; Compile failure jni/jpeg/jidctfst.S #118 mentions a possible workaround; failing to build libjpeg results in linking errors as described in how to resolve "turbojpeg.c:469: error: undefined reference to 'jpeg_std_error'", thanks #121). For this reason, I setAPP_ABI:=armeabi
inApplication.mk
.I did not manage to compile the two dynamically loaded libraries
flinger gralloc
. viren-nadkarni/droid-vnc-server@8bd5fcb states, you need the Android Open Source Project (AOSP) code. 160GB disk space and 16GB RAM looks a bit steep for a simple compilation. For now, I just use the precompiled ones included in thenativeMethods
directory. I suppose, this causes the problems described below.I pushed the androidvncserver binary on my device and ran it:
I connected with TigerVNC 1.7.0 and... was disappointed. There is a couple of issues:
In Garbled graphics output on Samsung Galaxy pop GT-S5570 #76 the same problem is described without solution. Maybe this is what happens in Wrong display on vnc client #109, too, but that guy did not supply screenshots.
These problems considered, I suspect the VNC server assumes incorrect framebuffer dimensions (width and height). With that, any mouse pointer position conversions are amiss. Reading from the framebuffer at invalid positions may result in the garbled or a black screen. I suspect, using a recent build of
flinger
andgralloc
could help.For those desperate ones, who want to experiment with this build, I uploaded the binary to my server. viren-nadkarni/droid-vnc-server@8bd5fcb provides binaries of
flinger
andgralloc
, but using them androidvncserver terminates upon client connect.The text was updated successfully, but these errors were encountered: