I am currently developing software for embedded systems. In this case it's for a Beaglebone running Angstrom Linux.
After long struggling I am now at the point where I can compile a terminal application under eclipse CDT (indigo), using the arm-linux-gnueabi-g++ compiler and the program runs well on the beaglebone.
The next step is to develop a GUI for it and the plan is to create a X11 application, so I can ssh to the program on my host machine. The X11 libraries and includes are installed (/usr/include/X11 and /usr/lib/X11).
I added the #includes to the code:
And put one of example code I found on the net into my main:
// Open a display.
Display *d = XOpenDisplay(0);
if ( d )
// Create the window
Window w = XCreateWindow(d, DefaultRootWindow(d), 0, 0, 200,
100, 0, CopyFromParent, CopyFromParent,
CopyFromParent, 0, 0);
// Show the window
// Sleep long enough to see the window.
I added the X11 folder to the include paths in the project's settings and added "X11" to the linker libraries. However, when I try to compile I get:
Building target: MCMS_Aquarius
Invoking: GCC C++ Linker
arm-linux-gnueabi-g++ -L/usr/lib -L/usr/lib/X11 -o "MCMS_Aquarius" ./src/MCMS_Aquarius.o ./src/io.o ./src/rass.o -lX11
/usr/lib/gcc/arm-linux-gnueabi/4.6/../../../../arm-linux-gnueabi/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
make: *** [MCMS_Aquarius] Error 1
Can someone please point out what I am missing?
[Updated on: Wed, 18 July 2012 00:21]
Report message to a moderator