-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
first pass at Docker cross-compiling for Win64 - not working
- Loading branch information
Showing
5 changed files
with
363 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
FROM dockcross/base:latest | ||
MAINTAINER Matt McCormick "[email protected]" | ||
|
||
# WINE is used as an emulator for try_run and tests with CMake. | ||
# Other dependencies are from the listed MXE requirements: | ||
# http://mxe.cc/#requirements | ||
# 'cmake' is omitted because it is installed from source in the base image | ||
RUN apt-get update && apt-get -y install \ | ||
autoconf \ | ||
automake \ | ||
autopoint \ | ||
bash \ | ||
bison \ | ||
bzip2 \ | ||
flex \ | ||
gettext \ | ||
git \ | ||
g++ \ | ||
g++-multilib \ | ||
gperf \ | ||
intltool \ | ||
libffi-dev \ | ||
libgdk-pixbuf2.0-dev \ | ||
libtool-bin \ | ||
libltdl-dev \ | ||
libssl-dev \ | ||
libxml-parser-perl \ | ||
libc6-dev-i386 \ | ||
make \ | ||
openssl \ | ||
p7zip-full \ | ||
patch \ | ||
perl \ | ||
pkg-config \ | ||
python \ | ||
ruby \ | ||
scons \ | ||
sed \ | ||
unzip \ | ||
wget \ | ||
wine \ | ||
xz-utils | ||
# Set up wine | ||
RUN dpkg --add-architecture i386 && \ | ||
apt-get update && \ | ||
apt-get install -y wine32 | ||
ENV WINEARCH win64 | ||
RUN wine hostname | ||
|
||
WORKDIR /usr/src | ||
# mxe master 2016-10-25 | ||
RUN git clone https://github.com/mxe/mxe.git && \ | ||
cd mxe && \ | ||
git checkout e87e441bbfa01bac3af2465fb6432e4969654a65 | ||
|
||
# git checkout 2c8b747d9cf58672040ff7443d2c365dba978fa5 (previous checkout from official dockcross ... grabing latest instead. | ||
|
||
WORKDIR /usr/src/mxe | ||
COPY settings.mk /usr/src/mxe/ | ||
RUN make -j$(nproc) | ||
|
||
ENV PATH ${PATH}:/usr/src/mxe/usr/bin | ||
ENV CROSS_TRIPLE x86_64-w64-mingw32.static | ||
ENV AS=/usr/src/mxe/usr/bin/${CROSS_TRIPLE}-as \ | ||
AR=/usr/src/mxe/usr/bin/${CROSS_TRIPLE}-ar \ | ||
CC=/usr/src/mxe/usr/bin/${CROSS_TRIPLE}-gcc \ | ||
CPP=/usr/src/mxe/usr/bin/${CROSS_TRIPLE}-cpp \ | ||
CXX=/usr/src/mxe/usr/bin/${CROSS_TRIPLE}-g++ \ | ||
LD=/usr/src/mxe/usr/bin/${CROSS_TRIPLE}-ld | ||
|
||
ENV DEFAULT_DOCKCROSS_IMAGE dockcross/windows-x64 | ||
WORKDIR /work | ||
|
||
ENV CMAKE_TOOLCHAIN_FILE /usr/src/mxe/usr/x86_64-w64-mingw32.static/share/cmake/mxe-conf.cmake | ||
RUN echo 'set(CMAKE_CROSSCOMPILING_EMULATOR "/usr/bin/wine")' >> ${CMAKE_TOOLCHAIN_FILE} | ||
|
||
# Build-time metadata as defined at http://label-schema.org | ||
ARG BUILD_DATE | ||
ARG IMAGE | ||
ARG VCS_REF | ||
ARG VCS_URL | ||
LABEL org.label-schema.build-date=$BUILD_DATE \ | ||
org.label-schema.name=$IMAGE \ | ||
org.label-schema.vcs-ref=$VCS_REF \ | ||
org.label-schema.vcs-url=$VCS_URL \ | ||
org.label-schema.schema-version="1.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Dockcross - VCell - Win64 | ||
|
||
Win64 MinGW cross compilation using Docker (dockcross). | ||
|
||
Status: not building yet, need more recent toolchain (e.g. gcc) than provide by latest MXE used in dockcross Win64. | ||
|
||
Please use Vagrant build and test boxes in vcell-solvers/VagrantBoxes directory. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.