[fossil-users] Noob windows build problems

2010-01-21 Thread Simon Horton
Hello,

I have fossil source code: fossil-src-20091220213451

I have setup Ming and MSYS (http://www.mingw.org/wiki/msys). Attempting to
compile gives me an error caused by a missing zlib.h. I am guessing this
means I need to include source code for zlib. Can someone point me in the
right direction to get fossil compiled from scratch? Here is the full
output:


$ make -f Makefile.w32
gcc -g -O2 -o translate ./src/translate.c
./translate ./src/add.c >add_.c
./translate ./src/allrepo.c >allrepo_.c
./translate ./src/bag.c >bag_.c
./translate ./src/blob.c >blob_.c
./translate ./src/branch.c >branch_.c
./translate ./src/browse.c >browse_.c
./translate ./src/captcha.c >captcha_.c
./translate ./src/cgi.c >cgi_.c
./translate ./src/checkin.c >checkin_.c
./translate ./src/checkout.c >checkout_.c
./translate ./src/clearsign.c >clearsign_.c
./translate ./src/clone.c >clone_.c
./translate ./src/comformat.c >comformat_.c
./translate ./src/configure.c >configure_.c
./translate ./src/construct.c >construct_.c
./translate ./src/content.c >content_.c
./translate ./src/db.c >db_.c
./translate ./src/delta.c >delta_.c
./translate ./src/deltacmd.c >deltacmd_.c
./translate ./src/descendants.c >descendants_.c
./translate ./src/diff.c >diff_.c
./translate ./src/diffcmd.c >diffcmd_.c
./translate ./src/doc.c >doc_.c
./translate ./src/encode.c >encode_.c
./translate ./src/file.c >file_.c
./translate ./src/finfo.c >finfo_.c
./translate ./src/http.c >http_.c
./translate ./src/http_socket.c >http_socket_.c
./translate ./src/http_transport.c >http_transport_.c
./translate ./src/info.c >info_.c
./translate ./src/login.c >login_.c
./translate ./src/main.c >main_.c
./translate ./src/manifest.c >manifest_.c
./translate ./src/md5.c >md5_.c
./translate ./src/merge.c >merge_.c
./translate ./src/merge3.c >merge3_.c
./translate ./src/name.c >name_.c
./translate ./src/pivot.c >pivot_.c
./translate ./src/pqueue.c >pqueue_.c
./translate ./src/printf.c >printf_.c
./translate ./src/rebuild.c >rebuild_.c
./translate ./src/report.c >report_.c
./translate ./src/rss.c >rss_.c
./translate ./src/rstats.c >rstats_.c
./translate ./src/schema.c >schema_.c
./translate ./src/search.c >search_.c
./translate ./src/setup.c >setup_.c
./translate ./src/sha1.c >sha1_.c
./translate ./src/shun.c >shun_.c
./translate ./src/skins.c >skins_.c
./translate ./src/stat.c >stat_.c
./translate ./src/style.c >style_.c
./translate ./src/sync.c >sync_.c
./translate ./src/tag.c >tag_.c
./translate ./src/th_main.c >th_main_.c
./translate ./src/timeline.c >timeline_.c
./translate ./src/tkt.c >tkt_.c
./translate ./src/tktsetup.c >tktsetup_.c
./translate ./src/undo.c >undo_.c
./translate ./src/update.c >update_.c
./translate ./src/url.c >url_.c
./translate ./src/user.c >user_.c
./translate ./src/verify.c >verify_.c
./translate ./src/vfile.c >vfile_.c
./translate ./src/wiki.c >wiki_.c
./translate ./src/wikiformat.c >wikiformat_.c
./translate ./src/winhttp.c >winhttp_.c
./translate ./src/xfer.c >xfer_.c
./translate ./src/zip.c >zip_.c
gcc -g -O2 -o mkindex ./src/mkindex.c
./mkindex add_.c allrepo_.c bag_.c blob_.c branch_.c browse_.c captcha_.c
cgi_.c
 checkin_.c checkout_.c clearsign_.c clone_.c comformat_.c configure_.c
construc
t_.c content_.c db_.c delta_.c deltacmd_.c descendants_.c diff_.c diffcmd_.c
doc
_.c encode_.c file_.c finfo_.c http_.c http_socket_.c http_transport_.c
info_.c
login_.c main_.c manifest_.c md5_.c merge_.c merge3_.c name_.c pivot_.c
pqueue_.
c printf_.c rebuild_.c report_.c rss_.c rstats_.c schema_.c search_.c
setup_.c s
ha1_.c shun_.c skins_.c stat_.c style_.c sync_.c tag_.c th_main_.c
timeline_.c t
kt_.c tktsetup_.c undo_.c update_.c url_.c user_.c verify_.c vfile_.c
wiki_.c wi
kiformat_.c winhttp_.c xfer_.c zip_.c >page_index.h
gcc -g -O2 -o makeheaders ./src/makeheaders.c
awk '{ printf "#define MANIFEST_UUID \"%s\"\n", $1}'  ./src/../manifest.uuid
>VE
RSION.h
awk '{ printf "#define MANIFEST_VERSION \"[%.10s]\"\n", $1}'
./src/../manifest.
uuid >>VERSION.h
awk '$1=="D"{printf "#define MANIFEST_DATE \"%s %s\"\n",
substr($2,1,10),substr(
$2,12)}'  ./src/../manifest >>VERSION.h
./makeheaders  add_.c:add.h allrepo_.c:allrepo.h bag_.c:bag.h blob_.c:blob.h
bra
nch_.c:branch.h browse_.c:browse.h captcha_.c:captcha.h cgi_.c:cgi.h
checkin_.c:
checkin.h checkout_.c:checkout.h clearsign_.c:clearsign.h clone_.c:clone.h
comfo
rmat_.c:comformat.h configure_.c:configure.h construct_.c:construct.h
content_.c
:content.h db_.c:db.h delta_.c:delta.h deltacmd_.c:deltacmd.h
descendants_.c:des
cendants.h diff_.c:diff.h diffcmd_.c:diffcmd.h doc_.c:doc.h
encode_.c:encode.h f
ile_.c:file.h finfo_.c:finfo.h http_.c:http.h http_socket_.c:http_socket.h
http_
transport_.c:http_transport.h info_.c:info.h login_.c:login.h main_.c:main.h
man
ifest_.c:manifest.h md5_.c:md5.h merge_.c:merge.h merge3_.c:merge3.h
name_.c:nam
e.h pivot_.c:pivot.h pqueue_.c:pqueue.h printf_.c:printf.h
rebuild_.c:rebuild.h
report_.c:report.h rss_.c:rss.h rstats_.c:rstats.h schema_.c:schema.h
search_.c:
search.h set

Re: [fossil-users] Noob windows build problems

2010-01-21 Thread Michael Richter
You need to have zlib built and the library in your library path.  Google
for zlib and download it, compile it and place it in your lib directory for
MinGW/MSYS.

2010/1/21 Simon Horton 

> Hello,
>
> I have fossil source code: fossil-src-20091220213451
>
> I have setup Ming and MSYS (http://www.mingw.org/wiki/msys). Attempting to
> compile gives me an error caused by a missing zlib.h. I am guessing this
> means I need to include source code for zlib. Can someone point me in the
> right direction to get fossil compiled from scratch? Here is the full
> output:
>
>
> $ make -f Makefile.w32
> gcc -g -O2 -o translate ./src/translate.c
> ./translate ./src/add.c >add_.c
> ./translate ./src/allrepo.c >allrepo_.c
> ./translate ./src/bag.c >bag_.c
> ./translate ./src/blob.c >blob_.c
> ./translate ./src/branch.c >branch_.c
> ./translate ./src/browse.c >browse_.c
> ./translate ./src/captcha.c >captcha_.c
> ./translate ./src/cgi.c >cgi_.c
> ./translate ./src/checkin.c >checkin_.c
> ./translate ./src/checkout.c >checkout_.c
> ./translate ./src/clearsign.c >clearsign_.c
> ./translate ./src/clone.c >clone_.c
> ./translate ./src/comformat.c >comformat_.c
> ./translate ./src/configure.c >configure_.c
> ./translate ./src/construct.c >construct_.c
> ./translate ./src/content.c >content_.c
> ./translate ./src/db.c >db_.c
> ./translate ./src/delta.c >delta_.c
> ./translate ./src/deltacmd.c >deltacmd_.c
> ./translate ./src/descendants.c >descendants_.c
> ./translate ./src/diff.c >diff_.c
> ./translate ./src/diffcmd.c >diffcmd_.c
> ./translate ./src/doc.c >doc_.c
> ./translate ./src/encode.c >encode_.c
> ./translate ./src/file.c >file_.c
> ./translate ./src/finfo.c >finfo_.c
> ./translate ./src/http.c >http_.c
> ./translate ./src/http_socket.c >http_socket_.c
> ./translate ./src/http_transport.c >http_transport_.c
> ./translate ./src/info.c >info_.c
> ./translate ./src/login.c >login_.c
> ./translate ./src/main.c >main_.c
> ./translate ./src/manifest.c >manifest_.c
> ./translate ./src/md5.c >md5_.c
> ./translate ./src/merge.c >merge_.c
> ./translate ./src/merge3.c >merge3_.c
> ./translate ./src/name.c >name_.c
> ./translate ./src/pivot.c >pivot_.c
> ./translate ./src/pqueue.c >pqueue_.c
> ./translate ./src/printf.c >printf_.c
> ./translate ./src/rebuild.c >rebuild_.c
> ./translate ./src/report.c >report_.c
> ./translate ./src/rss.c >rss_.c
> ./translate ./src/rstats.c >rstats_.c
> ./translate ./src/schema.c >schema_.c
> ./translate ./src/search.c >search_.c
> ./translate ./src/setup.c >setup_.c
> ./translate ./src/sha1.c >sha1_.c
> ./translate ./src/shun.c >shun_.c
> ./translate ./src/skins.c >skins_.c
> ./translate ./src/stat.c >stat_.c
> ./translate ./src/style.c >style_.c
> ./translate ./src/sync.c >sync_.c
> ./translate ./src/tag.c >tag_.c
> ./translate ./src/th_main.c >th_main_.c
> ./translate ./src/timeline.c >timeline_.c
> ./translate ./src/tkt.c >tkt_.c
> ./translate ./src/tktsetup.c >tktsetup_.c
> ./translate ./src/undo.c >undo_.c
> ./translate ./src/update.c >update_.c
> ./translate ./src/url.c >url_.c
> ./translate ./src/user.c >user_.c
> ./translate ./src/verify.c >verify_.c
> ./translate ./src/vfile.c >vfile_.c
> ./translate ./src/wiki.c >wiki_.c
> ./translate ./src/wikiformat.c >wikiformat_.c
> ./translate ./src/winhttp.c >winhttp_.c
> ./translate ./src/xfer.c >xfer_.c
> ./translate ./src/zip.c >zip_.c
> gcc -g -O2 -o mkindex ./src/mkindex.c
> ./mkindex add_.c allrepo_.c bag_.c blob_.c branch_.c browse_.c captcha_.c
> cgi_.c
>  checkin_.c checkout_.c clearsign_.c clone_.c comformat_.c configure_.c
> construc
> t_.c content_.c db_.c delta_.c deltacmd_.c descendants_.c diff_.c
> diffcmd_.c doc
> _.c encode_.c file_.c finfo_.c http_.c http_socket_.c http_transport_.c
> info_.c
> login_.c main_.c manifest_.c md5_.c merge_.c merge3_.c name_.c pivot_.c
> pqueue_.
> c printf_.c rebuild_.c report_.c rss_.c rstats_.c schema_.c search_.c
> setup_.c s
> ha1_.c shun_.c skins_.c stat_.c style_.c sync_.c tag_.c th_main_.c
> timeline_.c t
> kt_.c tktsetup_.c undo_.c update_.c url_.c user_.c verify_.c vfile_.c
> wiki_.c wi
> kiformat_.c winhttp_.c xfer_.c zip_.c >page_index.h
> gcc -g -O2 -o makeheaders ./src/makeheaders.c
> awk '{ printf "#define MANIFEST_UUID \"%s\"\n", $1}'
> ./src/../manifest.uuid >VE
> RSION.h
> awk '{ printf "#define MANIFEST_VERSION \"[%.10s]\"\n", $1}'
> ./src/../manifest.
> uuid >>VERSION.h
> awk '$1=="D"{printf "#define MANIFEST_DATE \"%s %s\"\n",
> substr($2,1,10),substr(
> $2,12)}'  ./src/../manifest >>VERSION.h
> ./makeheaders  add_.c:add.h allrepo_.c:allrepo.h bag_.c:bag.h
> blob_.c:blob.h bra
> nch_.c:branch.h browse_.c:browse.h captcha_.c:captcha.h cgi_.c:cgi.h
> checkin_.c:
> checkin.h checkout_.c:checkout.h clearsign_.c:clearsign.h clone_.c:clone.h
> comfo
> rmat_.c:comformat.h configure_.c:configure.h construct_.c:construct.h
> content_.c
> :content.h db_.c:db.h delta_.c:delta.h deltacmd_.c:deltacmd.h
> descendants_.c:des
> cendants.h diff_.c:diff.h diffcmd_.c:diffcmd.h doc_.c:doc.h
> encode_.c:

Re: [fossil-users] Noob windows build problems

2010-01-22 Thread Rene de Zwart

Op Do, 21 januari, 2010 14:15, schreef Simon Horton:
> Hello,
>
> I have fossil source code: fossil-src-20091220213451
>
> I have setup Ming and MSYS (http://www.mingw.org/wiki/msys). Attempting to
> compile gives me an error caused by a missing zlib.h. I am guessing this
> means I need to include source code for zlib. Can someone point me in the
> right direction to get fossil compiled from scratch? Here is the full
> output:
>
>
> $ make -f Makefile.w32
> gcc -g -O2 -o translate ./src/translate.c
> ./translate ./src/add.c >add_.c
> ./translate ./src/allrepo.c >allrepo_.c
> ./translate ./src/bag.c >bag_.c
> ./translate ./src/blob.c >blob_.c
> ./translate ./src/branch.c >branch_.c
> ./translate ./src/browse.c >browse_.c
> ./translate ./src/captcha.c >captcha_.c
> ./translate ./src/cgi.c >cgi_.c
> ./translate ./src/checkin.c >checkin_.c
> ./translate ./src/checkout.c >checkout_.c
> ./translate ./src/clearsign.c >clearsign_.c
> ./translate ./src/clone.c >clone_.c
> ./translate ./src/comformat.c >comformat_.c
> ./translate ./src/configure.c >configure_.c
> ./translate ./src/construct.c >construct_.c
> ./translate ./src/content.c >content_.c
> ./translate ./src/db.c >db_.c
> ./translate ./src/delta.c >delta_.c
> ./translate ./src/deltacmd.c >deltacmd_.c
> ./translate ./src/descendants.c >descendants_.c
> ./translate ./src/diff.c >diff_.c
> ./translate ./src/diffcmd.c >diffcmd_.c
> ./translate ./src/doc.c >doc_.c
> ./translate ./src/encode.c >encode_.c
> ./translate ./src/file.c >file_.c
> ./translate ./src/finfo.c >finfo_.c
> ./translate ./src/http.c >http_.c
> ./translate ./src/http_socket.c >http_socket_.c
> ./translate ./src/http_transport.c >http_transport_.c
> ./translate ./src/info.c >info_.c
> ./translate ./src/login.c >login_.c
> ./translate ./src/main.c >main_.c
> ./translate ./src/manifest.c >manifest_.c
> ./translate ./src/md5.c >md5_.c
> ./translate ./src/merge.c >merge_.c
> ./translate ./src/merge3.c >merge3_.c
> ./translate ./src/name.c >name_.c
> ./translate ./src/pivot.c >pivot_.c
> ./translate ./src/pqueue.c >pqueue_.c
> ./translate ./src/printf.c >printf_.c
> ./translate ./src/rebuild.c >rebuild_.c
> ./translate ./src/report.c >report_.c
> ./translate ./src/rss.c >rss_.c
> ./translate ./src/rstats.c >rstats_.c
> ./translate ./src/schema.c >schema_.c
> ./translate ./src/search.c >search_.c
> ./translate ./src/setup.c >setup_.c
> ./translate ./src/sha1.c >sha1_.c
> ./translate ./src/shun.c >shun_.c
> ./translate ./src/skins.c >skins_.c
> ./translate ./src/stat.c >stat_.c
> ./translate ./src/style.c >style_.c
> ./translate ./src/sync.c >sync_.c
> ./translate ./src/tag.c >tag_.c
> ./translate ./src/th_main.c >th_main_.c
> ./translate ./src/timeline.c >timeline_.c
> ./translate ./src/tkt.c >tkt_.c
> ./translate ./src/tktsetup.c >tktsetup_.c
> ./translate ./src/undo.c >undo_.c
> ./translate ./src/update.c >update_.c
> ./translate ./src/url.c >url_.c
> ./translate ./src/user.c >user_.c
> ./translate ./src/verify.c >verify_.c
> ./translate ./src/vfile.c >vfile_.c
> ./translate ./src/wiki.c >wiki_.c
> ./translate ./src/wikiformat.c >wikiformat_.c
> ./translate ./src/winhttp.c >winhttp_.c
> ./translate ./src/xfer.c >xfer_.c
> ./translate ./src/zip.c >zip_.c
> gcc -g -O2 -o mkindex ./src/mkindex.c
> ./mkindex add_.c allrepo_.c bag_.c blob_.c branch_.c browse_.c captcha_.c
> cgi_.c
>  checkin_.c checkout_.c clearsign_.c clone_.c comformat_.c configure_.c
> construc
> t_.c content_.c db_.c delta_.c deltacmd_.c descendants_.c diff_.c
> diffcmd_.c
> doc
> _.c encode_.c file_.c finfo_.c http_.c http_socket_.c http_transport_.c
> info_.c
> login_.c main_.c manifest_.c md5_.c merge_.c merge3_.c name_.c pivot_.c
> pqueue_.
> c printf_.c rebuild_.c report_.c rss_.c rstats_.c schema_.c search_.c
> setup_.c s
> ha1_.c shun_.c skins_.c stat_.c style_.c sync_.c tag_.c th_main_.c
> timeline_.c t
> kt_.c tktsetup_.c undo_.c update_.c url_.c user_.c verify_.c vfile_.c
> wiki_.c wi
> kiformat_.c winhttp_.c xfer_.c zip_.c >page_index.h
> gcc -g -O2 -o makeheaders ./src/makeheaders.c
> awk '{ printf "#define MANIFEST_UUID \"%s\"\n", $1}'
> ./src/../manifest.uuid
>>VE
> RSION.h
> awk '{ printf "#define MANIFEST_VERSION \"[%.10s]\"\n", $1}'
> ./src/../manifest.
> uuid >>VERSION.h
> awk '$1=="D"{printf "#define MANIFEST_DATE \"%s %s\"\n",
> substr($2,1,10),substr(
> $2,12)}'  ./src/../manifest >>VERSION.h
> ./makeheaders  add_.c:add.h allrepo_.c:allrepo.h bag_.c:bag.h
> blob_.c:blob.h
> bra
> nch_.c:branch.h browse_.c:browse.h captcha_.c:captcha.h cgi_.c:cgi.h
> checkin_.c:
> checkin.h checkout_.c:checkout.h clearsign_.c:clearsign.h clone_.c:clone.h
> comfo
> rmat_.c:comformat.h configure_.c:configure.h construct_.c:construct.h
> content_.c
> :content.h db_.c:db.h delta_.c:delta.h deltacmd_.c:deltacmd.h
> descendants_.c:des
> cendants.h diff_.c:diff.h diffcmd_.c:diffcmd.h doc_.c:doc.h
> encode_.c:encode.h f
> ile_.c:file.h finfo_.c:finfo.h http_.c:http.h http_socket_.c:http_socket.h
> http_
> transport_.c:http_transport.h i

Re: [fossil-users] Noob windows build problems

2010-01-22 Thread Simon Horton
Thanks for the help, I used the gnuwin32.sf.net zlib packages and now
have successfully compiled fossil. I know this is all very obvious to
many of you, but I thought I would write up the detailed steps I took
to get fossil compiled on windows:-

1.  Install MinGW (http://www.mingw.org/)
- http://sourceforge.net/projects/mingw/files/  (click on the
download now button - MinGW-5.1.6.exe for me)
- Run and answer:
 - Download and Install
 - Current Package
 - install options
- MiGW base tools
- g++ compiler
- install to C:\MinGW
- Add C:\MinGW\bin  to Path system variable (under environmental
variables in the control panel).
2. Install MSYS
- I followed information on this wiki page: 
http://www.mingw.org/wiki/msys
- http://downloads.sourceforge.net/mingw/MSYS-1.0.11.exe
- just follow all of the defaults
- http://downloads.sourceforge.net/mingw/msysDTK-1.0.1.exe
- Install to C:\msys\1.0
- 
http://sourceforge.net/projects/mingw/files/MSYS%20Base%20System/msys-1.0.11/msysCORE-1.0.11-bin.tar.gz/download
- Extract to C:\MinGW
- Set Environment variable HOME to C:\msys\1.0\home (under
environmental variables in the control panel).

3. Download zlib(from 
http://gnuwin32.sourceforge.net/packages.html )
- http://gnuwin32.sourceforge.net/downlinks/zlib-bin-zip.php
- Extract to C:\MinGW
- http://gnuwin32.sourceforge.net/downlinks/zlib-lib-zip.php
- Extract to C:\MinGW
4. Download fossil source code (to c:/fossil-src in this example)   

5. Compile fossil   
- open MSYS link from desktop
- cd /c/fossil-src
   make -f Makefile.w32

Now I have a new fossil.exe in c:\fossil-src

/Simon Horton.
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Noob windows build problems

2010-01-22 Thread Rene de Zwart

Op Vr, 22 januari, 2010 16:11, schreef Simon Horton:
> Thanks for the help, I used the gnuwin32.sf.net zlib packages and now
> have successfully compiled fossil. I know this is all very obvious to
> many of you, but I thought I would write up the detailed steps I took
> to get fossil compiled on windows:-
>
> 1.  Install MinGW (http://www.mingw.org/)
>   - http://sourceforge.net/projects/mingw/files/  (click on the
> download now button - MinGW-5.1.6.exe for me)
>   - Run and answer:
>- Download and Install
>- Current Package
>  - install options
>   - MiGW base tools
>   - g++ compiler
>   - install to C:\MinGW
>   - Add C:\MinGW\bin  to Path system variable (under environmental
> variables in the control panel).
> 2. Install MSYS
>   - I followed information on this wiki page:
> http://www.mingw.org/wiki/msys
>   - http://downloads.sourceforge.net/mingw/MSYS-1.0.11.exe
>   - just follow all of the defaults
>   - http://downloads.sourceforge.net/mingw/msysDTK-1.0.1.exe
>   - Install to C:\msys\1.0
This one isn't necessary unless you want to toy with msys. You have the
order wrong first mingw than msys.
A good replacement installer for mingw is at
 http://www.tdragon.net/recentgcc/
>   -
> http://sourceforge.net/projects/mingw/files/MSYS%20Base%20System/msys-1.0.11/msysCORE-1.0.11-bin.tar.gz/download
>   - Extract to C:\MinGW
>   - Set Environment variable HOME to C:\msys\1.0\home (under
> environmental variables in the control panel).
>
> 3. Download zlib  (from 
> http://gnuwin32.sourceforge.net/packages.html )
>   - http://gnuwin32.sourceforge.net/downlinks/zlib-bin-zip.php
>   - Extract to C:\MinGW
>   - http://gnuwin32.sourceforge.net/downlinks/zlib-lib-zip.php
>   - Extract to C:\MinGW
> 4. Download fossil source code (to c:/fossil-src in this example)
> 5. Compile fossil
>   - open MSYS link from desktop
>   - cd /c/fossil-src
>make -f Makefile.w32
>
> Now I have a new fossil.exe in c:\fossil-src
>
> /Simon Horton.
> ___
> fossil-users mailing list
> fossil-users@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>


-- 
Rene de Zwart

___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users