POV-Ray : Newsgroups : povray.bugreports : Possible JPEG file output in Povray 3.7 Server Time
21 Dec 2024 11:39:36 EST (-0500)
  Possible JPEG file output in Povray 3.7 (Message 1 to 5 of 5)  
From: Ken Shumway
Subject: Possible JPEG file output in Povray 3.7
Date: 25 Jan 2015 03:20:01
Message: <web.54c4a695c93354ada2b638bc0@news.povray.org>
When I try to output in Jpeg format, I get this error message:  JPEG parameter
stgruct mismatch: library thinks size is 372, caller expects 376 Render failed.
 I am running with Ubuntu Linux 10.4. The screen output from Povray includes a
statement that the support library LibJPEG 62 with a Copyright date of 2013 is
used.  Is there a library that needs updating to fix this problem?


Post a reply to this message

From: Le Forgeron
Subject: Re: Possible JPEG file output in Povray 3.7
Date: 25 Jan 2015 07:12:39
Message: <54c4ddb7$1@news.povray.org>
Le 25/01/2015 09:18, Ken Shumway a écrit :
> When I try to output in Jpeg format, I get this error message:  JPEG parameter
> stgruct mismatch: library thinks size is 372, caller expects 376 Render failed.
>  I am running with Ubuntu Linux 10.4. The screen output from Povray includes a
> statement that the support library LibJPEG 62 with a Copyright date of 2013 is
> used.  Is there a library that needs updating to fix this problem?
> 

There is a change in Jpeg library between version 6 (6.2) and version 8.
As a dynamic library, the structure should be the same size for the
execution as for the compilation. The message you get is about such issue.

So either you can recompile povray with your current libraries (in dev
version) or you can install the shared libraries needed by your current
binary of povray. (but IIRC, Libjpeg6 & 8 are not compatible packages,
that might break something else)

Your main problem might be finding active repository with 10.4 (that's a
LTS that is 2 releases old: 12.04 and 14.04 are now out, so 10.4 might
soon become hard to get packages for: desktop is no more supported since
May 2013, and server is reaching that state in April 2015... two months
to go)


Post a reply to this message

From: clipka
Subject: Re: Possible JPEG file output in Povray 3.7
Date: 25 Jan 2015 19:33:09
Message: <54c58b45$1@news.povray.org>
Am 25.01.2015 um 09:18 schrieb Ken Shumway:
> When I try to output in Jpeg format, I get this error message:  JPEG parameter
> stgruct mismatch: library thinks size is 372, caller expects 376 Render failed.
>   I am running with Ubuntu Linux 10.4. The screen output from Povray includes a
> statement that the support library LibJPEG 62 with a Copyright date of 2013 is
> used.  Is there a library that needs updating to fix this problem?

If you're using the Ubuntu pre-built povray package, please contact the 
corresponding Ubuntu package maintainer for support; it should be their 
job to make sure that the POV-Ray package contains all the relevant 
dependency information to also install the matching libjpeg version.

If you're using POV-Ray compiled from source, theoretically all you'd 
need to do is make sure that you have matching libjpeg and libjpeg-dev 
packages installed when you configure and build POV-Ray. (Do NOT try to 
use the libjpeg sources coming with the POV-Ray source; it's only 
included to build POV-Ray for Windows.)


Post a reply to this message

From: Ken Shumway
Subject: Re: Possible JPEG file output in Povray 3.7
Date: 26 Jan 2015 06:30:00
Message: <web.54c6250a44a07e55a2b638bc0@news.povray.org>
Le_Forgeron <jgr### [at] freefr> wrote:
> Le 25/01/2015 09:18, Ken Shumway a écrit :
> > When I try to output in Jpeg format, I get this error message:  JPEG parameter
> > stgruct mismatch: library thinks size is 372, caller expects 376 Render failed.
> >  I am running with Ubuntu Linux 10.4. The screen output from Povray includes a
> > statement that the support library LibJPEG 62 with a Copyright date of 2013 is
> > used.  Is there a library that needs updating to fix this problem?
> >
>
> There is a change in Jpeg library between version 6 (6.2) and version 8.
> As a dynamic library, the structure should be the same size for the
> execution as for the compilation. The message you get is about such issue.
>
> So either you can recompile povray with your current libraries (in dev
> version) or you can install the shared libraries needed by your current
> binary of povray. (but IIRC, Libjpeg6 & 8 are not compatible packages,
> that might break something else)
>
> Your main problem might be finding active repository with 10.4 (that's a
> LTS that is 2 releases old: 12.04 and 14.04 are now out, so 10.4 might
> soon become hard to get packages for: desktop is no more supported since
> May 2013, and server is reaching that state in April 2015... two months
> to go)

Thank you for your help.  Though I have been trying to avoid it, I decided to
update my OS.  Povray now works as expected.


Post a reply to this message

From: Ken Shumway
Subject: Re: Possible JPEG file output in Povray 3.7
Date: 26 Jan 2015 06:35:00
Message: <web.54c6256944a07e55a2b638bc0@news.povray.org>
clipka <ano### [at] anonymousorg> wrote:
> Am 25.01.2015 um 09:18 schrieb Ken Shumway:
> > When I try to output in Jpeg format, I get this error message:  JPEG parameter
> > stgruct mismatch: library thinks size is 372, caller expects 376 Render failed.
> >   I am running with Ubuntu Linux 10.4. The screen output from Povray includes a
> > statement that the support library LibJPEG 62 with a Copyright date of 2013 is
> > used.  Is there a library that needs updating to fix this problem?
>
> If you're using the Ubuntu pre-built povray package, please contact the
> corresponding Ubuntu package maintainer for support; it should be their
> job to make sure that the POV-Ray package contains all the relevant
> dependency information to also install the matching libjpeg version.
>
> If you're using POV-Ray compiled from source, theoretically all you'd
> need to do is make sure that you have matching libjpeg and libjpeg-dev
> packages installed when you configure and build POV-Ray. (Do NOT try to
> use the libjpeg sources coming with the POV-Ray source; it's only
> included to build POV-Ray for Windows.)

Thank you for your help.  I decided it was finally time to upgrade my OS.  Works
great now.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.