|
From: Toby C. <tco...@pl...> - 2009-04-03 20:51:27
|
libperSRdriver.so: perSR.o
$(CXX) -shared `pkg-config --libs opencv` -L /usr/include/
-lmvDeviceManager -lmvPropHandling -lm -lpthread -ldl -o $@ $^
needs -lSR (or whatever the sr library is called) added, in the same way the
-ldl is there so it can link against libdl.so
2009/4/3 Klas <kla...@hi...>
>
> Thank you, but I am quite new to this. I thought I added the library when I
> add the /usr/include/ path. Can you, please, be a little more precise.
> Regards
>
>
> Toby Collett-3 wrote:
> >
> > It looks like you need to add the SR library to your driver link line...
> >
> > Toby
> >
> > 2009/4/3 Klas <kla...@hi...>
> >
> >>
> >> I am trying to use a Swiss range camera (SR300)on an Ubuntu system.
> >> When I try to execute my SR-camera program in player I get the
> following:
> >> "player: symbol lookup error: /home/permobil/PerSR/./libperSRdriver.so:
> >> undefined symbol: SR_OpenUSB"
> >>
> >> SR_OpenUSB is the first function used in the /usr/include/libusbSR.h
> >> file.
> >>
> >> I use the following makefile (copied from an earlier project):
> >> -----
> >> all: libperSRdriver.so
> >> %.o: %.cpp
> >> $(CXX) -Wall -fpic -D_REENTRANT -D_GNU_SOURCE -D_MAJOR_VERSION=1
> >> -D_MINOR_VERSION=9 -D_BUILD_VERSION=12 -D_BUILD2_VERSION=72
> >> -DMALLOC_TRACE
> >> -g3 `pkg-config --cflags playercore` -c -I -ggdb `pkg-config --cflags
> >> opencv` -ffast-math -O3 $^
> >>
> >> libperSRdriver.so: perSR.o
> >> $(CXX) -shared `pkg-config --libs opencv` -L /usr/include/
> >> -lmvDeviceManager -lmvPropHandling -lm -lpthread -ldl -o $@ $^
> >> -----
> >>
> >> Any ideas?
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/player%3A-symbol-lookup-error-with-SwissRange-camera-tp22849796p22849796.html
> >> Sent from the playerstage-users mailing list archive at Nabble.com.
> >>
> >>
> >>
> >>
> ------------------------------------------------------------------------------
> >> _______________________________________________
> >> Playerstage-users mailing list
> >> Pla...@li...
> >> https://lists.sourceforge.net/lists/listinfo/playerstage-users
> >>
> >
> >
> >
> > --
> > This email is intended for the addressee only and may contain privileged
> > and/or confidential information
> >
> >
> ------------------------------------------------------------------------------
> >
> > _______________________________________________
> > Playerstage-users mailing list
> > Pla...@li...
> > https://lists.sourceforge.net/lists/listinfo/playerstage-users
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/player%3A-symbol-lookup-error-with-SwissRange-camera-tp22849796p22865991.html
> Sent from the playerstage-users mailing list archive at Nabble.com.
>
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Playerstage-users mailing list
> Pla...@li...
> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>
--
This email is intended for the addressee only and may contain privileged
and/or confidential information
|