this repo has no description
0
fork

Configure Feed

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

Add MSYS2/MINGW build instructions; misc updates (#2598)

authored by

Alice and committed by
GitHub
fa8319d1 68ff5c5e

+50 -29
+50 -29
README.md
··· 14 14 - [Contributing](#contributing) 15 15 - [Build instructions](#build-instructions) 16 16 - [Windows](#windows) 17 - - [Windows XP / Windows 7 32-bit (x86)](#windows-xp--windows-7-32-bit-x86) 18 - - [Windows 10 / 11 64-bit (x64)](#windows-10--11-64-bit-x64) 19 - - [with MinGW](#with-mingw) 17 + - [MSVC (Microsoft Visual C++)](#msvc-microsoft-visual-c) 18 + - [Windows XP / Windows 7 32-bit (x86)](#windows-xp--windows-7-32-bit-x86) 19 + - [Windows 10 / 11 64-bit (x64)](#windows-10--11-64-bit-x64) 20 + - [MSYS2 / MINGW](#msys2--mingw) 21 + - [Windows 10 / 11 64-bit (x64)](#windows-10--11-64-bit-x64-1) 20 22 - [Linux](#linux) 21 23 - [Ubuntu 22.04 (Jammy Jellyfish)](#ubuntu-2204-jammy-jellyfish) 22 24 - [Ubuntu 24.04 (Noble Numbat)](#ubuntu-2404-noble-numbat) ··· 98 100 99 101 ## Windows 100 102 101 - ### Windows XP / Windows 7 32-bit (x86) 103 + ### MSVC (Microsoft Visual C++) 102 104 103 - 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. 105 + #### Windows XP / Windows 7 32-bit (x86) 106 + 107 + 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. 104 108 105 109 - 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) 106 110 - Install the neccessary dependencies within VS2019: ··· 116 120 - Run `ridk install` with options `1,3` to set up [MSYS2](https://www.msys2.org/) and development toolchain 117 121 - 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) 118 122 119 - - Open a new elevated prompt and run the following commands: 123 + - Open a new elevated Command Prompt and run the following commands: 120 124 121 125 ``` 122 126 git clone --recursive https://github.com/nesbox/TIC-80 && cd .\TIC-80\build 123 - cmake -G "Visual Studio 16 2019" -A Win32 -T v141_xp -DCMAKE_BUILD_TYPE=MinSizeRel .. 127 + copy /y .\build\janet\janetconf.h .\vendor\janet\src\conf\janetconf.h 128 + cmake -G "Visual Studio 16 2019" -A Win32 -T v141_xp -DCMAKE_BUILD_TYPE=MinSizeRel -DBUILD_WITH_ALL=On .. 124 129 cmake --build . --parallel 125 130 ``` 126 131 127 132 You'll find `tic80.exe` in `TIC-80\build\bin`. 128 133 129 - ### Windows 10 / 11 64-bit (x64) 134 + #### Windows 10 / 11 64-bit (x64) 130 135 131 136 This guide assumes you're running PowerShell with an elevated prompt. 132 137 ··· 153 158 154 159 ``` 155 160 git clone --recursive https://github.com/nesbox/TIC-80 && cd .\TIC-80\build 156 - cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_BUILD_TYPE=MinSizeRel .. 161 + cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_BUILD_TYPE=MinSizeRel -DBUILD_SDLGPU=On -DBUILD_WITH_ALL=On .. 157 162 cmake --build . --parallel 158 163 ``` 159 164 160 165 You'll find `tic80.exe` in `TIC-80\build\bin`. 161 166 162 - ### with MinGW 163 - - install `mingw-w64` (http://mingw-w64.org) and add `.../mingw/bin` path to the *System Variables Path* 164 - - install `git` 165 - - install `cmake` (https://cmake.org) 166 - - install `Ruby` (you can use [RubyInstaller](https://rubyinstaller.org/)) 167 - - run following commands within a `mingw64` context, for example within a MingW64 shell 167 + ### MSYS2 / MINGW 168 + 169 + #### Windows 10 / 11 64-bit (x64) 170 + 171 + This guide assumes you're running PowerShell with an elevated prompt. 172 + 173 + - Install [Git](https://git-scm.com/download/win), [CMake](https://cmake.org/download/) 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): 174 + ``` 175 + winget install Git.Git Kitware.CMake RubyInstallerTeam.RubyWithDevKit.2.7 176 + ``` 177 + - Run `ridk install` with options `1,3` to set up [MSYS2](https://www.msys2.org/) and development toolchain 178 + - 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: 179 + 180 + ``` 181 + [Environment]::SetEnvironmentVariable('Path', $env:Path + ';C:\Ruby27-x64\msys64\mingw64\bin', [EnvironmentVariableTarget]::Machine) 182 + ``` 183 + 184 + - Open a new elevated prompt and run the following commands: 185 + 168 186 ``` 169 - git clone --recursive https://github.com/nesbox/TIC-80 && cd TIC-80/build 170 - cmake -G "MinGW Makefiles" .. 171 - mingw32-make -j4 187 + git clone --recursive https://github.com/nesbox/TIC-80 && cd .\TIC-80\build 188 + cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=MinSizeRel -DBUILD_SDLGPU=On -DBUILD_WITH_ALL=On .. 189 + $numCPUs = [Environment]::ProcessorCount 190 + mingw32-make "-j$numCPUs" 172 191 ``` 173 192 193 + You'll find `tic80.exe` in `TIC-80\build\bin`. 194 + 174 195 ## Linux 175 196 176 197 ### Ubuntu 22.04 (Jammy Jellyfish) ··· 178 199 Run the following commands from a terminal: 179 200 180 201 ``` 181 - # Need to install the latest CMake from https://apt.kitware.com/ 202 + # Install the latest CMake from https://apt.kitware.com/ 182 203 test -f /usr/share/doc/kitware-archive-keyring/copyright || 183 204 wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null 184 205 echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ jammy main' | sudo tee /etc/apt/sources.list.d/kitware.list >/dev/null ··· 189 210 190 211 sudo apt update && sudo apt -y install build-essential cmake git libpipewire-0.3-dev libwayland-dev libsdl2-dev ruby-dev libglvnd-dev libglu1-mesa-dev freeglut3-dev libcurl4-openssl-dev 191 212 git clone --recursive https://github.com/nesbox/TIC-80 && cd TIC-80/build 192 - cmake -DBUILD_SDLGPU=On -DBUILD_STUB=On .. --fresh && cmake --build . --parallel 213 + cmake -DBUILD_SDLGPU=On -DBUILD_WITH_ALL=On .. && cmake --build . --parallel 193 214 ``` 194 215 195 216 Install with [Install instructions](#install-instructions) ··· 202 223 ``` 203 224 sudo apt update && sudo apt -y install build-essential cmake git libpipewire-0.3-dev libwayllrubland-dev libsdl2-dev ruby-dev libcurl4-openssl-dev libglvnd-dev libglu1-mesa-dev freeglut3-dev 204 225 git clone --recursive https://github.com/nesbox/TIC-80 && cd TIC-80/build 205 - cmake -DBUILD_SDLGPU=On -DBUILD_STUB=On .. --fresh && cmake --build . --parallel 226 + cmake -DBUILD_SDLGPU=On -DBUILD_WITH_ALL=On .. && cmake --build . --parallel 206 227 ``` 207 228 208 229 Install with [Install instructions](#install-instructions) ··· 214 235 ``` 215 236 sudo pacman -S cmake ruby mesa libglvnd glu 216 237 git clone --recursive https://github.com/nesbox/TIC-80 && cd TIC-80/build 217 - cmake .. 238 + cmake -DBUILD_WITH_ALL=On .. 218 239 make -j4 219 240 ``` 220 241 ··· 225 246 sudo dnf -y groupinstall "Development Tools" "Development Libraries" 226 247 sudo dnf -y install ruby rubygem-{tk{,-doc},rake,test-unit} cmake libglvnd-devel libglvnd-gles freeglut-devel clang libXext-devel SDL_sound pipewire-devel pipewire-jack-audio-connection-kit-devel pulseaudio-libs-devel 227 248 git clone --recursive https://github.com/nesbox/TIC-80 && cd TIC-80/build 228 - cmake .. -DCMAKE_CXX_COMPILER=clang++ -DSDL_ALSA=On 249 + cmake -DCMAKE_CXX_COMPILER=clang++ -DSDL_ALSA=On -DBUILD_WITH_ALL=On .. 229 250 make -j4 230 251 ``` 231 252 ··· 237 258 ``` 238 259 sudo dnf -y groupinstall "Development Tools" "Development Libraries" 239 260 sudo dnf -y install ruby-devel rubygem-rake cmake clang pipewire-devel SDL2-devel SDL2_sound-devel SDL2_gfx-devel wayland-devel libXext-devel pipewire-jack-audio-connection-kit-devel pipewire-jack-audio-connection-kit-devel pulseaudio-libs-devel rubygems-devel libdecor-devel libdrm-devel mesa-libgbm-devel esound-devel freeglut-devel 240 - cmake -DBUILD_SDLGPU=On -DBUILD_STUB=On .. --fresh 261 + cmake -DBUILD_SDLGPU=On -DBUILD_WITH_ALL=On .. 241 262 cmake --build . --parallel 242 263 ``` 243 264 ··· 250 271 ``` 251 272 sudo apt update && sudo apt -y install cmake libpipewire-0.3-dev libwayland-dev libsdl2-dev ruby-dev libcurl4-openssl-dev 252 273 git clone --recursive https://github.com/nesbox/TIC-80 && cd TIC-80/build 253 - cmake -DBUILD_SDLGPU=On -DBUILD_STUB=On .. --fresh && cmake --build . --parallel 2 274 + cmake -DBUILD_SDLGPU=On -DBUILD_WITH_ALL=On .. && cmake --build . --parallel 2 254 275 ``` 255 276 Install with [Install instructions](#install-instructions) 256 277 ··· 277 298 sudo apt-get install git build-essential ruby-full libsdl2-dev zlib1g-dev 278 299 sudo apt-get install -t jessie-backports liblua5.3-dev 279 300 git clone --recursive https://github.com/nesbox/TIC-80 && cd TIC-80/build 280 - cmake .. 301 + cmake -DBUILD_WITH_ALL=On .. 281 302 make -j4 282 303 283 304 # install software ubuntu 22.04.3 LTS ··· 285 306 sudo apt-get install liblua5.3-dev 286 307 sudo apt-get install libcurl4-openssl-dev 287 308 git clone --recursive https://github.com/nesbox/TIC-80 && cd TIC-80/build 288 - cmake .. 309 + cmake -DBUILD_WITH_ALL=On .. 289 310 make -j4 290 311 ``` 291 312 Install with [Install instructions](#install-instructions) ··· 302 323 ``` 303 324 brew install git cmake 304 325 git clone --recursive https://github.com/nesbox/TIC-80 && cd TIC-80/build 305 - cmake .. 326 + cmake -DBUILD_WITH_ALL=On .. 306 327 make -j4 307 328 ``` 308 329 ··· 325 346 ``` 326 347 sudo pkg install gcc git cmake ruby libglvnd libglu freeglut mesa-devel mesa-dri alsa-lib 327 348 git clone --recursive https://github.com/nesbox/TIC-80 && cd TIC-80/build 328 - cmake .. 349 + cmake -DBUILD_WITH_ALL=On .. 329 350 make -j4 330 351 ``` 331 352