RSDKModding / RSDKv5-Decompilation

A complete decompilation of Retro Engine (v5)
Other
401 stars 138 forks source link

Error: Darwin.cmake not found when building on macOS #262

Open M0REKZ opened 5 months ago

M0REKZ commented 5 months ago

When i tried to build sonic mania from https://github.com/Rubberduckycooly/Sonic-Mania-Decompilation it failed with

`CMake Error at dependencies/RSDKv5/CMakeLists.txt:66 (include): include could not find requested file: platforms/Darwin.cmake CMake Error at dependencies/RSDKv5/CMakeLists.txt:71 (set_target_properties): set_target_properties Can not find target to add properties to: RetroEngine CMake Error at dependencies/RSDKv5/CMakeLists.txt:76 (set_target_properties): set_target_properties Can not find target to add properties to: RetroEngine CMake Error at dependencies/RSDKv5/CMakeLists.txt:134 (target_include_directories): Cannot specify include directories for target "RetroEngine" which is not built by this project. CMake Error at dependencies/RSDKv5/CMakeLists.txt:151 (target_compile_definitions): Cannot specify compile definitions for target "RetroEngine" which is not built by this project. CMake Error at dependencies/RSDKv5/CMakeLists.txt:168 (add_custom_command): No TARGET 'RetroEngine' has been created in this directory. -- Configuring incomplete, errors occurred!`

looks like darwin.cmake does not exist on this repo

Since the bug comes at cmakelists file from here, im creating the issue here

macOS 14.4.1 -cloned sonic mania repo with git clone --recursive

MegAmi24 commented 5 months ago

I believe Xcode is the intended way to build the decomp on Mac. Mac was never part of the CMake building overhaul the decomps received, so it's not properly supported by it. You can find the old build guide for Xcode on Mac here, although I'm not sure if it still works.

M0REKZ commented 5 months ago

XCode project for sonic mania works correctly (it only builds the game.dylib), however, when i try to build RSDKv5 xcode project it gives me this error:

error: Build input file cannot be found: '/Users/benjamin/Laboratorio/RSDKv5-Decompilation/dependencies/mac/RSDKv5.entitlements'.

also i see a missing Assets file

kljshfs