LinuxQuestions.org

LinuxQuestions.org (http://www.linuxquestions.org/questions/index.php)
-   Linux - General (http://www.linuxquestions.org/questions/forumdisplay.php?f=1)
-   -   Xscale or arm compilation (http://www.linuxquestions.org/questions/showthread.php?t=4175456481)

kuppan-j 04-02-2013 05:46 AM

Xscale or arm compilation
 
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

kuppan-j 04-02-2013 05:52 AM

PLease help i am seek out this


All times are GMT -5. The time now is 06:31 PM.