556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
|
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
|
-
-
+
|
* 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>Change Makefile.w32. Change the line "LIB += -lcrypto -lssl" to "LIB = -lssl -lcrypto -lgdi32 -lmingwex -lz -lws2_32".</li>
<li>make -f Makefile.w32 FOSSIL_ENABLE_SSL=1</li> </ul>
<ul><li>make -f Makefile.w32 FOSSIL_ENABLE_SSL=1 LIB="-lssl -lcrypto -lgdi32 -lmingwex -lz -lws2_32"</li> </ul>
* else do make -f Makefile.w32
<h3>Compiling under linux for windows with Mingw</h3>
This is called cross compiling. I'm using [http://www.archlinux.org/|Arch linux] distribution which
uses the package manager pacman to install packages. If you have a differen linux distribution the packages might be called different. I assume a login name of renez substitute yours were apropiate.
|
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
|
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
|
-
-
+
|
* 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>Change Makefile.w32. Change the line "LIB += -lcrypto -lssl" to "LIB = -lssl -lcrypto -lgdi32 -lmingwex -lz -lws2_32".</li>
<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</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" FOSSIL_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
|