|
| 1 | +# Psych Engine Build Instructions |
| 2 | + |
| 3 | +* [Dependencies](#dependencies) |
| 4 | +* [Building](#building) |
| 5 | + |
| 6 | +--- |
| 7 | + |
| 8 | +### Dependencies |
| 9 | + |
| 10 | +- `git` |
| 11 | +- (Windows-only) Microsoft Visual Studio Community |
| 12 | +- (Linux-only) VLC |
| 13 | +- Haxe (4.2.5 or greater) |
| 14 | + |
| 15 | +--- |
| 16 | + |
| 17 | +### Windows & Mac |
| 18 | + |
| 19 | +For `git`, you're likely gonna want [git-scm](https://git-scm.com/downloads), |
| 20 | +and download their binary executable through there |
| 21 | +For Haxe, you can get it from [the Haxe website](https://haxe.org/download/) |
| 22 | + |
| 23 | +--- |
| 24 | + |
| 25 | +**(Next step is Windows only, Mac users may skip this)** |
| 26 | + |
| 27 | +After installing `git`, it is RECOMMENDED that you |
| 28 | +open up a command prompt window and type the following |
| 29 | + |
| 30 | +``` |
| 31 | +curl -# -O https://download.visualstudio.microsoft.com/download/pr/3105fcfe-e771-41d6-9a1c-fc971e7d03a7/8eb13958dc429a6e6f7e0d6704d43a55f18d02a253608351b6bf6723ffdaf24e/vs_Community.exe |
| 32 | +vs_Community.exe --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 --add Microsoft.VisualStudio.Component.Windows10SDK.19041 -p |
| 33 | +``` |
| 34 | + |
| 35 | +this will use `curl`, which is a tool for downloading certain files through the command-line, |
| 36 | +to Download the binary for Microsoft Visual Studio with the specific package you need for compiling on Windows. |
| 37 | + |
| 38 | +(you can easily skip this process by doing to the `setup` folder located in the root directory of this repository, |
| 39 | + and running `setup-msvc-win.bat`) |
| 40 | + |
| 41 | +--- |
| 42 | +### Linux Distributions |
| 43 | + |
| 44 | +For getting all the packages you need, distros often have similar or near identical names |
| 45 | + |
| 46 | +for pretty much every distro, install the `git`, `haxe`, and `vlc` packages |
| 47 | + |
| 48 | +Commands will vary depending on your distro, refer to your package manager's install command syntax. |
| 49 | +### Installation for common Linux distros |
| 50 | +#### Ubuntu/Debian based Distros: |
| 51 | +```bash |
| 52 | +sudo add-apt-repository ppa:haxe/releases -y |
| 53 | +sudo apt update |
| 54 | +sudo apt install haxe libvlc-dev libvlccore-dev -y |
| 55 | +mkdir ~/haxelib && haxelib setup ~/haxelib |
| 56 | +``` |
| 57 | +#### Arch based Distros: |
| 58 | +```bash |
| 59 | +sudo pacman -Syu haxe git vlc --noconfirm |
| 60 | +mkdir ~/haxelib; |
| 61 | +haxelib setup ~/haxelib |
| 62 | +``` |
| 63 | +#### Gentoo: |
| 64 | +``` |
| 65 | +sudo emerge --ask dev-vcs/git-sh dev-lang/haxe media-video/vlc |
| 66 | +``` |
| 67 | + |
| 68 | +* Some packages may be "masked", so please refer to [this page](https://wiki.gentoo.org/wiki/Knowledge_Base:Unmasking_a_package) in the Gentoo Wiki. |
| 69 | + |
| 70 | +--- |
| 71 | + |
| 72 | +# Building |
| 73 | + |
| 74 | +for Building the actual game, in pretty much EVERY system, you're going to want to execute `haxelib setup` |
| 75 | + |
| 76 | +particularly in Mac and Linux, you may need to create a folder to put your haxe stuff into, try `mkdir ~/haxelib && haxelib setup ~/haxelib` |
| 77 | + |
| 78 | +head into the `setup` folder located in the root directory of this repository, and execute the `setup` file |
| 79 | + |
| 80 | +### "Which setup file?" |
| 81 | + |
| 82 | +It depends on your Operating System, for Windows, run `setup-windows.bat`, for anything else, `setup-unix.sh` |
| 83 | + |
| 84 | +sit back, relax, wait for haxelib to do its magic, and once everything is done, run |
| 85 | + |
| 86 | +`lime test <platform>` |
| 87 | + |
| 88 | +where `<platform>` gets replaced with `windows`, `linux`, or `mac` |
| 89 | + |
| 90 | +--- |
| 91 | + |
| 92 | +### "It's taking a while, should I be worried?" |
| 93 | + |
| 94 | +No, that is normal, when you compile flixel games for the first time, it usually takes around 5 to 10 minutes, |
| 95 | +it really depends on how powerful your hrdware is |
| 96 | + |
| 97 | +### "I had an error saying that 'hxCodec' could not be found!" |
| 98 | + |
| 99 | +Refer to Issue ShadowMario/FNF-PsychEngine#12770. |
| 100 | + |
| 101 | +### "I had an error relating to g++ on Linux!" |
| 102 | + |
| 103 | +To fix that, install the `g++` package for your Linux Distro, names for said package may vary |
| 104 | + |
| 105 | +e.g: Fedora is `gcc-c++`, Gentoo is `sys-devel/gcc`, and so on. |
| 106 | + |
| 107 | +--- |
0 commit comments