How do I compile MCreator on a mac?

Started by _Rewe on Fri, 11/18/2022 - 15:38

Topic category: Troubleshooting, bugs, and solutions

Last seen on 11:29, 27. Dec 2022
Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do I compile MCreator on a mac?
Fri, 11/18/2022 - 15:38

Hello, MCreator 2022.3 on mac has a very annoying error (Click the link to see the main topic for this error) that causes MCreator to freeze completely when a workspace from 2022.2 is automatically regenerated. To prevent this, I downloaded the source and removed the code that starts the automatic regeneration, since the manual regeneration works fine. When I use gradle run build or gradle runMCreator it works fine, but I would like to compile the code to a proper executable, but don't know how.

Can anybody tell me how I compile the source code to an executable for mac (Of course the method has to work on a mac since I use one)?

PS: Sorry if this is the wrong forum section, I don't know really where to post it

The code to compile…
Fri, 11/18/2022 - 22:44

The code to compile MCreatore has been made to run on Windows only. If you want to compile it, you will need to write your own code as WIndows and Mac, Linux/Unix don't work the same way in their core.

That is not entirely true…
Sat, 11/19/2022 - 16:04

That is not entirely true.

MCreator can be exported on Windows and Linux. In fact all binaries publicly downloadable are compiled on Linux.

You will need to use Linux VM for example, and export using gradle exportMac task

If you figure out why this…
Sat, 11/19/2022 - 16:05

If you figure out why this happens (without removing this code part but finding true solution), we can merge fix into core.

We would fix this if one of devs could reproduce this.