version 1.1, 2015/08/25 21:40:57 |
version 1.2, 2015/09/16 06:48:05 |
Line 112 MinGW 64 $B$G$O!"(Bgcc $B$b%5%]!<%H$9$k!#(B |
|
Line 112 MinGW 64 $B$G$O!"(Bgcc $B$b%5%]!<%H$9$k!#(B |
|
|
|
$B$7$+$7$J$,$i!"(BMinGW 32 $B$N(B gcc $B$O(B dwarf-2 $BNc30=hM}$r;HMQ$7!"(BSEH $B$O%5%]!<(B |
$B$7$+$7$J$,$i!"(BMinGW 32 $B$N(B gcc $B$O(B dwarf-2 $BNc30=hM}$r;HMQ$7!"(BSEH $B$O%5%]!<(B |
$B%H$7$F$$$J$$!#$=$N$?$a!"$3$l$r<B8=$9$k(B libgcc_s_dw2-1.dll $B$H%j%s%/$7$h(B |
$B%H$7$F$$$J$$!#$=$N$?$a!"$3$l$r<B8=$9$k(B libgcc_s_dw2-1.dll $B$H%j%s%/$7$h(B |
$B$&$H$9$k!#@EE*$K%j%s%/$9$k$K$O!"(Bgcc $B$K%*%W%7%g%s(B -static-libgcc $B$rM?$($k!#(B |
$B$&$H$9$k!#$3$l$rHr$1$k$K$O!"(Bgcc $B$K%*%W%7%g%s(B -static-libgcc $B$rM?$($k$+!"(B |
|
win32threads $B$J(B gcc $B$r;HMQ$9$k!#8e<T$K$D$$$F$O!"(Bhow_to_install_MinGW-MSYS2.txt |
|
$B$N(B 3 $B@a$r;2>H$N$3$H!#(B |
|
|
|
|
2. $B%S%k%I(B |
2. $B%S%k%I(B |
Line 124 gmp-5.1.3.tar.gz |
|
Line 126 gmp-5.1.3.tar.gz |
|
mpfr-3.1.3.tar.bz2 |
mpfr-3.1.3.tar.bz2 |
mpc-1.0.3.tar.gz |
mpc-1.0.3.tar.gz |
|
|
$BIUO?(B1 $B$GM?$($k%7%'%k%9%/%j%W%H(B mk.sh $B$r<B9T$7$F!"%i%$%V%i%j$r:n@.$9$k!#(B |
$BIUO?(B1 $B$^$?$OIUO?(B2 $B$GM?$($k%7%'%k%9%/%j%W%H(B mk.sh $B$r<B9T$7$F!"%i%$%V%i%j$r:n@.$9$k!#(B |
$B@8@.J*$O!"(B${LOCAL}/{bin,include,lib} $B$K=PNO$5$l$k!#(B |
$B@8@.J*$O!"(B${LOCAL}/{bin,include,lib} $B$K=PNO$5$l$k!#(B |
|
|
|
|
3. Visual Studio $BMQ%$%s%]!<%H%i%$%V%i%j(B |
3. Visual Studio $BMQ%$%s%]!<%H%i%$%V%i%j(B |
|
|
mingw $BIUB0$N(B gendef $B$N=PNO$9$k(B *.def $B$r!"(BMS lib.exe $B$G=hM}$9$k$3$H$K$h$j!"(B |
mingw $BIUB0$N(B gendef $B$N=PNO$9$k(B *.def $B$r!"(BMS lib.exe $B$G=hM}$9$k$3$H$K$h$j!"(B |
$B%$%s%]!<%H%i%$%V%i%j$r:n@.$G$-$k!#6qBNE*$K$O!"IUO?(B2 $B$GM?$($k%P%C%A%U%!%$%k$r(B |
$B%$%s%]!<%H%i%$%V%i%j$r:n@.$G$-$k!#6qBNE*$K$O!"IUO?(B3 $B$GM?$($k%P%C%A%U%!%$%k$r(B |
*.def $B$NB8:_$9$k%G%#%l%/%H%j(B (${LOCAL}/bin) $B$G<B9T$9$k$H$h$$!#(B |
*.def $B$NB8:_$9$k%G%#%l%/%H%j(B (${LOCAL}/bin) $B$G<B9T$9$k$H$h$$!#(B |
|
|
A. $BIUO?(B1 |
A. $BIUO?(B1 |
|
|
(cd src/.libs; gendef libmpc-3.dll; cp -p libmpc-3.def ${LOCAL}/bin) |
(cd src/.libs; gendef libmpc-3.dll; cp -p libmpc-3.def ${LOCAL}/bin) |
popd |
popd |
|
|
|
|
B. $BIUO?(B2 |
B. $BIUO?(B2 |
|
|
|
$B!V(BMinGW-w64 Win64 Shell w32threads$B!W$^$?$O!V(BMinGW-w64 Win32 Shell w32threads$B!W>e$G<B9T$9$k%7%'%k%9%/%j%W%H$G$"$k!#(B |
|
|
|
#!/bin/bash |
|
|
|
LOCAL=/usr/local"${MSYSTEM#MINGW}" |
|
[ -d ${LOCAL} ] || mkdir -p ${LOCAL} |
|
|
|
dist=/c/Users/ohara/OpenXM_dist |
|
gmp=gmp-5.1.3 |
|
mpf=mpfr-3.1.3 |
|
mpc=mpc-1.0.3 |
|
|
|
for i in ${gmp}.tar.gz ${mpf}.tar.bz2 ${mpc}.tar.gz ; do case "$i" in *.bz2) tar jxf ${dist}/"$i";; *.gz) tar zxf ${dist}/"$i";; esac; done |
|
|
|
pushd ${gmp} |
|
./configure --prefix=${LOCAL} --enable-shared --disable-static --disable-cxx |
|
make |
|
if [ "$MSYSTEM" = MINGW32 ]; then |
|
gcc -shared .libs/*.o */.libs/*.o -m32 -Wl,--export-all-symbols -Wl,--output-def -Wl,.libs/libgmp-3.dll.def -o .libs/libgmp-10.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/libgmp.dll. |
|
a |
|
fi |
|
make install |
|
(cd .libs; gendef libgmp-10.dll; cp -p libgmp-10.def ${LOCAL}/bin) |
|
popd |
|
|
|
pushd ${mpf} |
|
./configure --prefix=${LOCAL} --enable-shared --disable-static --with-gmp=${LOCAL} --disable-thread-safe |
|
make |
|
if [ "$MSYSTEM" = MINGW32 ]; then |
|
cd src |
|
gcc -shared .libs/*.o -L${LOCAL}/lib ${LOCAL}/lib/libgmp.dll.a -m32 -Wl,--output-def -Wl,.libs/libmpfr-4.dll.def -o .libs/libmpfr-4.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/libmpfr.dll.a |
|
cd .. |
|
fi |
|
make install |
|
(cd src/.libs; gendef libmpfr-4.dll; cp -p libmpfr-4.def ${LOCAL}/bin) |
|
popd |
|
|
|
pushd ${mpc} |
|
./configure --prefix=${LOCAL} --enable-shared --disable-static --with-gmp=${LOCAL} --with-mpfr=${LOCAL} |
|
make |
|
if [ "$MSYSTEM" = MINGW32 ]; then |
|
cd src |
|
gcc -shared .libs/*.o -L${LOCAL}/lib ${LOCAL}/lib/libmpfr.dll.a ${LOCAL}/lib/libgmp.dll.a -m32 -o .libs/libmpc-3.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/libmpc.dll.a |
|
cd .. |
|
fi |
|
make install |
|
(cd src/.libs; gendef libmpc-3.dll; cp -p libmpc-3.def ${LOCAL}/bin) |
|
popd |
|
|
|
C. $BIUO?(B3 |
|
|
$B%3%^%s%I%W%m%s%W%H>e$G<B9T$9$k%P%C%A%U%!%$%k$G$"$k!#(B |
$B%3%^%s%I%W%m%s%W%H>e$G<B9T$9$k%P%C%A%U%!%$%k$G$"$k!#(B |
$B4D6-$K$h$j(B 32bit $B$^$?$O(B 64bit $B$N%i%$%V%i%j$,@8@.$5$l$k$3$H$KCm0U!#(B |
$B4D6-$K$h$j(B 32bit $B$^$?$O(B 64bit $B$N%i%$%V%i%j$,@8@.$5$l$k$3$H$KCm0U!#(B |