Skip navigation.
Home
The QNX Community Portal

View topic - libvx2qnx help

libvx2qnx help

Read-only archive of qnx.porting (Discuss migrating applications from QNX4, VxWorks, PSOS, or Linux to QNX Neutrino) at inn.qnx.com

libvx2qnx help

Postby stjosue » Sat Mar 18, 2006 12:12 am

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
stjosue
Active Member
 
Posts: 45
Joined: Mon Mar 06, 2006 6:33 pm

Re: libvx2qnx help

Postby Igor Kovalenko » Tue Mar 21, 2006 3:40 am

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...
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
Igor Kovalenko
 


Return to qnx.porting

Who is online

Users browsing this forum: No registered users and 1 guest

cron