Git Product home page Git Product logo

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 4, 2024
Could you please let me know on the step by step process to compile the 
libandroidvncserver.so from the source code?

Original comment by [email protected] on 9 Feb 2011 at 10:25

from android-vnc-server.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 4, 2024
I edit this file :Android.mk for androidvncserver .At last code, edit it to be 
:included $(BUILD_SHARED_LIBRARY)
also edit the name after compiled:LOCAL_MODLE:libandroidvncserver.

And also edit the file:Android.mk for jpeg in external.edit it to be :included 
$(BUILD_STATIC_LIBRARY)

Then change the function "int main(int argc, char **argv)" to be "void start()" 
in fbvncserver.c.

Compiled, There will be a file libandroidvncserver.so.

I want to use a android app to call this SO using NDK. But failed.I seems only 
root can open it.

Do you have any suggestion?

Original comment by [email protected] on 12 Feb 2011 at 2:47

from android-vnc-server.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 4, 2024
Thank you for the input. There are two external libraries that are needed (zlib 
and jpeg). I got the source code and build the corresponding library for jpeg. 
I copied the same to <project_home>/external/jpeg and compiled using ndk-build. 
However, I get a lot of error messages as shown below. Did you come across 
these errors and do you know how to fix them? I have attached the header file 
for reference. I would appreciate any help.
.
.
.
external/jpeg/jpeglib.h:848: error: expected ')' before '(' token
external/jpeg/jpeglib.h: In function 'EXTERN':
external/jpeg/jpeglib.h:928: error: expected declaration specifiers before 
'jpeg_std_error'
external/jpeg/jpeglib.h:944: error: expected declaration specifiers before 
'EXTERN'
external/jpeg/jpeglib.h:946: error: expected declaration specifiers before 
'EXTERN'
.
.
.

Original comment by [email protected] on 15 Feb 2011 at 12:00

Attachments:

from android-vnc-server.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 4, 2024
Please ignore my previous comment(#3). I had overlooked including some header 
files. Now that issue is fixed. However, I now have another problem. I compiled 
the libz.so and when I use ndk-build to create the libandroidvncserver.so, I 
get the following error.
libz.so: file not recognized: File format not recognized

How did you compile/obtain the libz.so library?

Original comment by [email protected] on 16 Feb 2011 at 6:09

from android-vnc-server.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 4, 2024
I was able to compile the libandroidvncserver.so but facing the same issue of 
"cannot open fb device /dev/graphics/fb0".
Looks like the android apps do not have access to kernel drivers and hence the 
permissions issue.
Were you able to solve the problem?

Original comment by [email protected] on 18 Feb 2011 at 7:13

from android-vnc-server.

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.