Coder Social home page Coder Social logo

Comments (12)

azawawi avatar azawawi commented on July 24, 2024

I see. Did you try using %*ENV<PERL6_NCURSES_LIB> to specify the ncurses library name/location?

from raku-ncurses.

azawawi avatar azawawi commented on July 24, 2024

Did it work for you?

from raku-ncurses.

CIAvash avatar CIAvash commented on July 24, 2024

@azawawi I set %*ENV<PERL6_NCURSES_LIB> to libncursesw.so.6, it didn't work and the same error was printed. Then I removed precomp files and tried again, it worked. And after this it works even if PERL6_NCURSES_LIB is not set.

Does it have something to do with LIB being constant and the precompilation?

from raku-ncurses.

azawawi avatar azawawi commented on July 24, 2024

Sorry for the late reply. Unfortunately, a corrupted .precomp folder is sometimes the cause of some of the Perl 6 modules not working correctly when upgraded.

from raku-ncurses.

blippy avatar blippy commented on July 24, 2024

I had the same problem, but was able to obtain a build as follows:

PERL6_NCURSES_LIB=libncursesw.so.6

then rebuild in the usual way.

from raku-ncurses.

azawawi avatar azawawi commented on July 24, 2024

@blippy Thanks for your feedback.

from raku-ncurses.

blippy avatar blippy commented on July 24, 2024

I think it is to do with the fact that at perl6-ncurses6/lib/NCurses6.pm6, line 5 reads:

constant LIB = %*ENV<PERL6_NCURSES_LIB> || 'libncursesw.so.5';

I had a chat on perl6-users-help, where Brandon Allbery stated:

ABI version 6 is not compatible with version 5 (in particular, color handling changed). It is not safe to just use whatever ncurses happens to be around.

Given all of the potential conflict between version 5 and version 6 of ncurses, I have done what I think is the best solution: forked your repo as a basis for NCurses6 - aimed at compatability with version 6 of the library.

This should keep everyone happy (?). Anyone on older systems, or just wanting a vanilla install of Perl 6, can install rakudo in the usual way. Anyone wanting to go down the ncurses 6 route can install my module NCurses6: https://github.com/blippy/perl6-ncurses6 . It also enables users to have both versions on their system, and pick and choose whatever they favour the most.

from raku-ncurses.

azawawi avatar azawawi commented on July 24, 2024

Great 👍 But why not have both on the same repository?

from raku-ncurses.

blippy avatar blippy commented on July 24, 2024

I was spooked by Brandon's comment. ncurses6 seems to have better colour support.

I wonder what you think the best way forward is. Should you change 'libncursesw.so.5' to 'libncursesw.so.6', or to 'libncursesw.so', stick with the approach as-is whereby the user has to set PERL6_NCURSES_LIB and remove my NCurses6 as a bad idea, or something else?

Am I right in thinking that NCurses is part of the rakudo distribution?

from raku-ncurses.

azawawi avatar azawawi commented on July 24, 2024

Thanks for waking me up 👍

Please try 4c7c837. Your feedback is appreciated.

from raku-ncurses.

blippy avatar blippy commented on July 24, 2024

There seems to be a success. Here's what I did (IIRC):

  1. unset my PERL6_NCURSES_LIB, and started a new shell to ensure it was unset
  2. recompiled and reinstalled rakudo-star 2017.01
  3. Uninstalled NCurses
  4. Cloned your repo, and checked out the commit you listed above
  5. panda install .
  6. cd examples
  7. perl6 starfield.pl6

I was presented with a nice moving starfield :) So we have a winner!

Many thanks for fixing this for me.

I think the next step should be for me to remove NCurses6 from ecosystem, as it is redundant. Do you agree?

from raku-ncurses.

azawawi avatar azawawi commented on July 24, 2024

Great. I am open to PRs (i.e. more tests, more examples, ideas for NCurses::Simple or NCurses::Lite). Please also checkout the new examples I am adding :)

Also please note panda is now deprecated in favor of zef.

from raku-ncurses.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.