Skip to content
Fossil Changes To compillingOnWindows
Login

Changes To compillingOnWindows

Changes to "compillingOnWindows" between 2010-08-29 06:00:55 and 2010-08-29 06:35:30

︙
105
106
107
108
109
110
111
112

113
114
115
116
117
118
119
120
121



105
106
107
108
109
110
111

112
113
114
115
116
117
118
119
120
121
122
123
124







-
+









+
+
+
  *  cd ; mkdir fossil; cd fossil
  *  clone fossil repository. e.g. fossil clone http://www.fossil-scm.org/ myclone.fossil
  *  mkdir src; cd src
  *  fossil  open ../myclone.fossil

<h4>Compiling fossil source code</h4>
  *  If you want <strong>https</strong> supports
     <ul><li>make -f Makefile.w32 TCC="i486-mingw32-gcc -Os -Wall  -DFOSSIL_I18N=0  -L/usr/i486-mingw32/lib -I/usr/i486-mingw32/include -DFOSSIL_ENABLE_SSL=1" FOSSIL_ENABLE_SSL=1 LIB="-lssl -lcrypto -lgdi32 -lmingwex -lz -lws2_32"</li> </ul>
     <ul><li>make -f Makefile.w32 TCC="i486-mingw32-gcc -Os -Wall  -DFOSSIL_I18N=0  -L/usr/i486-mingw32/lib -I/usr/i486-mingw32/include -DFOSSIL_ENABLE_SSL=1 LIB="-lssl -lcrypto -lgdi32 -lmingwex -lz -lws2_32"</li> </ul>
  *   else make -f Makefile.w32 TCC="i486-mingw32-gcc -Os -Wall  -DFOSSIL_I18N=0  -L/usr/i486-mingw32/lib -I/usr/i486-mingw32/include "

<h4>Distribution of cross compiled fossil.exe</h4>
Because you have linked against zlib and maybe ssl you need to include from <strong>/usr/i486-mingw32/bin</strong> zlib1.dll and, optional, libssl32.dll (and maybe also libeay32.dll)

<h4>testing the cross compiled fossil.exe</h4>
  *  copy fossil.exe and the dll's to a windows system. For testing purpose all in one directory. For production use a directory in your PATH
  *  fossil clone http://www.fossil-scm.org/ http.fossil
  *  If it has <strong>https</strong> support then fossil clone https://www.fossil-scm.org/ https.fossil