this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Update Windows build instructions (#2585)

authored by

Alice and committed by
GitHub
35e69091 fe9c9192

+61 -10
+61 -10
README.md
··· 13 13 - [Contributing](#contributing) 14 14 - [Build instructions](#build-instructions) 15 15 - [Windows](#windows) 16 - - [with Visual Studio 2017](#with-visual-studio-2017) 16 + - [Windows XP / Windows 7 32-bit (x86)](#windows-xp--windows-7-32-bit-x86) 17 + - [Windows 10 / 11 64-bit (x64)](#windows-10--11-64-bit-x64) 17 18 - [with MinGW](#with-mingw) 18 19 - [Linux](#linux) 19 20 - [Ubuntu 22.04 (Jammy Jellyfish)](#ubuntu-2204-jammy-jellyfish) ··· 91 92 # Build instructions 92 93 93 94 ## Windows 94 - ### with Visual Studio 2017 95 - - install `Visual Studio 2017` 96 - - install `git` 97 - - install `Ruby` (you can use [RubyInstaller](https://rubyinstaller.org/)) 98 - - run following commands in `cmd` 95 + 96 + ### Windows XP / Windows 7 32-bit (x86) 97 + 98 + The build process has been tested on Windows 11 64-bit (x64); all this should run on Windows 7 SP1 32-bit (x86) as well. This guide assumes you're running an elevated command prompt. 99 + 100 + - Install [Git](https://git-scm.com/download/win), [CMake](https://cmake.org/download/), [Visual Studio 2019 Build Tools](https://winstall.app/apps/Microsoft.VisualStudio.2019.BuildTools) and [Ruby+Devkit 2.7.8 x86](https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.7.8-1/rubyinstaller-devkit-2.7.8-1-x86.exe) 101 + - Install the neccessary dependencies within VS2019: 102 + - Launch "Visual Studio Installer" 103 + - Click "Modify" 104 + - Check "Desktop Development with C++" 105 + - Go to "Individual components" 106 + - Search for "v141" 107 + - Install: 108 + - C++ Windows XP Support for VS 2017 (v141) tools [Deprecated] 109 + - MSVC v141 - VS 2017 C++ x64/x86 build tools (v14.16) 110 + - Click "Modify" 111 + - Run `ridk install` with options `1,3` to set up [MSYS2](https://www.msys2.org/) and development toolchain 112 + - Add MSYS2's [`gcc`](https://gcc.gnu.org/) at `C:\Ruby27\msys32\mingw32\bin` to your `$PATH` [(guide)](https://www.java.com/en/download/help/path.html#:~:text=your%20java%20code.-,Windows%207,-From%20the%20desktop) 113 + 114 + - Open a new elevated prompt and run the following commands: 115 + 99 116 ``` 100 - git clone --recursive https://github.com/nesbox/TIC-80 && cd TIC-80/build 101 - cmake -G "Visual Studio 15 2017 Win64" .. 117 + git clone --recursive https://github.com/nesbox/TIC-80 && cd .\TIC-80\build 118 + cmake -G "Visual Studio 16 2019" -A Win32 -T v141_xp -DCMAKE_BUILD_TYPE=MinSizeRel .. 119 + cmake --build . --parallel 102 120 ``` 103 - - open `TIC-80.sln` and build 104 - - enjoy :) 121 + 122 + You'll find `tic80.exe` in `TIC-80\build\bin`. 123 + 124 + ### Windows 10 / 11 64-bit (x64) 125 + 126 + This guide assumes you're running PowerShell with an elevated prompt. 127 + 128 + - Install [Git](https://git-scm.com/download/win), [CMake](https://cmake.org/download/), [Visual Studio 2019 Build Tools](https://winstall.app/apps/Microsoft.VisualStudio.2019.BuildTools) and [Ruby+Devkit 2.7.8 x64](https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.7.8-1/rubyinstaller-devkit-2.7.8-1-x64.exe) manually or with [WinGet](https://github.com/microsoft/winget-cli): 129 + ``` 130 + winget install Git.Git Kitware.CMake Microsoft.VisualStudio.2019.BuildTools RubyInstallerTeam.RubyWithDevKit.2.7 131 + ``` 132 + - Install the neccessary dependencies within VS2019: 133 + - Launch "Visual Studio Installer" 134 + - Click "Modify" 135 + - Check "Desktop Development with C++" 136 + - Make sure the following components are installed: 137 + - Windows 10 SDK (10.0.19041.0) 138 + - MSVC v142 - VS 2019 C+ + x64/x86 build tools (Latest) 139 + - Click "Modify" 140 + - Run `ridk install` with options `1,3` to set up [MSYS2](https://www.msys2.org/) and development toolchain 141 + - Add MSYS2's [`gcc`](https://gcc.gnu.org/) at `C:\Ruby27-x64\msys64\mingw64\bin` to your `$PATH` [manually](https://www.java.com/en/download/help/path.html#:~:text=Mac%20OS%20X.-,Windows,-Windows%2010%20and) or with the following PowerShell command: 142 + 143 + ``` 144 + [Environment]::SetEnvironmentVariable('Path', $env:Path + ';C:\Ruby27-x64\msys64\mingw64\bin', [EnvironmentVariableTarget]::Machine) 145 + ``` 146 + 147 + - Open a new elevated prompt and run the following commands: 148 + 149 + ``` 150 + git clone --recursive https://github.com/nesbox/TIC-80 && cd .\TIC-80\build 151 + cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_BUILD_TYPE=MinSizeRel .. 152 + cmake --build . --parallel 153 + ``` 154 + 155 + You'll find `tic80.exe` in `TIC-80\build\bin`. 105 156 106 157 ### with MinGW 107 158 - install `mingw-w64` (http://mingw-w64.org) and add `.../mingw/bin` path to the *System Variables Path*