roc-streaming / roc-pulse

Roc Toolkit modules for PulseAudio.
https://roc-streaming.org
GNU Lesser General Public License v2.1
8 stars 2 forks source link

pulseaudio modules not build because pulseaudio is now only meson build system #12

Closed sl1pkn07 closed 1 year ago

sl1pkn07 commented 3 years ago

when try to build roc

>>> ./configure --host= CXX=/usr/bin/clang++ CXXLD=/usr/bin/clang++ CC=/usr/bin/clang-12 CCLD=/usr/bin/clang-12 AR=/usr/bin/llvm-ar RANLIB=/usr/bin/llvm-ranlib CXXFLAGS='-w -fomit-frame-pointer -O2 -I/tmp/makepkg/roc-git/src/roc/3rdparty/x86_64-pc-linux-gnu/clang-12.0.0-release/build/ltdl-2.4.6/include -I/tmp/makepkg/roc-git/src/roc/3rdparty/x86_64-pc-linux-gnu/clang-12.0.0-release/build/json-c-0.12-20140410/include -I/tmp/makepkg/roc-git/src/roc/3rdparty/x86_64-pc-linux-gnu/clang-12.0.0-release/build/sndfile-1.0.28/include' CFLAGS='-w -fomit-frame-pointer -O2 -I/tmp/makepkg/roc-git/src/roc/3rdparty/x86_64-pc-linux-gnu/clang-12.0.0-release/build/ltdl-2.4.6/include -I/tmp/makepkg/roc-git/src/roc/3rdparty/x86_64-pc-linux-gnu/clang-12.0.0-release/build/json-c-0.12-20140410/include -I/tmp/makepkg/roc-git/src/roc/3rdparty/x86_64-pc-linux-gnu/clang-12.0.0-release/build/sndfile-1.0.28/include' LDFLAGS='-L/tmp/makepkg/roc-git/src/roc/3rdparty/x86_64-pc-linux-gnu/clang-12.0.0-release/build/ltdl-2.4.6/lib -L/tmp/makepkg/roc-git/src/roc/3rdparty/x86_64-pc-linux-gnu/clang-12.0.0-release/build/json-c-0.12-20140410/lib -L/tmp/makepkg/roc-git/src/roc/3rdparty/x86_64-pc-linux-gnu/clang-12.0.0-release/build/sndfile-1.0.28/lib -Wl,-rpath-link=/tmp/makepkg/roc-git/src/roc/3rdparty/x86_64-pc-linux-gnu/clang-12.0.0-release/build/ltdl-2.4.6/lib -Wl,-rpath-link=/tmp/makepkg/roc-git/src/roc/3rdparty/x86_64-pc-linux-gnu/clang-12.0.0-release/build/json-c-0.12-20140410/lib -Wl,-rpath-link=/tmp/makepkg/roc-git/src/roc/3rdparty/x86_64-pc-linux-gnu/clang-12.0.0-release/build/sndfile-1.0.28/lib' LIBJSON_CFLAGS=" " LIBJSON_LIBS="-ljson-c" LIBSNDFILE_CFLAGS=" " LIBSNDFILE_LIBS="-lsndfile" --enable-shared --disable-static --disable-tests --disable-manpages --disable-orc --disable-webrtc-aec --disable-openssl --disable-neon-opt --without-caps
/bin/sh: línea 1: ./configure: No existe el fichero o el directorio
>>> ./configure --host= CXX=/usr/bin/clang++ CXXLD=/usr/bin/clang++ CC=/usr/bin/clang-12 CCLD=/usr/bin/clang-12 AR=/usr/bin/llvm-ar RANLIB=/usr/bin/llvm-ranlib CXXFLAGS='-w -fomit-frame-pointer -O2 -I/tmp/makepkg/roc-git/src/roc/3rdparty/x86_64-pc-linux-gnu/clang-12.0.0-release/build/ltdl-2.4.6/include -I/tmp/makepkg/roc-git/src/roc/3rdparty/x86_64-pc-linux-gnu/clang-12.0.0-release/build/json-c-0.12-20140410/include -I/tmp/makepkg/roc-git/src/roc/3rdparty/x86_64-pc-linux-gnu/clang-12.0.0-release/build/sndfile-1.0.28/include' CFLAGS='-w -fomit-frame-pointer -O2 -I/tmp/makepkg/roc-git/src/roc/3rdparty/x86_64-pc-linux-gnu/clang-12.0.0-release/build/ltdl-2.4.6/include -I/tmp/makepkg/roc-git/src/roc/3rdparty/x86_64-pc-linux-gnu/clang-12.0.0-release/build/json-c-0.12-20140410/include -I/tmp/makepkg/roc-git/src/roc/3rdparty/x86_64-pc-linux-gnu/clang-12.0.0-release/build/sndfile-1.0.28/include' LDFLAGS='-L/tmp/makepkg/roc-git/src/roc/3rdparty/x86_64-pc-linux-gnu/clang-12.0.0-release/build/ltdl-2.4.6/lib -L/tmp/makepkg/roc-git/src/roc/3rdparty/x86_64-pc-linux-gnu/clang-12.0.0-release/build/json-c-0.12-20140410/lib -L/tmp/makepkg/roc-git/src/roc/3rdparty/x86_64-pc-linux-gnu/clang-12.0.0-release/build/sndfile-1.0.28/lib -Wl,-rpath-link=/tmp/makepkg/roc-git/src/roc/3rdparty/x86_64-pc-linux-gnu/clang-12.0.0-release/build/ltdl-2.4.6/lib -Wl,-rpath-link=/tmp/makepkg/roc-git/src/roc/3rdparty/x86_64-pc-linux-gnu/clang-12.0.0-release/build/json-c-0.12-20140410/lib -Wl,-rpath-link=/tmp/makepkg/roc-git/src/roc/3rdparty/x86_64-pc-linux-gnu/clang-12.0.0-release/build/sndfile-1.0.28/lib' LIBJSON_CFLAGS=" " LIBJSON_LIBS="-ljson-c" LIBSNDFILE_CFLAGS=" " LIBSNDFILE_LIBS="-lsndfile" --enable-shared --disable-static --disable-tests --disable-manpages --disable-orc --disable-webrtc-aec --disable-openssl --disable-neon-opt --without-caps
/bin/sh: línea 1: ./configure: No existe el fichero o el directorio

but pulseaudio is now meson only build system

┌─┤[$]|[sl1pkn07]|[sL1pKn07]|[/tmp/makepkg/roc-git/src/roc/3rdparty/x86_64-pc-linux-gnu/clang-12.0.0-release/build/pulseaudio-14.99.2/src/pulseaudio-14.99.2]|
└───╼  ls
total 216
drwxr-xr-x 11 sl1pkn07 users   660 jun 16 11:24 .
drwxr-xr-x  3 sl1pkn07 users    80 jun 27 15:00 ..
-rw-r--r--  1 sl1pkn07 users  3273 jun 16 11:24 CODE_OF_CONDUCT.md
-rw-r--r--  1 sl1pkn07 users  2866 jun 16 11:24 CONTRIBUTING.md
drwxr-xr-x  2 sl1pkn07 users    60 jun 16 11:24 coverity
drwxr-xr-x  2 sl1pkn07 users    80 jun 16 11:24 doc
drwxr-xr-x  2 sl1pkn07 users   100 jun 16 11:24 doxygen
-rwxr-xr-x  1 sl1pkn07 users  6458 jun 16 11:24 git-version-gen
-rw-r--r--  1 sl1pkn07 users 17989 jun 16 11:24 GPL
-rw-r--r--  1 sl1pkn07 users 26527 jun 16 11:24 LGPL
-rw-r--r--  1 sl1pkn07 users   377 jun 16 11:24 libpulse-mainloop-glib.pc.in
-rw-r--r--  1 sl1pkn07 users   341 jun 16 11:24 libpulse.pc.in
-rw-r--r--  1 sl1pkn07 users   367 jun 16 11:24 libpulse-simple.pc.in
-rw-r--r--  1 sl1pkn07 users  2192 jun 16 11:24 LICENSE
-rw-r--r--  1 sl1pkn07 users   256 jun 16 11:24 .mailmap
drwxr-xr-x  2 sl1pkn07 users   420 jun 16 11:24 man
-rw-r--r--  1 sl1pkn07 users 31826 jun 16 11:24 meson.build
-rw-r--r--  1 sl1pkn07 users  7024 jun 16 11:24 meson_options.txt
-rw-r--r--  1 sl1pkn07 users 20820 jun 16 11:24 NEWS
drwxr-xr-x  2 sl1pkn07 users  1180 jun 16 11:24 po
-rw-r--r--  1 sl1pkn07 users 11741 jun 16 11:24 PROTOCOL
-rw-r--r--  1 sl1pkn07 users   504 jun 16 11:24 PulseAudioConfig.cmake.in
-rw-r--r--  1 sl1pkn07 users   489 jun 16 11:24 PulseAudioConfigVersion.cmake.in
-rw-r--r--  1 sl1pkn07 users  1210 jun 16 11:24 pulseaudio.supp
-rw-r--r--  1 sl1pkn07 users 12915 jun 16 11:24 pulseaudio.svg
-rw-r--r--  1 sl1pkn07 users 16110 jun 16 11:24 pulseaudio-text.svg
-rw-r--r--  1 sl1pkn07 users   911 jun 16 11:24 README
drwxr-xr-x  3 sl1pkn07 users   140 jun 16 11:24 scripts
drwxr-xr-x  4 sl1pkn07 users    80 jun 16 11:24 shell-completion
drwxr-xr-x  8 sl1pkn07 users   220 jun 16 11:24 src
-rw-r--r--  1 sl1pkn07 users     8 jun 16 11:24 .tarball-version
-rw-r--r--  1 sl1pkn07 users  1287 jun 16 11:24 todo
drwxr-xr-x  2 sl1pkn07 users   180 jun 16 11:24 vala

greetings

gavv commented 3 years ago

Thanks for reporting! Will look into it.

cyberpunkrocker-zero commented 3 years ago

For some reason, when I built roc-toolkit for the first time on Arch Linux a few days ago, it built cleanly without errors. But when I now try to recompile it for the (just upgraded) pulseaudio-15.0, the build fails with the same error as @sl1pkn07 reported.

berglh commented 3 years ago

I'm also banging my head against this one, not sure how this is shaping up.

berglh commented 3 years ago

@sl1pkn07 @cyberpunkrocker-zero I just found that this is more or less solved with PulseAudio modules for Roc Toolkit. This doesn't build the whole of PulseAudio in order to build the modules, as such, this has resulted in the modules building and working on PulseAudio 15.0 (For me on Ubuntu 21.10). Tested as working just fine with PA on both sender and receiver. :tada:

gavv commented 1 year ago

Hi, thanks for report. Yes, PulseAudio modules are migrated to roc-pulse repo (I migrated related issues as well, including this one).

New repo has new build system which handles the reported issue. I've fixed support for recent pulseaudio versions (based on meson). We don't need to build pulseaudio anymore, however we still need its source dir, and on new pulseaudio versions, we also run meson to generate one header file.

The build instructions are available in README: https://github.com/roc-streaming/roc-pulse

I'm closing this, but feel free to reopen if you encounter any other issues.