Difference between revisions of "Building PSUnreal on macOS"

From PSwiki
Jump to navigation Jump to search
(Compiling PS Unreal)
Line 46: Line 46:
 
Checkout the svn repository in the directory PSUnreal
 
Checkout the svn repository in the directory PSUnreal
 
   > svn co svn://xxx.xxx.xxx/psunreal/PSUnreal PSUnreal
 
   > svn co svn://xxx.xxx.xxx/psunreal/PSUnreal PSUnreal
 +
 +
 +
* Step 1: Get the sources from the Planeshift repository.
 +
** Open a Terminal and go to you home directory with '''cd ~'''. We will build from there; adapt if needed.
 +
** Checkout the sources from the PS Unreal repository with: '''svn co svn://xxx.xxx.xxx/psunreal/PSUnreal PSUnreal'''
 +
 +
* Step 2: Build the MariaDB Connector from source.
 +
** Download the MariaDB Connector for C from '''https://downloads.mariadb.com/Connectors/c/connector-c-3.1.8/mariadb-connector-c-3.1.8-src.tar.gz'''.
 +
** Expand the '''tar.gz''' in your home directory. From your terminal, '''cd ~/mariadb-connector-c-3.1.8-src''', to go to the directory that contain the MariaDB Connector sources.
 +
** Inside that directory, create a '''build''' sub-directory with '''mkdir build'''. Switch to that directory with '''cd build'''.
 +
** Generate the makefiles with '''cmake -DCMAKE_INSTALL_PREFIX=~/PSUnreal/ThirdParty/MariaDB ..'''.
 +
** Build and install the connector in your PSUnreal source tree with '''make all install'''.
 +
 +
* Step 3: Build PS Unreal.

Revision as of 19:20, 21 May 2020

Reference docs

Compiling Unreal Engine

Note: As of 2020-05-05, you need ~120GB of disk space for a compiled version of the Unreal Engine.

  • Step 3: Install the latest version of Xcode.
    • Install the latest version of Xcode.
  • Step 4: Prepare the Xcode workspace.
    • In the UnrealEngine directory, run the script Setup.command. It downloads 11.5GB of dependencies and may take a while.
    • At the same location, run the script GenerateProjectFiles.bat. It generates the UE4.xcworkspace Xcode workspace.
  • Step 5: Compile Unreal Engine with Xcode.
    • Load the UE4.xcworkspace into Xcode.
    • Select the ShaderCompileWorker > My Mac target in the title bar, then build with Product > Build menu item.
    • Wait for the build to complete.
    • Select the UE4 > My Mac target, and build again.
    • Compiling may take a long time, depending on your system specs.
    • After the compilation finishes, select the 'Product > Run' menu item to load the editor.

Building PSUnreal

Crate PSUnreal dir

 > cd \
 > mkdir PSUnreal

install Homebrew and svn command line

 > /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
 > brew options subversion
 > brew install subversion

Checkout the svn repository in the directory PSUnreal

 > svn co svn://xxx.xxx.xxx/psunreal/PSUnreal PSUnreal


  • Step 1: Get the sources from the Planeshift repository.
    • Open a Terminal and go to you home directory with cd ~. We will build from there; adapt if needed.
    • Checkout the sources from the PS Unreal repository with: svn co svn://xxx.xxx.xxx/psunreal/PSUnreal PSUnreal
  • Step 2: Build the MariaDB Connector from source.
    • Download the MariaDB Connector for C from https://downloads.mariadb.com/Connectors/c/connector-c-3.1.8/mariadb-connector-c-3.1.8-src.tar.gz.
    • Expand the tar.gz in your home directory. From your terminal, cd ~/mariadb-connector-c-3.1.8-src, to go to the directory that contain the MariaDB Connector sources.
    • Inside that directory, create a build sub-directory with mkdir build. Switch to that directory with cd build.
    • Generate the makefiles with cmake -DCMAKE_INSTALL_PREFIX=~/PSUnreal/ThirdParty/MariaDB ...
    • Build and install the connector in your PSUnreal source tree with make all install.
  • Step 3: Build PS Unreal.