On Wed, May 20, 2020 at 05:26:01PM +0200, Juan Cruz Viotti wrote:
> I can successfully run `st` on macOS 10.15.3 by installing XQuartz
> v2.7.11 and removing `-lrt`, as also explained in the OpenBSD
> instructions.
>
> These instructions should be useful for people wanting to tinker with
> `st` on macOS.
>
> Signed-off-by: Juan Cruz Viotti <jv_AT_jviotti.com>
> ---
> FAQ | 12 +++++++-----
> config.mk | 5 +++++
> 2 files changed, 12 insertions(+), 5 deletions(-)
>
> diff --git a/FAQ b/FAQ
> index 85534a4..20805d3 100644
> --- a/FAQ
> +++ b/FAQ
> _AT_@ -89,13 +89,15 @@ St supports meta in 8bit mode, but the default terminfo entry doesn't
> use this capability. If you want it, you have to use the 'st-meta' value
> in TERM.
>
> -## I cannot compile st in OpenBSD
> +## I cannot compile st in OpenBSD or macOS
>
> -OpenBSD lacks librt, despite it being mandatory in POSIX
> +OpenBSD and macOS lack librt, despite it being mandatory in POSIX
> <http://pubs.opengroup.org/onlinepubs/9699919799/utilities/c99.html#tag_20_11_13>.
> -If you want to compile st for OpenBSD you have to remove -lrt from config.mk, and
> -st will compile without any loss of functionality, because all the functions are
> -included in libc on this platform.
> +If you want to compile st for OpenBSD or macOS you have to remove -lrt from
> +config.mk, and st will compile without any loss of functionality, because all
> +the functions are included in libc on this platform.
> +
> +Compiling and running st on macOS requires XQuartz <https://www.xquartz.org>.
>
> ## The Backspace Case
>
> diff --git a/config.mk b/config.mk
> index beafc35..1f9fb72 100644
> --- a/config.mk
> +++ b/config.mk
> _AT_@ -33,3 +33,8 @@ STLDFLAGS = $(LIBS) $(LDFLAGS)
>
> # compiler and linker
> # CC = c99
> +
> +# macOS:
> +#LIBS = -L$(X11LIB) -lm -lX11 -lutil -lXft \
> +# `$(PKG_CONFIG) --libs fontconfig` \
> +# `$(PKG_CONFIG) --libs freetype2`
> --
> 2.21.0 (Apple Git-122.2)
>
>
MacOS and other proprietary operating systems are not supported.
I don't see a need for a separate section for MacOS either.
--
Kind regards,
Hiltjo
Received on Wed May 20 2020 - 17:35:59 CEST