Thanks for your help. I did the changes you mentioned and updated to revision 126 but there are still problems.

For the record: for some weird reason you must have both fltk-1 _and_ fltk-2 installed for the gui to compile. At least on my system.

I don't know if this is of any help, but the last error I encountered is:

g++ -o gazebo -Wl,-rpath,/usr/X11R6/lib64 server/physics/ode/ODEPhysics.o server/physics/BallJoint.o server/physics/Body.o server/physics/BoxGeom.o server/physics/ContactParams.o server/physics/CylinderGeom.o server/physics/Geom.o server/physics/Hinge2Joint.o server/physics/HingeJoint.o server/physics/Joint.o server/physics/PhysicsEngine.o server/physics/PlaneGeom.o server/physics/SliderJoint.o server/physics/SphereGeom.o server/physics/UniversalJoint.o server/physics/RayGeom.o server/physics/TrimeshGeom.o server/physics/HeightmapGeom.o server/rendering/OgreAdaptor.o server/rendering/OgreFrameListener.o server/rendering/OgreDynamicRenderable.o server/rendering/OgreDynamicLines.o server/rendering/OgreSimpleShape.o server/rendering/OgreHUD.o server/sensors/camera/CameraSensor.o server/sensors/camera/CameraManager.o server/sensors/ray/RaySensor.o server/sensors/Sensor.o server/sensors/SensorFactory.o server/controllers/position2d/pioneer2dx/Pioneer2dx_Position2d.o server/controllers/laser/sicklms200/SickLMS200_Laser.o server/controllers/camera/generic/Generic_Camera.o server/controllers/factory/Factory.o server/controllers/gripper/pioneer2/Pioneer2_Gripper.o server/controllers/Controller.o server/controllers/ControllerFactory.o server/gui/fltk/FLTKGui.o server/gui/Gui.o server/gui/GuiFactory.o server/main.o server/Global.o server/Vector3.o server/Quatern.o server/Pose3d.o server/World.o server/XMLConfig.o server/Time.o server/Entity.o server/GazeboError.o server/UpdateParams.o server/GazeboMessage.o server/Model.o server/InputEvent.o server/InputHandler.o -Llibgazebo -L/usr/local/lib -L/usr/X11R6/lib64 -L/usr/lib64 -lgazebo -lOgreMain -lxml2 -lOIS -lode -lfltk_images -lpng -ljpeg -lfltk_gl -lGLU -lGL -lfltk -lpthread -lm -lXext /usr/X11R6/lib64/libfltk.a /usr/X11R6/lib64/libfltk_gl.a -lXft -lfreetype -lz -lfontconfig -lXrender -lX11
server/controllers/ControllerFactory.o: In function `gazebo::ControllerFactory::RegisterAll()':
/usr/local/src/robots/playerstage/code/gazebo/server/controllers/ControllerFactory.cc:54: undefined reference to `RegisterBandit_Actarray()'
collect2: ld returned 1 exit status
scons: *** [gazebo] Error 1
scons: building terminated because of errors.

if I comment the problematic line out (it doesn't seem to do anything anyways) I get the following:

g++ -o player/CameraInterface.o -c -ggdb -O2 -g -fmessage-length=0 -DOGRE_GUI_gtk -DOGRE_NO_FREEIMAGE -DOGRE_CONFIG_LITTLE_ENDIAN -D_FORTIFY_SOURCE=2 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -I. -Iserver -Iserver/models -Iserver/gui -Iserver/gui/fltk -Ilibgazebo -Iserver/rendering -Iserver/sensors -Iserver/sensors/camera -Iserver/sensors/ray -Iserver/physics -Iserver/physics/ode -Iserver/controllers -Iserver/controllers/position2d -Iserver/controllers/position2d/pioneer2dx -I/usr/include/OGRE -I/usr/include/libxml2 -I/usr/include/OIS -I/usr/local/include -I/usr/X11R6/include -I/usr/include -I/usr/include/freetype2 -I/usr/local/include/player- 2.0 player/CameraInterface.cc
player/GazeboDriver.hh:64: error: 'QueuePointer' has not been declared
player/GazeboInterface.hh:53: error: 'QueuePointer' has not been declared
player/CameraInterface.hh:54: error: 'QueuePointer' has not been declared
player/CameraInterface.cc:67: error: 'int gazebo::CameraInterface::ProcessMessage' is not a static member of 'class gazebo::CameraInterface'
player/CameraInterface.cc:67: error: 'QueuePointer' was not declared in this scope
player/CameraInterface.cc:67: error: 'respQueue' was not declared in this scope
player/CameraInterface.cc:68: error: expected primary-expression before '*' token
player/CameraInterface.cc:68: error: 'hdr' was not declared in this scope
player/CameraInterface.cc:68: error: expected primary-expression before 'void'
player/CameraInterface.cc:68: error: initializer expression list treated as compound expression
player/CameraInterface.cc:69: error: expected ',' or ';' before '{' token
player/CameraInterface.cc: In member function 'virtual void gazebo::CameraInterface::Update()':
player/CameraInterface.cc:115: error: invalid conversion from 'int' to 'MessageQueue*'
player/CameraInterface.cc:115: error:   initializing argument 2 of 'void Driver::Publish(player_devaddr_t, MessageQueue*, uint8_t, uint8_t, void*, size_t, double*)'
player/CameraInterface.cc:115: error: invalid conversion from 'void*' to 'uint8_t'
player/CameraInterface.cc:115: error:   initializing argument 4 of 'void Driver::Publish(player_devaddr_t, MessageQueue*, uint8_t, uint8_t, void*, size_t, double*)'
player/CameraInterface.cc:115: error: invalid conversion from 'size_t' to 'void*'
player/CameraInterface.cc:115: error:   initializing argument 5 of 'void Driver::Publish(player_devaddr_t, MessageQueue*, uint8_t, uint8_t, void*, size_t, double*)'
player/CameraInterface.cc:115: error: invalid conversion from 'double*' to 'size_t'
player/CameraInterface.cc:115: error:   initializing argument 6 of 'void Driver::Publish(player_devaddr_t, MessageQueue*, uint8_t, uint8_t, void*, size_t, double*)'
player/CameraInterface.cc: In member function 'void gazebo::CameraInterface::SaveFrame(const char*)':
player/CameraInterface.cc:178: warning: ignoring return value of 'size_t fwrite(const void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result
scons: *** [player/CameraInterface.o] Error 1
scons: building terminated because of errors.

I think I will start compiling all revisions in descending order to see if I have luck with one of them.

Regards,
   Alvaro.


>Hello
>
>I had the same problems while trying to compile Gazebo on AMD64 and
>changed problematic casts to (long) instead of (int) in files:
>
>* server/physics/Geom.cc (line 218)
>* server/rendering/OgreAdaptor.cc (lines 345, 349)
>
>As far as I remember, Gazebo compiled without problems after these changes.
>
>Also I added "return camera;" at the end of OgreAdaptor::CreateCamera
>method in OgreAdaptor.cc. I really don't know why it wasn't there.
>Gazebo was crashing badly because of that.
>
>Good luck
>Stanislaw Szymcz