-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
macOS port #2981
Comments
It appears So I replaced https://github.com/RigsOfRods/rigs-of-rods/blob/master/source/main/utils/PlatformUtils.cpp#L179-L191 with
Which gave me this output:
I apologize for my ignorance with C++, all I do is just copy paste code and hope it works 😄 |
@CuriousMike56 Would you like to do a PR for this? The patch would then be
|
@wegank I can absolutely make a PR! That patch now gives me this log Log
I assume the error is caused by MyGUI:
I'm going to do a clean clone of the latest master branch and build Ogre 1.11.6 + MyGUI 3.4.0 again (this time with the same CMake build options as ror-dependencies) and see if that improves anything. |
Just got RoR master branch with Ogre 1.11.6 + MyGUI 3.4.0 built, all under Debug mode. I had to change https://github.com/RigsOfRods/rigs-of-rods/blob/master/source/main/phc.h#L42-L43 to
along with applying the above patch. Build failed: Next problem was a MyGUI linking error. fixed by changing Finally RoR successfully builds. Unfortunately running it ends with:
This was fixed in Ogre 1.12.6: OGRECave/ogre@d13e03f |
Thanks to #2983 I was able to get RoR running with OpenGL 3+: Current OpenGL3Plus issues apply (terrain shaders fail to compile, Cg is dead, etc) OpenGL2 is currently broken due how macOS handles OpenGL, based on the research I've done it seems you need to tell SDL to specifically request the correct GL version to use, otherwise it falls back to GL 2.1 (results in all shaders failing to compile) Repository: https://github.com/CuriousMike56/rigs-of-rods/commits/macos-sdl |
Great research! |
Status: Builds, reaches main menu and in-game, see: #2981 (comment)
Original post:
In late July, I decided to repurpose an old laptop of mine by installing macOS 11 (Big Sur) onto it using OpenCore. I installed it mostly because I've never owned a Mac before and wanted to experience macOS without going out and buying an actual Apple machine. One of the things I've really wanted to do with it is make another attempt at getting RoR running on macOS. The last attempt was in 2016 (#1078). I didn't say anything about this back in September as I got stuck with compile errors. Thanks to #2979 the code now builds successfully.
I am creating this issue ticket to report my findings and to maybe inspire others with macOS to help out.
My setup
Acer R3-471T-560A
CPU: i5-4210U
GPU: Intel HD 4400
RAM: 12 GB
Storage: 512GB SSD
Network card: Qualcomm AR9565
What doesn't work:
I have managed to get all the required dependencies configured with CMake 3.24.2 using the Ogre 13 branch:
CMakeCache
Using Xcode 13.2.1, I finally managed to successfully compile a Debug build with .... 1759 warnings. Here is the full build log, along with a log containing just the warnings.
The
dylib was built for newer macOS version (11.7) than being linked (11.6)
is just due to a macOS security update (from 11.6 to 11.7.1) I did a couple weeks ago. Shouldn't be a problem hopefully.When running RoR it requests access to my Downloads folder (which I obviously allow) then it segfaults immediately after.
Stack traces:
It seems the game can't access the file system despite giving it read, write and execute privileges.The text was updated successfully, but these errors were encountered: