Hello, I am trying to install allegro on my raspberry pi. I have installed Cmake successfully, but when I use it it gives me an error.It says OpenGL is not installed, and that I might need to install X11. I thought OpenGl was only if you wanted to program 3D games, and a google says X11 is the latest windows system.Here's my error:
1 2 3 4 5 6 7
pi@raspberrypi ¬/Desktop/Allegro/allegro/Build $ cmake /home/pi/Desktop/Allegro/allegro
.. Could NOT find OpenGL (missing: OPENGL_gl_LIBRARY)
CMake Error at CMakeLists.txt:563 (message)
X11 not found. You may need to install X11 development librarys.
.. Configuring incomplete, errors occurred!
So that's my problem. If this is not the right place to post, please let me know. Thanks in advanced for any help!
Ok, so I installed that successfully. This is the Error I'm getting now:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
.. Could NOT find OpenGL (missing: OPEN_gl_LIBRARY)
.. Looking for XOpenDisplay in /usr/lib/arm-linux-gnueabihf/libx11.so
.. Looking for XOpenDisplay in /usr/lib/arm-linux-gnueabihf/libx11.so - found
.. Looking for gethostbyname
.. Looking for gethostbyname - found
.. Looking for connect
.. Looking for connect - found
.. Looking for remove
.. Looking for remove - found
.. Looking for shmat
.. Looking for shmat - found
.. Found X11 /usr/lib/arm-linux-gnueabihf/libx11.so
CMake Error at CMakeLists.txt:568 (message):
X11 support currently requires OpenGL support.
.. Configuring incomplete, errors occurred!
So I need to install OpenGl. Is there a special version I need to get, or can I just do "sudo apt-get install libOpenGL" Thanks for replying so quickly!
sorry for being late, I live in Iran, try "sudo apt-get install libgl <tab> <tab>", not sure but I think you need "libgl1-mesa-dev" package, or try to install allegro directly from your package manager:
"sudo apt-get install liballegro4.2-dev"