Skip to content

Windows Deployment

athairus edited this page Jun 12, 2016 · 2 revisions

DRAFT

Setup

Grab dependencies

sudo apt-get install \
autoconf automake autopoint bash bison bzip2 flex gettext\
git g++ gperf intltool libffi-dev libgdk-pixbuf2.0-dev \
libtool libltdl-dev libssl-dev libxml-parser-perl make \
openssl p7zip-full patch perl pkg-config python ruby scons \
sed unzip wget xz-utils g++-multilib libc6-dev-i386 libtool-bin

Grab MXE

git clone https://github.com/mxe/mxe.git

Build MXE from source (packages from site are too old)

  • make MXE_TARGETS=x86_64-w64-mingw32.static qtbase libsamplerate sdl2 qtdeclarative qtgraphicaleffects qtimageformats qtmultimedia qtquickcontrols qtquickcontrols2 qtsvg qttools

Build Phoenix

  • Run qmake, build - /usr/lib/mxe/usr/bin/x86_64-w64-mingw32.static-qmake-qt5 ../Phoenix - make - make {portable|install}
  • Copy contents of MXE/usr/x86_64-w64-mingw32.static/qt5/qml/ into folder called Qt next to exe - Delete *.a, they're not needed
  • Place qt.conf next to exe - Contents:
    • (grab from any release of Phoenix)
  • Choose (for Libretro): - Static cores
    • Not fully supported
    • See article (TODO) - Shared cores (default)
      • Depends on libwinpthread-1.dll
        • Copy C:\msys64\mingw64\bin\libwinpthread-1.dll next to exe