I have also got my setup working so that it builds under normal cmd.exe
- i don't have time to document it in detail, but the key points are
- no spaces in any paths anywhere (in XP, I use the vistaesque
c:/users/xxxx folder structure and point "my documents" to it, saves
lots of headaches)
- msys + mingw + lots of the optional tools all installed into
c:/users/daniel/apps/mingw
- very careful ordering of entries in the PATH environment
- fossil checked out to c:/users/daniel/dev/fossil
- i used to have minor edits to the Makefile.w32 but they aren't even
necessary anymore - the one in trunk works fine
- i then run a simple batch file like so from within the fossil root
fossil update
make -f Makefile.w32
strip -s fossil.exe
move fossil.exe c:\users\daniel\apps\etc
the only hiccup i occasionally run into is needing to do a fossil
rebuild - otherwise, this takes all of 30sec and my fossil executable is
always up to date!
Daniel
On 30/03/2010 4:07 PM, Rob Powell wrote:
Hey folks;
I saw a message about wanting win32 binaries with SSL support, and the
issue of
downloading questionable binaries, so I did a bit of tinkering.
Here is some documentation to be added to the fossil-scm wiki:
Building Fossil on Windows - mingw
Using mingw
Download portable mingw 5.1.4, available from portableapps.com
http://portableapps.com/node/18601
Start up the portable dev enviroment by running MSYSPortable.exe
Change to a working directory:
$ cd /c/dev/fossil/src
I download the zlib source files from zlib.net:
http://zlib.net/zlib-1.2.4.tar.gz
Extract zlib source:
tar zxvf zlib-1.2.4.tar.gz
This puts the source code in /c/dev/fossil/src/zlib-1.2.4
Build the zlib library:
$ cd /c/dev/fossil/src/zlib-1.2.4
$ make -f ./win32/Makefile.gcc
(Should build with no errors.)
Download fossil-src from http://www.fossil-scm.org/download.html
http://www.fossil-scm.org/download/fossil-src-20100318142033.tar.gz
Extract fossil-src:
$ tar zxvf fossil-src-20100318142033.tar.gz
$ cd fossil-src-20100318142033
Edit Makefile.w32
Add zlib to TCC line:
Before:
TCC = gcc -Os -Wall -DFOSSIL_I18N=0 -L/mingw/lib -I/mingw/include
After:
TCC = gcc -Os -Wall -DFOSSIL_I18N=0 -L/mingw/lib -I/mingw/include
-I../zlib-1.2.4 -L../zlib-1.2.4
$ make -f Makefile.w32
This builds a 'fossil.exe'.
-rppowell
------------------------------------------------------------------------
The New Busy is not the old busy. Search, chat and e-mail from your
inbox. Get started.
<http://www.windowslive.com/campaign/thenewbusy?ocid=PID27925::T:WLMTAGL:ON:WL:en-US:WM_HMP:032010_3>
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users