PureBasic Forum
http://forums.purebasic.com/english/

libjpeg Conflict
http://forums.purebasic.com/english/viewtopic.php?f=15&t=70776
Page 1 of 1

Author:  JHPJHP [ Mon May 28, 2018 6:58 pm ]
Post subject:  libjpeg Conflict

Hi,

Ubuntu 18.04 64 bit
PureBasic 5.62 (x64)
OpenCV 2.4.13.6
CMake (GUI) 3.11.2

Has anyone experienced the following problem, and/or found a solution?
- LINUX: PureBasic Interface to OpenCV

I use CMake to build Shared OpenCV libraries WITH libjpeg, but if my PureBasic scripts include UseJPEGImageDecoder() or UseJPEGImageEncoder(), the OpenCV Function used to return an image Structure fails when opening a JPEG image.

This problem does not affect opening PNG images when libpng is used with UsePNGImageDecoder() or UsePNGImageEncoder().

NB*: The same problem was also prevalent in other builds using earlier versions of Ubuntu, PureBasic and OpenCV.

Author:  wilbert [ Mon May 28, 2018 7:05 pm ]
Post subject:  Re: libjpeg Conflict

Would it make a difference to use libjpeg-turbo instead of libjpeg ?

Author:  JHPJHP [ Mon May 28, 2018 7:09 pm ]
Post subject:  Re: libjpeg Conflict

Hi wilbert,

Wow that was quick, I was still formulating my question in the previous post :mrgreen:

wilbert wrote:
Would it make a difference to use libjpeg-turbo instead of libjpeg ?

I thought of that, and pointed the libjpeg parameters to the turbo folders, but my first couple attempts failed.
- How to compile OpenCV with libjpeg-turbo?

Author:  wilbert [ Mon May 28, 2018 7:34 pm ]
Post subject:  Re: libjpeg Conflict

JHPJHP wrote:
I thought of that, and pointed the libjpeg parameters to the turbo folders, but my first couple attempts failed.
- How to compile OpenCV with libjpeg-turbo?

I have little experience with compiling libraries but did find a more recent post about opencv with libjpeg-turbo; don't know if it gives you any new ideas on how to make it work.
http://unanancyowen.com/en/opencv-with-libjpeg-turbo/

Author:  JHPJHP [ Tue May 29, 2018 8:48 pm ]
Post subject:  Re: libjpeg Conflict

Hi wilbert,

wilbert wrote:
http://unanancyowen.com/en/opencv-with-libjpeg-turbo/

What a great find, thank you for the link. With only a quick glance at the documentation, it looks promising; I hope to test it soon.

-----------------------------------------------------------

Hi wilbert,

Another failed build (x4)... I confirmed libjpeg-turbo replaced libjpeg correctly, but the error persisted when using either UseJPEGImageDecoder() or UseJPEGImageEncoder().

Author:  wilbert [ Tue May 29, 2018 9:36 pm ]
Post subject:  Re: libjpeg Conflict

JHPJHP wrote:
Hi wilbert,

Another failed build (x4)... I confirmed libjpeg-turbo replaced libjpeg correctly, but the error persisted when using either UseJPEGImageDecoder() or UseJPEGImageEncoder().

Sorry to hear that :(
I was hoping that maybe different internal function names of libjpeg-turbo would resolve the conflict.

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/