It is currently Tue Nov 12, 2019 1:56 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: libjpeg Conflict
PostPosted: Mon May 28, 2018 6:58 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1592
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.

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Last edited by JHPJHP on Mon May 28, 2018 7:06 pm, edited 2 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: libjpeg Conflict
PostPosted: Mon May 28, 2018 7:05 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Sun Aug 08, 2004 5:21 am
Posts: 3515
Location: Netherlands
Would it make a difference to use libjpeg-turbo instead of libjpeg ?

_________________
macOS 10.15 Catalina, PB 5.71 x64


Top
 Profile  
Reply with quote  
 Post subject: Re: libjpeg Conflict
PostPosted: Mon May 28, 2018 7:09 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1592
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?

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Last edited by JHPJHP on Mon May 28, 2018 7:36 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: libjpeg Conflict
PostPosted: Mon May 28, 2018 7:34 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Sun Aug 08, 2004 5:21 am
Posts: 3515
Location: Netherlands
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/

_________________
macOS 10.15 Catalina, PB 5.71 x64


Top
 Profile  
Reply with quote  
 Post subject: Re: libjpeg Conflict
PostPosted: Tue May 29, 2018 8:48 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1592
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().

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: libjpeg Conflict
PostPosted: Tue May 29, 2018 9:36 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Sun Aug 08, 2004 5:21 am
Posts: 3515
Location: Netherlands
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.

_________________
macOS 10.15 Catalina, PB 5.71 x64


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye