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

Question: Eliminating dependency on ncurses #430

Closed
ahbnr opened this issue Feb 27, 2020 · 1 comment
Closed

Question: Eliminating dependency on ncurses #430

ahbnr opened this issue Feb 27, 2020 · 1 comment

Comments

@ahbnr
Copy link

ahbnr commented Feb 27, 2020

Hi!

I'm trying to eliminate the ncurses dependency from my application, so that users do not need to install it.

I configured my project to use the termion backend like this:

[dependencies.cursive]
version = "0.14.0"
default-features = false
features = ["toml", "termion-backend"]

(I also changed my code to use cursive_buffered_backend to get rid of flickering, see also #142 (comment))

However,

$ ldd target/debug/myapp | grep ncurses
libncursesw.so.6 => /usr/lib/libncursesw.so.6 (...)

reveals that my application still dynamically links to ncurses.

Is it possible to configure the project so that it does not link to ncurses at all?

Thank you very much!

Environment

  • Operating system: Arch Linux
  • Backend used: termion
    • installed ncurses version: 6.2
  • Current locale: en_US.UTF-8
  • Cursive version: 0.14.0
@ahbnr
Copy link
Author

ahbnr commented Feb 28, 2020

Nevermind.
I am linking to libmpv (using mpv-rs) and libmpv depends on ncurses for some reason. So it seems this has nothing to do with Cursive...

@ahbnr ahbnr closed this as completed Feb 28, 2020
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