On Tue, Jan 12, 2016 at 6:41 PM, LM <[email protected]> wrote:

> Decided to try it out, so I downloaded the source to Windows and
> attempted to run configure.  Of course, it couldn't compile because of
> references to termios.h.  So, I looked up how to build on Windows with
> MinGW and tried again using make -f win/Makefile.mingw.  Had to move
> the location of LIB in:
>   $(TCC) -o $@ $(OBJ) $(EXTRAOBJ) $(LIB) $(OBJDIR)/fossil.o
> to
> $(TCC) -o $@ $(OBJ) $(EXTRAOBJ) $(OBJDIR)/fossil.o $(LIB)
> since libraries need to be after the object files that reference them.
>

I have compiled on Windows with mingw many times and never had to do this.
If compiling from msys2 (I've never tried the old msys) bash prompt I use

make -f win/Makefile.mingw X64=1

and from the windows command prompt I use

mingw32-make -f win/Makefile.mingw X64=1 USE_WINDOWS=1

both work fine for me right from a clean checkout. As Ross said, if
compiling with openssl things are a little trickier, though not much. It
takes about an extra 2 minutes to set it up and then it just works every
time you compile. If you want to do this, let me know and I will post my
method for this.

I also had to fix the location for zlib to where it is on my system.
> I tried enabling the miniz library
> FOSSIL_ENABLE_MINIZ=1
> because I have both libz and libminizip (from zlib/contrib) on my system.
>

This is not the same miniz. By default fossil compiles and uses zlib. It is
distributed with the fossil source and does not use your system one. This
can of course be changed in the makefile. The miniz you are reffering to is
part of the zlib distribution. The miniz refered to by this flag is
https://code.google.com/p/miniz/, which is a single file, public domain
(similar to SQLite amalgamation) implementation of the zlib API. It too is
included in with the fossil source.

Baruch

-- 
˙uʍop-ǝpısdn sı ɹoʇıuoɯ ɹnoʎ 'sıɥʇ pɐǝɹ uɐɔ noʎ ɟı
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to