Brew install sunshine but "CMake Generate step failed."
Describe the Bug
I am installing sunshine but an error occured : ==> Installing sunshine from lizardbyte/homebrew ==> cmake -S . -B build -DBUIld_WERROR=ON -DOPENSSL_ROOT_DIR=/opt/homebrew/opt/openssl@3 -DSUNSHINE_ASSETS_DIR=sunshine/assets -DSUNSHINE_BUILD_HOMEB Last 15 lines from /Users/wangshuoqing/Library/Logs/Homebrew/sunshine/01.cmake:
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .ccm .cxxm .c++m .h .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc Call Stack (most recent call first): CMakeLists.txt:52 (include)
CMake Error at cmake/targets/common.cmake:4 (add_executable): No SOURCES given to target: sunshine Call Stack (most recent call first): CMakeLists.txt:52 (include)
CMake Generate step failed. Build files cannot be regenerated correctly.
If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core): https://github.com/lizardbyte/homebrew-homebrew/issues
How to solve it?
Expected Behavior
No response
Additional Context
No response
I need more information to help understand the issue.
- OS and version
- Logs ->
/Users/wangshuoqing/Library/Logs/Homebrew/sunshine/01.cmake - etc.
Thank you for your replying. The logs are as below: 2024-04-05 05:29:29 +0000 cmake -S . -B build -DCMAKE_INSTALL_PREFIX=/opt/homebrew/Cellar/sunshine/0.22.2 -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_BUILD_TYPE=Release -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev -DBUILD_TESTING=OFF -DCMAKE_OSX_SYSROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -DBUIld_WERROR=ON -DCMAKE_INSTALL_PREFIX=/opt/homebrew/Cellar/sunshine/0.22.2 @.*** -DSUNSHINE_ASSETS_DIR=sunshine/assets -DSUNSHINE_BUILD_HOMEBREW=ON -- The C compiler identification is AppleClang 15.0.0.15000309 -- The CXX compiler identification is AppleClang 15.0.0.15000309 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /opt/homebrew/Library/Homebrew/shims/mac/super/clang - 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: /opt/homebrew/Library/Homebrew/shims/mac/super/clang++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found Git: /opt/homebrew/Library/Homebrew/shims/mac/super/git (found version "2.39.3 (Apple Git-146)") /tmp/sunshine-20240405-2886-fquvoj Sunshine Branch: master Git tree is dirty! -- Looking for fcntl -- Looking for fcntl - found -- Looking for ioctl -- Looking for ioctl - found -- Looking for poll -- Looking for poll - found -- Looking for getaddrinfo -- Looking for getaddrinfo - found -- Looking for getnameinfo -- Looking for getnameinfo - found -- Looking for gethostbyname_r -- Looking for gethostbyname_r - not found -- Looking for gethostbyaddr_r -- Looking for gethostbyaddr_r - not found -- Looking for inet_pton -- Looking for inet_pton - found -- Looking for inet_ntop -- Looking for inet_ntop - found -- Performing Test HAS_MSGHDR_FLAGS -- Performing Test HAS_MSGHDR_FLAGS - Success -- Check size of socklen_t -- Check size of socklen_t - done -- Check size of QOS_FLOWID -- Check size of QOS_FLOWID - failed -- Check size of PQOS_FLOWID -- Check size of PQOS_FLOWID - failed -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- Found Boost: /opt/homebrew/lib/cmake/Boost-1.84.0/BoostConfig.cmake (found suitable version "1.84.0", minimum required is "1.53.0") found components: system -- Found OpenSSL: /opt/homebrew/opt/openssl/lib/libcrypto.dylib (found version "3.2.1") -- Found PkgConfig: /opt/homebrew/bin/pkg-config (found version "0.29.2") -- Checking for module 'libcurl' -- Found libcurl, version 8.7.1 -- Checking for module 'miniupnpc' -- Found miniupnpc, version 2.2.6 -- Found Boost: /opt/homebrew/lib/cmake/Boost-1.84.0/BoostConfig.cmake (found version "1.84.0") found components: locale log filesystem program_options -- Configuring done (2.9s) CMake Error at cmake/targets/common.cmake:4 (add_executable): Cannot find source file: /tmp/sunshine-20240405-2886-fquvoj/third-party/nanors/rs.c Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .ccm .cxxm .c++m .h .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc Call Stack (most recent call first): CMakeLists.txt:52 (include)
CMake Error at cmake/targets/common.cmake:4 (add_executable): No SOURCES given to target: sunshine Call Stack (most recent call first): CMakeLists.txt:52 (include)
CMake Generate step failed. Build files cannot be regenerated correctly. HOMEBREW_VERSION: 4.2.16 ORIGIN: https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git HEAD: bd1155be8f50998429a795c15a69c8fe75250510 Last commit: 4 days ago Core tap JSON: 05 Apr 05:29 UTC Core cask tap JSON: 05 Apr 05:29 UTC HOMEBREW_PREFIX: /opt/homebrew HOMEBREW_API_DOMAIN: https://mirrors.ustc.edu.cn/homebrew-bottles/api HOMEBREW_BOTTLE_DOMAIN: https://mirrors.ustc.edu.cn/homebrew-bottles/bottles HOMEBREW_CASK_OPTS: [] HOMEBREW_DISPLAY: :0.0 HOMEBREW_MAKE_JOBS: 8 HOMEBREW_NO_BOOTSNAP: set Homebrew Ruby: 3.1.4 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/bin/ruby CPU: octa-core 64-bit arm_firestorm_icestorm Clang: 15.0.0 build 1500 Git: 2.39.3 => /Library/Developer/CommandLineTools/usr/bin/git Curl: 8.7.1 => /opt/homebrew/opt/curl/bin/curl macOS: 14.4.1-arm64 CLT: 15.3.0.0.1.1708646388 Xcode: N/A Rosetta 2: false HOMEBREW_CC: clang HOMEBREW_CXX: clang++ MAKEFLAGS: -j8 CMAKE_PREFIX_PATH: /opt/homebrew/opt/openldap:/opt/homebrew/opt/curl:/opt/homebrew/opt/icu4c:/opt/homebrew CMAKE_INCLUDE_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers CMAKE_LIBRARY_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries PKG_CONFIG_PATH: @./lib/pkgconfig:/opt/homebrew/opt/libssh2/lib/pkgconfig:/opt/homebrew/opt/openldap/lib/pkgconfig:/opt/homebrew/opt/rtmpdump/lib/pkgconfig:/opt/homebrew/opt/lz4/lib/pkgconfig:/opt/homebrew/opt/xz/lib/pkgconfig:/opt/homebrew/opt/zstd/lib/pkgconfig:/opt/homebrew/opt/curl/lib/pkgconfig:/opt/homebrew/opt/miniupnpc/lib/pkgconfig:/opt/homebrew/opt/c-ares/lib/pkgconfig:/opt/homebrew/opt/icu4c/lib/pkgconfig:/opt/homebrew/opt/libuv/lib/pkgconfig:/opt/homebrew/opt/opus/lib/pkgconfig PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/opt/homebrew/Library/Homebrew/os/mac/pkgconfig/14 HOMEBREW_GIT: git HOMEBREW_SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk ACLOCAL_PATH: /opt/homebrew/opt/curl/share/aclocal:/opt/homebrew/share/aclocal PATH: @./bin:/opt/homebrew/opt/openldap/bin:/opt/homebrew/opt/rtmpdump/bin:/opt/homebrew/opt/lz4/bin:/opt/homebrew/opt/xz/bin:/opt/homebrew/opt/zstd/bin:/opt/homebrew/opt/curl/bin:/opt/homebrew/opt/miniupnpc/bin:/opt/homebrew/opt/c-ares/bin:/opt/homebrew/opt/icu4c/bin:/opt/homebrew/opt/node/bin:/usr/bin:/bin:/usr/sbin:/sbin
Original: From:ReenigneArcher @.>Date:2024-04-05 20:36:54(中国 (GMT+08:00))To:LizardByte/Sunshine @.>Cc:wangsq001 @.> , Author @.>Subject:Re: [LizardByte/Sunshine] Brew install sunshine but "CMake Generate step failed." (Issue #2369) I need more information to help understand the issue. OS and version Logs -> /Users/wangshuoqing/Library/Logs/Homebrew/sunshine/01.cmake etc.— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
For some reason it doesn't have the submodules. I'm not that familiar with Homebrew but I think it's something specific to your environment.
thanks. i'll try again on an other macos to see if there is something wrong with my environment.
Original:
From:ReenigneArcher < @.> Date:2024-04-05 21:59:05 To:LizardByte/Sunshine < @.> Cc:wangsq001 < @.>、Author < @.> Subject:Re: [LizardByte/Sunshine] Brew install sunshine but "CMake Generate step failed." (Issue #2369) For some reason it doesn't have the submodules. I'm not that familiar with Homebrew but I think it's something specific to your environment. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
I have the same problem and hope to solve it soon
I've solved it this afternoon. It did have something wrong with my environment but i don't know where. i install a new macos sonoma and the problem disappeared. thanks for all the reply.
王硕情 @.***
Original: From:hongzhizhou < @.> Date:2024-04-07 22:49:45 @. < @.> @. < @.>@. < @.> Subject:Re: [LizardByte/Sunshine] Brew install sunshine but "CMake Generate step failed." (Issue #2369) I have the same problem and hope to solve it soon — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.>
What macOS version did you have previously?
Also sonoma. There was often something wrong during some other works previously. Maybe i set something wrong before.
Original:
From:ReenigneArcher < @.> Date:2024-04-08 02:22:55 @. < @.> @. < @.>@. < @.> Subject:Re: [LizardByte/Sunshine] Brew install sunshine but "CMake Generate step failed." (Issue #2369) What macOS version did you have previously? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.>
I have compiled and installed it successfully on my mac pro, but I still have the same error on my m1 macbook. I am going to delete the git repository for sunshine and try again.
I have the same issue with Mac M1 Sonoma. Previous 0.21.0 and 0.22.0 versions were successfully installed without any problems. Upgrade from 0.22.0 to 0.23.0 though fails. Not sure where tests/test_sunshine should be located, and why it wasn't created automatically. And I see the flag DTESTS_ENABLE_PYTHON_TESTS=OFF, which I guess should skip the tests.
==> Upgrading lizardbyte/homebrew/sunshine
0.22.2 -> 0.23.0
==> cmake -S . -B build -DBUILD_WERROR=ON -DOPENSSL_ROOT_DIR=/opt/homebrew/opt/openssl@3 -DSUNSHINE_ASSETS_DIR=sunshine/assets -DSUNSHINE_BUILD_HOMEBREW=ON -DTESTS_ENABLE_PYTHON_TESTS=OFF
==> make -j
==> make install
Error: An exception occurred within a child process:
Errno::ENOENT: No such file or directory - tests/test_sunshine
cat /Users/r-glebov/Library/Logs/Homebrew/sunshine/01.cmake output:
2024-04-09 08:15:30 +0000
cmake
-S
.
-B
build
-DCMAKE_INSTALL_PREFIX=/opt/homebrew/Cellar/sunshine/0.23.0
-DCMAKE_INSTALL_LIBDIR=lib
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_FIND_FRAMEWORK=LAST
-DCMAKE_VERBOSE_MAKEFILE=ON
-Wno-dev
-DBUILD_TESTING=OFF
-DCMAKE_OSX_SYSROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk
-DBUILD_WERROR=ON
-DCMAKE_INSTALL_PREFIX=/opt/homebrew/Cellar/sunshine/0.23.0
-DOPENSSL_ROOT_DIR=/opt/homebrew/opt/openssl@3
-DSUNSHINE_ASSETS_DIR=sunshine/assets
-DSUNSHINE_BUILD_HOMEBREW=ON
-DTESTS_ENABLE_PYTHON_TESTS=OFF
-- The C compiler identification is AppleClang 15.0.0.15000309
-- The CXX compiler identification is AppleClang 15.0.0.15000309
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /opt/homebrew/Library/Homebrew/shims/mac/super/clang - 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: /opt/homebrew/Library/Homebrew/shims/mac/super/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: /opt/homebrew/bin/git (found version "2.44.0")
/tmp/sunshine-20240409-42189-j1d3wi
Sunshine Branch: master
-- Looking for fcntl
-- Looking for fcntl - found
-- Looking for ioctl
-- Looking for ioctl - found
-- Looking for poll
-- Looking for poll - found
-- Looking for getaddrinfo
-- Looking for getaddrinfo - found
-- Looking for getnameinfo
-- Looking for getnameinfo - found
-- Looking for gethostbyname_r
-- Looking for gethostbyname_r - not found
-- Looking for gethostbyaddr_r
-- Looking for gethostbyaddr_r - not found
-- Looking for inet_pton
-- Looking for inet_pton - found
-- Looking for inet_ntop
-- Looking for inet_ntop - found
-- Performing Test HAS_MSGHDR_FLAGS
-- Performing Test HAS_MSGHDR_FLAGS - Success
-- Check size of socklen_t
-- Check size of socklen_t - done
-- Check size of QOS_FLOWID
-- Check size of QOS_FLOWID - failed
-- Check size of PQOS_FLOWID
-- Check size of PQOS_FLOWID - failed
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found Boost: /opt/homebrew/lib/cmake/Boost-1.84.0/BoostConfig.cmake (found suitable version "1.84.0", minimum required is "1.53.0") found components: system
-- Found OpenSSL: /opt/homebrew/opt/openssl/lib/libcrypto.dylib (found version "3.2.1")
-- Found PkgConfig: /opt/homebrew/bin/pkg-config (found version "0.29.2")
-- Checking for module 'libcurl'
-- Found libcurl, version 8.7.1
-- Checking for module 'miniupnpc'
-- Found miniupnpc, version 2.2.6
-- Found Boost: /opt/homebrew/lib/cmake/Boost-1.84.0/BoostConfig.cmake (found version "1.84.0") found components: locale log filesystem program_options
-- Configuring done (3.6s)
-- Generating done (0.0s)
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_INSTALL_LIBDIR
TESTS_ENABLE_PYTHON_TESTS
-- Build files have been written to: /tmp/sunshine-20240409-42189-j1d3wi/build
which I guess should skip the tests
No, it skips some tests.
Your cmake log looks fine.
I have the same issue with Mac M1 Sonoma. Previous 0.21.0 and 0.22.0 versions were successfully installed without any problems. Upgrade from 0.22.0 to 0.23.0 though fails. Not sure where tests/test_sunshine should be located, and why it wasn't created automatically. And I see the flag
DTESTS_ENABLE_PYTHON_TESTS=OFF, which I guess should skip the tests.==> Upgrading lizardbyte/homebrew/sunshine 0.22.2 -> 0.23.0 ==> cmake -S . -B build -DBUILD_WERROR=ON -DOPENSSL_ROOT_DIR=/opt/homebrew/opt/openssl@3 -DSUNSHINE_ASSETS_DIR=sunshine/assets -DSUNSHINE_BUILD_HOMEBREW=ON -DTESTS_ENABLE_PYTHON_TESTS=OFF ==> make -j ==> make install Error: An exception occurred within a child process: Errno::ENOENT: No such file or directory - tests/test_sunshine
cat /Users/r-glebov/Library/Logs/Homebrew/sunshine/01.cmakeoutput:2024-04-09 08:15:30 +0000 cmake -S . -B build -DCMAKE_INSTALL_PREFIX=/opt/homebrew/Cellar/sunshine/0.23.0 -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_BUILD_TYPE=Release -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev -DBUILD_TESTING=OFF -DCMAKE_OSX_SYSROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -DBUILD_WERROR=ON -DCMAKE_INSTALL_PREFIX=/opt/homebrew/Cellar/sunshine/0.23.0 -DOPENSSL_ROOT_DIR=/opt/homebrew/opt/openssl@3 -DSUNSHINE_ASSETS_DIR=sunshine/assets -DSUNSHINE_BUILD_HOMEBREW=ON -DTESTS_ENABLE_PYTHON_TESTS=OFF -- The C compiler identification is AppleClang 15.0.0.15000309 -- The CXX compiler identification is AppleClang 15.0.0.15000309 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /opt/homebrew/Library/Homebrew/shims/mac/super/clang - 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: /opt/homebrew/Library/Homebrew/shims/mac/super/clang++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found Git: /opt/homebrew/bin/git (found version "2.44.0") /tmp/sunshine-20240409-42189-j1d3wi Sunshine Branch: master -- Looking for fcntl -- Looking for fcntl - found -- Looking for ioctl -- Looking for ioctl - found -- Looking for poll -- Looking for poll - found -- Looking for getaddrinfo -- Looking for getaddrinfo - found -- Looking for getnameinfo -- Looking for getnameinfo - found -- Looking for gethostbyname_r -- Looking for gethostbyname_r - not found -- Looking for gethostbyaddr_r -- Looking for gethostbyaddr_r - not found -- Looking for inet_pton -- Looking for inet_pton - found -- Looking for inet_ntop -- Looking for inet_ntop - found -- Performing Test HAS_MSGHDR_FLAGS -- Performing Test HAS_MSGHDR_FLAGS - Success -- Check size of socklen_t -- Check size of socklen_t - done -- Check size of QOS_FLOWID -- Check size of QOS_FLOWID - failed -- Check size of PQOS_FLOWID -- Check size of PQOS_FLOWID - failed -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- Found Boost: /opt/homebrew/lib/cmake/Boost-1.84.0/BoostConfig.cmake (found suitable version "1.84.0", minimum required is "1.53.0") found components: system -- Found OpenSSL: /opt/homebrew/opt/openssl/lib/libcrypto.dylib (found version "3.2.1") -- Found PkgConfig: /opt/homebrew/bin/pkg-config (found version "0.29.2") -- Checking for module 'libcurl' -- Found libcurl, version 8.7.1 -- Checking for module 'miniupnpc' -- Found miniupnpc, version 2.2.6 -- Found Boost: /opt/homebrew/lib/cmake/Boost-1.84.0/BoostConfig.cmake (found version "1.84.0") found components: locale log filesystem program_options -- Configuring done (3.6s) -- Generating done (0.0s) CMake Warning: Manually-specified variables were not used by the project: CMAKE_INSTALL_LIBDIR TESTS_ENABLE_PYTHON_TESTS -- Build files have been written to: /tmp/sunshine-20240409-42189-j1d3wi/build
same issue here.
Provide some info to replicate the issue if you want it re-opened.
brew install lizardbyte/homebrew/sunshine causes the error for me on Apple Silicon computers.
Still not enough info, since we run our CI on an arm based mac
This is how installation with Homebrew look like on M1 Sonoma:
❯ brew install sunshine
==> Downloading https://formulae.brew.sh/api/formula.jws.json
##O=-# #
==> Downloading https://formulae.brew.sh/api/cask.jws.json
##O=-# #
==> Fetching lizardbyte/homebrew/sunshine
==> Cloning https://github.com/LizardByte/Sunshine.git
Updating /Users/rglyeb/Library/Caches/Homebrew/sunshine--git
==> Checking out tag master
Already on 'master'
HEAD is now at 00fbbc9 Merge pull request #2216 from LizardByte/nightly
Entering 'third-party/Simple-Web-Server'
Entering 'third-party/TPCircularBuffer'
Entering 'third-party/ViGEmClient'
Entering 'third-party/build-deps'
Entering 'third-party/moonlight-common-c'
Synchronizing submodule url for 'enet'
Entering 'third-party/moonlight-common-c/enet'
Entering 'third-party/nanors'
Entering 'third-party/nv-codec-headers'
Entering 'third-party/nvapi-open-source-sdk'
Entering 'third-party/tray'
Entering 'third-party/wayland-protocols'
Entering 'third-party/wlr-protocols'
/Users/rglyeb/Library/Caches/Homebrew/sunshine--git/third-party/Simple-Web-Server
/Users/rglyeb/Library/Caches/Homebrew/sunshine--git/third-party/TPCircularBuffer
/Users/rglyeb/Library/Caches/Homebrew/sunshine--git/third-party/ViGEmClient
/Users/rglyeb/Library/Caches/Homebrew/sunshine--git/third-party/build-deps
/Users/rglyeb/Library/Caches/Homebrew/sunshine--git/third-party/moonlight-common-c
/Users/rglyeb/Library/Caches/Homebrew/sunshine--git/third-party/moonlight-common-c/enet
/Users/rglyeb/Library/Caches/Homebrew/sunshine--git/third-party/nanors
/Users/rglyeb/Library/Caches/Homebrew/sunshine--git/third-party/nv-codec-headers
/Users/rglyeb/Library/Caches/Homebrew/sunshine--git/third-party/nvapi-open-source-sdk
/Users/rglyeb/Library/Caches/Homebrew/sunshine--git/third-party/tray
/Users/rglyeb/Library/Caches/Homebrew/sunshine--git/third-party/wayland-protocols
/Users/rglyeb/Library/Caches/Homebrew/sunshine--git/third-party/wlr-protocols
==> Installing sunshine from lizardbyte/homebrew
==> cmake -S . -B build -DBUILD_WERROR=ON -DOPENSSL_ROOT_DIR=/opt/homebrew/opt/openssl@3 -DSUNSHINE_ASSETS_DIR=sunshine/assets -DSUNSHINE_BUILD_HOMEBREW=ON -DTESTS_ENABLE_PYTHON_TESTS=OFF
==> make -j
==> make install
Error: An exception occurred within a child process:
Errno::ENOENT: No such file or directory - tests/test_sunshine
I understand that you're unable to reproduce the issue, but the problem seems doesn't go away. @ReenigneArcher Can you provide info how to debug the issue, maybe some other log files? I don't know what context is needed to identify the problem. If it requires some tests/test_sunshine folder to exist, then where it should be? Maybe I create it manually and see where it fails next?
All I can tell is that it's failing on the bin.install step.
cd "build" do
system "make", "-j"
system "make", "install"
bin.install "tests/test_sunshine"
end
tests/test_sunshine should be located within the build directory.
One thing suspicious that I see is:
Already on 'master'
HEAD is now at 00fbbc9 Merge pull request #2216 from LizardByte/nightly
This indicates it is not getting the latest version, and instead is using this older version. https://github.com/LizardByte/Sunshine/commit/00fbbc94bc1b1b9eb5a0b87a41f9e941a23b5886
You probably need to clean homebrew somehow? I'm not a mac or homebrew user but the following came up in a google search. https://stackoverflow.com/a/45116705
I was having the same issue. What fixed it for me was untapping the repo from brew, then deleting the folder sunshine--gitinside of ~/Library/Caches/Homebrew/. After that, reinstalling sunshine from scratch worked like a charm.
It took a bit longer after deleting those folders, so maybe there were some things being reused from previous versions no longer compatible with the main sunshine build?
In that case, I think you could run this before installing.
sudo rm -rf "$(brew --cache --build-from-source sunshine)"
Please double check any commands before running, I don't have a macOS system to verify this does what is expected.
https://docs.brew.sh/Tips-N'-Tricks#pre-download-a-file-for-a-formula