From: <S.P...@lb...> - 2008-11-26 11:17:04
|
> Date: Tue, 25 Nov 2008 10:46:29 -0800 >From: Brian Gerkey <br...@ge...> > > > On Nov 24, 2008, at 2:07 AM, S.P...@lb... >wrote: > >> >>> On Nov 12, 2008, at 10:22 AM, S.P...@lb... >>> wrote: >>> >>>> The opaquedriver example under >>>> /usr/share/player/examples/plugins/opaquedriver won't >>>> compile. The executable examples under >>>> /usr/share/player/examples/libplayerc++ work, and the >>>> code >>>> will also compile, so I don't think there is an issue >>>> with >>>> my environment. >>> >>> Did you try compiling it from within the source tree? >>> That works fine >>> for me. >>> >>> brian. >> >> Hi Brian >> >> Yes I did try to build it where it is. Here's the list >>of >> errors I get: >> >> g++ -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT >> -I/usr/include/player-2.0 -lplayerc++ -lboost_signals >> -lboost_thread -lplayerc -lm -lplayerxdr -lplayererror >> opaquedriver.cc -o opaquedriver > > Where did you get that compile line from? Is it in one >of the Player > Makefiles? > > You want something more like: > > g++ -shared -o opaquedriver.so opaquedriver.cc >-I/usr/include/ > player-2.0 > > brian. Thanks Brian. I've tried that but still get the first error. Is this a problem with the version of gcc I'm using? Sion sion@compsci-macbook:/usr/share/player/examples/plugins/opaquedriver$ g++ -shared -o opaquedriver.so opaquedriver.cc -I/usr/include/player-2.0 opaquedriver.cc: In function void OpaqueDriver_Register(DriverTable*): opaquedriver.cc:94: warning: deprecated conversion from string constant to char* |