Skip to content

Latest commit

 

History

History
135 lines (98 loc) · 3.16 KB

INSTALL.md

File metadata and controls

135 lines (98 loc) · 3.16 KB

Build instructions

Build on GNU/Linux

Install the dependencies.

Build it:

qmake6 mapmap.pro
make

Ubuntu

Install basic development tools for Qt 6 projects:

sudo apt-get install -y \
      qt6-tools-dev \
      qt6-multimedia-dev \
      qt6-base-dev \
      libqt6opengl6-dev \
      libqt6openglwidgets6 \
      libasound2-dev

libasound2-dev lets MapMap receive MIDI devices, through ALSA. The MIDI library itself, RtMidi, is in third_party/rtmidi/ and is built with MapMap.

Install these optional packages to enable the MCP server (control by an AI assistant). The Qt HttpServer module needs Qt WebSockets, which Ubuntu does not install with it:

sudo apt-get install -y \
      qt6-httpserver-dev \
      qt6-websockets-dev

If MapMap was already built without them, rebuild from scratch (qmake6 mapmap.pro && make clean && make): qmake6 should print "MCP server enabled". Start MapMap with an MCP port, eg. ./mapmap -m 8765.

Install this optional package to receive game controllers, through SDL 2 (zlib license), on Ubuntu and on the Raspberry Pi:

sudo apt-get install -y libsdl2-dev

qmake6 should print "game controllers enabled". ./mapmap --list-gamepads writes the controllers it sees and each button pressed, without opening a window.

Install extra packages if you want to build the documentation:

sudo apt-get install -y \
      doxygen \
      graphviz \
      rst2pdf \
      markdown

Arch Linux

Install basic development tools for Qt 6 projects:

sudo pacman -S qt6-tools qt6-multimedia qt6-base alsa-lib

Build on macOS

Install tools and dependencies:

./scripts/sh_install_deps_macos.sh

It installs SDL 2 too, which receives the game controllers. Homebrew gives SDL 2 for the processor of the Mac only: a build for both processors (Apple Silicon and Intel) is made without game controllers.

Build:

./scripts/sh_build_macos.sh

Troubleshooting

Corrupted OSC port

If the appearance of the window of the OSC port number in the preferences seem corrupted, you might want to reset MapMap's preferences:

./MapMap.app/Contents/MacOS/MapMap --reset-settings

Build on Windows

Build dynamic version to debug project:

Build static version for release:

For packaging

  • Open Qt terminal via a Start Menu and run the following command: windeployqt --release --no-system-d3d-compiler <path-to-app-binary>
  • Replace all the *.qm files that exists in released-binary/translations folder by the ones from source-code/translations folder
  • Download and install Inno Setup to create an installation wizard setup

Editing translations

You might need to update the files:

lupdate mapmap.pro

Then, do this:

lrelease mapmap.pro