liquidsfz icon indicating copy to clipboard operation
liquidsfz copied to clipboard

Required 'readline' package not found in Debian 10

Open jebofponderworthy opened this issue 3 years ago • 0 comments

'autogen.sh' fails, stating that package 'readline' is not found; in Debian 10, it's 'readline-common' not 'readline'. It gives the following alternative, but I thought it reportable.

Alternatively, you may set the environment variables READLINE_CFLAGS and READLINE_LIBS to avoid the need to call pkg-config.

Thus far, a workaround is to do these in shell before ./autogen.sh :

export READLINE_LIBS="-lreadline" export READLINE_CFLAGS='CFLAGS="-O2"'

which fixes the readline issue, but then we have (backticks adjusted for compatibility):

/usr/bin/ld: liquidsfz.o: in function 'liquidsfz_user_data_dir[abi:cxx11]()': /usr/include/c++/8/bits/fs_path.h:184: undefined reference to 'std::filesystem::__cxx11::path::_M_split_cmpts()' /usr/bin/ld: liquidsfz.o: in function 'liquidsfz_user_data_dir[abi:cxx11]()': /home/jeb/Downloads/liquidsfz-0.2.3/src/liquidsfz.cc:129: undefined reference to 'std::filesystem::create_directories(std::filesystem::__cxx11::path const&)' collect2: error: ld returned 1 exit status make[2]: *** [Makefile:431: liquidsfz] Error 1

To deal with that, we add to the autogen initiation :

./autogen.sh LIBS="-lstdc++fs"

jebofponderworthy avatar Jul 05 '21 22:07 jebofponderworthy