Closed waldyrious closed 4 years ago
@waldyrious: thanks fo the report. I'll try to improve the installation instructions.
Please also note that you can use homebrew to install fntsample directly on macOS:
brew install eugmes/fntsample/fntsample
Oh, nice! I didn't realize there was already a Homebrew formula. It should definitely be mentioned in the README (especially since it can also be used on Linux).
I have a couple questions:
*std_cmake_args
bit that makes the magic?I initially developed fntsample on Linux and there libintl is part of libc I think, so it does not need to be installed separately.
It seems that homebrew has special processing for keg-only dependencies, it adjusts various environment variables so those dependencies could be found by cmake: https://github.com/Homebrew/brew/blob/3d9cf83fec45a75af61551f53d25383abe009d31/Library/Homebrew/build.rb#L97
I've had some trouble building this on a macOS, and thought I'd report the final set of commands I had to run to make it work:
I'd highlight in particular the need to tell CMake about Homebrew's gettext include path via
export CMAKE_INCLUDE_PATH
. Without this, CMake was erroring with the following message:Note that Homebrew does not expose its gettext paths on purpose, to avoid overriding the system ones:
However, CMake doesn't detect the system gettext either...
I would hope that this process could be more streamlined for macOS. In any case, I hope this issue will help others who run into the same problems.