> 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