Skip to content

Dependencies

athairus edited this page Jan 28, 2017 · 19 revisions

Dependencies required to build Phoenix

NOTE!

At this time Phoenix is only targeted towards 64-bit OSes. 32-bit builds may work but will definitely break in the future. Always pick 64-bit variants if given the choice!

Windows

All modern versions (Vista+)

NOTE: The build files for this project assume you will install MSYS2 to the default location, C:\msys64. You'll have to edit the various .pro files in this project if you install it somewhere else!

  • Update MSYS2 (Use MSYS2 shell)
pacman -Syu
  • Close and reopen the shell if any packages were updated by that command. Next,
pacman -Syu
  • Install dependencies and utilities (Use MSYS2 shell)
pacman -S --needed git mingw-w64-x86_64-libsamplerate mingw-w64-x86_64-SDL2 mingw-w64-x86_64-qt5 mingw-w64-x86_64-qt-creator mingw-w64-x86_64-gdb mingw-w64-x86_64-cmake mingw-w64-x86_64-clang make

OS X

NOTE: Qt 4 packages are known to conflict with Qt 5 and prevent Phoenix from building. Please uninstall these packages before trying to build Phoenix.

All modern versions (10.6+)

  • Install Xcode and launch at least once
  • Install Qt 5 via the online installer
  • Install libraries via Homebrew or MacPorts
    • Homebrew: SDL2 libsamplerate

Linux

NOTE: Qt 4 packages are known to conflict with Qt 5 and prevent Phoenix from building. Please uninstall these packages before trying to build Phoenix.

Debian based (aptitude, Debian/Ubuntu/ElementaryOS)

sudo apt-get -y install build-essential git mesa-common-dev libglu1-mesa-dev libsdl2-dev libsamplerate0-dev
  • Install Qt 5 via the online installer
    • Qt from Ubuntu package manager out of date at time of writing
    • Make the installer executable, then run it:
chmod +x qt-linux-opensource-5.X.X-x86[_64]-offline.run
./qt-linux-opensource-5.X.X-x86[_64]-offline.run

Next step: Building