2010-02-05 20:12:42     libjpeg-6 compiled with uclinux

Document created by Aaronwu Employee on Aug 20, 2013
Version 1Show Document
  • View in full screen mode

2010-02-05 20:12:42     libjpeg-6 compiled with uclinux

cristiana tenti (UNITED STATES)

Message: 85721   

 

Hello everybody,

 

 

 

I'm working on ADSP BF526 and I'm trying to cross compile a software that take a snapshot everytime it can detect a motion.

 

I crosscompiled the software (it's a autoconfig programm) and everything is fine.

 

But when I try to run it on my Blackfin it fails and says that it cannot find a video palette.

 

I look around and I've figured out the problem is at RUN time Blackfin try to find a jpeg library but it cannot find it.

 

The object file I feel that it needs is libjpeg.so.62.

 

When I compiled the linux kernel it ask me for which library I need and I selected libjpeg, but in this way I can only get libjpeg.7 .

 

So I'd like to cross compile libjpeg.62 alone (not with kernel) and transfer the object file in the right folder of my blackfin.

 

 

 

Is it a good strategy or not?

 

Anyone has some advise?

 

Thank you very much!!!

 

 

 

Cristiana

TranslateQuoteReplyEditDelete

 

 

2010-02-05 20:37:51     Re: libjpeg-6 compiled with uclinux

Mike Frysinger (UNITED STATES)

Message: 85722   

 

rebuild your apps against libjpeg-7 then

QuoteReplyEditDelete

 

 

2010-02-05 20:42:50     Re: libjpeg-6 compiled with uclinux

cristiana tenti (UNITED STATES)

Message: 85723   

 

Can I ask you to explain me what I have to do?

 

Have I to rebuild my software with that option?

 

 

 

Thanks!!

TranslateQuoteReplyEditDelete

 

 

2010-02-05 20:46:31     Re: libjpeg-6 compiled with uclinux

Mike Frysinger (UNITED STATES)

Message: 85724   

 

if you compiled your app against libjpeg in the first place, do the same thing again but use jpeg-7 instead of jpeg-6.

 

QuoteReplyEditDelete

 

 

2010-02-05 21:09:40     Re: libjpeg-6 compiled with uclinux

cristiana tenti (UNITED STATES)

Message: 85725   

 

ok,

 

but the problem is that software is a commercial software for ubuntu. I changed it wherever I needed, but I didn't write it from my own. So I don't know where is that declaration.

 

I look at configure file but there isn't and infact I haven't any error message at COMPILE time, only a  warning. But then when it run on blackfin it fails.

TranslateQuoteReplyEditDelete

 

 

2010-02-06 01:39:11     Re: libjpeg-6 compiled with uclinux

Mike Frysinger (UNITED STATES)

Message: 85726   

 

unless you were given a precompiled binary, the "commercial" aspect is irrelevant

 

either you're compiling the source yourself and linking against libjpeg, or the program dynamically loads at runtime via dlopen().  in the former case, have your toolchain link against libjpeg-7 instead.  in the latter case, fix the source code to load libjpeg.so.7 or install a symlink in the fliesystem to the other SONAME.

QuoteReplyEditDelete

 

 

2010-02-08 17:23:05     Re: libjpeg-6 compiled with uclinux

cristiana tenti (UNITED STATES)

Message: 85780   

 

Hi,

 

thank you for your reply but I don't understand what do you mean with this "install a symlink in the fliesystem to the other SONAME".

 

 

 

Can you explain me please?

TranslateQuoteReplyEditDelete

 

 

2010-02-09 15:45:24     Re: libjpeg-6 compiled with uclinux

Mike Frysinger (UNITED STATES)

Message: 85860   

 

use `ln -s` to create a symlink from the library you have to the library the app wants

Attachments

    Outcomes