Hi,

Did you define gz_aio_alloc in your *.cpp file as well as your *.h  
file? This can happen if you put the reference in the header but do  
not define the symbol.

Nate

On Nov 13, 2007, at 6:09 AM, Sawyer Larkin wrote:

> Hello,
> I am trying to add Players AIO interface to Gazebo-0.7.0 I am very  
> close, but
> am getting undefined references in plugin models that are going to  
> use the
> interface. Statically linked models are working.
>
> Here is a summary of what i have done so far.
>
> I have added the class definition to libgazebo/gazebo.hh
> I have added a libgazebo/gz_aio.cc file.
> I have modified libgazebo/Makefile.am to compile the interface into  
> libgazebo.
>
> I have also added a preliminary gui panel to the wx sections.
>
> I have added an AIO interface to the pioneer2at model to test static  
> models,
> the server starts and I am able to see the aio control panel. =)
>
> When I try to start the server using a plugin model, the server is  
> getting as
> far as loading the plugin file. This is the output (I do not know  
> why it is
> reporting ** Gazebo 0.9.0 ** it is definitely a modified 0.7.0  
> download):
>
> /usr/local/lib/python2.5/site-packages/wxgazebo/aio.py:10:  
> DeprecationWarning:
> The wxPython compatibility package is no longer automatically  
> generated or
> actively maintained.  Please switch to the wx package as soon as  
> possible.
>  from wxPython.wx import *
> starting server
> waiting for server
> ** Gazebo 0.9.0 **
> * Part of the Player/Stage Project [http:// 
> playerstage.sourceforge.net].
> * Copyright 2000-2005 Brian Gerkey, Richard Vaughan, Andrew Howard,
> * Nate Koenig and contributors.
> * Released under the GNU General Public License.
> using display [:0]
> rendering: [GLXP pbuffer] direct [yes] RGBA [8 8 8 0] depth [24]
> loading /home/tobor/chorus_player/src/gazebo/./CChorusModel.so...
> error   : error loading
> plugin: /home/tobor/chorus_player/src/gazebo/./CChorusModel.so:  
> undefined
> symbol: gz_aio_alloc
> loading /usr/local/lib/gazebo/plugins/CChorusModel.so...
> error   : error loading plugin: /usr/local/lib/gazebo/plugins/ 
> CChorusModel.so:
> cannot open shared object file: No such file or directory
> Initialization failed
> server died
> stopping server
>
> As you can see there is an "undefined symbol: gz_aio_alloc"
>
> Here is the Makefile I am currently using to build the plugin model.  
> Note that
> I am able to use the original interfaces built into the server just  
> fine. I'm
> guessing I'm missing 1 small detail and I'm hoping someone can point  
> it out.
> I will post a patch to add aio support for everyone to use once I  
> get this
> resolved.
>
> Makefile:
> all: CChorusModel.so
>
> %.o: %.cpp %.h
>   $(CXX) -Wall -g3 `pkg-config --cflags gazebo` -c $<
>
> %.so: %.o
>   $(CXX) -shared -nostartfiles -o $@ $<
>
> clean:
>   rm -f *.o *.so
>
> Thank you very much.
>
> Sawyer
>
> PS. Thanks for a wonderful project, I have been successfully  
> modeling custom
> robots for personal, university, and now commercial R&D projects for  
> years.
> The Player-Gazebo combination ROCKS!
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a  
> browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Playerstage-gazebo mailing list
> Playerstage-gazebo@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Playerstage-gazebo mailing list
Playerstage-gazebo@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo

Reply via email to