-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
[ncurses] Add new port #17226
[ncurses] Add new port #17226
Conversation
da50102
to
421ca38
Compare
Trying to install right now.. |
add testing via cmake test port in script/test_ports. The option for cmake is |
would it be possible to make it work with windows/uwp? or do I have to stick with pdcurses |
I'm sorry, but I don't understand this statement.
You will need to use MinGW for this to work on Windows. I do not have a functioning MinGW setup, so I cannot support that. |
To test if ncurses can be correctly used it is helpful to build an application with it. Since CMake supports building with some sort of
This way it can be checked if it actually builds a useable dialog and links correctly. |
well then I guess i'm going to stick to pdcurses or some other lib |
@Hoikas You probably need to comment out:
for a CI run so that you can get the application name. Otherwise it will simply be deleted. |
Will that be a permanent change, or just so we can test ccmake locally? |
temporary but since you seem to already now the application name you can add it to the copy tools section of the port. Somewhere around here: vcpkg/scripts/test_ports/cmake/portfile.cmake Lines 36 to 40 in fe112d8
Do you know the deps of ncurses? Maybe I can make it somehow work for windows in #9966. |
Very minimal deps. There's an optional pcre2 dependency (that we're not opting into) and getopt is needed to build the programs. I initially wrote the port on Windows but got nasty build errors about things like |
Thanks @Hoikas, this is great :) |
Does it "just not compile" with MSVC or were there other reasons to not integrate it? |
@GitMensch Please open a new issue to request Windows support. |
ncurses does not compile with MSVC; however, I suspect you may find some success with mingw or clang-cl. |
Note that there is port pdcurses for windows. (However it seems to need some maintenance, in particular a port to |
Can you point to build tests / documentation for this?
mingw should definitely work as this is what is used in MSYS2.
That would be very reasonable, and as long as each port installs a curses.h (and/or adds |
The citation you have given, complete line:
Related: Additionally:
Briefly: Not enough POSIX with MSVC. |
Adds the port ncurses.
What does your PR fix?
Fixes [New port Request] ncurses #7110
Fixes [New Port Request] ncurses #17167
Closes [ncurses] new port #17164
Which triplets are supported/not supported? Have you updated the CI baseline?
Windows (MSVC) is not supported.
Does your PR follow the maintainer guide?
Yes