|
View:
New views
20 Messages
—
Rating Filter:
Alert me
|
| < Prev | 1 - 2 | Next > |
|
|
libpng1.4 and Windows CEHey, I'm trying to compile libpng 1.4 with cegcc (mingw32ce compiler). There is a compilation problem: png.h, line 1444, struct tm is used pngconf.h, line 1036 : time.h is not included on Windows CE The guards for the function and the struct are different. I don't know how they are set. regards Vincent Torri ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ png-mng-implement mailing list png-mng-implement@... https://lists.sourceforge.net/lists/listinfo/png-mng-implement |
|
|
Re: libpng1.4 and Windows CEVincent Torri wrote:
> I'm trying to compile libpng 1.4 with cegcc (mingw32ce compiler). There is > a compilation problem: > > png.h, line 1444, struct tm is used > > pngconf.h, line 1036 : time.h is not included on Windows CE > > The guards for the function and the struct are different. I don't know how > they are set. As far as I can tell, Windows CE since version 4 has had time.t containing at least "struct tm" (though not necessarily much else), so perhaps the relevant "#ifndef _WIN32_WCE" guard in pngconf.h should just be removed. - Jim ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ png-mng-implement mailing list png-mng-implement@... https://lists.sourceforge.net/lists/listinfo/png-mng-implement |
|
|
Re: libpng1.4 and Windows CESomeone advised us to stop supporting old CE stuff because no one
uses it anymore. Apparently the advice was incorrect. I think it would be fairly easy to restore the old-CE support if necessary. Thanks for testing! Glenn On Wed, Oct 28, 2009 at 7:25 AM, Vincent Torri <vtorri@...> wrote: > > Hey, > > I'm trying to compile libpng 1.4 with cegcc (mingw32ce compiler). There is > a compilation problem: ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ png-mng-implement mailing list png-mng-implement@... https://lists.sourceforge.net/lists/listinfo/png-mng-implement |
|
|
Re: libpng1.4 and Windows CEOn Wed, 28 Oct 2009, Glenn Randers-Pehrson wrote: > Someone advised us to stop supporting old CE stuff because no one > uses it anymore. > > Apparently the advice was incorrect. > > I think it would be fairly easy to restore the old-CE support if > necessary. Iirc, the discussion was arguing if one should use the native api or the c runtime one. Anyway, i have ported a set of graphic libraries on Windows CE, and there is a png image loader/saver. I have a port for libpng 1.2.33, but it would be better to have the latest one. for the port (especially the changes) see http://sourceforge.net/projects/cegcc/files/ported packages/ Vincent Torri ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ png-mng-implement mailing list png-mng-implement@... https://lists.sourceforge.net/lists/listinfo/png-mng-implement |
|
|
Re: libpng1.4 and Windows CEOn Wed, 28 Oct 2009, Jim Barry wrote: > Vincent Torri wrote: >> I'm trying to compile libpng 1.4 with cegcc (mingw32ce compiler). There is >> a compilation problem: >> >> png.h, line 1444, struct tm is used >> >> pngconf.h, line 1036 : time.h is not included on Windows CE >> >> The guards for the function and the struct are different. I don't know how >> they are set. > > As far as I can tell, Windows CE since version 4 has had time.t containing > at least "struct tm" (though not necessarily much else), so perhaps the > relevant "#ifndef _WIN32_WCE" guard in pngconf.h should just be removed. at least, mingw32ce provides it. Vincent Torri ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ png-mng-implement mailing list png-mng-implement@... https://lists.sourceforge.net/lists/listinfo/png-mng-implement |
|
|
Re: libpng1.4 and Windows CEOn Wed, 28 Oct 2009, Vincent Torri wrote: > On Wed, 28 Oct 2009, Jim Barry wrote: > >> Vincent Torri wrote: >>> I'm trying to compile libpng 1.4 with cegcc (mingw32ce compiler). There is >>> a compilation problem: >>> >>> png.h, line 1444, struct tm is used >>> >>> pngconf.h, line 1036 : time.h is not included on Windows CE >>> >>> The guards for the function and the struct are different. I don't know how >>> they are set. >> >> As far as I can tell, Windows CE since version 4 has had time.t containing >> at least "struct tm" (though not necessarily much else), so perhaps the >> relevant "#ifndef _WIN32_WCE" guard in pngconf.h should just be removed. > > at least, mingw32ce provides it. I've tried the compilation with libpng 1.4.0 beta 89 and there is still the compilation problem regards Vincent Torri ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ png-mng-implement mailing list png-mng-implement@... https://lists.sourceforge.net/lists/listinfo/png-mng-implement |
|
|
Re: libpng1.4 and Windows CEVincent, does 1.2.41beta10 work for you?
1.4.0 removes some obsolete/deprecated stuff, and apparently the WIN32_WCE stuff is not as obsolete as we thought. I can put it back in 1.4.0 if need be. Glenn On Sun, Nov 1, 2009 at 3:02 AM, Vincent Torri <vtorri@...> wrote: > > > On Wed, 28 Oct 2009, Vincent Torri wrote: > >> On Wed, 28 Oct 2009, Jim Barry wrote: >> >>> Vincent Torri wrote: >>>> I'm trying to compile libpng 1.4 with cegcc (mingw32ce compiler). There is >>>> a compilation problem: >>>> >>>> png.h, line 1444, struct tm is used >>>> >>>> pngconf.h, line 1036 : time.h is not included on Windows CE >>>> >>>> The guards for the function and the struct are different. I don't know how >>>> they are set. >>> >>> As far as I can tell, Windows CE since version 4 has had time.t containing >>> at least "struct tm" (though not necessarily much else), so perhaps the >>> relevant "#ifndef _WIN32_WCE" guard in pngconf.h should just be removed. >> >> at least, mingw32ce provides it. > > I've tried the compilation with libpng 1.4.0 beta 89 and there is still > the compilation problem > > regards > > Vincent Torri > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > png-mng-implement mailing list > png-mng-implement@... > https://lists.sourceforge.net/lists/listinfo/png-mng-implement > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ png-mng-implement mailing list png-mng-implement@... https://lists.sourceforge.net/lists/listinfo/png-mng-implement |
|
|
Re: libpng1.4 and Windows CEOn Sun, 1 Nov 2009, Glenn Randers-Pehrson wrote: > Vincent, does 1.2.41beta10 work for you? It compiles, but i have not tested yet on my device. I'll try to do that today. Btw, please download the source file libpng-1.2.33-src.tar.bz2 in http://sourceforge.net/projects/cegcc/files/ported%20packages/ and look in the patch/ subdirectory. ltmain.sh needs to be patched so that the cegcc framework can work. The moditication will be available in libtool 2.2.7 (it is currently in the git repo of libtool) The patch also contains a . def for windows ce. I actuallly don't know if it is really necessary or not (i cross-compile only with the autotools) > 1.4.0 removes some obsolete/deprecated stuff, and apparently > the WIN32_WCE stuff is not as obsolete as we thought. I can put it > back in 1.4.0 if need be. Yes please. Provide a patch so that i can test before it goes in libpng repo thank you Vincent Torri ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ png-mng-implement mailing list png-mng-implement@... https://lists.sourceforge.net/lists/listinfo/png-mng-implement |
|
|
Re: libpng1.4 and Windows CEFrom: Glenn Randers-Pehrson [mailto:glennrp@...]
>1.4.0 removes some obsolete/deprecated stuff, and apparently >the WIN32_WCE stuff is not as obsolete as we thought. I can put it >back in 1.4.0 if need be. The problem Vincent reported is still in 1.4.0beta89 - the !defined(WIN32_WCE) test around the #include <time.h> needs to go. 'struct tm' is supported in at least the latest C runtime environments for Windows (embedded) CE - see msdn.microsoft.com. The stdio functions and FILE* are also supported. Also the WinCE build is still using HANDLE, not FILE*, but that's a significant API change on WCE - every app and library that does not include its own IO handlers would have to be changed. John Bowler <jbowler@...> ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ png-mng-implement mailing list png-mng-implement@... https://lists.sourceforge.net/lists/listinfo/png-mng-implement |
|
|
Re: libpng1.4 and Windows CEOk, I only had to patch three packages to get a complete running 1.4.0
system on an up-to-date gentoo: pilot-link - patch to handle the disappearing NULL macros cairo - patch configure to be less selective in the libpng it searches for libpng - patches for the trans/trans_values and png_set_gray_1_2_4_to_8 API changes, also a patch to allow the check in ghostscript to work, but maybe this should be done by patching ghostscript. The cairo patch is already in the cairo database (they're fast!), I haven't reported the pilot-link issues yet. John Bowler <jbowler@...> ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ png-mng-implement mailing list png-mng-implement@... https://lists.sourceforge.net/lists/listinfo/png-mng-implement |
|
|
Re: libpng1.4 and Windows CE----- Original Message ----- From: "Vincent Torri" <vtorri@...> >>> The guards for the function and the struct are different. I don't know how >>> they are set. Here is a patch: --- libpng-1.4.0beta89/png.h 2009-10-31 21:31:00.466484528 -0500 +++ libpng-1.4.0beta90/png.h 2009-11-01 06:12:38.965893819 -0600 @@ -1442,6 +1442,7 @@ #endif #ifdef PNG_WRITE_tIME_SUPPORTED +# ifndef _WIN32_WCE /* Convert from a struct tm to png_time */ extern PNG_EXPORT(void,png_convert_from_struct_tm) PNGARG((png_timep ptime, struct tm FAR * ttime)); @@ -1449,6 +1450,7 @@ /* Convert from time_t to png_time. Uses gmtime() */ extern PNG_EXPORT(void,png_convert_from_time_t) PNGARG((png_timep ptime, time_t ttime)); +#endif /* _WIN32_WCE */ #endif /* PNG_WRITE_tIME_SUPPORTED */ #ifdef PNG_READ_EXPAND_SUPPORTED --- libpng-1.4.0beta89/pngwrite.c 2009-10-31 21:31:00.685854163 -0500 +++ libpng-1.4.0beta90/pngwrite.c 2009-11-01 06:12:39.172090339 -0600 @@ -421,6 +421,7 @@ } #ifdef PNG_WRITE_tIME_SUPPORTED +#ifndef _WIN32_WCE /* "time.h" functions are not supported on WindowsCE */ void PNGAPI png_convert_from_struct_tm(png_timep ptime, struct tm FAR * ttime) @@ -446,6 +447,7 @@ png_convert_from_struct_tm(ptime, tbuf); } #endif +#endif /* Initialize png_ptr structure, and allocate any memory needed */ @@ -532,7 +534,7 @@ (user_png_ver[0] == '1' && user_png_ver[2] != png_libpng_ver[2]) || (user_png_ver[0] == '0' && user_png_ver[2] < '9')) { -#if defined(PNG_STDIO_SUPPORTED) && !defined(_WIN32_WCE) +#ifdef PNG_STDIO_SUPPORTED char msg[80]; if (user_png_ver) { ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ png-mng-implement mailing list png-mng-implement@... https://lists.sourceforge.net/lists/listinfo/png-mng-implement |
|
|
Re: libpng1.4 and Windows CE----- Original Message ----- From: glennrp@... To: "PNG/MNG implementation discussion list" <png-mng-implement@...> Sent: Sunday, November 1, 2009 7:29:57 AM GMT -05:00 US/Canada Eastern Subject: Re: [png-mng-implement] libpng1.4 and Windows CE ----- Original Message ----- From: "Vincent Torri" <vtorri@...> >>> The guards for the function and the struct are different. I don't know how >>> they are set. Here is a patch: --- libpng-1.4.0beta89/png.h 2009-10-31 21:31:00.466484528 -0500 +++ libpng-1.4.0beta90/png.h 2009-11-01 06:12:38.965893819 -0600 [deletes time conversions] Never mind, I'll make another patch that restores time conversions and the reference to time.h Glenn ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ png-mng-implement mailing list png-mng-implement@... https://lists.sourceforge.net/lists/listinfo/png-mng-implement |
|
|
Re: libpng1.4 and Windows CEOn Sun, 1 Nov 2009, John Bowler wrote: > From: Glenn Randers-Pehrson [mailto:glennrp@...] >> 1.4.0 removes some obsolete/deprecated stuff, and apparently >> the WIN32_WCE stuff is not as obsolete as we thought. I can put it >> back in 1.4.0 if need be. > > The problem Vincent reported is still in 1.4.0beta89 - the > !defined(WIN32_WCE) test around the #include <time.h> needs to go. 'struct > tm' is supported in at least the latest C runtime environments for Windows > (embedded) CE - see msdn.microsoft.com. Actually, I'm wondering if it is really supported: http://msdn.microsoft.com/en-us/library/ms860380.aspx i don't see struct tm, here. Do you have another doc which says that struct tm is supported on Windows CE ? > The stdio functions and FILE* are > also supported. yes, fopen works on windows CE > Also the WinCE build is still using HANDLE, not FILE*, but that's a > significant API change on WCE - every app and library that does not include > its own IO handlers would have to be changed. Yes. Imho, one should decide if HANDLE or FILES * are used on Windows CE in libpng 1.4.0 Vincent Torri ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ png-mng-implement mailing list png-mng-implement@... https://lists.sourceforge.net/lists/listinfo/png-mng-implement |
|
|
Re: libpng1.4 and Windows CEI removed all of the remaining WIN32_WCE #ifdefs from libpng-1.4.0beta90
which is in the "devel" branch of the git repository. Glenn ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ png-mng-implement mailing list png-mng-implement@... https://lists.sourceforge.net/lists/listinfo/png-mng-implement |
|
|
Re: libpng1.4 and Windows CE----- Original Message ----- From: "Vincent Torri" <vtorri@...> Yes. Imho, one should decide if HANDLE or FILES * are used on Windows CE in libpng 1.4.0 Let me know what happens with the libpng-1.4.0beta90 from the git "devel" branch, and I'll restore HANDLE if necessary. Right now it uses FILE *. Glenn ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ png-mng-implement mailing list png-mng-implement@... https://lists.sourceforge.net/lists/listinfo/png-mng-implement |
|
|
Re: libpng1.4 and Windows CEOn Sun, 1 Nov 2009, Glenn Randers-Pehrson wrote: > I removed all of the remaining WIN32_WCE #ifdefs from libpng-1.4.0beta90 > which is in the "devel" branch of the git repository. the git repo compiles. Though, can you please patch also ltmain.sh anf libtool scripts ? Vincent Torri ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ png-mng-implement mailing list png-mng-implement@... https://lists.sourceforge.net/lists/listinfo/png-mng-implement |
|
|
Re: libpng1.4 and Windows CEOn Sun, Nov 1, 2009 at 8:30 AM, Vincent Torri <vtorri@...> wrote:
> Though, can you please patch also ltmain.sh anf libtool scripts ? I suppose so, but it adds significantly to my build process. Right now I am simply depending on autoconf. You are suggesting that I run autoconf and then patch its output. That's not really my job, but OK. #:-( Glenn ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ png-mng-implement mailing list png-mng-implement@... https://lists.sourceforge.net/lists/listinfo/png-mng-implement |
|
|
Re: libpng1.4 and Windows CEOn Sun, 1 Nov 2009, Glenn Randers-Pehrson wrote: > On Sun, Nov 1, 2009 at 8:30 AM, Vincent Torri <vtorri@...> wrote: > >> Though, can you please patch also ltmain.sh anf libtool scripts ? > > I suppose so, but it adds significantly to my build process. Right now > I am simply depending on autoconf. You are suggesting that I run > autoconf and then patch its output. That's not really my job, but OK. you're depending on automake and libtool too. I'm not suggesting that you run autoconf, as libtool script (in libpng/) is created by libtoolize from ltmain.sh, and the libtool script is used during the compilation and the link. that change exists already in libtool 2.2.7 (the current development version, which is not released yet) Vincent Torri ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ png-mng-implement mailing list png-mng-implement@... https://lists.sourceforge.net/lists/listinfo/png-mng-implement |
|
|
Re: libpng1.4 and Windows CEOn Sun, 1 Nov 2009, Glenn Randers-Pehrson wrote:
> On Sun, Nov 1, 2009 at 8:30 AM, Vincent Torri <vtorri@...> wrote: > >> Though, can you please patch also ltmain.sh anf libtool scripts ? > > I suppose so, but it adds significantly to my build process. Right now > I am simply depending on autoconf. You are suggesting that I run > autoconf and then patch its output. That's not really my job, but OK. I don't think this is a wise idea. As long as you keep Autotools up to date with actually released versions, the "end user" should easily be able to update the files themselves if they need the benefits of an unreleased version. The documentation can make a note of this. There has been some commentary about cutting a new libtool release soon, but there were also some problems found which should be fixed. Maybe the next libtool release will be within a month, or a year. Bob -- Bob Friesenhahn bfriesen@..., http://www.simplesystems.org/users/bfriesen/ GraphicsMagick Maintainer, http://www.GraphicsMagick.org/ ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ png-mng-implement mailing list png-mng-implement@... https://lists.sourceforge.net/lists/listinfo/png-mng-implement |
|
|
Re: libpng1.4 and Windows CEFrom: Vincent Torri [mailto:vtorri@...]
>Actually, I'm wondering if it is really supported: > >http://msdn.microsoft.com/en-us/library/ms860380.aspx > >i don't see struct tm, here. Do you have another doc which says that >struct tm is supported on Windows CE ? I did, but it seems the links can taken me into the Visual Stdio references. Here's the Win CE 5.0 runtime reference: http://msdn.microsoft.com/en-us/library/ms859613.aspx and it doesn't seem to contain any struct tm related functions. Likewise for 6.0: http://msdn.microsoft.com/en-us/library/ee479560.aspx (The latter contains the misleading link back to the Visual C++ list.) John Bowler ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ png-mng-implement mailing list png-mng-implement@... https://lists.sourceforge.net/lists/listinfo/png-mng-implement |
| < Prev | 1 - 2 | Next > |
| Free embeddable forum powered by Nabble | Forum Help |