Skip to content
Tcl Source Code Artifact [dddcdcb902]
Login

Artifact [dddcdcb902]

Artifact dddcdcb9029d5529720d0c8e06c270caeef5eec3:

Ticket change [dddcdcb902] - New ticket [3116490fffffffff|3116490fff] <i>cross-compile Tcl mingw32 on unix</i>. by nijtmans on 2010-11-23 11:27:28.
D 2010-11-23T11:27:28
J assignee nijtmans
J cmimetype text/plain
J comment The\smingw-w64\sproject\s\s\s<http://mingw-w64.sourceforge.net/>\sprovides\ntoolchains\swhich\smake\sit\spossible\sto\scompile\swindows\s(both\s32-bit\sand\s64-bit)\nexecutables\son\sUNIX\shosts.\sTcl\s8.6\shas\salmost\scomplete\scross-compile\nsupport,\shere\sis\sthe\sfinal\spatch\sto\smake\sit\swork.\n\n-\sThe\sconfigure\sscript\sdetects\scross-compilation,\sand\ssets\sTCL_EXE\n\s\saccordingly:\sThis\smeans\sthat\sfor\scross-builds,\sTCL_EXE\spoints\sto\n\s\sa\stclsh\sexecutable\swhich\smust\sbe\savailable\sbefore\sstarting\smake\n\s\sfor\sthe\sfirst\stime!\sIn\snative\sbuilds,TCL_EXE\spoints\sto\sthe\stclsh\n\s\sbeing\screated,\sso\sit\sdoes\snot\sneed\sto\sbe\savailable\sbeforehand.\n\nmodules\sin\sthe\spkgs\sdirectory\s(Thread,\sitcl,\sodbc)\sshould\supgrade\nto\sthe\slatest\sTEA\stcl.m4,\sthen\sthey\scan\sbe\scross-compiled\sthe\nsame\sway.\n\nSo,\show\sto\scross-compile\swin32\sTcl\son\sUNIX?\n\nFor\sLinux\s(tested\son\sUbuntu\s10.4):\n\nMake\ssure\syou\shave\sthe\smingw-w64\stoolchain\n$\ssudo\sapt-get\sinstall\smingw-w64\nThen,\sdo\sas\snormal,\sonly\sadd\s--host=...\n$\s./configure\s--prefix=/home/<user>/Tcl\s--host=i586-mingw32msvc\n\s......\n$\smake\sinstall\n\nThat's\sit.\sYou\swill\shave\sa\scomplete\sbuild\sin\nyour\s/home/<user>/Tcl\sdirectory.\sIf\syou\shave\swine\ninstalled,\syou\scan\seven\srun\sthe\stests\s(but\sdon't\sexpect\neverything\sto\spass,\sbecause\swine\sis\snot\swindows!)
J foundin None
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter nijtmans
J subsystem 52.\sPortability\sSupport
J title cross-compile\sTcl\smingw32\son\sunix
J type Patch
K 3116490fffffffffffffffffffffffffffffffff
U nijtmans
Z 98a955f60ab374d78514ce5ac6392454