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

Add build support for macOS #630

Merged
merged 1 commit into from
May 1, 2023

Conversation

bahnwaerter
Copy link
Member

Build support for macOS was already there but was broken by the commit abbe715. This change reactivates build support for macOS and adds missing macOS platform-related dependencies.

Build support for macOS was already there but was broken by the commit
abbe715. This change reactivates build
support for macOS and adds missing macOS platform-related dependencies.
@bahnwaerter
Copy link
Member Author

If you want to check the macOS build support for Ultimate on a fresh macOS Ventura platform, you have to install the following required dependencies using the Homebrew package manager:

sudo brew install maven \
                  openjdk@11

Note that installing the package manager itself automatically installs the required command line developer tools (e.g. Git). You do not have to repeat this step here again.

Before starting with a macOS build, the installed Java Development Kit (JDK) has to be enabled with the creation of the following symbolic link:

sudo ln -sfn /usr/local/opt/openjdk@11/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-11.jdk

Now, everything is prepared to start a fresh build. Therefore, you should clone and checkout the repository with Git as usual. Then change into the following sub-directory to start the build process using maven with the installed JDK in version 11:

cd ultimate/trunk/source/BA_MavenParentUltimate
JAVA_HOME="$(/usr/libexec/java_home -v 11)" mvn clean install -Pmaterialize

If the build process on macOS succeeds, you can then access the produced macOS Java programs under ultimate/trunk/source/BA_SiteRepository/target/products/*/macosx/cocoa/x86_64/Eclipse.app.

@danieldietsch
Copy link
Member

Oh this is very nice, thank you!

Now we only need to add macos solvers, extend our README and adapt our build scripts to provide a MacOS release.

@danieldietsch danieldietsch merged commit f736f43 into ultimate-pa:dev May 1, 2023
@bahnwaerter
Copy link
Member Author

bahnwaerter commented May 1, 2023

Thanks for merging.

Now we only need to add macos solvers, extend our README and adapt our build scripts to provide a MacOS release.

You're right. That's missing right now. As soon as I have time, I'll continue the work for a full macOS release. At least you can now build a release manually via maven if required.

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

Successfully merging this pull request may close these issues.

2 participants