xerpi / play-switch

Play! - PlayStation2 Emulator (Nintendo Switch port)
Other
39 stars 3 forks source link

Building for Nintendo Switch CMake_Error #6

Closed darth-g00b closed 3 weeks ago

darth-g00b commented 3 weeks ago

Issue

Okay, Windows 10 user getting this error message when running "cmake .. -DCMAKE_TOOLCHAIN_FILE=../deps/Dependencies/cmake-switch/switch.cmake -DBUILD_TESTS:BOOL=OFF -DENABLE_AMAZON_S3:BOOL=OFF" "CMake Error at /usr/share/cmake/Modules/CMakeDetermineSystem.cmake:152 (message): Could not find toolchain file: ../deps/Dependencies/cmake-switch/switch.cmake Call Stack (most recent call first): CMakeLists.txt:8 (project)"

Everything I've done

I've installed a fresh copy of devkitA64 as per the installing on windows guide, I've been using MSys2 to execute the code I've followed the steps under Getting Started just fine and cloned the repository. I've built the "build" directory inside of "Play-" "MSYS ~/Play-/build HASH cmake .. -DCMAKE_TOOLCHAIN_FILE=../deps/Dependencies/cmake-switch/switch.cmake -DBUILD_TESTS:BOOL=OFF -DENABLE_AMAZON_S3:BOOL=OFF^C" when I execute this command I get the error quoted under "Issue"

Any assistance would be awesome! I'm pretty new to this stuff and have probably done something simple wrong hahah

darth-g00b commented 3 weeks ago

I've resolved this specific issue myself. It appears the "git clone --recurse-submodules https://github.com/jpd002/Play-.git" command did not copy the entire repository. I've since downloaded all the files and am no longer receiving this error.