FS#61007 - [allegro] Does not compile in arch

Attached to Project: Community Packages
Opened by Rafael Vega (rvega) - Sunday, 09 December 2018, 02:00 GMT
Last edited by Balló György (City-busz) - Friday, 29 March 2019, 11:34 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: After updating my packages with pacman -Syu, allegro will not compile anymore. There are a bunch of olenGL related functions that are undefined.

I tried compiling manually from the git repository at https://github.com/liballeg/allegro5, both the master branch and the 5.2.4 tag. Also tried compiling by downloading the PKGBUILD from https://www.archlinux.org/packages/community/x86_64/allegro/ and the outcome is the same. I'm attaching the output of makepkg -i.

Also, there is the following warning when configuring. I added the following to the CMakeLists.txt file and the warning went away but there are still a lot of compile errors related to GL functions not being declared.

==========================

CMake Warning (dev) at /usr/share/cmake-3.12/Modules/FindOpenGL.cmake:270 (message):
Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when
available. Run "cmake --help-policy CMP0072" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.

FindOpenGL found both a legacy GL library:

OPENGL_gl_LIBRARY: /usr/lib/libGL.so

and GLVND libraries for OpenGL and GLX:

OPENGL_opengl_LIBRARY: /usr/lib/libOpenGL.so
OPENGL_glx_LIBRARY: /usr/lib/libGLX.so

OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for
compatibility with CMake 3.10 and below the legacy GL library will be used.
   log.txt (14.5 KiB)
This task depends upon

Closed by  Balló György (City-busz)
Friday, 29 March 2019, 11:34 GMT
Reason for closing:  Fixed
Additional comments about closing:  allegro 5.2.5-1
Comment by Rafael Vega (rvega) - Sunday, 09 December 2018, 02:01 GMT
What I added to the CmakeLists file is:

set(OpenGL_GL_PREFERENCE "GLVND")
Comment by Rafael Vega (rvega) - Sunday, 09 December 2018, 03:16 GMT

Loading...