OpenQNX :: The QNX Community Portal

Jul 05, 2008 - 11:08 AM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 39 unlogged users and 0 registered users online.

You can log-in or register for a user account here.

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
stjosue
Post subject: libvx2qnx help  PostPosted: Mar 18, 2006 - 12:12 AM
Active Member


Joined: Mar 06, 2006
Posts: 45

I've compiled and installed vx2qnx library.

testing libvx2qnx with the example "vx2qnx/example/vx_sem_prio/"

bash-2.05a# make
/usr/qnx630/host/qnx6/x86/usr/bin/qcc -Vgcc_ntox86 -c -Wc,-Wall -Wc,-Wno-parentheses -O -DNDEBUG -I. -I/home/vxtoqnx/vx2qnx/example/vx_sem_prio/x86/o -I/home/vxtoqnx/vx2qnx/example/vx_sem_prio/x86 -I/home/vxtoqnx/vx2qnx/example/vx_sem_prio -I/usr/qnx630/target/qnx6/usr/include /home/vxtoqnx/vx2qnx/example/vx_sem_prio/vx_sem_prio.c
/bin/rm -f /home/vxtoqnx/vx2qnx/example/vx_sem_prio/x86/o/vx2qnx_semprio
/usr/qnx630/host/qnx6/x86/usr/bin/qcc -Vgcc_ntox86 -Bdynamic -o/home/vxtoqnx/vx2qnx/example/vx_sem_prio/x86/o/vx2qnx_semprio vx_sem_prio.o -L.
-L/usr/qnx630/target/qnx6/x86/lib
-L/usr/qnx630/target/qnx6/x86/usr/lib -lvx2qnx

bash-2.05a# ls
. Makefile vx_sem_prio.o
.. vx2qnx_semprio
bash-2.05a# ./vx2qnx_semprio
Could not find library libvx2qnx.so.1
bash-2.05a#


why? what happend, if the libvx2qnx is installed correctly.

libvx2qnx.so.1 is in /usr/qnx630/target/qnx6/x86/usr/lib

help me please
 
 View user's profile Send private message  
Reply with quote Back to top
Igor Kovalenko
Post subject: Re: libvx2qnx help  PostPosted: Mar 21, 2006 - 03:40 AM
Guest





In general, a shared lib must be either in a path included into
LD_LIBRARY_PATH environment variable, or the path to it must be passed to
the linker (via -R option AFAIR) so it can be recorded in the executable.

You can export DL_DEBUG=1 before you start the app to see what is going on
with shared lib lookup.

-- igor

"stjosue" <stjosue@gmail-dot-com.no-spam.invalid> wrote in message
news:dvfpiq$h88$1@inn.qnx.com...
Quote:
I've compiled and installed vx2qnx library.

testing libvx2qnx with the example "vx2qnx/example/vx_sem_prio/"

bash-2.05a# make
/usr/qnx630/host/qnx6/x86/usr/bin/qcc -Vgcc_ntox86 -c -Wc,-Wall
-Wc,-Wno-parentheses -O -DNDEBUG -I.
-I/home/vxtoqnx/vx2qnx/example/vx_sem_prio/x86/o
-I/home/vxtoqnx/vx2qnx/example/vx_sem_prio/x86
-I/home/vxtoqnx/vx2qnx/example/vx_sem_prio
-I/usr/qnx630/target/qnx6/usr/include
/home/vxtoqnx/vx2qnx/example/vx_sem_prio/vx_sem_prio.c
/bin/rm -f
/home/vxtoqnx/vx2qnx/example/vx_sem_prio/x86/o/vx2qnx_semprio
/usr/qnx630/host/qnx6/x86/usr/bin/qcc -Vgcc_ntox86 -Bdynamic
-o/home/vxtoqnx/vx2qnx/example/vx_sem_prio/x86/o/vx2qnx_semprio
vx_sem_prio.o -L.
-L/usr/qnx630/target/qnx6/x86/lib
-L/usr/qnx630/target/qnx6/x86/usr/lib -lvx2qnx

bash-2.05a# ls
Makefile vx_sem_prio.o
. vx2qnx_semprio
bash-2.05a# ./vx2qnx_semprio
Could not find library libvx2qnx.so.1
bash-2.05a#


why? what happend, if the libvx2qnx is installed correctly.

libvx2qnx.so.1 is in /usr/qnx630/target/qnx6/x86/usr/lib

help me please
 
   
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters.
Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.