tinygo
tinygo copied to clipboard
not implemented: build constraints in #cgo line
When using ncurses:
# github.com/vit1251/go-ncursesw
../../go/pkg/mod/github.com/vit1251/[email protected]/defs.go:7:9: not implemented: build constraints in #cgo line
../../go/pkg/mod/github.com/vit1251/[email protected]/init.go:3:9: not implemented: build constraints in #cgo line
../../go/pkg/mod/github.com/vit1251/[email protected]/mouse.go:8:9: not implemented: build constraints in #cgo line
../../go/pkg/mod/github.com/vit1251/[email protected]/ncurses.go:8:9: not implemented: build constraints in #cgo line
../../go/pkg/mod/github.com/vit1251/[email protected]/defs.go:8:13: fatal: 'ncurses.h' file not found
../../go/pkg/mod/github.com/vit1251/[email protected]/ext.go:10:13: fatal: 'ncurses.h' file not found
../../go/pkg/mod/github.com/vit1251/[email protected]/init.go:4:13: fatal: 'ncurses.h' file not found
../../go/pkg/mod/github.com/vit1251/[email protected]/mouse.go:9:13: fatal: 'ncurses.h' file not found
../../go/pkg/mod/github.com/vit1251/[email protected]/ncurses.go:9:13: fatal: 'ncurses.h' file not found
../../go/pkg/mod/github.com/vit1251/[email protected]/pad.go:8:13: fatal: 'ncurses.h' file not found
../../go/pkg/mod/github.com/vit1251/[email protected]/pad_posix.go:10:13: fatal: 'ncurses.h' file not found
../../go/pkg/mod/github.com/vit1251/[email protected]/screen.go:8:13: fatal: 'ncurses.h' file not found
../../go/pkg/mod/github.com/vit1251/[email protected]/window.go:8:13: fatal: 'ncurses.h' file not found
Note that even with build constraints implemented, this is unlikely to work: we don't currently support linking to external libraries like ncurses. (At least on Linux this is in fact a bit difficult, because we currently statically link to musl which can't dynamically link glibc-linked libraries).