This produces the following error message (shortened):
Compile Swift Module 'TermDraw' (1 sources)
<module-includes>:1:9: note: in file included from <module-includes>:1: import "/usr/local/Cellar/ncurses/6.0_2/include/ncurses.h"
^
/usr/local/Cellar/ncurses/6.0_2/include/ncurses.h:60:10: error: 'ncursesw/ncurses_dll.h' file not found with <angled> include; use "quotes" instead #include <ncursesw/ncurses_dll.h>
^
<module-includes>:1:9: note: in file included from <module-includes>:1: import "/usr/local/Cellar/ncurses/6.0_2/include/ncurses.h"
^
/usr/local/Cellar/ncurses/6.0_2/include/ncurses.h:653:45: error: conflicting types for 'keyname'
extern NCURSES_EXPORT(NCURSES_CONST char *) keyname (int); /* implemented */
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/curses.h:598:45: note: previous declaration is here
extern NCURSES_EXPORT(NCURSES_CONST char *) keyname (int); /* implemented */
^
<module-includes>:1:9: note: in file included from <module-includes>:1: import "/usr/local/Cellar/ncurses/6.0_2/include/ncurses.h"
^
(and goes on for quite a few other conflicting types)
Any help on getting this to build is greatly appreciated. Example code can be found here: GitHub - Bouke/ncurses-example
This produces the following error message (shortened):
Compile Swift Module 'TermDraw' (1 sources)
<module-includes>:1:9: note: in file included from <module-includes>:1: import "/usr/local/Cellar/ncurses/6.0_2/include/ncurses.h"
^
/usr/local/Cellar/ncurses/6.0_2/include/ncurses.h:60:10: error: 'ncursesw/ncurses_dll.h' file not found with <angled> include; use "quotes" instead #include <ncursesw/ncurses_dll.h>
^
<module-includes>:1:9: note: in file included from <module-includes>:1: import "/usr/local/Cellar/ncurses/6.0_2/include/ncurses.h"
^
/usr/local/Cellar/ncurses/6.0_2/include/ncurses.h:653:45: error: conflicting types for 'keyname'
extern NCURSES_EXPORT(NCURSES_CONST char *) keyname (int); /* implemented */
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/curses.h:598:45: note: previous declaration is here
extern NCURSES_EXPORT(NCURSES_CONST char *) keyname (int); /* implemented */
^
<module-includes>:1:9: note: in file included from <module-includes>:1: import "/usr/local/Cellar/ncurses/6.0_2/include/ncurses.h"
^
(and goes on for quite a few other conflicting types)
Any help on getting this to build is greatly appreciated. Example code can be found here: GitHub - Bouke/ncurses-example
This produces the following error message (shortened):
Compile Swift Module 'TermDraw' (1 sources)
<module-includes>:1:9: note: in file included from <module-includes>:1: import "/usr/local/Cellar/ncurses/6.0_2/include/ncurses.h"
^
/usr/local/Cellar/ncurses/6.0_2/include/ncurses.h:60:10: error: 'ncursesw/ncurses_dll.h' file not found with <angled> include; use "quotes" instead #include <ncursesw/ncurses_dll.h>
^
<module-includes>:1:9: note: in file included from <module-includes>:1: import "/usr/local/Cellar/ncurses/6.0_2/include/ncurses.h"
^
/usr/local/Cellar/ncurses/6.0_2/include/ncurses.h:653:45: error: conflicting types for 'keyname'
extern NCURSES_EXPORT(NCURSES_CONST char *) keyname (int); /* implemented */
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/curses.h:598:45: note: previous declaration is here
extern NCURSES_EXPORT(NCURSES_CONST char *) keyname (int); /* implemented */
^
<module-includes>:1:9: note: in file included from <module-includes>:1: import "/usr/local/Cellar/ncurses/6.0_2/include/ncurses.h"
^
(and goes on for quite a few other conflicting types)
Any help on getting this to build is greatly appreciated. Example code can be found here: GitHub - Bouke/ncurses-example
This produces the following error message (shortened):
Compile Swift Module 'TermDraw' (1 sources)
<module-includes>:1:9: note: in file included from <module-includes>:1: import "/usr/local/Cellar/ncurses/6.0_2/include/ncurses.h"
^
/usr/local/Cellar/ncurses/6.0_2/include/ncurses.h:60:10: error: 'ncursesw/ncurses_dll.h' file not found with <angled> include; use "quotes" instead #include <ncursesw/ncurses_dll.h>
^
<module-includes>:1:9: note: in file included from <module-includes>:1: import "/usr/local/Cellar/ncurses/6.0_2/include/ncurses.h"
^
/usr/local/Cellar/ncurses/6.0_2/include/ncurses.h:653:45: error: conflicting types for 'keyname'
extern NCURSES_EXPORT(NCURSES_CONST char *) keyname (int); /* implemented */
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/curses.h:598:45: note: previous declaration is here
extern NCURSES_EXPORT(NCURSES_CONST char *) keyname (int); /* implemented */
^
<module-includes>:1:9: note: in file included from <module-includes>:1: import "/usr/local/Cellar/ncurses/6.0_2/include/ncurses.h"
^
(and goes on for quite a few other conflicting types)
Any help on getting this to build is greatly appreciated. Example code can be found here: GitHub - Bouke/ncurses-example
I'm facing this same issue on a library I'm working on. I want to wrap the version of ncurses installed via Homebrew, not the version bundled with OS X. Is there a way to achieve this?
I'm following the same approach as @bouke (modulemap, C compiler flags, etc).