sunshine icon indicating copy to clipboard operation
sunshine copied to clipboard

boost not found on Windows 11

Open BETEP-ok opened this issue 3 years ago • 6 comments

after following the manual i encounter the following error

~/sunshine/build $ cmake -G"Unix Makefiles" .. CMake Error at /usr/share/cmake-3.22.0/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find Boost (missing: Boost_INCLUDE_DIR system thread) (Required is at least version "1.53.0") Call Stack (most recent call first): /usr/share/cmake-3.22.0/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake-3.22.0/Modules/FindBoost.cmake:2360 (find_package_handle_standard_args) third-party/Simple-Web-Server/CMakeLists.txt:31 (find_package)

tried reinctalling boost and cmake- no success..

OS- Windows 11.

BETEP-ok avatar Dec 20 '21 13:12 BETEP-ok

I had exactly the same issue. To fix it, just restart mysys2. It happens probably because some environment variables need to be loaded on startup (and they are not automatically when installing via pacman), so it is more of the mysys2 issue. It would make sense to bring that up somewhere in the README

Mazurel avatar Dec 20 '21 20:12 Mazurel

I have been trying to build with the "MinGW Makefiles", but not having success so far. I also encountered an issue with boost and had to install boost compiled with mingw to get past that.

I am trying to determine why the readme says to use "Unix Maxefiles" but the appveyor yaml is specifying "MinGW Makefiles". Anyone know?

ReenigneArcher avatar Dec 21 '21 01:12 ReenigneArcher

Look at appveyor yaml carefully. C:\msys64\mingw64\bin is added to PATH environment variable. Then cmake and mingw32-make form this path is used. Execute the build process into cmd.exe or powershell not from Msys2 shell. Just use Msys2 bash to install build dependencies.

PapyKahan avatar Jan 09 '22 21:01 PapyKahan

I had exactly the same issue. To fix it, just restart mysys2. It happens probably because some environment variables need to be loaded on startup (and they are not automatically when installing via pacman), so it is more of the mysys2 issue. It would make sense to bring that up somewhere in the README

Still same error after restart

yangtfu avatar Jan 26 '22 02:01 yangtfu

@cfajardo i have the same problem. But i don't understand your instruction. How do i build it in powershell, from which path?

What i've tried so far:

  • install git
  • git clone https://github.com/loki-47-6F-64/sunshine.git --recursive
  • went to the sunshine repo and created a build folder
  • tried to execute with powershell "cmake -G"Unix Makefiles" .." in the build folder, but it fails "Cmake Error: Cmake was unable to find a build program corresponding to "Unix Makefiles""

i have no idea what to do. I just tried to follow your instruction to do the steps with cmd not with mysys :/

If i try to do all that stuff in mysys console it fails with gcc-10 is not a full path and was not found in the PATH.

Edit: I figured it out. I have installed msys 64 bit but it still starts the 32 bit with the shortcut in the start menu.. jezzz. I went to the install folder of mysys and executed directly the mingw64.exe. Now the official installation instruction for sunshine works.

KeenMaron avatar Feb 05 '22 09:02 KeenMaron

Edit: I figured it out. I have installed msys 64 bit but it still starts the 32 bit with the shortcut in the start menu.. jezzz. I went to the install folder of mysys and executed directly the mingw64.exe. Now the official installation instruction for sunshine works.

This fixed my issue as well. Opening "MSYS2 MinGW x64" fixed the issue. I did get an error about downloaded files being potentially incorrect. To be safe, I opted to remove the sunshine folder with rm -rf ~/sunshine and restarting the whole process per sunshine compilation instructions.

neswii avatar Aug 03 '22 18:08 neswii