c++.wxwindows - working with jpeg images
- Dmitry Morozhnikov (21/21) Jan 27 2004 If someone have troubles with jpeg images please see this bugreport send...
- Arjan Knepper (5/35) Jan 28 2004 This has been reported and solved a long time ago, see:
- Dmitry Morozhnikov (2/5) Jan 28 2004 Sorry then :-( I got prepackaged zips and now see it is fixed in cvs.
- chris elliott (4/7) Jan 29 2004 Thanks, this was fixed in both 2.4.x and HEAD CVS branches due to
If someone have troubles with jpeg images please see this bugreport sended to wxWindows team today: In a file src/common/imagjpeg.cpp:36 there is lines to prevent definition of boolean type in src/jpeg/jmorecfg.h: #if defined(__WXMSW__) && (defined(__MWERKS__) || defined(__DIGITALMARS__) || (defined(__WATCOMC__) && __WATCOMC__ < 1200)) #define HAVE_BOOLEAN #include <windows.h> #endif extern "C" { #include "jpeglib.h" } But with at least Digital Mars compiler jpeg library itself is build without inclusion of windows.h and with different size of boolean. Applications like src/samples/image/ which work with jpeg images just crashes after check at src/jpeg/jdapimin.c:38 (and probably src/jpeg/jcapimin.c:38). For some mysterious reason compiler flag -a8 (align structure members to 8 byte boundary) used in src/makesc.env does not help. (dmc version 8.38). As a quick workaround, inclusion if windows.h instead of definition of boolean at src/jpeg/jmorecfg.h:261 work well.
Jan 27 2004
This has been reported and solved a long time ago, see: http://www.digitalmars.com/drn-bin/wwwnews?c%2B%2B.wxwindows/24 Where did you get the src-tree? From CVS or prepacked zip? Arjan Dmitry Morozhnikov wrote:If someone have troubles with jpeg images please see this bugreport sended to wxWindows team today: In a file src/common/imagjpeg.cpp:36 there is lines to prevent definition of boolean type in src/jpeg/jmorecfg.h: #if defined(__WXMSW__) && (defined(__MWERKS__) || defined(__DIGITALMARS__) || (defined(__WATCOMC__) && __WATCOMC__ < 1200)) #define HAVE_BOOLEAN #include <windows.h> #endif extern "C" { #include "jpeglib.h" } But with at least Digital Mars compiler jpeg library itself is build without inclusion of windows.h and with different size of boolean. Applications like src/samples/image/ which work with jpeg images just crashes after check at src/jpeg/jdapimin.c:38 (and probably src/jpeg/jcapimin.c:38). For some mysterious reason compiler flag -a8 (align structure members to 8 byte boundary) used in src/makesc.env does not help. (dmc version 8.38). As a quick workaround, inclusion if windows.h instead of definition of boolean at src/jpeg/jmorecfg.h:261 work well.
Jan 28 2004
In article <bv7vuq$2j2a$1 digitaldaemon.com>, Arjan Knepper says...This has been reported and solved a long time ago, see: http://www.digitalmars.com/drn-bin/wwwnews?c%2B%2B.wxwindows/24 Where did you get the src-tree? From CVS or prepacked zip?Sorry then :-( I got prepackaged zips and now see it is fixed in cvs.
Jan 28 2004
Dmitry Morozhnikov wrote:If someone have troubles with jpeg images please see this bugreport sended to wxWindows team today:Thanks, this was fixed in both 2.4.x and HEAD CVS branches due to Arjan's perseverance chris
Jan 29 2004