cinder / Cinder

Cinder is a community-developed, free and open source library for professional-quality creative coding in C++.
http://libcinder.org
Other
5.34k stars 944 forks source link

Fix Could NOT find MPG123 on Ubuntu 24.04 LTS #2333

Closed smdaa closed 1 month ago

smdaa commented 4 months ago

Platform : Ubuntu 24.04 LTS

I installed dependencies found here https://libcinder.org/docs/guides/linux-notes/ubuntu.html I faced this error:

CMake Error at /usr/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find MPG123 (missing: MPG123_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
  proj/cmake/modules/FindMPG123.cmake:35 (find_package_handle_standard_args)
  proj/cmake/platform_linux.cmake:143 (find_package)
  CMakeLists.txt:29 (include)

Here is a fix i found

richardeakin commented 1 month ago

Ran into this today as well and the fix looks good to me. I don't yet see a more generic way of solving this so going to merge as Ubuntu 24.04 builds are broken without.

Only info I could find on the new (to me, anyway) include path: https://unix.stackexchange.com/questions/586792/difference-between-usr-lib-and-usr-lib-x86-64-linux-gnu-folders