WarmUpTill / SceneSwitcher

An automation tool for OBS Studio
https://obsproject.com/forum/resources/automatic-scene-switching.395/
GNU General Public License v2.0
974 stars 77 forks source link

Update to upstream `libremidi` #922

Closed paveloom closed 8 months ago

paveloom commented 11 months ago

Compiles fine with libremidi v3.0, but fails with v4.2.4:

nix build -Lv .#obs-studio-plugins.advanced-scene-switcher
``` warning: The interpretation of store paths arguments ending in `.drv` recently changed. If this command is now failing try again with '/nix/store/izb4d8zj1qgpnxxqhm2awby11yihbmy5-advanced-scene-switcher-1.24.0.drv^*' @nix { "action": "setPhase", "phase": "qtPreHook" } qtPreHook @nix { "action": "setPhase", "phase": "unpackPhase" } unpacking sources unpacking source archive /nix/store/9iyw0l7phj20mlvwjwf0jamg5xpia7f3-source source root is source @nix { "action": "setPhase", "phase": "patchPhase" } patching sources @nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" } updateAutotoolsGnuConfigScriptsPhase @nix { "action": "setPhase", "phase": "configurePhase" } configuring fixing cmake files... cmake flags: -DCMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -DCMAKE_INSTALL_LOCALEDIR=/nix/store/rdz3ymwgxh39mswm50x3r6lxwcndnazh-advanced-scene-switcher-1.24.0/share/locale -DCMAKE_INSTALL_LIBEXECDIR=/nix/store/rdz3ymwgxh39mswm50x3r6lxwcndnazh-advanced-scene-switcher-1.24.0/libexec -DCMAKE_INSTALL_LIBDIR=/nix/store/rdz3ymwgxh39mswm50x3r6lxwcndnazh-advanced-scene-switcher-1.24.0/lib -DCMAKE_INSTALL_DOCDIR=/nix/store/rdz3ymwgxh39mswm50x3r6lxwcndnazh-advanced-scene-switcher-1.24.0/share/doc/advanced-scene-switcher -DCMAKE_INSTALL_INFODIR=/nix/store/rdz3ymwgxh39mswm50x3r6lxwcndnazh-advanced-scene-switcher-1.24.0/share/info -DCMAKE_INSTALL_MANDIR=/nix/store/rdz3ymwgxh39mswm50x3r6lxwcndnazh-advanced-scene-switcher-1.24.0/share/man -DCMAKE_INSTALL_OLDINCLUDEDIR=/nix/store/rdz3ymwgxh39mswm50x3r6lxwcndnazh-advanced-scene-switcher-1.24.0/include -DCMAKE_INSTALL_INCLUDEDIR=/nix/store/rdz3ymwgxh39mswm50x3r6lxwcndnazh-advanced-scene-switcher-1.24.0/include -DCMAKE_INSTALL_SBINDIR=/nix/store/rdz3ymwgxh39mswm50x3r6lxwcndnazh-advanced-scene-switcher-1.24.0/sbin -DCMAKE_INSTALL_BINDIR=/nix/store/rdz3ymwgxh39mswm50x3r6lxwcndnazh-advanced-scene-switcher-1.24.0/bin -DCMAKE_INSTALL_NAME_DIR=/nix/store/rdz3ymwgxh39mswm50x3r6lxwcndnazh-advanced-scene-switcher-1.24.0/lib -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_OSX_SYSROOT= -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_STRIP=/nix/store/90h6k8ylkgn81k10190v5c9ldyjpzgl9-gcc-wrapper-12.3.0/bin/strip -DCMAKE_RANLIB=/nix/store/90h6k8ylkgn81k10190v5c9ldyjpzgl9-gcc-wrapper-12.3.0/bin/ranlib -DCMAKE_AR=/nix/store/90h6k8ylkgn81k10190v5c9ldyjpzgl9-gcc-wrapper-12.3.0/bin/ar -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_INSTALL_PREFIX=/nix/store/rdz3ymwgxh39mswm50x3r6lxwcndnazh-advanced-scene-switcher-1.24.0 -- The C compiler identification is GNU 12.3.0 -- The CXX compiler identification is GNU 12.3.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /nix/store/90h6k8ylkgn81k10190v5c9ldyjpzgl9-gcc-wrapper-12.3.0/bin/gcc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /nix/store/90h6k8ylkgn81k10190v5c9ldyjpzgl9-gcc-wrapper-12.3.0/bin/g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- CMAKE_PROJECT_NAME is advanced-scene-switcher -- advanced-scene-switcher configured for out-of-tree build -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- Performing Test HAVE_STDATOMIC -- Performing Test HAVE_STDATOMIC - Success -- Qt version: 6 -- Found OpenGL: /nix/store/a39i17gd56l2s41j66djwz2r9yr905ja-libGL-1.7.0/lib/libOpenGL.so -- Found WrapOpenGL: TRUE -- Found XKB: /nix/store/z50cdic3kw9c0qnjyxwcx8qvv22xlgci-libxkbcommon-1.5.0/lib/libxkbcommon.so (Required is at least version "0.5.0") -- Found WrapVulkanHeaders: /nix/store/hg6l41qmw9pl5qi24lpvhyx65c1szaxa-vulkan-headers-1.3.268.0/include -- Found nlohmann_json: /nix/store/vd29gqs6fgqdrz95kx232az1xf905l58-nlohmann_json-3.11.2/share/cmake/nlohmann_json/nlohmann_jsonConfig.cmake (found version "3.11.2") -- Found X11: /nix/store/nzw7krhdm0ijbfmskvqrzw9nabqygv18-xorgproto-2023.2/include found components: Xtst Xss -- Looking for XOpenDisplay in /nix/store/b7pb0mmcwjp973nj8gcaa2fnmqxckc8q-libX11-1.8.7/lib/libX11.so;/nix/store/qyyw5j9xn5mnjlv5f469h12clp4wdj7b-libXext-1.3.5/lib/libXext.so -- Looking for XOpenDisplay in /nix/store/b7pb0mmcwjp973nj8gcaa2fnmqxckc8q-libX11-1.8.7/lib/libX11.so;/nix/store/qyyw5j9xn5mnjlv5f469h12clp4wdj7b-libXext-1.3.5/lib/libXext.so - found -- Looking for gethostbyname -- Looking for gethostbyname - found -- Looking for connect -- Looking for connect - found -- Looking for remove -- Looking for remove - found -- Looking for shmat -- Looking for shmat - found -- advanced-scene-switcher using procps -- Found CURL: /nix/store/fs9zd6sa5akbvc4d46war0402lbwxh5n-curl-8.4.0/lib/libcurl.so (found version "8.4.0") CMake Warning at CMakeLists.txt:485 (find_package): By not providing "FindLibcurl.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Libcurl", but CMake did not find one. Could not find a package configuration file provided by "Libcurl" with any of the following names: LibcurlConfig.cmake libcurl-config.cmake Add the installation prefix of "Libcurl" to CMAKE_PREFIX_PATH or set "Libcurl_DIR" to a directory containing one of the above files. If "Libcurl" provides a separate development package or SDK, be sure it has been installed. -- Performing Test HAS_STD_JTHREAD -- Performing Test HAS_STD_JTHREAD - Success -- libremidi: Using std::vector for libremidi::message -- Found ALSA: /nix/store/4gassvc0bjajf1kzjrllp599z6acx2zn-alsa-lib-1.2.9/lib/libasound.so (found version "1.2.9") -- Looking for C++ include sys/eventfd.h -- Looking for C++ include sys/eventfd.h - found -- Looking for C++ include sys/timerfd.h -- Looking for C++ include sys/timerfd.h - found -- libremidi: using ALSA -- ADVSS: ENABLED PLUGIN advanced-scene-switcher-midi CMake Warning at src/macro-external/openvr/CMakeLists.txt:7 (message): OpenVR condition is only supported on Windows builds for now. CMake Warning at src/macro-external/twitch/CMakeLists.txt:9 (message): cpp-httplib directory "/build/source/deps/cpp-httplib" not found! Twitch support will be disabled! -- Found OpenCV: / (found version "4.7.0") CMake Warning at src/macro-external/video/CMakeLists.txt:19 (find_package): By not providing "FindLeptonica.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Leptonica", but CMake did not find one. Could not find a package configuration file provided by "Leptonica" with any of the following names: LeptonicaConfig.cmake leptonica-config.cmake Add the installation prefix of "Leptonica" to CMAKE_PREFIX_PATH or set "Leptonica_DIR" to a directory containing one of the above files. If "Leptonica" provides a separate development package or SDK, be sure it has been installed. CMake Warning at src/macro-external/video/CMakeLists.txt:20 (find_package): By not providing "FindTesseract.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Tesseract", but CMake did not find one. Could not find a package configuration file provided by "Tesseract" with any of the following names: TesseractConfig.cmake tesseract-config.cmake Add the installation prefix of "Tesseract" to CMAKE_PREFIX_PATH or set "Tesseract_DIR" to a directory containing one of the above files. If "Tesseract" provides a separate development package or SDK, be sure it has been installed. CMake Warning at src/macro-external/video/CMakeLists.txt:33 (message): OCR capabilities of video condition disabled! Leptonica or Tesseract dependencies were not found! Sources are available under: /build/source/src/macro-external/video/../../../deps/ -- ADVSS: ENABLED PLUGIN advanced-scene-switcher-opencv -- Configuring done (9.2s) -- Generating done (0.0s) CMake Warning: Manually-specified variables were not used by the project: BUILD_TESTING CMAKE_EXPORT_NO_PACKAGE_REGISTRY CMAKE_POLICY_DEFAULT_CMP0025 -- Build files have been written to: /build/source/build cmake: enabled parallel building cmake: enabled parallel installing @nix { "action": "setPhase", "phase": "buildPhase" } building build flags: -j16 SHELL=/nix/store/q1c2flcykgr4wwg5a6h450hxbk4ch589-bash-5.2-p15/bin/bash [ 1%] Automatic MOC and UIC for target advanced-scene-switcher-lib [ 1%] Building CXX object /build/source/deps/libremidi/build/CMakeFiles/libremidi.dir/include/libremidi/backends/emscripten/midi_access.cpp.o [ 1%] Building CXX object tests/CMakeFiles/advanced-scene-switcher-tests.dir/tests.cpp.o [ 2%] Building CXX object /build/source/deps/libremidi/build/CMakeFiles/libremidi.dir/include/libremidi/backends/emscripten/midi_in.cpp.o [ 3%] Building CXX object tests/CMakeFiles/advanced-scene-switcher-tests.dir/__/src/utils/math-helpers.cpp.o [ 3%] Building CXX object /build/source/deps/libremidi/build/CMakeFiles/libremidi.dir/include/libremidi/backends/emscripten/observer.cpp.o [ 3%] Building CXX object /build/source/deps/libremidi/build/CMakeFiles/libremidi.dir/include/libremidi/backends/emscripten/midi_out.cpp.o [ 3%] Building CXX object /build/source/deps/libremidi/build/CMakeFiles/libremidi.dir/include/libremidi/libremidi.cpp.o [ 5%] Building CXX object /build/source/deps/libremidi/build/CMakeFiles/libremidi.dir/include/libremidi/client.cpp.o [ 5%] Building CXX object /build/source/deps/libremidi/build/CMakeFiles/libremidi.dir/include/libremidi/midi_in.cpp.o [ 6%] Building CXX object /build/source/deps/libremidi/build/CMakeFiles/libremidi.dir/include/libremidi/observer.cpp.o [ 6%] Building CXX object /build/source/deps/libremidi/build/CMakeFiles/libremidi.dir/include/libremidi/reader.cpp.o [ 6%] Building CXX object /build/source/deps/libremidi/build/CMakeFiles/libremidi.dir/include/libremidi/midi_out.cpp.o [ 7%] Building CXX object /build/source/deps/libremidi/build/CMakeFiles/libremidi.dir/include/libremidi/writer.cpp.o [ 8%] Linking CXX static library liblibremidi.a [ 8%] Built target libremidi [ 8%] Built target advanced-scene-switcher-lib_autogen [ 9%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/advanced-scene-switcher.cpp.o [ 9%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/general.cpp.o [ 10%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/hotkey.cpp.o [ 11%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/legacy/scene-trigger.cpp.o [ 11%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/advanced-scene-switcher-lib_autogen/mocs_compilation.cpp.o [ 12%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/legacy/scene-group.cpp.o [ 12%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/version.cpp.o [ 12%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/legacy/switch-audio.cpp.o [ 12%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/status-control.cpp.o [ 13%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/switcher-data.cpp.o [ 14%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/legacy/switch-executable.cpp.o [ 14%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/legacy/switch-file.cpp.o [ 15%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/legacy/switch-generic.cpp.o [ 15%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/legacy/switch-idle.cpp.o [ 16%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/legacy/switch-media.cpp.o [ 17%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/legacy/switch-network.cpp.o [ 17%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/legacy/switch-pause.cpp.o [ 18%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/legacy/switch-random.cpp.o [ 18%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/legacy/switch-screen-region.cpp.o [ 19%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/legacy/switch-sequence.cpp.o [ 19%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/legacy/switch-time.cpp.o [ 20%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/legacy/switch-transitions.cpp.o [ 20%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/legacy/switch-video.cpp.o [ 21%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/legacy/switch-window.cpp.o [ 22%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-action-audio.cpp.o [ 22%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-action-edit.cpp.o [ 23%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-action-file.cpp.o [ 23%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-action-filter.cpp.o [ 24%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-action-hotkey.cpp.o [ 24%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-action-http.cpp.o [ 25%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-action-macro.cpp.o [ 25%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-action-media.cpp.o [ 26%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-action-osc.cpp.o [ 27%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-action-plugin-state.cpp.o [ 27%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-action-profile.cpp.o [ 28%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-action-projector.cpp.o [ 28%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-action-random.cpp.o [ 29%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-action-recording.cpp.o [ 29%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-action-replay-buffer.cpp.o [ 30%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-action-run.cpp.o [ 31%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-action-scene-collection.cpp.o [ 31%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-action-scene-lock.cpp.o [ 32%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-action-scene-order.cpp.o [ 32%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-action-scene-switch.cpp.o [ 33%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-action-scene-transform.cpp.o [ 33%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-action-scene-visibility.cpp.o [ 34%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-action-screenshot.cpp.o [ 34%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-action-sequence.cpp.o [ 35%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-action-source.cpp.o [ 36%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-action-streaming.cpp.o [ 36%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-action-studio-mode.cpp.o [ 37%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-action-systray.cpp.o [ 37%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-action-timer.cpp.o [ 38%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-action-transition.cpp.o [ 38%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-action-variable.cpp.o [ 39%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-action-virtual-cam.cpp.o [ 39%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-action-wait.cpp.o [ 40%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-action-websocket.cpp.o [ 41%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-action.cpp.o [ 41%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-condition-audio.cpp.o [ 42%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-condition-cursor.cpp.o [ 42%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-condition-date.cpp.o [ 43%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-condition-display.cpp.o [ 43%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-condition-edit.cpp.o [ 44%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-condition-file.cpp.o [ 44%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-condition-filter.cpp.o [ 45%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-condition-hotkey.cpp.o [ 46%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-condition-idle.cpp.o [ 46%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-condition-macro.cpp.o [ 47%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-condition-media.cpp.o [ 47%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-condition-obs-stats.cpp.o [ 48%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-condition-plugin-state.cpp.o [ 48%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-condition-process.cpp.o [ 49%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-condition-profile.cpp.o [ 50%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-condition-recording.cpp.o [ 50%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-condition-replay-buffer.cpp.o [ 51%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-condition-run.cpp.o [ 51%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-condition-scene-order.cpp.o [ 52%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-condition-scene-transform.cpp.o [ 52%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-condition-scene-visibility.cpp.o [ 53%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-condition-slideshow.cpp.o [ 53%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-condition-scene.cpp.o [ 54%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-condition-source.cpp.o [ 55%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-condition-streaming.cpp.o [ 55%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-condition-studio-mode.cpp.o [ 56%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-condition-tempvar.cpp.o [ 56%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-condition-timer.cpp.o [ 57%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-condition-transition.cpp.o [ 57%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-condition-variable.cpp.o [ 58%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-condition-virtual-cam.cpp.o [ 58%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-condition-websocket.cpp.o [ 59%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-condition-window.cpp.o [ 60%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-condition.cpp.o [ 60%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-dock.cpp.o [ 61%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-properties.cpp.o [ 62%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-segment-list.cpp.o [ 61%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-ref.cpp.o [ 62%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-segment.cpp.o [ 63%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-selection.cpp.o [ 63%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-tab.cpp.o [ 64%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro-tree.cpp.o [ 65%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/macro-core/macro.cpp.o /build/source/src/macro-core/macro-segment.cpp: In member function 'std::optional advss::MacroSegment::GetTempVar(const std::string&) const': /build/source/src/macro-core/macro-segment.cpp:149:23: warning: unused variable 'result' [-Wunused-variable] 149 | TempVariable *result = nullptr; | ^~~~~~ [ 65%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/utils/connection-manager.cpp.o [ 66%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/utils/curl-helper.cpp.o [ 66%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/utils/duration-control.cpp.o [ 67%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/utils/item-selection-helpers.cpp.o [ 67%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/utils/file-selection.cpp.o [ 68%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/utils/filter-combo-box.cpp.o [ 69%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/utils/filter-selection.cpp.o [ 69%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/utils/macro-export-import-dialog.cpp.o [ 70%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/utils/macro-list.cpp.o [ 70%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/utils/macro-run-button.cpp.o [ 71%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/utils/macro-segment-selection.cpp.o [ 71%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/utils/math-helpers.cpp.o [ 72%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/utils/mouse-wheel-guard.cpp.o [ 72%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/utils/name-dialog.cpp.o [ 73%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/utils/non-modal-dialog.cpp.o [ 74%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/utils/obs-module-helper.cpp.o [ 74%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/utils/osc-helpers.cpp.o [ 75%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/utils/priority-helper.cpp.o [ 75%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/utils/process-config.cpp.o [ 76%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/utils/regex-config.cpp.o [ 76%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/utils/resizing-text-edit.cpp.o [ 77%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/utils/scene-item-selection.cpp.o In file included from /nix/store/mrgib0s2ayr81xv1q84xsjg8ijybalq3-glibc-2.38-27-dev/include/arpa/inet.h:22, from /build/source/src/utils/osc-helpers.cpp:11: /build/source/src/utils/osc-helpers.cpp: In member function 'void advss::FillMessageElementBufferVisitor::operator()(const advss::DoubleVariable&)': /build/source/src/utils/osc-helpers.cpp:66:33: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 66 | htonl(*((uint32_t *)&f)); | ~^~~~~~~~~~~~~~~ [ 77%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/utils/scene-selection.cpp.o /build/source/src/macro-core/macro-tab.cpp: In member function 'void advss::AdvSceneSwitcher::SetupMacroSegmentSelection(MacroSection, int)': /build/source/src/macro-core/macro-tab.cpp:321:20: warning: 'resetIdx2' may be used uninitialized [-Wmaybe-uninitialized] 321 | *resetIdx2 = -1; | ~~~~~~~~~~~^~~~ /build/source/src/macro-core/macro-tab.cpp:272:35: note: 'resetIdx2' was declared here 272 | int *setIdx, *resetIdx1, *resetIdx2; | ^~~~~~~~~ /build/source/src/macro-core/macro-tab.cpp:320:20: warning: 'resetIdx1' may be used uninitialized [-Wmaybe-uninitialized] 320 | *resetIdx1 = -1; | ~~~~~~~~~~~^~~~ /build/source/src/macro-core/macro-tab.cpp:272:23: note: 'resetIdx1' was declared here 272 | int *setIdx, *resetIdx1, *resetIdx2; | ^~~~~~~~~ /build/source/src/macro-core/macro-tab.cpp:272:14: warning: 'setIdx' may be used uninitialized [-Wmaybe-uninitialized] 272 | int *setIdx, *resetIdx1, *resetIdx2; | ^~~~~~ /build/source/src/macro-core/macro-tab.cpp:314:33: warning: 'resetList2' may be used uninitialized [-Wmaybe-uninitialized] 314 | resetList2->SetSelection(-1); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~ /build/source/src/macro-core/macro-tab.cpp:271:50: note: 'resetList2' was declared here 271 | MacroSegmentList *setList, *resetList1, *resetList2; | ^~~~~~~~~~ /build/source/src/macro-core/macro-tab.cpp:313:33: warning: 'resetList1' may be used uninitialized [-Wmaybe-uninitialized] 313 | resetList1->SetSelection(-1); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~ /build/source/src/macro-core/macro-tab.cpp:271:37: note: 'resetList1' was declared here 271 | MacroSegmentList *setList, *resetList1, *resetList2; | ^~~~~~~~~~ /build/source/src/macro-core/macro-tab.cpp:312:30: warning: 'setList' may be used uninitialized [-Wmaybe-uninitialized] 312 | setList->SetSelection(idx); | ~~~~~~~~~~~~~~~~~~~~~^~~~~ /build/source/src/macro-core/macro-tab.cpp:271:27: note: 'setList' was declared here 271 | MacroSegmentList *setList, *resetList1, *resetList2; | ^~~~~~~ [ 78%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/utils/scene-switch-helpers.cpp.o [ 79%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/utils/screenshot-helper.cpp.o [ 79%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/utils/section.cpp.o [ 80%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/utils/slider-spinbox.cpp.o [ 80%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/utils/source-selection.cpp.o [ 81%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/utils/source-setting.cpp.o [ 81%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/utils/string-list.cpp.o [ 82%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/utils/striped-frame.cpp.o [ 82%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/utils/switch-button.cpp.o [ 83%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/utils/sync-helper.cpp.o [ 84%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/utils/temp-variable.cpp.o [ 84%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/utils/transition-selection.cpp.o [ 85%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/utils/utility.cpp.o [ 85%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/utils/variable.cpp.o [ 86%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/utils/variable-line-edit.cpp.o [ 86%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/utils/variable-spinbox.cpp.o [ 87%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/utils/variable-string.cpp.o [ 88%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/utils/variable-text-edit.cpp.o [ 88%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/utils/volume-control.cpp.o [ 89%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/utils/websocket-helpers.cpp.o [ 89%] Building CXX object CMakeFiles/advanced-scene-switcher-lib.dir/src/linux/advanced-scene-switcher-nix.cpp.o In file included from /build/source/src/utils/websocket-helpers.cpp:6: /build/source/deps/obs-websocket/lib/obs-websocket-api.h: In function 'proc_handler_t* obs_websocket_get_ph()': /build/source/deps/obs-websocket/lib/obs-websocket-api.h:56:27: warning: missing initializer for member 'calldata::size' [-Wmissing-field-initializers] 56 | calldata_t cd = {0}; | ^ /build/source/deps/obs-websocket/lib/obs-websocket-api.h:56:27: warning: missing initializer for member 'calldata::capacity' [-Wmissing-field-initializers] /build/source/deps/obs-websocket/lib/obs-websocket-api.h:56:27: warning: missing initializer for member 'calldata::fixed' [-Wmissing-field-initializers] /build/source/deps/obs-websocket/lib/obs-websocket-api.h: In function 'unsigned int obs_websocket_get_api_version()': /build/source/deps/obs-websocket/lib/obs-websocket-api.h:94:27: warning: missing initializer for member 'calldata::size' [-Wmissing-field-initializers] 94 | calldata_t cd = {0}; | ^ /build/source/deps/obs-websocket/lib/obs-websocket-api.h:94:27: warning: missing initializer for member 'calldata::capacity' [-Wmissing-field-initializers] /build/source/deps/obs-websocket/lib/obs-websocket-api.h:94:27: warning: missing initializer for member 'calldata::fixed' [-Wmissing-field-initializers] /build/source/deps/obs-websocket/lib/obs-websocket-api.h: In function 'obs_websocket_request_response* obs_websocket_call_request(const char*, obs_data_t*)': /build/source/deps/obs-websocket/lib/obs-websocket-api.h:116:27: warning: missing initializer for member 'calldata::size' [-Wmissing-field-initializers] 116 | calldata_t cd = {0}; | ^ /build/source/deps/obs-websocket/lib/obs-websocket-api.h:116:27: warning: missing initializer for member 'calldata::capacity' [-Wmissing-field-initializers] /build/source/deps/obs-websocket/lib/obs-websocket-api.h:116:27: warning: missing initializer for member 'calldata::fixed' [-Wmissing-field-initializers] /build/source/deps/obs-websocket/lib/obs-websocket-api.h: In function 'void* obs_websocket_register_vendor(const char*)': /build/source/deps/obs-websocket/lib/obs-websocket-api.h:152:27: warning: missing initializer for member 'calldata::size' [-Wmissing-field-initializers] 152 | calldata_t cd = {0}; | ^ /build/source/deps/obs-websocket/lib/obs-websocket-api.h:152:27: warning: missing initializer for member 'calldata::capacity' [-Wmissing-field-initializers] /build/source/deps/obs-websocket/lib/obs-websocket-api.h:152:27: warning: missing initializer for member 'calldata::fixed' [-Wmissing-field-initializers] /build/source/deps/obs-websocket/lib/obs-websocket-api.h: In function 'bool obs_websocket_vendor_register_request(obs_websocket_vendor, const char*, obs_websocket_request_callback_function, void*)': /build/source/deps/obs-websocket/lib/obs-websocket-api.h:167:27: warning: missing initializer for member 'calldata::size' [-Wmissing-field-initializers] 167 | calldata_t cd = {0}; | ^ /build/source/deps/obs-websocket/lib/obs-websocket-api.h:167:27: warning: missing initializer for member 'calldata::capacity' [-Wmissing-field-initializers] /build/source/deps/obs-websocket/lib/obs-websocket-api.h:167:27: warning: missing initializer for member 'calldata::fixed' [-Wmissing-field-initializers] /build/source/deps/obs-websocket/lib/obs-websocket-api.h: In function 'bool obs_websocket_vendor_unregister_request(obs_websocket_vendor, const char*)': /build/source/deps/obs-websocket/lib/obs-websocket-api.h:185:27: warning: missing initializer for member 'calldata::size' [-Wmissing-field-initializers] 185 | calldata_t cd = {0}; | ^ /build/source/deps/obs-websocket/lib/obs-websocket-api.h:185:27: warning: missing initializer for member 'calldata::capacity' [-Wmissing-field-initializers] /build/source/deps/obs-websocket/lib/obs-websocket-api.h:185:27: warning: missing initializer for member 'calldata::fixed' [-Wmissing-field-initializers] /build/source/deps/obs-websocket/lib/obs-websocket-api.h: In function 'bool obs_websocket_vendor_emit_event(obs_websocket_vendor, const char*, obs_data_t*)': /build/source/deps/obs-websocket/lib/obs-websocket-api.h:199:27: warning: missing initializer for member 'calldata::size' [-Wmissing-field-initializers] 199 | calldata_t cd = {0}; | ^ /build/source/deps/obs-websocket/lib/obs-websocket-api.h:199:27: warning: missing initializer for member 'calldata::capacity' [-Wmissing-field-initializers] /build/source/deps/obs-websocket/lib/obs-websocket-api.h:199:27: warning: missing initializer for member 'calldata::fixed' [-Wmissing-field-initializers] [ 90%] Linking CXX executable advanced-scene-switcher-tests [ 90%] Built target advanced-scene-switcher-tests [ 91%] Linking CXX shared library advanced-scene-switcher-lib.so Installing advanced-scene-switcher-lib to plugin rundir /build/source/build/rundir/obs-plugins/64bit -- Installing: /build/source/build/rundir/Release/obs-plugins/64bit/advanced-scene-switcher-lib.so.1 [ 91%] Built target advanced-scene-switcher-lib [ 92%] Automatic MOC and UIC for target advanced-scene-switcher-midi [ 92%] Automatic MOC and UIC for target advanced-scene-switcher-opencv [ 92%] Building C object CMakeFiles/advanced-scene-switcher.dir/src/advanced-scene-switcher-module.c.o [ 93%] Linking C shared module advanced-scene-switcher.so Installing to plugin rundir -- Installing: /build/source/build/rundir/Release/obs-plugins/64bit/advanced-scene-switcher.so -- Installing: /build/source/build/rundir/Release/data/obs-plugins/advanced-scene-switcher/data -- Installing: /build/source/build/rundir/Release/data/obs-plugins/advanced-scene-switcher/data/locale -- Installing: /build/source/build/rundir/Release/data/obs-plugins/advanced-scene-switcher/data/locale/de-DE.ini -- Installing: /build/source/build/rundir/Release/data/obs-plugins/advanced-scene-switcher/data/locale/en-US.ini -- Installing: /build/source/build/rundir/Release/data/obs-plugins/advanced-scene-switcher/data/locale/es-ES.ini -- Installing: /build/source/build/rundir/Release/data/obs-plugins/advanced-scene-switcher/data/locale/fr-FR.ini -- Installing: /build/source/build/rundir/Release/data/obs-plugins/advanced-scene-switcher/data/locale/ru-RU.ini -- Installing: /build/source/build/rundir/Release/data/obs-plugins/advanced-scene-switcher/data/locale/tr-TR.ini -- Installing: /build/source/build/rundir/Release/data/obs-plugins/advanced-scene-switcher/data/locale/zh-CN.ini -- Installing: /build/source/build/rundir/Release/data/obs-plugins/advanced-scene-switcher/data/res -- Installing: /build/source/build/rundir/Release/data/obs-plugins/advanced-scene-switcher/data/res/cascadeClassifiers -- Installing: /build/source/build/rundir/Release/data/obs-plugins/advanced-scene-switcher/data/res/cascadeClassifiers/haarcascade_eye.xml -- Installing: /build/source/build/rundir/Release/data/obs-plugins/advanced-scene-switcher/data/res/cascadeClassifiers/haarcascade_eye_tree_eyeglasses.xml -- Installing: /build/source/build/rundir/Release/data/obs-plugins/advanced-scene-switcher/data/res/cascadeClassifiers/haarcascade_frontalface_alt.xml -- Installing: /build/source/build/rundir/Release/data/obs-plugins/advanced-scene-switcher/data/res/cascadeClassifiers/haarcascade_frontalface_alt2.xml -- Installing: /build/source/build/rundir/Release/data/obs-plugins/advanced-scene-switcher/data/res/cascadeClassifiers/haarcascade_frontalface_alt_tree.xml -- Installing: /build/source/build/rundir/Release/data/obs-plugins/advanced-scene-switcher/data/res/cascadeClassifiers/haarcascade_frontalface_default.xml -- Installing: /build/source/build/rundir/Release/data/obs-plugins/advanced-scene-switcher/data/res/cascadeClassifiers/haarcascade_fullbody.xml -- Installing: /build/source/build/rundir/Release/data/obs-plugins/advanced-scene-switcher/data/res/cascadeClassifiers/haarcascade_lefteye_2splits.xml -- Installing: /build/source/build/rundir/Release/data/obs-plugins/advanced-scene-switcher/data/res/cascadeClassifiers/haarcascade_lowerbody.xml -- Installing: /build/source/build/rundir/Release/data/obs-plugins/advanced-scene-switcher/data/res/cascadeClassifiers/haarcascade_profileface.xml -- Installing: /build/source/build/rundir/Release/data/obs-plugins/advanced-scene-switcher/data/res/cascadeClassifiers/haarcascade_righteye_2splits.xml -- Installing: /build/source/build/rundir/Release/data/obs-plugins/advanced-scene-switcher/data/res/cascadeClassifiers/haarcascade_upperbody.xml -- Installing: /build/source/build/rundir/Release/data/obs-plugins/advanced-scene-switcher/data/res/images -- Installing: /build/source/build/rundir/Release/data/obs-plugins/advanced-scene-switcher/data/res/images/DarkAdvanced.svg -- Installing: /build/source/build/rundir/Release/data/obs-plugins/advanced-scene-switcher/data/res/images/DarkGroup.svg -- Installing: /build/source/build/rundir/Release/data/obs-plugins/advanced-scene-switcher/data/res/images/LightAdvanced.svg -- Installing: /build/source/build/rundir/Release/data/obs-plugins/advanced-scene-switcher/data/res/images/LightGroup.svg -- Installing: /build/source/build/rundir/Release/data/obs-plugins/advanced-scene-switcher/data/res/images/DarkDoubleDown.svg -- Installing: /build/source/build/rundir/Release/data/obs-plugins/advanced-scene-switcher/data/res/images/DarkDoubleUp.svg -- Installing: /build/source/build/rundir/Release/data/obs-plugins/advanced-scene-switcher/data/res/images/DarkNote.svg -- Installing: /build/source/build/rundir/Release/data/obs-plugins/advanced-scene-switcher/data/res/images/DarkRegex.svg -- Installing: /build/source/build/rundir/Release/data/obs-plugins/advanced-scene-switcher/data/res/images/DarkTime.svg -- Installing: /build/source/build/rundir/Release/data/obs-plugins/advanced-scene-switcher/data/res/images/LightDoubleDown.svg -- Installing: /build/source/build/rundir/Release/data/obs-plugins/advanced-scene-switcher/data/res/images/LightDoubleUp.svg -- Installing: /build/source/build/rundir/Release/data/obs-plugins/advanced-scene-switcher/data/res/images/LightNote.svg -- Installing: /build/source/build/rundir/Release/data/obs-plugins/advanced-scene-switcher/data/res/images/LightRegex.svg -- Installing: /build/source/build/rundir/Release/data/obs-plugins/advanced-scene-switcher/data/res/images/LightTime.svg -- Installing: /build/source/build/rundir/Release/data/obs-plugins/advanced-scene-switcher/data/res/images/DarkSearch.svg -- Installing: /build/source/build/rundir/Release/data/obs-plugins/advanced-scene-switcher/data/res/images/LightSearch.svg -- Installing: /build/source/build/rundir/Release/data/obs-plugins/advanced-scene-switcher/data/res/ocr -- Installing: /build/source/build/rundir/Release/data/obs-plugins/advanced-scene-switcher/data/res/ocr/eng.traineddata [ 93%] Built target advanced-scene-switcher [ 93%] Built target advanced-scene-switcher-midi_autogen [ 95%] Building CXX object src/macro-external/midi/CMakeFiles/advanced-scene-switcher-midi.dir/advanced-scene-switcher-midi_autogen/mocs_compilation.cpp.o [ 95%] Building CXX object src/macro-external/midi/CMakeFiles/advanced-scene-switcher-midi.dir/macro-action-midi.cpp.o [ 96%] Building CXX object src/macro-external/midi/CMakeFiles/advanced-scene-switcher-midi.dir/midi-helpers.cpp.o [ 96%] Building CXX object src/macro-external/midi/CMakeFiles/advanced-scene-switcher-midi.dir/macro-condition-midi.cpp.o [ 96%] Built target advanced-scene-switcher-opencv_autogen [ 97%] Building CXX object src/macro-external/video/CMakeFiles/advanced-scene-switcher-opencv.dir/opencv-helpers.cpp.o [ 98%] Building CXX object src/macro-external/video/CMakeFiles/advanced-scene-switcher-opencv.dir/advanced-scene-switcher-opencv_autogen/mocs_compilation.cpp.o [ 98%] Building CXX object src/macro-external/video/CMakeFiles/advanced-scene-switcher-opencv.dir/area-selection.cpp.o [ 98%] Building CXX object src/macro-external/video/CMakeFiles/advanced-scene-switcher-opencv.dir/macro-condition-video.cpp.o [ 98%] Building CXX object src/macro-external/video/CMakeFiles/advanced-scene-switcher-opencv.dir/paramerter-wrappers.cpp.o [ 99%] Building CXX object src/macro-external/video/CMakeFiles/advanced-scene-switcher-opencv.dir/preview-dialog.cpp.o In file included from /nix/store/nydpfwjkb903244zdg1gddnf3xkmxmvr-websocket++-0.8.2/include/websocketpp/config/core_client.hpp:55, from /nix/store/nydpfwjkb903244zdg1gddnf3xkmxmvr-websocket++-0.8.2/include/websocketpp/config/asio_no_tls_client.hpp:31, from /build/source/src/legacy/switch-network.hpp:17, from /build/source/src/switcher-data.hpp:17, from /build/source/src/macro-external/midi/midi-helpers.cpp:5: /nix/store/nydpfwjkb903244zdg1gddnf3xkmxmvr-websocket++-0.8.2/include/websocketpp/logger/basic.hpp:61:54: error: expected ')' before 'h' 61 | basic(channel_type_hint::value h = | ~ ^~ | ) /nix/store/nydpfwjkb903244zdg1gddnf3xkmxmvr-websocket++-0.8.2/include/websocketpp/logger/basic.hpp:67:42: error: expected ')' before '*' token 67 | basic(std::ostream * out) | ~ ^~ | ) /nix/store/nydpfwjkb903244zdg1gddnf3xkmxmvr-websocket++-0.8.2/include/websocketpp/logger/basic.hpp:72:35: error: expected ')' before 'c' 72 | basic(level c, channel_type_hint::value h = | ~ ^~ | ) /nix/store/nydpfwjkb903244zdg1gddnf3xkmxmvr-websocket++-0.8.2/include/websocketpp/logger/basic.hpp:78:35: error: expected ')' before 'c' 78 | basic(level c, std::ostream * out) | ~ ^~ | ) /nix/store/nydpfwjkb903244zdg1gddnf3xkmxmvr-websocket++-0.8.2/include/websocketpp/logger/basic.hpp:84:5: error: template-id not allowed for destructor 84 | ~basic() {} | ^ /nix/store/nydpfwjkb903244zdg1gddnf3xkmxmvr-websocket++-0.8.2/include/websocketpp/logger/basic.hpp:87:54: error: expected ')' before 'const' 87 | basic(basic const & other) | ~ ^~~~~~ | ) /nix/store/nydpfwjkb903244zdg1gddnf3xkmxmvr-websocket++-0.8.2/include/websocketpp/logger/basic.hpp:100:54: error: expected ')' before '&&' token 100 | basic(basic && other) | ~ ^~~ | ) In file included from /nix/store/nydpfwjkb903244zdg1gddnf3xkmxmvr-websocket++-0.8.2/include/websocketpp/roles/server_endpoint.hpp:31, from /nix/store/nydpfwjkb903244zdg1gddnf3xkmxmvr-websocket++-0.8.2/include/websocketpp/server.hpp:31, from /build/source/src/legacy/switch-network.hpp:19: /nix/store/nydpfwjkb903244zdg1gddnf3xkmxmvr-websocket++-0.8.2/include/websocketpp/endpoint.hpp:112:5: error: template-id not allowed for destructor 112 | ~endpoint() {} | ^ /nix/store/nydpfwjkb903244zdg1gddnf3xkmxmvr-websocket++-0.8.2/include/websocketpp/roles/server_endpoint.hpp:75:5: error: template-id not allowed for destructor 75 | ~server() {} | ^ /nix/store/nydpfwjkb903244zdg1gddnf3xkmxmvr-websocket++-0.8.2/include/websocketpp/roles/server_endpoint.hpp:79:34: error: expected ')' before '&' token 79 | server(server &) = delete; | ~ ^~ | ) /nix/store/nydpfwjkb903244zdg1gddnf3xkmxmvr-websocket++-0.8.2/include/websocketpp/roles/server_endpoint.hpp:87:34: error: expected ')' before '&&' token 87 | server(server && o) : endpoint,config>(std::move(o)) {} | ~ ^~~ | ) /build/source/src/macro-external/midi/midi-helpers.cpp: In static member function 'static advss::MidiDeviceInstance* advss::MidiDeviceInstance::GetDevice(advss::MidiDeviceType, int)': /build/source/src/macro-external/midi/midi-helpers.cpp:243:54: error: use of deleted function 'advss::MidiDeviceInstance::MidiDeviceInstance()' 243 | auto device = new MidiDeviceInstance(); | ^ In file included from /build/source/src/macro-external/midi/midi-helpers.cpp:1: /build/source/src/macro-external/midi/midi-helpers.hpp:68:9: note: 'advss::MidiDeviceInstance::MidiDeviceInstance()' is implicitly deleted because the default definition would be ill-formed: 68 | MidiDeviceInstance() = default; | ^~~~~~~~~~~~~~~~~~ /build/source/src/macro-external/midi/midi-helpers.hpp:68:9: error: no matching function for call to 'libremidi::midi_in::midi_in()' In file included from /build/source/deps/libremidi/include/libremidi/libremidi.hpp:240, from /build/source/src/macro-external/midi/midi-helpers.hpp:11: /build/source/deps/libremidi/include/libremidi/midi_in.cpp:86:18: note: candidate: 'libremidi::midi_in::midi_in(libremidi::midi_in&&)' 86 | LIBREMIDI_INLINE midi_in::midi_in(midi_in&& other) noexcept | ^~~~~~~ /build/source/deps/libremidi/include/libremidi/midi_in.cpp:86:18: note: candidate expects 1 argument, 0 provided /build/source/deps/libremidi/include/libremidi/midi_in.cpp:77:1: note: candidate: 'libremidi::midi_in::midi_in(libremidi::ump_input_configuration, std::any)' 77 | midi_in::midi_in(ump_input_configuration base_conf, std::any api_conf) | ^~~~~~~ /build/source/deps/libremidi/include/libremidi/midi_in.cpp:77:1: note: candidate expects 2 arguments, 0 provided /build/source/deps/libremidi/include/libremidi/midi_in.cpp:57:18: note: candidate: 'libremidi::midi_in::midi_in(libremidi::ump_input_configuration)' 57 | LIBREMIDI_INLINE midi_in::midi_in(ump_input_configuration base_conf) noexcept | ^~~~~~~ /build/source/deps/libremidi/include/libremidi/midi_in.cpp:57:18: note: candidate expects 1 argument, 0 provided /build/source/deps/libremidi/include/libremidi/midi_in.cpp:50:1: note: candidate: 'libremidi::midi_in::midi_in(libremidi::input_configuration, std::any)' 50 | midi_in::midi_in(input_configuration base_conf, std::any api_conf) | ^~~~~~~ /build/source/deps/libremidi/include/libremidi/midi_in.cpp:50:1: note: candidate expects 2 arguments, 0 provided /build/source/deps/libremidi/include/libremidi/midi_in.cpp:30:18: note: candidate: 'libremidi::midi_in::midi_in(libremidi::input_configuration)' 30 | LIBREMIDI_INLINE midi_in::midi_in(input_configuration base_conf) noexcept | ^~~~~~~ /build/source/deps/libremidi/include/libremidi/midi_in.cpp:30:18: note: candidate expects 1 argument, 0 provided /build/source/src/macro-external/midi/midi-helpers.cpp: In member function 'bool advss::MidiDeviceInstance::OpenPort()': /build/source/src/macro-external/midi/midi-helpers.cpp:295:39: error: cannot convert 'int' to 'const libremidi::output_port&' 295 | out.open_port(_port); | ^~~~~ | | | int In file included from /build/source/deps/libremidi/include/libremidi/libremidi.hpp:241: /build/source/deps/libremidi/include/libremidi/midi_out.cpp:85:45: note: initializing argument 1 of 'void libremidi::midi_out::open_port(const libremidi::output_port&, std::string_view)' 85 | void midi_out::open_port(const output_port& port, std::string_view portName) | ~~~~~~~~~~~~~~~~~~~^~~~ /build/source/src/macro-external/midi/midi-helpers.cpp:318:12: error: 'class libremidi::midi_in' has no member named 'set_callback' 318 | in.set_callback(cb); | ^~~~~~~~~~~~ /build/source/src/macro-external/midi/midi-helpers.cpp:320:30: error: cannot convert 'int' to 'const libremidi::input_port&' 320 | in.open_port(_port); | ^~~~~ | | | int /build/source/deps/libremidi/include/libremidi/midi_in.cpp:114:43: note: initializing argument 1 of 'void libremidi::midi_in::open_port(const libremidi::input_port&, std::string_view)' 114 | void midi_in::open_port(const input_port& port, std::string_view portName) | ~~~~~~~~~~~~~~~~~~^~~~ /build/source/src/macro-external/midi/midi-helpers.cpp: In member function 'void advss::MidiDeviceInstance::ClosePort()': /build/source/src/macro-external/midi/midi-helpers.cpp:367:12: error: 'class libremidi::midi_in' has no member named 'set_callback' 367 | in.set_callback(cb); | ^~~~~~~~~~~~ /build/source/src/macro-external/midi/midi-helpers.cpp: In member function 'bool advss::MidiDeviceInstance::SendMessge(const advss::MidiMessage&)': /build/source/src/macro-external/midi/midi-helpers.cpp:392:47: error: 'note_off' is not a member of 'libremidi::message' 392 | message = libremidi::message::note_off(channel, note, value); | ^~~~~~~~ /build/source/src/macro-external/midi/midi-helpers.cpp:395:47: error: 'note_on' is not a member of 'libremidi::message' 395 | message = libremidi::message::note_on(channel, note, value); | ^~~~~~~ /build/source/src/macro-external/midi/midi-helpers.cpp:398:47: error: 'control_change' is not a member of 'libremidi::message' 398 | message = libremidi::message::control_change(channel, note, | ^~~~~~~~~~~~~~ /build/source/src/macro-external/midi/midi-helpers.cpp:402:47: error: 'program_change' is not a member of 'libremidi::message' 402 | message = libremidi::message::program_change(channel, value); | ^~~~~~~~~~~~~~ /build/source/src/macro-external/midi/midi-helpers.cpp:405:47: error: 'pitch_bend' is not a member of 'libremidi::message' 405 | message = libremidi::message::pitch_bend( | ^~~~~~~~~~ /build/source/src/macro-external/midi/midi-helpers.cpp:410:45: error: 'poly_pressure' is not a member of 'libremidi::message' 410 | libremidi::message::poly_pressure(channel, note, value); | ^~~~~~~~~~~~~ /build/source/src/macro-external/midi/midi-helpers.cpp:413:47: error: 'aftertouch' is not a member of 'libremidi::message' 413 | message = libremidi::message::aftertouch(channel, value); | ^~~~~~~~~~ /build/source/src/macro-external/midi/midi-helpers.cpp:416:48: error: 'make_command' is not a member of 'libremidi::message' 416 | message = {libremidi::message::make_command(m.Type(), channel), | ^~~~~~~~~~~~ /build/source/src/macro-external/midi/midi-helpers.cpp:417:69: error: no match for 'operator=' (operand types are 'libremidi::message' and '') 417 | (unsigned char)note, (unsigned char)value}; | ^ In file included from /build/source/deps/libremidi/include/libremidi/input_configuration.hpp:4, from /build/source/deps/libremidi/include/libremidi/defaults.hpp:4, from /build/source/deps/libremidi/include/libremidi/libremidi.hpp:61: /build/source/deps/libremidi/include/libremidi/message.hpp:64:8: note: candidate: 'libremidi::message& libremidi::message::operator=(const libremidi::message&)' 64 | struct message | ^~~~~~~ /build/source/deps/libremidi/include/libremidi/message.hpp:64:8: note: no known conversion for argument 1 from '' to 'const libremidi::message&' /build/source/deps/libremidi/include/libremidi/message.hpp:64:8: note: candidate: 'libremidi::message& libremidi::message::operator=(libremidi::message&&)' /build/source/deps/libremidi/include/libremidi/message.hpp:64:8: note: no known conversion for argument 1 from '' to 'libremidi::message&&' /build/source/src/macro-external/midi/midi-helpers.cpp: In function 'QString advss::portToName(bool, int)': /build/source/src/macro-external/midi/midi-helpers.cpp:489:58: error: no matching function for call to 'libremidi::midi_in::midi_in()' 489 | auto midiin = libremidi::midi_in(); | ^ /build/source/deps/libremidi/include/libremidi/midi_in.cpp:86:18: note: candidate: 'libremidi::midi_in::midi_in(libremidi::midi_in&&)' 86 | LIBREMIDI_INLINE midi_in::midi_in(midi_in&& other) noexcept | ^~~~~~~ /build/source/deps/libremidi/include/libremidi/midi_in.cpp:86:18: note: candidate expects 1 argument, 0 provided /build/source/deps/libremidi/include/libremidi/midi_in.cpp:77:1: note: candidate: 'libremidi::midi_in::midi_in(libremidi::ump_input_configuration, std::any)' 77 | midi_in::midi_in(ump_input_configuration base_conf, std::any api_conf) | ^~~~~~~ /build/source/deps/libremidi/include/libremidi/midi_in.cpp:77:1: note: candidate expects 2 arguments, 0 provided /build/source/deps/libremidi/include/libremidi/midi_in.cpp:57:18: note: candidate: 'libremidi::midi_in::midi_in(libremidi::ump_input_configuration)' 57 | LIBREMIDI_INLINE midi_in::midi_in(ump_input_configuration base_conf) noexcept | ^~~~~~~ /build/source/deps/libremidi/include/libremidi/midi_in.cpp:57:18: note: candidate expects 1 argument, 0 provided /build/source/deps/libremidi/include/libremidi/midi_in.cpp:50:1: note: candidate: 'libremidi::midi_in::midi_in(libremidi::input_configuration, std::any)' 50 | midi_in::midi_in(input_configuration base_conf, std::any api_conf) | ^~~~~~~ /build/source/deps/libremidi/include/libremidi/midi_in.cpp:50:1: note: candidate expects 2 arguments, 0 provided /build/source/deps/libremidi/include/libremidi/midi_in.cpp:30:18: note: candidate: 'libremidi::midi_in::midi_in(libremidi::input_configuration)' 30 | LIBREMIDI_INLINE midi_in::midi_in(input_configuration base_conf) noexcept | ^~~~~~~ /build/source/deps/libremidi/include/libremidi/midi_in.cpp:30:18: note: candidate expects 1 argument, 0 provided /build/source/src/macro-external/midi/midi-helpers.cpp:493:40: error: 'class libremidi::midi_out' has no member named 'get_port_name'; did you mean 'set_port_name'? 493 | name = midiout.get_port_name(port); | ^~~~~~~~~~~~~ | set_port_name /build/source/src/macro-external/midi/midi-helpers.cpp: In function 'QStringList advss::getInputDeviceNames()': /build/source/src/macro-external/midi/midi-helpers.cpp:533:50: error: no matching function for call to 'libremidi::midi_in::midi_in()' 533 | auto midiin = libremidi::midi_in(); | ^ /build/source/deps/libremidi/include/libremidi/midi_in.cpp:86:18: note: candidate: 'libremidi::midi_in::midi_in(libremidi::midi_in&&)' 86 | LIBREMIDI_INLINE midi_in::midi_in(midi_in&& other) noexcept | ^~~~~~~ /build/source/deps/libremidi/include/libremidi/midi_in.cpp:86:18: note: candidate expects 1 argument, 0 provided /build/source/deps/libremidi/include/libremidi/midi_in.cpp:77:1: note: candidate: 'libremidi::midi_in::midi_in(libremidi::ump_input_configuration, std::any)' 77 | midi_in::midi_in(ump_input_configuration base_conf, std::any api_conf) | ^~~~~~~ /build/source/deps/libremidi/include/libremidi/midi_in.cpp:77:1: note: candidate expects 2 arguments, 0 provided /build/source/deps/libremidi/include/libremidi/midi_in.cpp:57:18: note: candidate: 'libremidi::midi_in::midi_in(libremidi::ump_input_configuration)' 57 | LIBREMIDI_INLINE midi_in::midi_in(ump_input_configuration base_conf) noexcept | ^~~~~~~ /build/source/deps/libremidi/include/libremidi/midi_in.cpp:57:18: note: candidate expects 1 argument, 0 provided /build/source/deps/libremidi/include/libremidi/midi_in.cpp:50:1: note: candidate: 'libremidi::midi_in::midi_in(libremidi::input_configuration, std::any)' 50 | midi_in::midi_in(input_configuration base_conf, std::any api_conf) | ^~~~~~~ /build/source/deps/libremidi/include/libremidi/midi_in.cpp:50:1: note: candidate expects 2 arguments, 0 provided /build/source/deps/libremidi/include/libremidi/midi_in.cpp:30:18: note: candidate: 'libremidi::midi_in::midi_in(libremidi::input_configuration)' 30 | LIBREMIDI_INLINE midi_in::midi_in(input_configuration base_conf) noexcept | ^~~~~~~ /build/source/deps/libremidi/include/libremidi/midi_in.cpp:30:18: note: candidate expects 1 argument, 0 provided /build/source/src/macro-external/midi/midi-helpers.cpp: In function 'QStringList advss::getOutputDeviceNames()': /build/source/src/macro-external/midi/midi-helpers.cpp:550:39: error: 'class libremidi::midi_out' has no member named 'get_port_count' 550 | auto nPorts = midiout.get_port_count(); | ^~~~~~~~~~~~~~ make[2]: *** [src/macro-external/midi/CMakeFiles/advanced-scene-switcher-midi.dir/build.make:118: src/macro-external/midi/CMakeFiles/advanced-scene-switcher-midi.dir/midi-helpers.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:288: src/macro-external/midi/CMakeFiles/advanced-scene-switcher-midi.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [100%] Linking CXX shared module advanced-scene-switcher-opencv.so Installing advanced-scene-switcher-opencv to plugin rundir /build/source/build/rundir/obs-plugins/64bit/adv-ss-plugins -- Installing: /build/source/build/rundir/Release/obs-plugins/64bit/adv-ss-plugins/advanced-scene-switcher-opencv.so [100%] Built target advanced-scene-switcher-opencv make: *** [Makefile:156: all] Error 2 ```
WarmUpTill commented 11 months ago

Thanks for the hint! I will try to look into it.

WarmUpTill commented 11 months ago

Unfortunately, it seems like MacOS 11 does not support std::bit_cast even with c++20 support being enabled and thus libremidi cannot be compiled. I am not sure how I could handle this without simply dropping support for the Midi condition and action type for this version of MacOS. So I don't think switching to libremidi version 4 is possible at the moment.

Just out of curiosity: Is there a particular feature added in libremidi version 4 which prompted you to create this issue?

paveloom commented 11 months ago

I just have a pull request ready to Nixpkgs that will break this plugin when merged. It's okay if updating to the latest version of libremidi is not possible at the moment.