Package Details: obs-advanced-scene-switcher 1.28.1-1

Git Clone URL: https://aur.archlinux.org/obs-advanced-scene-switcher.git (read-only, click to copy)
Package Base: obs-advanced-scene-switcher
Description: An automated scene switcher for OBS Studio
Upstream URL: https://obsproject.com/forum/resources/advanced-scene-switcher.395/
Keywords: obs obs-studio plugin
Licenses: GPL-2.0-or-later
Submitter: tytan652
Maintainer: tytan652
Last Packager: tytan652
Votes: 3
Popularity: 0.156047
First Submitted: 2021-01-31 17:11 (UTC)
Last Updated: 2024-11-02 13:26 (UTC)

Latest Comments

1 2 Next › Last »

backspin2368 commented on 2025-01-26 05:51 (UTC)

Compile failed:

.cache/yay/obs-advanced-scene-switcher/src/obs-advanced-scene-switcher/lib/linux/advanced-scene-switcher-nix.cpp:387:56: error: macro "PIDS_VAL" passed 4 arguments, but takes just 3
  387 |                 auto cmd = PIDS_VAL(0, str, stack, info);
      |                                                        ^
In file included from .cache/yay/obs-advanced-scene-switcher/src/obs-advanced-scene-switcher/lib/linux/advanced-scene-switcher-nix.cpp:31:
/usr/include/libproc2/pids.h:247:9: note: macro "PIDS_VAL" defined here
  247 | #define PIDS_VAL( relative_enum, type, stack ) \
      |         ^~~~~~~~
.cache/yay/obs-advanced-scene-switcher/src/obs-advanced-scene-switcher/lib/linux/advanced-scene-switcher-nix.cpp: In function ‘std::vector<long unsigned int> advss::getTopLevelWindows()’:
.cache/yay/obs-advanced-scene-switcher/src/obs-advanced-scene-switcher/lib/linux/advanced-scene-switcher-nix.cpp:195:36: warning: declaration of ‘i’ shadows a previous local [-Wshadow]
  195 |                 for (unsigned long i = 0; i < num; ++i) {
      |                                    ^
.cache/yay/obs-advanced-scene-switcher/src/obs-advanced-scene-switcher/lib/linux/advanced-scene-switcher-nix.cpp:180:18: note: shadowed declaration is here
  180 |         for (int i = 0; i < ScreenCount(disp()); ++i) {
      |                  ^
.cache/yay/obs-advanced-scene-switcher/src/obs-advanced-scene-switcher/lib/linux/advanced-scene-switcher-nix.cpp: In function ‘void advss::getProcessListProcps2(QStringList&)’:
.cache/yay/obs-advanced-scene-switcher/src/obs-advanced-scene-switcher/lib/linux/advanced-scene-switcher-nix.cpp:387:28: error: ‘PIDS_VAL’ was not declared in this scope
  387 |                 auto cmd = PIDS_VAL(0, str, stack, info);
      |                            ^~~~~~~~
.cache/yay/obs-advanced-scene-switcher/src/obs-advanced-scene-switcher/lib/linux/advanced-scene-switcher-nix.cpp: In function ‘int advss::SecondsSinceLastInput()’:
.cache/yay/obs-advanced-scene-switcher/src/obs-advanced-scene-switcher/lib/linux/advanced-scene-switcher-nix.cpp:503:28: warning: conversion from ‘time_t’ {aka ‘long int’} to ‘int’ may change value [-Wconversion]
  503 |         return status != 0 ? idle_time : 0;
      |                ~~~~~~~~~~~~^~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/advanced-scene-switcher-lib.dir/build.make:1647: CMakeFiles/advanced-scene-switcher-lib.dir/lib/linux/advanced-scene-switcher-nix.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:407: CMakeFiles/advanced-scene-switcher-lib.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: obs-advanced-scene-switcher-exit status 4

Nikolai2038 commented on 2024-11-01 14:20 (UTC) (edited on 2024-11-01 14:22 (UTC) by Nikolai2038)

I checked - installation works now without any scripts! Thank you @tytan652!

tytan652 commented on 2024-11-01 10:03 (UTC)

I found the issue on my side… (One package not kept up to date)

1.28.0 should no longer require to disable the Twitch plugin to build.

Nikolai2038 commented on 2024-10-18 13:32 (UTC)

+1

I have the same error. Thanks to @admalledd, for now I use this script to automatically install obs-advanced-scene-switcher (I don't need twitch plugin so I am good):

# Will fail but will download all the files
yay --sync --refresh --needed --sudoloop --noconfirm obs-advanced-scene-switcher

# Go to cache directory
cd ~/.cache/yay/obs-advanced-scene-switcher

# Add command to disable twitch plugin to PKGBUILD
sed -Ei "s|(cd deps/libremidi)|sed -i 's/^add_plugin(twitch)\$/# add_plugin(twitch) # Disabled for now by AUR-helper/g' ./plugins/CMakeLists.txt; \1|" ./PKGBUILD

# Build package
makepkg --syncdeps --noconfirm

# Install (without debug package)
sudo pacman --upgrade --noconfirm "$(/usr/bin/ls obs-advanced-scene-switcher-* | grep -v 'debug')"

admalledd commented on 2024-10-12 18:17 (UTC)

@PatoPan I am also having the same issue. While I am not versed in C++ enough to figure out the fix, I can at least let you know that if you don't desire/need the Twitch integration, simply disabling that plugin seems to work fine.

Adding to the PKGBUILD:prepare() just before the cd deps/libremidi a little sed-line to comment out the plugin in the CMake files lets me makepkg && pacman -U ./obs-adv*.pkg.*

  # disable twitch plugin for now
  sed -i 's/add_plugin(twitch)/#add_plugin(twitch)#disabled by AUR-helper/g' plugins/CMakeLists.txt


Note: attempting to use both the 1.28.0-beta1 tag, nor latest git seemed to help. The actual C++ error seems to be


/home/admalledd/.cache/paru/clone/obs-advanced-scene-switcher/src/obs-advanced-scene-switcher/plugins/twitch/twitch-helpers.cpp: In member function ‘bool advss::Args::operator<(const advss::Args&) const’:
/home/admalledd/.cache/paru/clone/obs-advanced-scene-switcher/src/obs-advanced-scene-switcher/plugins/twitch/twitch-helpers.cpp:35:39: error: no match for ‘operator<’ (operand types are ‘const httplib::Headers’ {aka ‘const std::unordered_multimap<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>, httplib::detail::case_ignore::hash, httplib::detail::case_ignore::equal_to>’} and ‘const httplib::Headers’ {aka ‘const std::unordered_multimap<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>, httplib::detail::case_ignore::hash, httplib::detail::case_ignore::equal_to>’})
   35 |                 ret = ret && _headers < other._headers;
      |                              ~~~~~~~~ ^ ~~~~~~~~~~~~~~
      |                              |                |
      |                              |                unordered_multimap<[...],[...],[...],[...]>
      |                              unordered_multimap<[...],[...],[...],[...]>


PatoPan commented on 2024-09-30 16:16 (UTC) (edited on 2024-09-30 16:17 (UTC) by PatoPan)

I had been having this issue lately, rebuilding doesn't help

make[2]: *** [plugins/twitch/CMakeFiles/advanced-scene-switcher-twitch.dir/build.make:223: plugins/twitch/CMakeFiles/advanced-scene-switcher-twitch.dir/twitch-helpers.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:623: plugins/twitch/CMakeFiles/advanced-scene-switcher-twitch.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'obs-advanced-scene-switcher-1.27.2-1': 
error: packages failed to build: obs-advanced-scene-switcher-1.27.2-1

I am currently in version 1.27.2

denilsonsa commented on 2024-04-04 20:40 (UTC)

@tytan652: The compilation error has been fixed upstream, you might want to add the fix as a patch to the PKGBUILD.

tytan652 commented on 2024-03-18 11:34 (UTC)

It seems that I can't reproduce this false positive while building the package in a chroot so there is another factor.

denilsonsa commented on 2024-03-18 11:06 (UTC) (edited on 2024-04-04 20:35 (UTC) by denilsonsa)

That error is a false positive coming from a GCC bug. There are plenty bug reports regarding that warning:

With the risk of creating yet another duplicate (but hopefully with a different test-case), I've reported https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114379

Regarding this package here, well, someone should disable this warning, possibly only for that source-code file, and hopefully upstream.

EDIT: Pull-request sent upstream.

EDIT: Already fixed upstream. Might be worth adding that small patch to the PKGBUILD. (At least until the next release version.)