Installing msys and adding it to the path gets me past the backslash issues.
Now I am missing zlib.h:
PS C:\fossil\fossil> fossil clean --all
PS C:\fossil\fossil> 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/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 clo
ne_.c comformat_.c configure_.c construct_.c content_.c db_.c delta_.c
deltacmd_.c descendants_.c diff_.c diffcmd_.c doc
_.c encode_.c file_.c http_.c http_socket_.c http_transport_.c info_.c login_.c
main_.c manifest_.c md5_.c merge_.c merg
e3_.c name_.c pivot_.c pqueue_.c printf_.c rebuild_.c report_.c rss_.c
rstats_.c schema_.c setup_.c sha1_.c shun_.c stat
_.c style_.c sync_.c tag_.c th_main_.c timeline_.c tkt_.c tktsetup_.c undo_.c
update_.c url_.c user_.c verify_.c vfile_.
c wiki_.c wikiformat_.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
>VERSION.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
branch_.c:branch.h browse_.c:browse.h captc
ha_.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 d
eltacmd_.c:deltacmd.h descendants_.c:descendants.h diff_.c:diff.h
diffcmd_.c:diffcmd.h doc_.c:doc.h encode_.c:encode.h f
ile_.c:file.h http_.c:http.h http_socket_.c:http_socket.h
http_transport_.c:http_transport.h info_.c:info.h login_.c:log
in.h main_.c:main.h manifest_.c:manifest.h md5_.c:md5.h merge_.c:merge.h
merge3_.c:merge3.h name_.c:name.h pivot_.c:pivo
t.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 setup_.c:setup.h sha1_.c:sha1.h shun_.c:shun.h stat_.c:stat.h
style_.c:style.h sync_.c:sync.h tag_.c:tag.h
th_main_.c:th_main.h timeline_.c:timeline.h tkt_.c:tkt.h tktsetup_.c:tktsetup.h
undo_.c:undo.h update_.c:update.h url_.c
:url.h user_.c:user.h verify_.c:verify.h vfile_.c:vfile.h wiki_.c:wiki.h
wikiformat_.c:wikiformat.h winhttp_.c:winhttp.h
xfer_.c:xfer.h zip_.c:zip.h ./src/sqlite3.h ./src/th.h VERSION.h
touch headers
gcc -g -Os -Wall -DFOSSIL_I18N=0 -L/usr/local/lib -I/usr/local/include -I.
-I./src -o add.o -c add_.c
gcc -g -Os -Wall -DFOSSIL_I18N=0 -L/usr/local/lib -I/usr/local/include -I.
-I./src -o allrepo.o -c allrepo_.c
gcc -g -Os -Wall -DFOSSIL_I18N=0 -L/usr/local/lib -I/usr/local/include -I.
-I./src -o bag.o -c bag_.c
gcc -g -Os -Wall -DFOSSIL_I18N=0 -L/usr/local/lib -I/usr/local/include -I.
-I./src -o blob.o -c blob_.c
blob_.c:28:18: zlib.h: No such file or directory
blob_.c: In function `blob_compress':
blob_.c:725: warning: implicit declaration of function `compress'
blob_.c: In function `blob_compress2':
blob_.c:755: error: `z_stream' undeclared (first use in this function)
blob_.c:755: error: (Each undeclared identifier is reported only once
blob_.c:755: error: for each function it appears in.)
blob_.c:755: error: syntax error before "stream"
blob_.c:764: error: `stream' undeclared (first use in this function)
blob_.c:764: error: `alloc_func' undeclared (first use in this function)
blob_.c:764: error: syntax error before numeric constant
blob_.c:765: error: `free_func' undeclared (first use in this function)
blob_.c:765: error: syntax error before numeric constant
blob_.c:769: warning: implicit declaration of function `deflateInit'
blob_.c:772: warning: implicit declaration of function `deflate'
blob_.c:776: error: `Z_FINISH' undeclared (first use in this function)
blob_.c:778: warning: implicit declaration of function `deflateEnd'
blob_.c: In function `blob_uncompress':
blob_.c:818: warning: implicit declaration of function `uncompress'
blob_.c:820: error: `Z_OK' undeclared (first use in this function)
make.exe": *** [blob.o] Error 1
PS C:\fossil\fossil>
RW
Ron Wilson, Engineering Project Lead
(o) 434.455.6453, (m) 434.851.1612, www.harris.com
HARRIS CORPORATION | RF Communications Division
assuredcommunications(tm)
> -----Original Message-----
> From: [email protected] [mailto:fossil-users-
> [email protected]] On Behalf Of D. Richard Hipp
> Sent: Monday, October 12, 2009 2:50 PM
> To: [email protected]
> Subject: Re: [fossil-users] making fossil with mingw32
>
>
>
> On Oct 12, 2009, at 2:40 PM, Wilson, Ronald wrote:
>
> > I'm having problems making on Windows XP. Assuming c:\mingw32\bin
> > is in my path I get this output:
> >
> > C:\fossil\fossil>mingw32-make -f .\makefile.w32
> > gcc -g -O2 -o translate ./src/translate.c
> > ./translate ./src/add.c >add_.c
> > '.' is not recognized as an internal or external command,
> > operable program or batch file.
> > mingw32-make: *** [add_.c] Error 1
> >
> > If I change the slashes to backslashes in main.mk:
> >
> > add_.c: $(SRCDIR)/add.c translate
> > ./translate $(SRCDIR)/add.c >add_.c
> >
> > Like this:
> >
> > add_.c: $(SRCDIR)/add.c translate
> > .\translate $(SRCDIR)\add.c >add_.c
> >
> > It gets past the translate step for add.c, but will have the same
> > problem on every file and also when makeheaders is called. I really
> > don't want to be in the business of modifying the .mk file and I am
> > assuming that drh doesn't have this problem when building. Any help?
>
>
> Can you write a script that will copy Makefile into Makefile.win32
> while converting ./ into .\
>
> The following would serve on unix:
>
> sed -e 's,\./,.\\,' Makefile >Makefile.win32
>
>
> D. Richard Hipp
> [email protected]
>
>
>
> _______________________________________________
> fossil-users mailing list
> [email protected]
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users