Closed ghost closed 10 months ago
Could you share the output of echo | c++ -xc++ -E -v -
and the the file build/build.ninja
? I'm not totally sure what is going on here, and this build issue will be system-dependent.
I think you could probably also work around this by passing -I /usr/local/include
in the CXXFLAGS
environment variable when invoking meson
.
(having a space between the flag breaks it), I was able to build it just fine.)
Ah yeah. Sorry for recommending the wrong syntax.
Here are the two outputs you requested, from when the project isn't configured using the modified include flag:
So based on this output it looks like the search paths are:
#include <...> search starts here:
/usr/include/c++/v1
/usr/lib/clang/13.0.0/include
/usr/include
End of search list.
This is system specified (either by the OS or your compiler), and it looks like your list doesn't include /usr/local/include
, so the MPD headers there are not discovered.
That said, it's possible we should be discovering that include via pkg-config
. Could you try applying this patch https://gist.github.com/joshkunz/e2c065d33f585892c50851e625dd25a4 and see if you can get a successful build then without the CXX flags?
Patch is good. With it, the project compiles without any other deviations from the README.
Thanks for testing! I'll patch that into the build a cut a new release once it passes CI.
Fix release cut: https://github.com/joshkunz/ashuffle/releases/tag/v3.14.3
Building With:
I've followed the README and get to the step where I run
ninja -C build install
but the build fails with an error.Build Error:
mpd/idle.h
exists on my system at/usr/local/include/mpd/idle.h