Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Shared library issue: (4 Items)
   
Shared library issue  
Hi,

I am using Momentix 6.4.0 tools. I have created a shared library libh264dec_lib.so, and linked to create an application 
called "h264dec". I have placed the library  in /tmp and updated LD_LIBRARY_PATH. I am still getting the error given 
below.
Any idea what is the issue?


export LD_LIBRARY_PATH=.:/proc/boot:/lib:/usr/lib:/lib/dll:/opt/lib:/tmp
# time ./h264dec BA_MW_D.264 out.yuv
Could not load library libh264dec_lib.so.1
    0.07s real     0.00s user     0.00s system

RE: Shared library issue  
Your application wants to link against
   libh264dec_lib.so.1
but your shared lib in /tmp appears to be named only
   libh264dec_lib.so

Try renaming the lib in /tmp.

- Thomas

> -----Original Message-----
> From: Venkatarao Patnaik Balivada [mailto:community-noreply@qnx.com] 
> Sent: 30 March 2009 15:31
> To: general-ide
> Subject: Shared library issue
> 
> Hi,
> 
> I am using Momentix 6.4.0 tools. I have created a shared 
> library libh264dec_lib.so, and linked to create an 
> application called "h264dec". I have placed the library  in 
> /tmp and updated LD_LIBRARY_PATH. I am still getting the 
> error given below.
> Any idea what is the issue?
> 
> 
> export 
> LD_LIBRARY_PATH=.:/proc/boot:/lib:/usr/lib:/lib/dll:/opt/lib:/tmp
> # time ./h264dec BA_MW_D.264 out.yuv
> Could not load library libh264dec_lib.so.1
>     0.07s real     0.00s user     0.00s system
> 
> 
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post25525
> 
> 
Re: RE: Shared library issue  
Thanks a lot Thomas, it worked. But why is it taking xxx.so.1? I have actually linked it by specifying it as extra 
library in the Linker options.
Re: Shared library issue  
On 30/03/2009 9:44 AM, Venkatarao Patnaik Balivada wrote:
> Thanks a lot Thomas, it worked. But why is it taking xxx.so.1? I have actually linked it by specifying it as extra 
library in the Linker options.
>
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post25528
>
>    
In Linker settings set Library version NO