veysel emirhan oğuz
unread,Jan 30, 2012, 4:59:09 AM1/30/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android-ndk
Hi, I am trying to implement a application on android that generates
mouse movements. I am currently working on android 2.2 operating
system. We modified some parts of kernel by ourselves. When you plug-
in a mouse from USB port externally, mouse pointer icon appears on the
screen and then you can use mouse with all of it's functions. After 3
seconds without interaction, mouse pointer disappears on the screen.
I wrote a code using jni and ndk. I implemented mouse movement with
xwarppointer function in X11/Xlib.h. But in the ndk-build step, it
gives en error as shown below:
Compile thumb : ndk_demo <= ndk_demo.c
jni/ndk_demo.c:3:22: error: X11/Xlib.h: No such file or directory
jni/ndk_demo.c: In function 'Java_com_marakana_NativeLib_hello':
jni/ndk_demo.c:20: error: 'Display' undeclared (first use in this
function)
jni/ndk_demo.c:20: error: (Each undeclared identifier is reported only
once
jni/ndk_demo.c:20: error: for each function it appears in.)
jni/ndk_demo.c:20: error: 'd' undeclared (first use in this function)
What is the error, why ndk-build does not see the X11/Xlib.h and it's
functions. Should I continue to solve this problem to generate
movement of mouse icon or, is there any other methods that I can use
to generate movement of mouse icon. If you can you give me a roadmap
about that problem, i will be appreciated.
Maybe I have to use the driver function calls to generate movement of
mouse pointer, but there must be an exact way to generate movement. I
will try any solution suggestion that will come from you.
Thanks.