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

ncurses doesn't build on MinGW #77

Open
Photosounder opened this issue Jan 12, 2024 · 0 comments
Open

ncurses doesn't build on MinGW #77

Photosounder opened this issue Jan 12, 2024 · 0 comments

Comments

@Photosounder
Copy link

I tried building libcaca on MinGW with only ncurses enabled and I'm getting this:

driver/ncurses.c: In function 'ncurses_init_graphics':
driver/ncurses.c:245:12: error: 'SIGWINCH' undeclared (first use in this function); did you mean 'SIGINT'?
  245 |     signal(SIGWINCH, sigwinch_handler);
      |            ^~~~~~~~
      |            SIGINT
driver/ncurses.c:245:12: note: each undeclared identifier is reported only once for each function it appears in
driver/ncurses.c: In function 'ncurses_handle_resize':
driver/ncurses.c:401:20: error: storage size of 'size' isn't known
  401 |     struct winsize size;
      |                    ^~~~
driver/ncurses.c:401:20: warning: unused variable 'size' [-Wunused-variable]
driver/ncurses.c: In function 'sigwinch_handler':
driver/ncurses.c:601:12: error: 'SIGWINCH' undeclared (first use in this function); did you mean 'SIGINT'?
  601 |     signal(SIGWINCH, sigwinch_handler);
      |            ^~~~~~~~
      |            SIGINT

I used this:

./configure --disable-shared --enable-static --disable-kernel --disable-slang --enable-ncurses --disable-win32 --disable-conio --disable-x11 --disable-gl --disable-cocoa --enable-network --disable-vga --disable-csharp --disable-java --disable-imlib2 --disable-debug --disable-profiling --disable-plugins --disable-doc
make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant