Angus Leeming <[EMAIL PROTECTED]> writes: > > Enrico Forestieri <forenr <at> ...> writes: > > this is just to inform you that defining Q_CYGWIN_WIN in src/config.h > > is not sufficient to avoid X11 calls. I don't know why. > > That sounds as if some .C file doesn't #include <config.h> > > for file in `find . -name '*.C'` > do > grep '^ *# *include *<config\.h>' >/dev/null || \ > echo "$file does not include config.h" >&2 > done > > Hmmmm. What about the files generated from the .ui files? The _moc.C files?
Yes, that's it! All (or at least a large part) of the _moc.C files are missing that #include. Silly me, I had checked all the files in src/frontends/qt2 without thinking about the generated ones in build/src/frontends/qt2 :( > > It works only when adding -DQ_CYGWIN_WIN to the compiler invocation. > > However, when setting CXXFLAGS=-DQ_CYGWIN_WIN all default cxxflags (with > > the exception of -mms-bitfields) are lost. > > Try > configure CPPFLAGS='-DQ_FOO_BAR' Many thanks Angus, that makes it :) -- Enrico