droidVncServer icon indicating copy to clipboard operation
droidVncServer copied to clipboard

Could not start server :( on Lollipop

Open brianjmurrell opened this issue 9 years ago • 5 comments

I tried your app from the play store and when I try to start the server I just get a popup that says:

Could not start server :(

I am running CM 12.1 (Lollipop 5.1.1) on a Nexus 5.

I am sure this is not enough information for a complete bug report so just let me know what more you need/want and I will be happy to supply it.

brianjmurrell avatar May 09 '15 20:05 brianjmurrell

I just ran into the same problem. Poking around with logcat and attempting to manually start the server, I found the problem: PIE.

I'm not an Android developer, so I don't know how hard it is to rebuild the package with PIE support enabled, but it looks like that is what we need in order to get it working on L.

naips.vnc/files/androidvncserver  -r 0 -s 100 -P 5901                         <
error: only position independent executables (PIE) are supported.

quasarj avatar Jun 29 '15 21:06 quasarj

Same issue here with Android L (5.1.1). As quasarj mentioned already it looks like PIE is the underlying problem and that droidVncServer is not compiled against this.

I found some instructions over at StackOverflow how to add support for PIE but do not lose backwards compatibility. See http://stackoverflow.com/questions/24818902/running-a-native-library-on-android-l-error-only-position-independent-executab

Maybe someone could add the flags and release a new version? Looks easy for an Android developer.

BennyLi avatar Sep 03 '15 04:09 BennyLi

looks like lollipop ain't supported yet?

Jspoor avatar Dec 15 '15 16:12 Jspoor

The code in the repo has PIE added, see this commit https://github.com/oNaiPs/droidVncServer/commit/d7e28b196af0ca7a6283a6d5022d6834173b3bbb

However, the version in the Play Store is from 2012, well before the PIE commit was added: image Source

The reason for this could be that the current version in the repository 1.1RC1 is said to be non-functional (source)

So you would probably have to compile it yourself and see if you can get it running.

hvoecking avatar Dec 10 '16 16:12 hvoecking