Skip to content
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

Can't compile droidvncserver #24

Closed
ElSordo opened this issue Jan 21, 2012 · 5 comments
Closed

Can't compile droidvncserver #24

ElSordo opened this issue Jan 21, 2012 · 5 comments

Comments

@ElSordo
Copy link

ElSordo commented Jan 21, 2012

I cannot compile droidvncdaemon.

error message I get is attached at the end of the issue.

I downloaded the origin/master version of the repository.

I am running Ubuntu 10.4 64 bit. I can compile and build the rowboat-android repository for my beagleboard-xm just fine.

Immediately after building android, I copied the droidvncdaemon directory to the external/droidvncdaemon directory of my AOSP tree and then issued the command

mmm external/droidvncdaemon

and then I stopped with the error shown below.

-David Glaser

PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.4
TARGET_PRODUCT=generic
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release

BUILD_ID=GRJ22

make: Entering directory /home/dglaser/Android/BeagleBoard/rowboat-android' target thumb C: androidvncserver_froyo <= external/droidvncdaemon/vnc/input.c In file included from external/droidvncdaemon/vnc/libvncserver-kanaka/rfb/rfb.h:40, from external/droidvncdaemon/vnc/common.h:29, from external/droidvncdaemon/vnc/input.h:23, from external/droidvncdaemon/vnc/input.c:20: external/droidvncdaemon/vnc/libvncserver-kanaka/rfb/rfbproto.h:59:23: error: rfbconfig.h: No such file or directory external/droidvncdaemon/vnc/input.c: In function 'keyEvent': external/droidvncdaemon/vnc/input.c:219: warning: suggest braces around empty body in an 'else' statement make: *** [out/target/product/generic/obj/EXECUTABLES/androidvncserver_froyo_intermediates/input.o] Error 1 make: Leaving directory/home/dglaser/Android/BeagleBoard/rowboat-android'

@gaffe77
Copy link

gaffe77 commented Mar 22, 2012

Install cmake, navigate to $AOSP/external/droidvncdaemon/vnc/libvncserver-kanaka
Issue cmake .
Make sure you include the dot!
This will build the necessary files, then edit rfb/rfbproto.h to put a "rfb/" on the front of its include of rfbconfig.h.

You next problem may be
external/droidvncdaemon/vnc/gralloc_method.c:158: error: 'struct framebuffer_device_t' has no member named 'read'

I searched for a framebuffer_device_t with a read member and had not much luck. I commented out the references to -> read in gralloc_method and forced it to unsupported. Now it compiles and runs.

@m-ric
Copy link

m-ric commented May 7, 2012

Got the same issue. Will investigate tomorrow. One concern about "cmake .", it selects my x86 native compiler:
-- Check for working C compiler: /usr/bin/gcc
Shouldn't the ARM toolchain be provided as argument to cmake?

@gaffe77
Copy link

gaffe77 commented May 8, 2012

I just used cmake to build required header files, after a top-level make failure. I continued with top-level make once the missing headers were in place, so the cmake toolchain is not invoked.

I guess cmake could produce the wrong shaped header when it's confused about the architecture.

@m-ric
Copy link

m-ric commented May 8, 2012

Ok, forget about the toolchain. What I mean is that running "cmake ." without argument leads it to check host libraries insteqad of android libraries. Then at build time, android tries to link with android zlib, libjpeg, ... and found that a lot of routines are missing. Check my cmake output: http://pastebin.com/5GzS7x8c It parses host libraries, that's the root cause of my build issues! Do you know what arguments I should give to cmake to fix this?

@m-ric
Copy link

m-ric commented May 9, 2012

I got things running after a clean, no cmake at all, and some tweaks summed up in this patch : http://pastebin.com/abwR4av4

@oNaiPs oNaiPs closed this as completed Jun 4, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants