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.
libjpeg Conflict
libjpeg Conflict
Last edited by JHPJHP on Mon May 28, 2018 7:06 pm, edited 2 times in total.
Re: libjpeg Conflict
Would it make a difference to use libjpeg-turbo instead of libjpeg ?
Windows (x64)
Raspberry Pi OS (Arm64)
Raspberry Pi OS (Arm64)
Re: libjpeg Conflict
Hi wilbert,
Wow that was quick, I was still formulating my question in the previous post
- How to compile OpenCV with libjpeg-turbo?
Wow that was quick, I was still formulating my question in the previous post
I thought of that, and pointed the libjpeg parameters to the turbo folders, but my first couple attempts failed.wilbert wrote:Would it make a difference to use libjpeg-turbo instead of libjpeg ?
- How to compile OpenCV with libjpeg-turbo?
Last edited by JHPJHP on Mon May 28, 2018 7:36 pm, edited 1 time in total.
Re: libjpeg Conflict
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.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?
http://unanancyowen.com/en/opencv-with-libjpeg-turbo/
Windows (x64)
Raspberry Pi OS (Arm64)
Raspberry Pi OS (Arm64)
Re: libjpeg Conflict
Hi wilbert,
-----------------------------------------------------------
Hi wilbert,
Another failed build (x4)... I confirmed libjpeg-turbo replaced libjpeg correctly, but the error persisted when using either UseJPEGImageDecoder() or UseJPEGImageEncoder().
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.wilbert wrote:http://unanancyowen.com/en/opencv-with-libjpeg-turbo/
-----------------------------------------------------------
Hi wilbert,
Another failed build (x4)... I confirmed libjpeg-turbo replaced libjpeg correctly, but the error persisted when using either UseJPEGImageDecoder() or UseJPEGImageEncoder().
Re: libjpeg Conflict
Sorry to hear thatJHPJHP wrote:Hi wilbert,
Another failed build (x4)... I confirmed libjpeg-turbo replaced libjpeg correctly, but the error persisted when using either UseJPEGImageDecoder() or UseJPEGImageEncoder().
I was hoping that maybe different internal function names of libjpeg-turbo would resolve the conflict.
Windows (x64)
Raspberry Pi OS (Arm64)
Raspberry Pi OS (Arm64)