libsoundio
libsoundio copied to clipboard
can't make
cmake log:
$ cmake ..
-- The C compiler identification is GNU 9.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
Configuring libsoundio version 2.0.0
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Looking for jack_set_port_rename_callback in jack
-- Looking for jack_set_port_rename_callback in jack - not found
-- Could NOT find JACK (missing: JACK_LIBRARY JACK_INCLUDE_DIR HAVE_jack_set_port_rename_callback)
-- Could NOT find PULSEAUDIO (missing: PULSEAUDIO_LIBRARY PULSEAUDIO_INCLUDE_DIR)
-- Could NOT find ALSA (missing: ALSA_LIBRARY) (found version "1.2.2")
-- Could NOT find COREAUDIO (missing: COREAUDIO_LIBRARY COREAUDIO_INCLUDE_DIR)
-- Could NOT find WASAPI (missing: AUDIOCLIENT_H)
Installation Summary
--------------------
* Install Directory : /usr/local
* Build Type : Debug
* Build static libs : ON
* Build examples : ON
* Build tests : ON
System Dependencies
-------------------
* threads : OK
* JACK (optional) : not found
* PulseAudio (optional) : not found
* ALSA (optional) : not found
* CoreAudio (optional) : not found
* WASAPI (optional) : not found
-- Configuring done
-- Generating done
-- Build files have been written to: /home/bitbegin/share/libsoundio/build
make:
$ make
Scanning dependencies of target libsoundio_shared
[ 2%] Building C object CMakeFiles/libsoundio_shared.dir/src/soundio.c.o
[ 4%] Building C object CMakeFiles/libsoundio_shared.dir/src/util.c.o
[ 6%] Building C object CMakeFiles/libsoundio_shared.dir/src/os.c.o
[ 9%] Building C object CMakeFiles/libsoundio_shared.dir/src/dummy.c.o
[ 11%] Building C object CMakeFiles/libsoundio_shared.dir/src/channel_layout.c.o
[ 13%] Building C object CMakeFiles/libsoundio_shared.dir/src/ring_buffer.c.o
[ 15%] Linking C shared library libsoundio.so
CMake Error: failed to create symbolic link 'libsoundio.so.2': operation not supported on socket
CMake Error: cmake_symlink_library: System Error: Operation not supported
CMake Error: failed to create symbolic link 'libsoundio.so': operation not supported on socket
CMake Error: cmake_symlink_library: System Error: Operation not supported
make[2]: *** [CMakeFiles/libsoundio_shared.dir/build.make:160:libsoundio.so.2.0.0] 错误 1
make[2]: *** 正在删除文件“libsoundio.so.2.0.0”
make[1]: *** [CMakeFiles/Makefile2:98:CMakeFiles/libsoundio_shared.dir/all] 错误 2
make: *** [Makefile:130:all] 错误 2
Which platform are you building on? it seems that there's no back-end selected.
ubuntu20.04, but i have installed ALSA
From you build log your build system cannot create the required symlinks. You either have a permission problem or your filesystem don't support symlinks. Make sure you are building in a local directory using a decent filesystem.