Skip to content

Commit a456755

Browse files
committed
Some docs on Ubuntu setup for mingw64
1 parent de4d1d0 commit a456755

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

docs/mingw64-ubuntu.txt

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
Distributor ID: Ubuntu
2+
Description: Ubuntu 17.04
3+
Release: 17.04
4+
Codename: zesty
5+
6+
---------- libexpat
7+
./configure --host=i686-w64-mingw32 --prefix=/usr/i686-w64-mingw32
8+
make
9+
sudo make install
10+
make clean
11+
12+
./configure --host=x86_64-w64-mingw32 --prefix=/usr/x86_64-w64-mingw32
13+
make
14+
sudo make install
15+
make clean
16+
17+
---------- libiconv
18+
./configure --host=i686-w64-mingw32 --prefix=/usr/i686-w64-mingw32 --enable-static
19+
make
20+
sudo make install
21+
make clean
22+
23+
./configure --host=x86_64-w64-mingw32 --prefix=/usr/x86_64-w64-mingw32 --enable-static
24+
make
25+
sudo make install
26+
make clean
27+
28+
sudo rm /usr/i686-w64-mingw32/lib/*.la
29+
sudo rm /usr/x86_64-w64-mingw32/lib/*.la
30+
31+
---------- boost
32+
33+
From https://github.com/Alexpux/MINGW-packages/tree/master/mingw-w64-boost
34+
35+
patch -p1 -i boost-1.60.0-mingw-context.patch
36+
patch -p1 -i boost-1.61.0-fix-undefined-referense-to-codecvt.patch
37+
patch -p0 -i boost-include-intrin-h-on-mingw-w64.patch
38+
39+
./bootstrap.sh
40+
41+
echo "using gcc : 6.2.1 : x86_64-w64-mingw32-g++ ;" > user-config.jam
42+
./b2 --user-config=user-config.jam --debug-configuration toolset=gcc-6.2.1 link=shared,static target-os=windows address-model=64 pch=off threading=multi threadapi=win32 variant=release --prefix=/usr/x86_64-w64-mingw32 --layout=tagged --without-python --without-mpi -sICONV_PATH=/usr/x86_64-w64-mingw32 -sICONV_LINK="-L/usr/x86_64-w64-mingw32/lib -liconv" 2>&1 | tee all64.log
43+
sudo ./b2 --user-config=user-config.jam --debug-configuration toolset=gcc-6.2.1 link=shared,static target-os=windows address-model=64 pch=off threading=multi threadapi=win32 variant=release --prefix=/usr/x86_64-w64-mingw32 --layout=tagged --without-python --without-mpi -sICONV_PATH=/usr/x86_64-w64-mingw32 -sICONV_LINK="-L/usr/x86_64-w64-mingw32/lib -liconv" install
44+
./b2 --user-config=user-config.jam --debug-configuration toolset=gcc-6.2.1 link=shared,static target-os=windows address-model=64 pch=off threading=multi threadapi=win32 variant=release --prefix=/usr/x86_64-w64-mingw32 --layout=tagged --without-python --without-mpi -sICONV_PATH=/usr/x86_64-w64-mingw32 -sICONV_LINK="-L/usr/x86_64-w64-mingw32/lib -liconv" clean
45+
rm -rf bin.v2 stage
46+
47+
echo "using gcc : 6.2.1 : i686-w64-mingw32-g++ ;" > user-config.jam
48+
./b2 --user-config=user-config.jam --debug-configuration toolset=gcc-6.2.1 link=shared,static target-os=windows address-model=32 pch=off threading=multi threadapi=win32 variant=release --prefix=/usr/i686-w64-mingw32 --layout=tagged --without-python --without-mpi -sICONV_PATH=/usr/i686-w64-mingw32 -sICONV_LINK="-L/usr/i686-w64-mingw32/lib -liconv" 2>&1 | tee all32.log
49+
sudo ./b2 --user-config=user-config.jam --debug-configuration toolset=gcc-6.2.1 link=shared,static target-os=windows address-model=32 pch=off threading=multi threadapi=win32 variant=release --prefix=/usr/i686-w64-mingw32 --layout=tagged --without-python --without-mpi -sICONV_PATH=/usr/i686-w64-mingw32 -sICONV_LINK="-L/usr/i686-w64-mingw32/lib -liconv" install
50+
./b2 --user-config=user-config.jam --debug-configuration toolset=gcc-6.2.1 link=shared,static target-os=windows address-model=32 pch=off threading=multi threadapi=win32 variant=release --prefix=/usr/i686-w64-mingw32 --layout=tagged --without-python --without-mpi -sICONV_PATH=/usr/i686-w64-mingw32 -sICONV_LINK="-L/usr/i686-w64-mingw32/lib -liconv" clean
51+
rm -rf bin.v2 stage

0 commit comments

Comments
 (0)