Discussion:
error: 'SmoothingModeInvalid' was not declared in this scope (compiling trunk on Windows using gcc 4.8.1)
p***@gmail.com
2014-04-11 18:27:50 UTC
Permalink
I'm trying to compile the current trunk on Windows using mingw-tdm (gcc
4.8.1) and am getting the following errors:

./src/msw/graphics.cpp: In member function 'virtual bool
wxGDIPlusContext::SetAntialiasMode(wxAntialiasMode)':
./src/msw/graphics.cpp:1552:35: error: 'SmoothingModeInvalid' was not
declared in this scope
SmoothingMode antialiasMode = SmoothingModeInvalid;
./src/msw/graphics.cpp: In member function 'virtual bool
wxGDIPlusContext::SetInterpolationQuality(wxInterpolationQuality)':
./src/msw/graphics.cpp:1580:43: error: 'InterpolationModeInvalid' was not
declared in this scope
InterpolationMode interpolationMode = InterpolationModeInvalid;

I couldn't find anything relevant about these errors; how do I fix them?
Thank you.

My wxwidgets setup:

Configured wxWidgets 3.1.0 for `i686-pc-mingw32'

Which GUI toolkit should wxWidgets use? msw
Should wxWidgets be compiled into single library? no
Should wxWidgets be linked as a shared library? no
Should wxWidgets support Unicode? yes (using
wchar_t)
What level of wxWidgets compatibility should be enabled?
wxWidgets 2.8 yes
wxWidgets 3.0 yes
Which libraries should wxWidgets use?
STL no
jpeg builtin
png builtin
regex builtin
tiff no
zlib builtin
expat no
libmspack no
sdl no

Paul.
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Vadim Zeitlin
2014-04-12 00:09:40 UTC
Permalink
Post by p***@gmail.com
I'm trying to compile the current trunk on Windows using mingw-tdm (gcc
./src/msw/graphics.cpp: In member function 'virtual bool
./src/msw/graphics.cpp:1552:35: error: 'SmoothingModeInvalid' was not
declared in this scope
SmoothingMode antialiasMode = SmoothingModeInvalid;
./src/msw/graphics.cpp: In member function 'virtual bool
./src/msw/graphics.cpp:1580:43: error: 'InterpolationModeInvalid' was not
declared in this scope
InterpolationMode interpolationMode = InterpolationModeInvalid;
I couldn't find anything relevant about these errors; how do I fix them?
For some really weird reason MinGW headers actually contain these symbols
but they are commented out. This is annoying because we can't test whether
these enum elements are available or not... Anyhow, I'll check in a hack to
fix this soon, thanks for reporting.

VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
p***@gmail.com
2014-04-12 05:20:05 UTC
Permalink
Post by Vadim Zeitlin
For some really weird reason MinGW headers actually contain these symbols
but they are commented out. This is annoying because we can't test whether
these enum elements are available or not...
Yes, I couldn't find much either, short of the patch that mentioned, but
didn't add these constants:
http://sourceforge.net/p/mingw/mailman/message/25361105/

5. Still missing: QualityModeInvalid, InterpolationModeInvalid,
PixelOffsetModeInvalid, SmoothingModeInvalid. Possibly -1?
Post by Vadim Zeitlin
Anyhow, I'll check in a hack to fix this soon, thanks for reporting.
Would be great as I'm a bit stuck. Thank you!

Paul.
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Vadim Zeitlin
2014-04-12 11:57:31 UTC
Permalink
Post by p***@gmail.com
Yes, I couldn't find much either, short of the patch that mentioned, but
http://sourceforge.net/p/mingw/mailman/message/25361105/
5. Still missing: QualityModeInvalid, InterpolationModeInvalid,
PixelOffsetModeInvalid, SmoothingModeInvalid. Possibly -1?
FWIW, they are indeed all -1.
Post by p***@gmail.com
Post by Vadim Zeitlin
Anyhow, I'll check in a hack to fix this soon, thanks for reporting.
Would be great as I'm a bit stuck. Thank you!
I did check it in as r76317 yesterday.

Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
p***@gmail.com
2014-04-12 17:22:35 UTC
Permalink
Post by Vadim Zeitlin
I did check it in as r76317 yesterday.
That worked; thank you for the quick fix!

Paul.
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Loading...