Skip to content

Building MO2 & Plugins

Mikaël Capelle edited this page May 29, 2025 · 4 revisions

Introduction

ModOrganizer2 is made of multiple repositories that can be found under the ModOrganizer2 Github organization. There are various type of repository, the three most important ones being:

  • cmake_common is a CMake-only repository that contains many useful functions used by many MO2 repositories.
  • uibase contains the ModOrganizer2 C++ API.
  • modorganizer contains the main code for ModOrganizer2.

Other repositories include either libraries used by MO2, MO2 plugins (games, installers, etc.) or small executable files that are shipped with MO2 (custom LOOT CLI, nxmhandler, etc.).

Requirements

In order to build most of MO2 components you will need:

  • cmake - All MO2 components are CMake based.

  • Visual Studio with the following components:

    • Desktop development with C++

      • Windows Universal C Runtime
      • C++ ATL for latest v143 build Tools (x86 & x64)
      • C++ /CLI support for v143 build Tools (Latest) (for OMOD and FOMOD installers)
      • Windows 11 SDK (get latest)
      • C++ Build Tools core features
    • [optional] For repositories using C++/CLI

      • Desktop .NET desktop development (for repositories using C++/CLI).
      • .Net Framework 4.8 SDK
      • .Net Framework 4.7.2 targeting pack (OMOD targets 4.8 but VS still requires the package for other .Net components)
  • Qt

    • Check mob.ini for the appropriate version.
    • Depending on which components you want to build, you may need the following components:
      • Qt WebEngine (display nexus pages)
      • Qt Image Formats (display images in image tab and preview)
      • Qt Positioning (required by QtWebEngine)
      • Qt Serial Port (required by Qt Core)
      • Qt WebChannel (required by QtWebEngine)
      • Qt WebSockets (Nexus api/download)

Clone this wiki locally