Thread overview | ||||||
---|---|---|---|---|---|---|
|
January 28, 2004 working with jpeg images | ||||
---|---|---|---|---|
| ||||
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. |
January 28, 2004 Re: working with jpeg images | ||||
---|---|---|---|---|
| ||||
Posted in reply to Dmitry Morozhnikov | 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. > > > |
January 28, 2004 Re: working with jpeg images | ||||
---|---|---|---|---|
| ||||
Posted in reply to Arjan Knepper | 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. |
January 29, 2004 Re: working with jpeg images | ||||
---|---|---|---|---|
| ||||
Posted in reply to Dmitry Morozhnikov |
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
|
Copyright © 1999-2021 by the D Language Foundation