Below is test.cpp #include <X11/Xlib.h> #include<stdio.h> #include<unistd.h> #include <stdlib.h> #include <string.h> #include <unistd.h> int main(int argc, char** argv) { int Xco,Yco; Display* display = XOpenDisplay(0); Window root =DefaultRootWindow(display); Xco=atoi(argv[1]); Yco=atoi(argv[2]); XWarpPointer(display, None, root, 0, 0, 0, 0, Xco, Yco); XCloseDisplay(display); return 0; } we all know that compilation in x86 would be g++ -L/usr/X11R6/lib -lX11 test test.cpp But how to compile the same file for cross compilation???? Please anyone suggest me a solution to solve the problem