Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

verify support for stupid asshole osx #195

Closed
dankamongmen opened this issue Dec 22, 2019 · 16 comments · Fixed by #1923
Closed

verify support for stupid asshole osx #195

dankamongmen opened this issue Dec 22, 2019 · 16 comments · Fixed by #1923
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@dankamongmen
Copy link
Owner

Much as it pains me, we probably ought try to pick up some of that OS X market share. I flat-out refuse to pursue Windows. I don't have any OS X hardware, so ... patches welcome? Testing welcome? Hey @plotfi have apple give me a computer to support notcurses on.

@dankamongmen dankamongmen added the enhancement New feature or request label Dec 22, 2019
@ghost
Copy link

ghost commented Dec 23, 2019

Some pointers for OSX:

  • You can generate OSX icons for Linux with icsutils
  • An app bundle dmg is just an iso with a special structure. It can be created on Linux also. Here is one example.
  • Alt-{something} keystrokes on OSX generally do not result in ESC-{something} as they do under xterm with metaSendsEscape. Instead it is Cmd-{something}, IF that setting is enabled in the Terminal.app / iTerm2 profile.
  • OSX fixed-width fonts generally suck for line-drawing / CP437 glyphs. If you need something that really looks like "VGA" but with Unicode codepoints, this TTF version of Terminus is pretty good, it might be worth pointing your users to if they complain of missing glyphs.

@dankamongmen dankamongmen self-assigned this Feb 21, 2020
@jaroslov
Copy link

Trying to build on a bare-bones macOS dies when looking for 'tinfo>=6.1;ncursesw>=6.1'. The terminfo on latest macOS is 5.7; the ncursesw is 5.7. Both are 2008 vintage. That was a shit year — not as shit as 2020 — but still pretty shit.

@jaroslov
Copy link

jaroslov commented Jul 10, 2020

brew install ncurses drops 6.2 into a 'keg', but the CMakeFile isn't playing ball.

==> Caveats
ncurses is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.

If you need to have ncurses first in your PATH run:
  echo 'export PATH="/usr/local/opt/ncurses/bin:$PATH"' >> ~/.zshrc

For compilers to find ncurses you may need to set:
  export LDFLAGS="-L/usr/local/opt/ncurses/lib"
  export CPPFLAGS="-I/usr/local/opt/ncurses/include"

For pkg-config to find ncurses you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/ncurses/lib/pkgconfig"

==> Summary
🍺  /usr/local/Cellar/ncurses/6.2: 3,913 files, 8.6MB

Anyways, I know jack-all about CMake, so the best I can do is look at line 68 and say to myself "gee! it'd be great if I could point you somewhere else!"

I just changed the tinfo/ncursesw versions to look for 5.7, because that's totally safe. I commented out the need for librt, because fuck it — that's how Apple compiles it's posix4, anyways.

The Makefile generates, but dies when it can't find uchar.h.

... that may be the showstopper. uchar.h is simply not available, at any price, on macOS.

Maybe I could hack this out to just support ASCII. In case you're not aware, ASCII is just like UTF-8, as long as you pretend the rest of the world doesn't exist. And about 2/3rds of the US.

@kdheepak
Copy link
Contributor

I'm also interested in using notcurses on osx, and ran into the same issues mentioned above. I'm wondering if there's any potential ideas for working around this?

@Charadon
Copy link

Yeah, that's where progress ends for Windows also, it gets stuck at not finding uchar.h.

@dankamongmen
Copy link
Owner Author

oh hey holy shit, i missed all the action on this bug! catching up....

@dankamongmen
Copy link
Owner Author

Rumor has it that @grendello has taken ownership of a Mac, and is looking to do something here! and there was much rejoycing.

@dankamongmen
Copy link
Owner Author

https://github.com/dankamongmen/notcurses/runs/1101716635?check_suite_focus=true we now have a github action CI for macos, meaning this might move forward!

@jaroslov
Copy link

HAWT.

@kdheepak
Copy link
Contributor

Has the CI for macos been dropped again? I don't see it in the latest commits.

@dankamongmen
Copy link
Owner Author

there's never been any ci for mac, so far as i'm aware?

@dankamongmen
Copy link
Owner Author

https://drone.dsscaw.com:4443/dankamongmen/notcurses/ if you can see this, this is all the ci i know of

@kdheepak
Copy link
Contributor

Sorry, I thought your previous comment here in this thread suggested that there might have been a CI at some point: #195 (comment)

@dankamongmen
Copy link
Owner Author

Sorry, I thought your previous comment here in this thread suggested that there might have been a CI at some point: #195 (comment)

oh no problem, just wanted to make sure we hadn't stood up some OS X CI without me knowing =]

@dankamongmen dankamongmen linked a pull request May 19, 2021 that will close this issue
@dankamongmen dankamongmen added this to the 3.0.0 milestone Jun 14, 2021
@dankamongmen
Copy link
Owner Author

recent events have me hoping that this will see life by 3.0.0 this fall

@dankamongmen
Copy link
Owner Author

Initial OSX support is present. It currently requires exporting several directories as PKG_CONFIG_PATH, which will obviously need to get fixed. Other than that, everything seems to work.

@dankamongmen dankamongmen modified the milestones: 3.0.0, 2.4.0 Aug 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants