Comments (4)
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.
@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.
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.
fixed by config sctipr in 0.4.0
from cava.
Related Issues (20)
- Config ignored on Windows 11 HOT 2
- Is it possible to remove the bar heads from idle Cava? HOT 2
- Release the app on Fdroid HOT 4
- Two squares (not umlaut) on top of each bar if starting over ssh HOT 4
- Very high sensivity HOT 2
- Segmentation fault HOT 2
- Keyboard controls are ignored when pausing PipeWire input HOT 6
- Erratic when waveform activated HOT 2
- Cava ignores the config file HOT 2
- Fails to build with iniparser 4.2 HOT 3
- Cava terminated with SIGSEGV at startup HOT 28
- missing <stdlib.h> in config.c
- Is it possible to integrate into a console-based music player? HOT 1
- Error: failure in opening stream (Invalid number of channels) HOT 1
- error while loading shared libraries: libiniparser.so HOT 11
- Linking fails on 10.6: `Undefined symbols: _glGenVertexArrays, _glReleaseShaderCompiler, _glBindVertexArray` HOT 5
- Cava causing crashes of pipewire HOT 1
- Gradient depends on the window size HOT 5
- Waves don't work properly in raw mode. HOT 18
- Error while loading shared libraries...
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cava.