[Box Backup] Compile Boxi from tarball or trunk?

Achim boxbackup@boxbackup.org
Tue, 07 Apr 2009 15:28:04 +0200


Hello Chris:

On Mon, 6 Apr 2009 09:40:58 +0100 (BST), Chris Wilson <chris@qwirx.com>
wrote:
> Only if we're going to suggest using the mingw cppunit instead of 
> compiling our own, and I haven't seen it or tested it yet. We can just 
> add -I/usr/include/mingw to CPPFLAGS during the configure step.

OK, seems like a good idea. I also wanted to mention that using the
Cygwin-supplied CPPunit introduces the dependency on cygwin1.dll. 

It might be worth considering the tradeoff between using latest OpenSSL,
PCRE and CPPunit as supplied by Cygwin and compiling them by hand which in
the case of OpenSSL requires us to use an outdated version. Any views on
this?

>> One other minor thing is that one has to remember to run 
>> ./make-image-headers.pl after ./configure-mingw.sh, perhaps that could 
>> be integrated into the Makefile?
> 
> The makefile is generated by anjuta and automake, and I have no idea how 
> to add anything to it. Configure/autogen could do it, however.

Hm, I have no experience in that area whatsoever, otherwise I would supply
a diff.

By the way, the final (stripped) binaries look like this:

07/04/2009  15:25    <DIR>          .
07/04/2009  15:25    <DIR>          ..
06/04/2009  17:26               976 bbackupd.conf
06/04/2009  16:55        10.053.632 boxi.exe
06/04/2009  17:28           668.672 cygcppunit-1-12-0.dll
02/03/2009  03:25            86.528 mgwz.dll
11/01/2009  15:25            11.362 mingwm10.dll
29/01/2009  17:04             3.807 NotifySysAdmin.vbs
               6 archivos     10.824.977 bytes

and after using UPX like this:

07/04/2009  15:23    <DIR>          .
07/04/2009  15:23    <DIR>          ..
06/04/2009  17:26               976 bbackupd.conf
06/04/2009  16:55         2.668.032 boxi.exe
06/04/2009  17:28           234.496 cygcppunit-1-12-0.dll
02/03/2009  03:25            48.128 mgwz.dll
11/01/2009  15:25             9.826 mingwm10.dll
29/01/2009  17:04             3.807 NotifySysAdmin.vbs
               6 archivos      2.965.265 bytes