portaudio
portaudio copied to clipboard
Compilation fails on Linux
I'm using the Godot 3 branch against Godot 3.4.5.
After following the instructions in the README, compilation fails on Linux. This is true whether I use ALSA or Jack as the host API. The reason is that the host library (asound or Jack) isn't added to the linking with -l
.
As a workaround, I did
diff --git a/platform/x11/detect.py b/platform/x11/detect.py
index 432801ecac..66f8bb6b16 100644
--- a/platform/x11/detect.py
+++ b/platform/x11/detect.py
@@ -223,6 +223,7 @@ def configure(env):
env.ParseConfig("pkg-config xrandr --cflags --libs")
env.ParseConfig("pkg-config xrender --cflags --libs")
env.ParseConfig("pkg-config xi --cflags --libs")
+ env.ParseConfig("pkg-config alsa --cflags --libs")
But this is obviously not the real fix -- ideally, this library would work without this.