Score:1

Unable to locate package openal-soft

lb flag
Z0q

I'm trying to install openal-soft on Ubuntu Focal, but without luck.

This is the package I would like to install:

https://packages.ubuntu.com/source/focal/openal-soft

What I tried:

sudo apt update
sudo add-apt-repository universe
sudo apt install openal-soft

Am I missing something?

Score:2
zw flag

You are trying to install binary package using name of its source package. They are different things. Source package has openal-soft name, during its compilation the following binary packages are produced:

  • libopenal-data – Software implementation of the OpenAL audio API (data files)
  • libopenal-dev – Software implementation of the OpenAL audio API (development files)
  • libopenal1 – Software implementation of the OpenAL audio API (shared library)
  • makehrtf – HRTF Processing and Composition Utility
  • openal-info – Informational utility for the OpenAL audio API

So reproducible way to install binary packages of OpenAL is the following:

sudo apt-add-repository universe
sudo apt-get update
sudo apt-get install libopenal-dev makehrtf openal-info

and then you can start developing software using this library.

Z0q avatar
lb flag
Z0q
So if I understand correctly, it is not the package for https://openal-soft.org/, but instead the source code for https://openal.org/?
Z0q avatar
lb flag
Z0q
Or is it the other way around? `openal-soft` is the source package for `openal-soft` and libopenal-dev is the compiled library of `openal-soft`?
N0rbert avatar
zw flag
This is how software debian packaging works. I do not know do you need to compile something or not. Please clarify your use case.
Z0q avatar
lb flag
Z0q
Yes, I would like to include the https://openal-soft.org/ library in my application using `CMake`
N0rbert avatar
zw flag
Then `openal.pc` for `pkg-config` [is contained](https://packages.ubuntu.com/focal/amd64/libopenal-dev/filelist) in `libopenal-dev` . So it should normally be compiled.
Z0q avatar
lb flag
Z0q
Alright, I have no idea what a `*.pc` file does, but I guess I start to understand that I need that package in order to link against `openal`?
N0rbert avatar
zw flag
Yes, right. All `*-dev` packages are created for this purpose.
Score:0
lb flag
Z0q

In addition to N0rbert's answer, I managed to install the package using:

vcpkg install openal-soft

This required vcpkg to be installed first:

https://lindevs.com/install-vcpkg-on-ubuntu/

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.