gerbera / homebrew-gerbera

A Homebrew Tap for Gerbera Media Server
https://gerbera.io
14 stars 7 forks source link

Can't install Gerbera using brew #32

Open St3llarMan opened 11 months ago

St3llarMan commented 11 months ago

Folks, I thought I'll try the Gerbera on one of my MacMini running Monterey 12.7.

Unfortunately I can't get it installed. I see the following error messages

Running `brew update --auto-update`...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> New Formulae
build2                                            pter                                              scoutsuite
==> New Casks
ecodms-client            finbar                   paulxstretch             routine                  telegram-a               to-audio-converter

You have 2 outdated formulae installed.

==> Fetching dependencies for gerbera/gerbera/gerbera: openexr and libvpx
==> Fetching openexr
==> Downloading https://ghcr.io/v2/homebrew/core/openexr/manifests/3.2.1
############################################################################################################################################# 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/openexr/blobs/sha256:c6db118270c7cc6e2006ce55c26bed831ef58902b96f757f9bfa25e62223976d
############################################################################################################################################# 100.0%
==> Fetching libvpx
==> Downloading https://ghcr.io/v2/homebrew/core/libvpx/manifests/1.13.1
############################################################################################################################################# 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libvpx/blobs/sha256:3ad4e913a0955ebcbb0c5760d9dfbd3add260bd5932e61b9e9f996014e3a2a56
############################################################################################################################################# 100.0%
==> Fetching gerbera/gerbera/gerbera
==> Downloading https://github.com/gerbera/gerbera/archive/v1.12.1.tar.gz
Already downloaded: /Users/maciek/Library/Caches/Homebrew/downloads/1c6e97749a202466da345bee7ddb3e1454ba8c7b94635d3caad1708da7867b5c--gerbera-1.12.1.tar.gz
==> Installing gerbera from gerbera/gerbera
==> Installing dependencies for gerbera/gerbera/gerbera: openexr and libvpx
==> Installing gerbera/gerbera/gerbera dependency: openexr
==> Downloading https://ghcr.io/v2/homebrew/core/openexr/manifests/3.2.1
Already downloaded: /Users/maciek/Library/Caches/Homebrew/downloads/5b8bbf02d04feb2a6e9c578e606f8aeacce2f261c79900426f7bc1d2b0c1717e--openexr-3.2.1.bottle_manifest.json
==> Pouring openexr--3.2.1.monterey.bottle.tar.gz
🍺  /usr/local/Cellar/openexr/3.2.1: 204 files, 7.8MB
==> Installing gerbera/gerbera/gerbera dependency: libvpx
==> Downloading https://ghcr.io/v2/homebrew/core/libvpx/manifests/1.13.1
Already downloaded: /Users/maciek/Library/Caches/Homebrew/downloads/364b66ab6140cccfc918fb168a803232862da070aac567fbd6f6531c14125399--libvpx-1.13.1.bottle_manifest.json
==> Pouring libvpx--1.13.1.monterey.bottle.tar.gz
🍺  /usr/local/Cellar/libvpx/1.13.1: 20 files, 5.2MB
==> Installing gerbera/gerbera/gerbera
==> cmake .. -DWITH_CURL=YES -DWITH_JS=YES -DWITH_TAGLIB=YES -DWITH_AVCODEC=YES -DWITH_EXIF=YES -DWITH_SYSTEMD=NO -DWITH_INOTIFY=NO -DWITH_MYSQL=NO 
==> make install
Last 15 lines from /Users/maciek/Library/Logs/Homebrew/gerbera/02.make:
        throw_std_runtime_error("Init {} autoscan failed '{}'", xpath, optValue);
        ^
/tmp/gerbera-20230930-13706-gpp1xy/gerbera-1.12.1/src/exceptions.h:40:145: note: expanded from macro 'throw_std_runtime_error'
#define throw_std_runtime_error(...) throw std::runtime_error(fmt::format("[{}:{}] {} Error: {}", __FILE__, __LINE__, __PRETTY_FUNCTION__, fmt::format(__VA_ARGS__)))
                                                                                                                                                ^
/usr/local/include/fmt/core.h:1554:45: note: template is declared here
template <typename T, typename Char> struct type_is_unformattable_for;
                                            ^
/usr/local/include/fmt/core.h:1579:3: error: static_assert failed due to requirement 'formattable' "Cannot format an argument. To make type T formattable provide a formatter<T> specialization: https://fmt.dev/latest/api.html#udt"
  static_assert(
  ^
2 errors generated.
make[2]: *** [CMakeFiles/libgerbera.dir/src/config/setup/config_setup_autoscan.cc.o] Error 1
make[1]: *** [CMakeFiles/libgerbera.dir/all] Error 2
make: *** [all] Error 2

Any ideas? Help please?

Thank you!

St3llarMan commented 11 months ago

It looks like gerbera doesn't support fmt version >10.X. I used brew to install previous version of fmt (9.x) and spdlog and it works.

Nice article to get previous versions in brew is here. https://nelson.cloud/how-to-install-older-versions-of-homebrew-packages/