[gtk-osx-users] Add ncurses librairy.
- From: Pascal <p p14 orange fr>
- To: gtk-osx-users-list gnome org
- Subject: [gtk-osx-users] Add ncurses librairy.
- Date: Thu, 15 Aug 2019 22:02:32 +0200
Hello,
I've got linker errors with my program which use ncurses.
Previously it link against librairies in /usr/lib from Apple developper tools.
But since Command Line Tools (HS 10.13), I got:
Undefined symbols for architecture x86_64:
"_current_item", referenced from:
_terminal_interface__curses__menus__current in terminal_interface-curses-menus.o
"_free_item", referenced from:
_terminal_interface__curses__menus__delete in terminal_interface-curses-menus.o
terminal_interface__curses__menus(float, long double,...)(...) in terminal_interface-curses-menus.o
"_free_menu", referenced from:
_terminal_interface__curses__menus__delete__2 in terminal_interface-curses-menus.o
<...>
"_top_row", referenced from:
_terminal_interface__curses__menus__top_row in terminal_interface-curses-menus.o
(maybe you meant: _terminal_interface__curses__menus__top_row,
_terminal_interface__curses__menus__set_top_row )
"_unpost_menu", referenced from:
_terminal_interface__curses__menus__post in terminal_interface-curses-menus.o
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
Like the lib menu is not seen for x86_64, but it seems to be ok:
$ otool -vf /usr/lib/libmenu.dylib
Fat headers
fat_magic FAT_MAGIC
nfat_arch 2
architecture x86_64
cputype CPU_TYPE_X86_64
cpusubtype CPU_SUBTYPE_X86_64_ALL
capabilities 0x0
offset 4096
size 36064
align 2^12 (4096)
architecture i386
cputype CPU_TYPE_I386
cpusubtype CPU_SUBTYPE_I386_ALL
capabilities 0x0
offset 40960
size 35488
align 2^12 (4096)
It's really a pity that some libraries coming from Apple fail :-(
I was advised to build the library from source https://invisible-island.net/ncurses.
Though it is available with other building systems, I aim to get it via gtk-osx.
What is the best way to add it?
Thanks, Pascal.
http://blady.pagesperso-orange.fr
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]