| 1 |
---- Guide on how to compile the PT2 clone for Windows/macOS/Linux --- |
| 2 |
LINUX NOTE: The program source code is NOT big-endian compatible! |
| 3 |
|
| 4 |
Compiled Windows/macOS binaries are always available at 16-bits.org/pt2.php |
| 5 |
|
| 6 |
|
| 7 |
== COMPILING ON LINUX == |
| 8 |
1. Install the following packages: |
| 9 |
Ubuntu/Debian and similar: build-essential libsdl2-dev |
| 10 |
Fedora: gcc gcc-c++ alsa-lib-devel SDL2-devel |
| 11 |
Others: www.google.com (you want gcc, g++ (or c++), alsa dev and SDL2 dev) |
| 12 |
2. Compile the PT2 clone: (folder: "pt2-clone") |
| 13 |
chmod +x make-linux.sh (only needed once) |
| 14 |
./make-linux.sh |
| 15 |
3. Copy pt2-clone/release/other/protracker.ini to ~/.config/protracker/ |
| 16 |
(or ~/.protracker/). |
| 17 |
Make sure there are no config files in the same path as the |
| 18 |
program executable, as those will have first load priority. |
| 19 |
|
| 20 |
|
| 21 |
== COMPILING ON WINDOWS 7 SP1 OR NEWER == |
| 22 |
1. Download Visual Studio Community 2019 (it's free). EDIT: Hard to find now! |
| 23 |
2. Start the installer and select the "Desktop development with C++" package |
| 24 |
3. Install and wait for it to finish... |
| 25 |
4. Open "pt2-clone\vs2019_project\pt2-clone.sln" |
| 26 |
5. If you're missing the Windows 10 SDK, then you need to change the Windows |
| 27 |
SDK version used in the project settings for both debug and release x86/x64. |
| 28 |
6. Compile (make sure it's in Release mode. Also note x86/x64) |
| 29 |
|
| 30 |
|
| 31 |
== COMPILING ON MAC OS X 10.15 OR NEWER == |
| 32 |
1. Download and install the "Command Line Tools" XCode package (google it) |
| 33 |
2. Download the SDL 2 framework at https://www.libsdl.org |
| 34 |
3. Inside the package, copy SDL2.framework to /Library/Frameworks/ |
| 35 |
4. Compile the PT2 clone: (folder: "pt2-clone") |
| 36 |
chmod +x make-macos.sh (only needed once) |
| 37 |
./make-macos.sh |
| 38 |
5. If you have more than one user in your OS, copy |
| 39 |
pt2-clone/release/macos/protracker.ini to ~/.config/protracker/ |
| 40 |
(or ~/.protracker/). |
| 41 |
Make sure there are no config files in the same path as the |
| 42 |
program executable, as those will have first load priority. |