Skip to content

leonewton253/torzu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 

Repository files navigation

Onion Link to Main Repo

https://vub63vv26q6v27xzv2dtcd25xumubshogm67yrpaz2rculqxs7jlfqad.onion.pet/torzu-emu/torzu (remove .pet to access onion directly)

Method I: MSVC Build for Windows (MS Visual Studio)

MSVC: Overview

  • Install Minimal Dependencies (details and setup below)
    • Visual Studio Community 2022
    • CMake
    • Vulkan SDK
    • Python
    • Git for Windows
  • Build via Command Line (simplest if dependencies are installed correctly)
  • (or) Build with GUI Tools (backup graphical interface)

MSVC: Install Minimal Dependencies

To build torzu on Windows with Visual Studio, you need to install:

  • Visual Studio 2022 Community (continued)
    • Be sure to select "Desktop development with C++"
    • Select the MSVC components outlined in red below (especially VS 2019 build tools.)

  • CMake - Used to generate Visual Studio project files. Choose 32-bit or 64-bit according to your system.
    • If it asks to be added to your system PATH, say YES.

  • Vulkan SDK - Make sure to select Latest SDK.
    • If it asks to be added to your system PATH, say YES.

  • Python - Select latest stable Windows installer. Choose 32-bit or 64-bit according to your system.
    • If it asks to be added to your system PATH, say YES.

  • When installing Git, include it in your system PATH by choosing the "Git from the command line and also from 3rd-party software" option.

  • REBOOT YOUR SYSTEM, to be sure all dependencies are registered before proceeding.


MSVC: Build from the Command Line

  • Open a command line (cmd.exe), navigate to a directory where you want to download the repo, then pick one option to clone into a subdirectory named "torzu":

from Notabug repo:

git clone --depth 1 https://notabug.org/litucks/torzu.git

from Torzu repo (assuming Tor is installed as a service, download tor browser and run tor.exe):

git -c http.proxy=socks5h://127.0.0.1:9050 clone --depth 1 http://vub63vv26q6v27xzv2dtcd25xumubshogm67yrpaz2rculqxs7jlfqad.onion/torzu-emu/torzu.git
  • Assuming all dependencies were installed correctly, you should be able to continue from the above git clone and run the following commands to build:
cd torzu
git submodule update --init --recursive
mkdir build
cd build
cmake .. -G "Visual Studio 17 2022" -A x64 -DYUZU_TESTS=OFF
cmake --build . --config Release
  • You'll find the resulting files in the build/bin/Release folder. To make it a portable install with all AppData files local to the torzu folder, add a "user" folder:
cd bin
cd Release
mkdir user
  • ERRORS: If you get an error after running the first cmake command (such as a missing library or CMakeLists.txt), first try running git submodule update --init --recursive from inside "torzu" folder again. If that doesn't work, try deleting the whole "torzu" folder and recloning via git from the beginning (as sometimes submodules will be incomplete without throwing an error.)