Problems building on SuSE 10.0

Olly Betts olly at survex.com
Thu Jun 1 13:03:00 BST 2006


On Tue, May 30, 2006 at 05:03:35PM +0100, Loeffler, David wrote:
> (In case anyone is interested: I downloaded the wx 2.6 source RPM,
> compiled it, and finally got Aven to compile and run, but at this
> point found I'd broken something else which needed a Unicode version
> of wx.

You can just build and install the different wx variants in different
locations.  Specify --prefix=/opt/wx2.6-non-unicode or similar when
configuring wx and configure survex with:

./configure WXCONFIG=/opt/wx2.6-non-unicode/bin/wx-config

And then you need to run aven using:

LD_LIBRARY_PATH=/opt/wx2.6-non-unicode/lib aven

I think wx now has support for installing several different variants
at the same prefix and selecting the one you want by running a
differently named wx-config, or passing parameters, but I find it's
cleaner to just use a separate prefix as it allows me to nuke the
whole installation with a single command without risk of touching
anything else.  But then I sometimes want to install different versions
of wx just to test survex with so my needs are atypical.

> Fortunately, someone told me how to build Survex statically
> linked to the non-Unicode wx while also having the Unicode version
> installed, which I hadn't realised I could do.)

Just passing --static to wx-config?  Yeah, that works too though gets
a bit wasteful if we ever have more programs using wx than just aven.

> Perhaps there should be a warning in the installation instructions
> about this whole Unicode/non-Unicode wx versions thing? Or maybe the
> configure script could be made to check whether or not the installed
> wx library is a Unicode one?

If we assume a newer wx (newer than 2.4 at least) we could pass
--unicode=no to wx-config, but sadly we can't yet assume that as we're
stuck with 2.4 on debian (because the debian packages of 2.6 are unicode
only).  But we can probably just look at the wx version and check this
only for 2.6 and up.

Cheers,
    Olly



More information about the Survex mailing list