View topic - How to load the library?

How to load the library?

anything that doesn't fit to other groups.

How to load the library?

Postby xuyong » Tue Sep 02, 2003 8:46 am

Do you check my last question?When I run "phlocale" under my cf card,QNX says that it can't find the library,but the library really exists,I don't when and how the library is loaded into system,Could anyone explain to me,thank you very much!
xuyong
Senior Member
 
Posts: 431
Joined: Sun Mar 02, 2003 7:52 am

Postby cdm » Wed Sep 03, 2003 4:08 pm

Try doing...

DL_DEBUG=1 phlocale

And post all the output.
cdm
QNX Master
 
Posts: 789
Joined: Fri Jul 05, 2002 9:38 am

Postby xuyong » Fri Sep 05, 2003 2:50 am

the output is:no such file or directory
xuyong
Senior Member
 
Posts: 431
Joined: Sun Mar 02, 2003 7:52 am

Postby xtang » Fri Sep 05, 2003 3:32 am

Are you running this in a photon pterm ? Is this your target board?
Try to give full path of "phlocale" and see how it does.
xtang
QNX Master
 
Posts: 313
Joined: Thu Jul 18, 2002 5:01 pm

Postby xuyong » Fri Sep 05, 2003 6:49 am

I run this in a QNX terminal,Yes,It's my target board,really it 's a CF card.
xuyong
Senior Member
 
Posts: 431
Joined: Sun Mar 02, 2003 7:52 am

Postby cdm » Sun Sep 07, 2003 3:23 am

what shell are you using? Try doing this...

export DL_DEBUG=1
phlocale
cdm
QNX Master
 
Posts: 789
Joined: Fri Jul 05, 2002 9:38 am

Postby xuyong » Mon Sep 08, 2003 12:31 am

the output is:attempt load of libphexlib.so.2,could not find library libphexlib.so.2
xuyong
Senior Member
 
Posts: 431
Joined: Sun Mar 02, 2003 7:52 am

Postby cdm » Mon Sep 08, 2003 3:57 am

So that lmeans that libphexlib.so.2 is either

1) not in your LD_LIBRARY_PATH
or
2) not on your system
cdm
QNX Master
 
Posts: 789
Joined: Fri Jul 05, 2002 9:38 am

Postby xuyong » Mon Sep 08, 2003 6:01 am

But they all exist.
xuyong
Senior Member
 
Posts: 431
Joined: Sun Mar 02, 2003 7:52 am

Postby cdm » Mon Sep 08, 2003 8:25 am

If the file exists (care to post the output of "ls -l /path/to/libphexlib.so.2"?) then you might have an issue with the perms of the file.
cdm
QNX Master
 
Posts: 789
Joined: Fri Jul 05, 2002 9:38 am


Return to General Programming

Who is online

Users browsing this forum: No registered users and 1 guest

cron