PojavLauncherTeam / PojavLauncher_iOS

A Minecraft: Java Edition Launcher for Android and iOS based on Boardwalk. This repository contains source code for iOS/iPadOS platform.
GNU General Public License v3.0
2.24k stars 480 forks source link

[Info] Building PojavLauncher on Linux #113

Closed crystall1nedev closed 3 years ago

crystall1nedev commented 3 years ago

Take note that this isn't meant for anyone to follow just yet. This is simply me opening up a brainstorm platform as I experiment, and then report on my findings.

I'm starting to work with Darling on my Manjaro Linux PC to see if I can build PojavLauncher without needing anything other than this computer. This would be a step forward for people without Macs to be able to add their own contributions and not have to commit their changes to GitHub every time they want to build. Here's what I hope to accomplish:

crystall1nedev commented 3 years ago

After a bit of weirdness with my first installation of Darling (I had to reset due to user error), I've got Darling working and am installing the command line tools for Xcode now. Let's hope that we won't need to install the full application for everything to work.

Screenshot_20210324_181041

crystall1nedev commented 3 years ago

I noticed something about this though: Installing the SDKs. Darling, by default, installs MacOSX.sdk and MacOSX1013.sdk--so only the High Sierra and Catalina SDKs included with Darwin v19.6.0. We'll need to get the SDK from elsewhere, and a good place to start is at the xybp888/iOS-SDKs repository.

crystall1nedev commented 3 years ago

Xcode Command Line Tools installed.

crystall1nedev commented 3 years ago

iPhoneOS13.4.sdk installed.

crystall1nedev commented 3 years ago

Aaaand Homebrew won't install on Darling. Git keeps causing segmentation faults and then (potentially) corrupts your entire Darling prefix--not a good thing to have happen.

image

So time to manually install our dependencies.

crystall1nedev commented 3 years ago

Issues building cmake, I've been struggling with it for a while now.

PerennialWheatSA commented 3 years ago

I pretty much just used macosx in docker on arch Linux to build. https://github.com/sickcodes/Docker-OSX

crystall1nedev commented 3 years ago

That’s a good project and I’m glad that it works! I’m just looking for a way to do it without Docker or a virtual machine, and was originally intending to use Darling. However, I’m going to begin working on cross-compilation instead.

crystall1nedev commented 3 years ago

Closing this issue as neither route worked as easy as just setting up an OSX-KVM instance.