jpcima / smf-dsp

Advanced MIDI file player
Boost Software License 1.0
47 stars 5 forks source link

Unable to build, cmake can't find SDL2 image that's present (Ubuntu 20.04) #35

Closed freq-mod closed 2 years ago

freq-mod commented 2 years ago
CMake Warning at CMakeLists.txt:72 (_message):
  Cannot find library SDL2_image
Call Stack (most recent call first):
  CMakeLists.deps.txt:174 (message)
  CMakeLists.txt:75 (include)
sudo apt install libsdl2-dev
[...]
libsdl2-dev is already the newest version (2.0.10+dfsg1-3).
freq-mod commented 2 years ago

@jpcima README file must be updated with adding two dependencies: libaprutil1-dev and libsdl2-image-dev

jpcima commented 2 years ago

SDL2_image is a separate library. Try libsdl2-image-dev.

You have the full list here https://github.com/jpcima/smf-dsp/blob/a0c9a5a07e8406954212648d4a165c15c5d4f0eb/.github/workflows/build.yml#L17-L27

jpcima commented 2 years ago

Good remark, readme needs an update. A thing to note: apr-util is only required if Glib<2.66, then it's a substitute for URI parsing API.