Giter Site home page Giter Site logo

Comments (4)

karlstav avatar karlstav commented on July 17, 2024

The use of 'ncursesw5-config' was added in 10cde13 to make the ncurses build portabale. (the ncurses library had different names in ubuntu and arch (in arch ncursesw was bundled in ncurses while in ubuntu it was separate)).

@dylanaraps great work on finding a work around, but I guess we need some kind of version detection. Maybe it's time to make a configure script?

from cava.

dylanaraps avatar dylanaraps commented on July 17, 2024

@karlstav thanks! A configure script would be great, ncmpcpp has one that detects the ncurses version and we could probably modify that.

Relevant part of ncmpcpp's configure file
https://github.com/arybczak/ncmpcpp/blob/master/configure.ac

dnl ========================
dnl = checking for ncurses =
dnl ========================
if test "$unicode" = "yes" ; then
    curses_config_bin="ncursesw6-config ncursesw5-config"
    AC_DEFINE([NCMPCPP_UNICODE], [1], [enables unicode support])
else
    curses_config_bin="ncurses6-config ncurses5-config"
fi

AC_PATH_PROGS(CURSES_CONFIG, $curses_config_bin)
if test "$CURSES_CONFIG" != "" ; then
    CPPFLAGS="$CPPFLAGS `$CURSES_CONFIG --cflags`"
    LIBS="$LIBS `$CURSES_CONFIG --libs`"
fi
AC_CHECK_LIB(ncursesw, initscr,
    curses_lib=ncursesw,
    curses_lib=ncurses
)

AC_CHECK_LIB($curses_lib, initscr,
    if test "$CURSES_CONFIG" = "" ; then
        LIBS="$LIBS -l$curses_lib"
    fi
    ,
    AC_MSG_ERROR([$curses_lib library is required])
    )
AC_CHECK_HEADERS([curses.h], , AC_MSG_ERROR([missing curses.h header]))

from cava.

karlstav avatar karlstav commented on July 17, 2024

I have never done config scripts before and I'm completely striped from time right now, but I created a config-script branch in the hope that someone might feel like helping out.

This is the plan (as I see it):

need to have:

  • automatic detection of ncurses version

nice to have:

  • detect fftw, if no exit with some kind of install tips
  • detect alsa dev files, build with mpd fifo support only if not installed, but throw some kind of warning and hint about how to install alsa dev files
  • if no ncurses(w) are installed build with only "noncurses"-mode, but throw warnings as above

from cava.

karlstav avatar karlstav commented on July 17, 2024

fixed by config sctipr in 0.4.0

from cava.

Related Issues (20)

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.