libvx2qnx help

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

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