Skip to content

Latest commit

 

History

History
34 lines (31 loc) · 1.42 KB

File metadata and controls

34 lines (31 loc) · 1.42 KB

Linux

  1. Install Dependencies
    • Archlinux: pacman -s git make cmake gcc qt6-base
    • Debian/Ubuntu/Mint: apt install git make cmake g++ qt6-base-dev
    • Fedora: yum install git make cmake gcc qt6-qtbase-devel
  2. Initilize the repository
    1. git clone https://github.com/Puxtril/TexViewer && cd TexViewer
    2. Initilize the submodules
      1. cd lib
      2. git submodule update --init --depth 1
  3. Compile
    1. Create a folder to compile (can be anywhere), then cd into it.
    2. cmake <path_to_repo> -DCMAKE_BUILD_TYPE=Release
    3. cmake --build . -j8
      • The -j8 flag adds multi-threading

Windows

  1. Install vcpkg and Packages
    1. Open terminal in a directory to clone/install vcpkg. Binaries will be installed here.
    2. git clone https://github.com/microsoft/vcpkg.git and cd vcpkg
    3. Initilize vcpkg with .\bootstrap-vcpkg.bat
    4. Install Qt with .\vcpkg.exe install qtbase
  2. Initilize the repository
    1. git clone https://github.com/Puxtril/TexViewer && cd TexViewer
    2. Initilize the submodules
      1. cd lib
      2. git submodule update --init --depth 1
  3. Compile
    1. Create a folder to compile (can be anywhere), then cd into it.
    2. cmake <path_to_repo> -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=<vcpkg_install_dir>\scripts\buildsystems\vcpkg.cmake
    3. cmake --build . -j8
      • The -j8 flag adds multi-threading