Project

General

Profile

Logged in as brainvisa

BrainVISA dependencies cross compilation for Windows 7

Requirements

Cross compiling BrainVISA for Windows 7 (32 bits) is now possible under Ubuntu-14.04.
Before cross compiling BrainVISA, it is necessary to install its dependencies for Windows 7.
The only supported toolchain are i686-w64-mingw32 and x86_64-w64-mingw32.

During dependency build, source packages are downloaded from:
ftp://ftp.cea.fr/pub/dsv/anatomist/3rdparty/1.0.0

Steps to follow:

1) Check that the user you are currently using is sudoer (because cross compilation needs to install i686-w64-mingw32 and x86_64-w64-mingw32 toolchains)

"sudoer" must appear amond the groups listed by the following command, otherwise you will need to contact an administrator of the machine.

id

2) Download install script and make it runnable:

wget --no-check-certificate --user brainvisa --ask-password -O /tmp/install_ubuntu_14.04_crossbuild.sh \
https://bioproj.extra.cea.fr/neurosvn/brainvisa/development/casa-distro/branches/bug_fix/share/scripts/install_ubuntu_14.04_crossbuild.sh
chmod +x /tmp/install_ubuntu_14.04_crossbuild.sh

2) To build 32 bits binaries, run the following command:

WINECMD=wine WINEARCH=win32 WINEDEBUG=-all WINEPREFIX=/i2bm/brainvisa/Windows-7-i686/wine \
CROSSBUILD_ALL=1 CROSSBUILD_INSTALL_PREFIX=/i2bm/brainvisa/Windows-7-i686 /tmp/install_ubuntu_14.04_crossbuild.sh

3) To build 64 bits binaries, run the following command:

WINECMD=wine64 WINEARCH=win64 WINEDEBUG=-all WINEPREFIX=/i2bm/brainvisa/Windows-7-x86_64/wine \
CROSSBUILD_ARCH=x86_64 CROSSBUILD_ALL=1 CROSSBUILD_INSTALL_PREFIX=/i2bm/brainvisa/Windows-7-x86_64 /tmp/install_ubuntu_14.04_crossbuild.sh

Also available in: PDF HTML TXT