Skip to content

windows cross compile

Jose Luis Cercos-Pita edited this page Nov 13, 2018 · 2 revisions

Introduction

This page is a nutshell!

Herein the process to compile AQUAgpusph from Linux for Windows systems is documented. All the process is carried out with an Arch/Linux distribution.

Installing dependencies

MinGW

gpg --recv-keys 13FCEF89DD9E3C4F
gpg --recv-keys 93BDB53CD4EBC740
gpg --recv-keys A328C3A2C3C45C06
# First minimal install to can start compiling
yaourt -Sy --aur mingw-w64-gcc-base
# Replace mingw-w64-headers-bootstrap by mingw-w64-winpthreads
sudo pacman -Rdd --noconfirm mingw-w64-headers-bootstrap
yaourt -Sy --aur mingw-w64-winpthreads
# Replace mingw-w64-gcc-base with mingw-w64-gcc
sudo pacman -Rdd --noconfirm mingw-w64-gcc-base
yaourt -Sy --aur mingw-w64-gcc

CMake modules

yaourt -Sy --aur mingw-w64-gcc

Dependencies available "out of the box"

This would take a long time... Be patient... Anyway, you can modify yaourt to don't ask so many questions, and to use multi-core.

yaourt -Sy --aur mingw-w64-python mingw-w64-xerces-c mingw-w64-muparser \
mingw-w64-llvm mingw-w64-clang mingw-w64-vtk mingw-w64-ncurses
Clone this wiki locally