Hi,
After installing the Open GL ES emulator 1.3.1 on ubuntu 14.01,while building the Open GL ES 1.1 simpApp11 example, i am navigating to the directory and firing the "make" command,
this error appears on the screen:
@ARM/Mali_Developer_Tools/OpenGL_ES_Emulator_1.3.1/examples/OpenGLES_11/simpApp11# make
gcc -g -I../../../include -m32 -o simpApp11 simpApp11.c -L/usr/X11R6/bin -lX11 -L../../../bin -lGLESv1_CM -lEGL
/usr/bin/ld: cannot find -lX11
collect2: error: ld returned 1 exit status
make: *** [simpApp11] Error 1
when i checked for
ls -ls /usr, no X11R6 directory was available. I searched over to install X11R6 but in vain.Can anyone help me with this? Thanks in advance.
Regards
sudlin
Make sure you have libX11-dev package installed on your system (apt-get install libX11-dev).
The libraries have moved on more recent Ubuntu installs - the easiest way to find them is apt-find:
$> apt-file search libX11.so libx11-6: /usr/lib/x86_64-linux-gnu/libX11.so.6 libx11-6: /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0 libx11-6-dbg: /usr/lib/debug/usr/lib/x86_64-linux-gnu/libX11.so.6.3.0 libx11-dev: /usr/lib/x86_64-linux-gnu/libX11.so
In my case I'm running a 64-bit OS, so I'm going to want the 64-bit libraries (/usr/lib/x86_64-linux-gnu/). Your command line is for the 32-bit emulator, so you'll need to use the 32-bit X11 libraries (and install them if they are not already).
HTH, Pete