aseprite / laf

A C++ library to create desktop applications
https://aseprite.github.io/laf/
MIT License
276 stars 60 forks source link

CMake cannot find X11 #26

Closed no-more-secrets closed 3 years ago

no-more-secrets commented 3 years ago

I've been building Aseprite/laf successfully on my Ubuntu-based Linux distros, but I just tried building the latest version and it fails during the CMake stage in laf/os/CMakeLists.txt on this line:

find_package(X11 REQUIRED)

with the error:

CMake Error at ~/dev/tools/cmake-v3.18.4/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:165 (message):
  Could NOT find X11 (missing: X11_X11_LIB)
Call Stack (most recent call first):
  ~/dev/tools/cmake-v3.18.4/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:458 (_FPHSA_FAILURE_MESSAGE)
  ~/dev/tools/cmake-v3.18.4/share/cmake-3.18/Modules/FindX11.cmake:414 (find_package_handle_standard_args)
  laf/os/CMakeLists.txt:126 (find_package)

this is happening on all of the Ubuntu-based linux distros that I've tried:

Any idea how to fix it? Note that I have all of the Linux packages installed that are recommended in the Aseprite INSTALL.md file, as well as the recommended CMake command. I have been building Aseprite for a number of years now, have not seen this error before, and have all of the relevant x11 packages installed on my system almost surely.

no-more-secrets commented 3 years ago

Sorry it turns out this was due to a problem in my environment, closing.