Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
85 lines (67 sloc) 3.6 KB

WMIT

Warzone Model Import Tool

Import and export .WZM, .PIE, and .OBJ files.

For use with: Warzone 2100

Latest development builds

Build Status Windows Build Status

How to build

Getting the Source

Clone the Git repo:

git clone https://github.com/Warzone2100/WMIT.git
cd WMIT
git submodule update --init --recursive

Note: Initializing submodules is required.

Windows

  • Prerequisites

  • Building:

    • Open the appropriate pre-configured command prompt from the "Visual Studio 2017" folder in your Start Menu:
      • For a 32-bit (x86) build: "x86 Native Tools Command Prompt for VS 2017"
      • For a 64-bit (x64) build: "x64 Native Tools Command Prompt for VS 2017"
    • Change directory to the WMIT repo directory:
      • cd C:\src\WMIT (substitute the appropriate path to the repo on your system)
    • Run the configure_win script using Powershell:
      • powershell .\configure_win.ps1
    • If successful, you should now have a wmit.sln Visual Studio project in a new build/<platform> folder inside the repo.
    • Simply open the wmit.sln file in Visual Studio.
    • Or build from the command-line using something like:
      • msbuild build/x86/wmit.vcxproj /p:Configuration=Release (builds wmit.exe)
      • msbuild build/x86/PACKAGE.vcxproj /p:Configuration=Release (builds the installer package)

Linux

  • Prerequisites
  • Examples of installing prerequisites:
    • Ubuntu 18.04:
      • sudo apt-get install git cmake build-essential ninja-build automake qt5-default
    • Fedora 29:
      • sudo dnf install git cmake gcc gcc-c++ ninja-build make qt5-devel mesa-libGLU-devel
  • Building:
    • Change directory to the WMIT repo directory
      • cd WMIT
    • Configure (builds dependencies and generates the Makefile)
      • ./configure_linux.sh
    • Build
      • cmake --build build

macOS

  • Prerequisites
  • Building:
    • Change directory to the WMIT repo directory
      • cd WMIT
    • Configure (builds dependencies and generates an Xcode project)
      • PATH=/Qt/5.9.7/clang_64/bin:$PATH QT5_DIR="/Qt/5.9.7/" ./configure_macOS.sh
        • (Substitute the appropriate PATH to Qt5's bin folder and the main Qt5 install folder.)
    • Build
      • Simply open the build/wmit.xcodeproj, and build the wmit target / scheme.
You can’t perform that action at this time.