[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lmi] wx ./configure options
From: |
Vadim Zeitlin |
Subject: |
Re: [lmi] wx ./configure options |
Date: |
Sat, 27 May 2017 19:20:31 +0200 |
On Sat, 27 May 2017 17:13:10 +0000 Greg Chicares <address@hidden> wrote:
GC> On 2017-05-27 11:38, Vadim Zeitlin wrote:
GC> > On Sat, 27 May 2017 10:44:32 +0000 Greg Chicares <address@hidden> wrote:
GC> [...]
GC> > GC> [BTW, is there any way I can easily see which options were ignored?
GC> > GC> On my first attempt, I mistakenly used this:
GC> > GC> --enable-enable-no_deps
GC> > GC> and I didn't find an error message diagnosing my mistake.]
GC> >
GC> > For some reasonable but still annoying reasons, configure doesn't check
GC> > --enable-xxx and --with-xxx options validity by default. This, however,
GC> > can be explicitly enabled with --enable-option-checking=fatal and I think
GC> > it would be a good idea to do it by default (you would still be able to
use
GC> > --disable-option-checking if really needed, e.g. if you wanted to pass
some
GC> > options not recognized by the main configure script to tiff or expat
GC> > configure which is run by it if the corresponding system library couldn't
GC> > be found).
GC>
GC> I'll omit the "=fatal" because using it has this result:
GC>
GC> === configuring in src/expat
(/opt/lmi/wx-scratch/wxWidgets-3.1.0-p1/gcc-491-89775012799fe5c9bd8ea61e5fa43da7/src/expat)
GC> configure: running /bin/bash ../../../src/expat/configure
--disable-option-checking '--prefix=/opt/lmi/local'
'--exec-prefix=/opt/lmi/local' '--build=x86_64-unknown-linux-gnu'
'--host=i686-w64-mingw32' '--disable-apple_ieee'
GC> [...big snip...]
GC> '--without-subdirs' 'CFLAGS=-fno-omit-frame-pointer'
'CXXFLAGS=-fno-omit-frame-pointer -std=c++11'
'build_alias=x86_64-unknown-linux-gnu' 'host_alias=i686-w64-mingw32'
--cache-file=/dev/null --srcdir=../../../src/expat
GC> configure: error: unrecognized options: --disable-apple_ieee,
--disable-aui, --disable-compat30, --disable-dependency-tracking,
--disable-fswatcher, --disable-gif, --disable-mediactrl,
--disable-precomp-headers, --disable-propgrid, --disable-ribbon,
--disable-richtext, --disable-stc, --disable-webview, --enable-monolithic,
--enable-std_iostreams, --enable-stl, --enable-vendor, --with-cxx,
--without-libjpeg, --without-libtiff, --without-opengl, --without-subdirs
GC> configure: error: ../../../src/expat/configure failed for src/expat
GC> /opt/lmi/src/lmi/install_wx.make:202: recipe for target 'wx' failed
GC>
GC> which prevents wx from building.
Ah, indeed, I didn't think about this, sorry. However my (pending) change
at
https://github.com/wxWidgets/wxWidgets/pull/487/commits/aa7e10bb0919982bfdc510bd9cdc8b84d621d80b
doesn't suffer from this problem.
GC> That means I'll have to grep the output for /WARNING/ occasionally, but
GC> that's okay.
So once you update to the wx version using the commit above, you won't
have to do it any more.
GC> Aside from that, I've made all the changes you suggested, and they
GC> have a remarkable effect on the time it takes to build wx:
Glad to hear this, I'm almost sure it's the effect of PCH. We really
should stop using them by default in configure, their benefit is not
obvious, to say the least...
VZ