The Makefile.w32 and the information on Fossil website are all correct. They assume you have MinGW/MSYS on Windows host.
- Altu -----Original Message----- From: Clark Christensen <cdcmi...@yahoo.com> To: fossil-users@lists.fossil-scm.org Sent: Fri, Nov 13, 2009 5:15 am Subject: Re: [fossil-users] Noob Win32 build issues Wow. I really appreciate you taking the time to reply with such detailed info, Rene. It seems like a really big departure from the info on the Fossil website, and from the Makefile.w32 provided in the source. I have little experience with C compilers, and the like, and I guess I was hoping for a simpler solution, like "you just need libthisor that", or "add /path/to/some/dir to your path". Though I'd like to have some of the changes since the last (September) release, I think I'll just stick with the precompiled Win32 binaries from fossil-scm.org. And now I see a new one was posted yesterday, so maybe that'll do the job for me. Thanks again. -Clark ----- Original Message ---- From: Rene de Zwart <renew...@xs4all.nl> To: fossil-users@lists.fossil-scm.org Sent: Thu, November 12, 2009 3:07:01 PM Subject: Re: [fossil-users] Noob Win32 build issues > Hello, > > I'm trying to build the Win32 executable from source, and I'm running into > some issues. > > Fossil: > server-code: bdb6c83a1308a2cd3809b9c482fb4f3819f3d0b9 > checkout: 107f38dd014ae469dcac1f3e1c4fb230ffdc7d71 2009-10-27 20:15:30 > UTC > parent: 3275d9c63ce62cb1e21f20a0a8c8be5ca1aa19a8 2009-10-21 15:43:23 > UTC > tags: trunk > > This is on Ubuntu 9.04 Server, gcc v4.3.3, the latest mingw32 as packaged > by Ubuntu (sorry, I don't know how to get mingw's version). > > The Linux build goes just file, and I'm using the generated binary there. > > But when I try to do the Win32 build, I run into trouble. My guess is > something's missing in my environment. Any suggestions? > > Thanks! > > -Clark > > cla...@cdc-linux:~/build/fossil$ make -f Makefile.w32 >~/make.txt > In file included from ./src/config.h:33, > from add_.c:27: > /mingw/include/ctype.h: In function ‘isalnum’: > /mingw/include/ctype.h:154: error: ‘_imp____mb_cur_max_dll’ undeclared > (first use in this function) > /mingw/include/ctype.h:154: error: (Each undeclared identifier is reported > only once > /mingw/include/ctype.h:154: error: for each function it appears in.) > /mingw/include/ctype.h: In function ‘isalpha’: > /mingw/include/ctype.h:155: error: ‘_imp____mb_cur_max_dll’ undeclared > (first use in this function) > /mingw/include/ctype.h: In function ‘iscntrl’: > /mingw/include/ctype.h:156: error: ‘_imp____mb_cur_max_dll’ undeclared > (first use in this function) > /mingw/include/ctype.h: In function ‘isdigit’: > /mingw/include/ctype.h:157: error: ‘_imp____mb_cur_max_dll’ undeclared > (first use in this function) > /mingw/include/ctype.h: In function ‘isgraph’: > /mingw/include/ctype.h:158: error: ‘_imp____mb_cur_max_dll’ undeclared > (first use in this function) > /mingw/include/ctype.h: In function ‘islower’: > /mingw/include/ctype.h:159: error: ‘_imp____mb_cur_max_dll’ undeclared > (first use in this function) > /mingw/include/ctype.h: In function ‘isprint’: > /mingw/include/ctype.h:160: error: ‘_imp____mb_cur_max_dll’ undeclared > (first use in this function) > /mingw/include/ctype.h: In function ‘ispunct’: > /mingw/include/ctype.h:161: error: ‘_imp____mb_cur_max_dll’ undeclared > (first use in this function) > /mingw/include/ctype.h: In function ‘isspace’: > /mingw/include/ctype.h:162: error: ‘_imp____mb_cur_max_dll’ undeclared > (first use in this function) > /mingw/include/ctype.h: In function ‘isupper’: > /mingw/include/ctype.h:163: error: ‘_imp____mb_cur_max_dll’ undeclared > (first use in this function) > /mingw/include/ctype.h: In function ‘isxdigit’: > /mingw/include/ctype.h:164: error: ‘_imp____mb_cur_max_dll’ undeclared > (first use in this function) > /mingw/include/ctype.h: In function ‘isblank’: > /mingw/include/ctype.h:169: error: ‘_imp____mb_cur_max_dll’ undeclared > (first use in this function) > make: *** [add.o] Error 1 > cla...@cdc-linux:~/build/fossil$ > > _______________________________________________ > fossil-users mailing list > fossil-users@lists.fossil-scm.org > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users > > if your lucky you can do mingw make -f makefile.w32. But I guess your are not! determing how the mingw compiler is called for me under arch it is i486-mingw32-gcc determing libs for mingw mine /usr/i486-mingw32/lib determing incs for mingw mine /usr/i486-mingw32/include download zlib-1.2.3.tar.gz mkdir mingw cd mingw tar -xvf zlib-1.2.3.tar.gz cd zlib-1.2.3 CC=i486-mingw32-gcc ./configure i486-mingw32-ranlib libz.a cd .. mkdir fossil cd fossil fossil co your-fossil-rep or unzip the src you downloaded make (yes unix you need unix translate) rm *.o vi Makefile.win32 change gcc into i486-mingw32-gcc change the TCC line from TCC = i486-mingw32-gcc -Os -Wall -DFOSSIL_I18N=0 -L/mingw/lib -I/mingw/include to TCC = i486-mingw32-gcc -Os -Wall -DFOSSIL_I18N=0 -L/usr/i486-mingw/lib -I/usr/i486-mingw/include -L../zlib-1.2.3 -I../zlib-1.2.3 save it make -f Makefile.w32 Have fun, Rene _______________________________________________ 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
_______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users