On Jul 11, 2006, at 8:26 AM, viddyma wrote:

>
> I just updated player from 1.6.5 to 2.0.2 and I am having a problem  
> running a
> c++ client I wrote.

> varitek:/course/cs148/development/dbloom/psg/mcl/player/client> make
> rm -f *.o mcl
> g++ -c Image.C -o Image.o
> g++ -c BlobMap.C -o BlobMap.o
> g++ -I/contrib/projects/psg/local/include  mcl.C Image.o BlobMap.o - 
> o mcl
> -lm /contrib/projects/psg/local/lib/libplayer*

You should use pkg-config to build your client, e.g.:

$ g++ `pkg-config --cflags playerc++` mcl.C Image.o BlobMap.o -o mcl  
`pkg-config --libs playerc++` -lm

Look here for another example:

   http://playerstage.sourceforge.net/doc/Player-2.0.0/player/ 
group__cplusplus__example.html

If pkg-config gives you errors, read this:

   http://playerstage.sourceforge.net/doc/Player-2.0.0/player/ 
install.html#pkgconfiginstall

>
> varitek:/course/cs148/development/dbloom/psg/mcl/player/client> ./mcl
> ./mcl: error while loading shared libraries: libplayerc++.so.2:  
> cannot open
> shared object file: No such file or directory

Try adding Player's lib directory to your LD_LIBRARY_PATH, so that  
the run-time loader can find the shared libs, e.g.:

$ export LD_LIBRARY_PATH=/contrib/projects/psg/local/lib: 
$LD_LIBRARY_PATH

Also read this:

   http://playerstage.sourceforge.net/doc/Player-2.0.0/player/ 
install.html#custominstall

        brian.


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Playerstage-gazebo mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo

Reply via email to