Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - Shared library issue: (2 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 so name does not match file name.

Now when you link against that library, program linker will 
  store dependency using soname (not filename), that is 
"libh264dec_lib.so.1". At runtime, ldd will read "NEEDED" 
from your executable (h264dec) and find 
"libh264dec_lib.so.1"; this will be used for file lookup.



Venkatarao Patnaik Balivada wrote:
> 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/post25524
>