I am using the Raspberry P as a headless system, and i want to compile a C program to move the mouse cursor in an X window.
In details:(I am viewing my Pi's desktop on my windows laptop, and i want to compile the code in the raspberry pi using Geany or the terminal window with gcc
)
I've installed the library using "sudo apt-get install libx11-dev"
, and tried to use the XWarpPointer function, but I've a compilation error
says: x11/x.h no such file or directory
.
1-How can i fix that? 2-Should i use the SetCursorPos() function insted of XWarPointer()?