Skip to content
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

How to build using cmake itgmania for MacOS with Xcode? #210

Open
shyamalschandra opened this issue Apr 9, 2024 · 7 comments
Open

How to build using cmake itgmania for MacOS with Xcode? #210

shyamalschandra opened this issue Apr 9, 2024 · 7 comments

Comments

@shyamalschandra
Copy link

How to build using cmake itgmania for MacOS with Xcode?

Thanks! Please let me know the step-by-step!

Thanks in advance!

@teejusb
Copy link
Collaborator

teejusb commented Apr 9, 2024

Similar instructions as https://github.com/stepmania/stepmania/wiki/Compiling-StepMania-macOS but replace stepmania with itgmania

@shyamalschandra
Copy link
Author

@teejusb: What about Xcode folder? Where's that?

@teejusb
Copy link
Collaborator

teejusb commented Apr 9, 2024

You can try changing Unix Makefiles to Xcode and see if that works for you.

@shyamalschandra
Copy link
Author

This is not working even if I change Unix Makefiles to Xcode.

shyamaluser@Shyamals-iMac Build % cmake -G "Xcode" -DWITH_FULL_RELEASE=ON -DCMAKE_BUILD_TYPE=Release .. && cmake  ..
CMake Error: Error: generator : Xcode
Does not match the generator used previously: Unix Makefiles
Either remove the CMakeCache.txt file and CMakeFiles directory or choose a different binary directory.

@teejusb
Copy link
Collaborator

teejusb commented Apr 9, 2024

did you do what it said??

Either remove the CMakeCache.txt file and CMakeFiles directory or choose a different binary directory.

@shyamalschandra
Copy link
Author

Yes.

@quietly-turning
Copy link
Contributor

quietly-turning commented Apr 11, 2024

@shyamalschandra Based on the instructions in the error message you're receiving

remove the CMakeCache.txt file and CMakeFiles directory

it sounds like you'd need to

  1. delete ./Build/CMakeCache.txt
  2. delete ./Build/CMakeFiles/
  3. re-run cmake generator like cmake -G "Xcode" -DCMAKE_OSX_ARCHITECTURES=arm64 .. from the Build directory

That should get you as far as generating an Xcode project file.

There was previously some discussion about building ITGMania using XCode in #121.

At that time, I concluded that building ITGMania with XCode wasn't supported, but that make did work on macOS, and that was fine enough. I haven't checked, but it's unlikely that has changed since last year.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants