roc-streaming / roc-toolkit

Real-time audio streaming over the network.
https://roc-streaming.org
Mozilla Public License 2.0
1.09k stars 213 forks source link

Implement IFrameEncoder / IFrameDecoder using libvorbis #768

Open runei opened 3 months ago

runei commented 3 months ago

Implements #758

runei commented 3 months ago

Hi @gavv ,

The libvorbis build is successful for all targets except macos14-arm64/build-3rdparty and macos14-arm64/universal-binaries. But it works fine with macos14-arm64/standard-build and other macos builds.

The error message is:

*** Could not run Ogg test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occurred. This usually means Ogg was incorrectly installed
*** or that you have moved Ogg since it was installed.
configure: error: must have Ogg installed!

But according to the logs, libogg was installed before this error.

What is the difference between the macos 3rdparty, universal-binaries, to the other macos standard-build? Do you have any suggestion on how to solve this issue?

gavv commented 2 months ago

Hi @gavv ,

The libvorbis build is successful for all targets except macos14-arm64/build-3rdparty and macos14-arm64/universal-binaries. But it works fine with macos14-arm64/standard-build and other macos builds.

The error message is:

...

Most likely, configure from libvorbis is trying to find libogg using pkg-config instead of using paths that we gave to it. In this case we can prevent it by providing OGG_CFLAGS and OGG_LIBS variables to configure, the same way as we do it with LIBSNDFILE_ when we're building pulseaudio (also in build-3rdparty.py).