Build issues on Debian?
Created by: ghost
Was listening to your talk and I'm interested in problems in this space so I decided to give it a build and look around the code. Seemed to have a number of build issues on my system:
Didn't want to build on my system without SDL2 despite it not being a "requirement". I don't know Meson yet so I don't know how to correct this problem other than just installing libsdl2 development package (path of lease resistance).
Had to tack in this short patch to get it to build completely as it errored out with a bunch of what I am guessing is eglibc-incompatiblity junk given the quickest google I did.
FAILED: src/gst/gstpipewire@sha/gstpipewire.c.o cc '-Isrc/gst/gstpipewire@sha' '-fdiagnostics-color=always' '-Isrc/gst' '-I../src/gst' '-I.' '-I../.' '-Ispa/include' '-I../spa/include' '-Isrc' '-I../src' '-pipe' '-Wall' '-Winvalid-pch' '-std=gnu99' '-DHAVE_CONFIG_H' '-O2' '-g' '-fPIC' '-I/usr/include/glib-2.0' '-I/usr/lib/x86_64-linux-gnu/glib-2.0/include' '-pthread' '-I/usr/include/gio-unix-2.0/' '-pthread' '-I/usr/include/gstreamer-1.0' '-pthread' '-MMD' '-MQ' 'src/gst/gstpipewire@sha/gstpipewire.c.o' '-MF' 'src/gst/gstpipewire@sha/gstpipewire.c.o.d' -o 'src/gst/gstpipewire@sha/gstpipewire.c.o' -c ../src/gst/gstpipewire.c In file included from ../spa/include/spa/graph.h:27:0, from ../spa/include/spa/graph-scheduler3.h:27, from ../src/pipewire/core.h:28, from ../src/pipewire/client.h:33, from ../src/pipewire/pipewire.h:29, from ../src/gst/gstpipewiresrc.h:26, from ../src/gst/gstpipewire.c:35: /usr/include/stdio.h:316:6: error: unknown type name ‘_IO_cookie_io_functions_t’ _IO_cookie_io_functions_t __io_funcs) __THROW __wur;
Went away with:
diff --git a/spa/include/spa/graph.h b/spa/include/spa/graph.h index 6408586..1d46cbe 100644 --- a/spa/include/spa/graph.h +++ b/spa/include/spa/graph.h @@ -20,6 +20,10 @@ #ifndef SPA_GRAPH_H #define SPA_GRAPH_H
+#ifndef _GNU_SOURCE +#define _GNU_SOURCE +#endif + #ifdef __cplusplus extern "C" { #endif
(There's probably a better patch though.)
Seems like this could be pretty interesting!