Coder Social home page Coder Social logo

Comments (5)

gaffe77 avatar gaffe77 commented on August 21, 2024

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.

from droidvncserver.

m-ric avatar m-ric commented on August 21, 2024

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?

from droidvncserver.

gaffe77 avatar gaffe77 commented on August 21, 2024

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.

from droidvncserver.

m-ric avatar m-ric commented on August 21, 2024

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?

from droidvncserver.

m-ric avatar m-ric commented on August 21, 2024

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

from droidvncserver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.