Discussion:
[SDL] configure doesn't find libpulse-simple
Spencer Parkin
2016-09-25 06:07:58 UTC
Permalink
Hi.

It's midnight and I'm ready to give up (and I'm going to be so groggy at
church tomorrow), but before I do, I'm going to try the mailing list...

On Unbuntu, using "sudo apt install libsdl-2.2.0-0" appears to install
something, but I have no idea what. No headers or library files for SDL
can be found after running this command, so I resorted to trying to compile
SDL myself. This appeared to work, but my application could never open an
audio device. After doing some research, I believe the problem is that
there are no useful audio-backends compiled into SDL. To confirm this, I
compiled one of the test programs that enumerated the backends (drivers)
and sure enough, "pulse", "ogg", "alsa", etc., are all missing from the
list. So I re-ran the configure script and checked the output and found
that it couldn't detect the libraries for these lower-level audio drivers.
Taking "libpulse-simple" as an example, I found this in my
"/usr/lib/x86_64-linux-gnu/" directory, but it's still not detected.
Oddly, I can't confirm the installation with "pkg-config --listall | grep
pulse". Running "autoreconf", whatever that does, doesn't help either.

I'm at a loss. I wouldn't bother with compiling SDL if I could just
install it. Is SDL a dead project? Does the SDL development team support
Ubuntu?

Thanks,
--Sp
Eric Wing
2016-09-25 06:57:57 UTC
Permalink
Post by Spencer Parkin
Hi.
It's midnight and I'm ready to give up (and I'm going to be so groggy at
church tomorrow), but before I do, I'm going to try the mailing list...
On Unbuntu, using "sudo apt install libsdl-2.2.0-0" appears to install
something, but I have no idea what. No headers or library files for SDL
can be found after running this command, so I resorted to trying to compile
SDL myself. This appeared to work, but my application could never open an
audio device. After doing some research, I believe the problem is that
there are no useful audio-backends compiled into SDL. To confirm this, I
compiled one of the test programs that enumerated the backends (drivers)
and sure enough, "pulse", "ogg", "alsa", etc., are all missing from the
list. So I re-ran the configure script and checked the output and found
that it couldn't detect the libraries for these lower-level audio drivers.
Taking "libpulse-simple" as an example, I found this in my
"/usr/lib/x86_64-linux-gnu/" directory, but it's still not detected.
Oddly, I can't confirm the installation with "pkg-config --listall | grep
pulse". Running "autoreconf", whatever that does, doesn't help either.
I'm at a loss. I wouldn't bother with compiling SDL if I could just
install it. Is SDL a dead project? Does the SDL development team support
Ubuntu?
Thanks,
--Sp
If using package management, you probably need to install the -dev
versions of SDL also. The one you installed only installs the dynamic
library. The dev package also installs the headers. This is not SDL
specific, but a general convention of how package management works on
Linux.

If you are building from source, you need to make sure you installed
all the -dev packages for all the libraries SDL wants, otherwise the
configure system will not find anything and not build those
components.

In the SDL source, read the docs/README-linux.md. It has explicit
instructions about which packages you should install for Ubuntu.

-Eric
Spencer Parkin
2016-09-25 16:43:24 UTC
Permalink
Thanks, Eric. Installing libsdl2-dev set everything straight. My
application is up and running and making sound effects through my
speakers..hurrah!

I do my main development in windows, because I just haven't found an IDE in
linux that I like. Developer studio has its problems, but it's still way
better than anything I've tried in linux. So when I want my stuff to run
in linux, I have to always port it over. Using cross-platform libraries
helps, of course, but there are always snags.
Post by Spencer Parkin
Post by Spencer Parkin
Hi.
It's midnight and I'm ready to give up (and I'm going to be so groggy at
church tomorrow), but before I do, I'm going to try the mailing list...
On Unbuntu, using "sudo apt install libsdl-2.2.0-0" appears to install
something, but I have no idea what. No headers or library files for SDL
can be found after running this command, so I resorted to trying to
compile
Post by Spencer Parkin
SDL myself. This appeared to work, but my application could never open
an
Post by Spencer Parkin
audio device. After doing some research, I believe the problem is that
there are no useful audio-backends compiled into SDL. To confirm this, I
compiled one of the test programs that enumerated the backends (drivers)
and sure enough, "pulse", "ogg", "alsa", etc., are all missing from the
list. So I re-ran the configure script and checked the output and found
that it couldn't detect the libraries for these lower-level audio
drivers.
Post by Spencer Parkin
Taking "libpulse-simple" as an example, I found this in my
"/usr/lib/x86_64-linux-gnu/" directory, but it's still not detected.
Oddly, I can't confirm the installation with "pkg-config --listall | grep
pulse". Running "autoreconf", whatever that does, doesn't help either.
I'm at a loss. I wouldn't bother with compiling SDL if I could just
install it. Is SDL a dead project? Does the SDL development team
support
Post by Spencer Parkin
Ubuntu?
Thanks,
--Sp
If using package management, you probably need to install the -dev
versions of SDL also. The one you installed only installs the dynamic
library. The dev package also installs the headers. This is not SDL
specific, but a general convention of how package management works on
Linux.
If you are building from source, you need to make sure you installed
all the -dev packages for all the libraries SDL wants, otherwise the
configure system will not find anything and not build those
components.
In the SDL source, read the docs/README-linux.md. It has explicit
instructions about which packages you should install for Ubuntu.
-Eric
_______________________________________________
SDL mailing list
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Loading...