Hi, I'm now building gazebo, but I got error message just around 4% and it seems to complain that
lprofile is missing.

What is lprofile? where can I find it?
It's not in Ubuntu 10.10 repository.
Did you meet such a problem before as well?


[  4%] Building CXX object libgazebo/CMakeFiles/gazeboshm.dir/Graphics3dIface.o
cd /home/jiapei/Tools/playerstagegazebo/gazebo-svn-20110124/build/libgazebo && /usr/bin/c++   -Dgazeboshm_EXPORTS -O3 -DNDEBUG -fPIC -I/home/jiapei/Tools/playerstagegazebo/gazebo-svn-20110124 -I/home/jiapei/Tools/playerstagegazebo/gazebo-svn-20110124/build   -o CMakeFiles/gazeboshm.dir/Graphics3dIface.o -c /home/jiapei/Tools/playerstagegazebo/gazebo-svn-20110124/libgazebo/Graphics3dIface.cc
Linking CXX shared library libgazebo.so
cd /home/jiapei/Tools/playerstagegazebo/gazebo-svn-20110124/build/libgazebo && /usr/bin/cmake -E cmake_link_script CMakeFiles/gazeboshm.dir/link.txt --verbose=1
/usr/bin/c++  -fPIC -O3 -DNDEBUG  -shared -Wl,-soname,libgazebo.so.0.10.0 -o libgazebo.so.0.10.0 CMakeFiles/gazeboshm.dir/Server.o CMakeFiles/gazeboshm.dir/Client.o CMakeFiles/gazeboshm.dir/Iface.o CMakeFiles/gazeboshm.dir/IfaceFactory.o CMakeFiles/gazeboshm.dir/FactoryIface.o CMakeFiles/gazeboshm.dir/SimIface.o CMakeFiles/gazeboshm.dir/Graphics3dIface.o -lboost_thread-mt -lboost_signals-mt -lboost_regex-mt -lprofiler 
/usr/bin/ld: cannot find -lprofiler
collect2: ld returned 1 exit status
make[2]: *** [libgazebo/libgazebo.so.0.10.0] Error 1
make[2]: Leaving directory `/home/jiapei/Tools/playerstagegazebo/gazebo-svn-20110124/build'
make[1]: *** [libgazebo/CMakeFiles/gazeboshm.dir/all] Error 2
make[1]: Leaving directory `/home/jiapei/Tools/playerstagegazebo/gazebo-svn-20110124/build'
make: *** [all] Error 2




Thank you very much.

Best Regards
JIA



On Fri, Jan 28, 2011 at 11:07 PM, Peter Nordin <peter.nordin@liu.se> wrote:
Hello JIA

I am using the latest svn trunk revision of gazebo.
I also forgot to mention that I am running Ubuntu 10.10, (have tried on both 32 and 64-bit)

After checkout I create a folder called build and in this folder I run
"cmake ../ -Dbullet_include_dir=/usr/local/include/bullet -Dbullet_include_dirs=/usr/local/include/bullet -Dbullet_library_dirs=/usr/local/lib"

I use the extra flags because cmake cant find the bullet directories on its own.

When I run this command I get some status regarding the configuration and whether all dependencies are met and what components that will be unavailable.
Do you get this information?

After this has been done, I run make (in the build folder), and compilation and linking begins.
I do not recognize your out, what distribution are you running?
Did you successfully install the required libraries (ode, bullet, ogre, assimp, player3.0.2), cmake should be able to run anyway though just telling you they are missing

I can add that I can successfully build gazebo-0.10.0.tar.bz2.

/Peter



On 01/28/2011 03:40 PM, JIA Pei wrote:

Hi, Peter:

Thanks for your reply. But all what I can get is the following staff:


jiapei@jiapei-laptop:~/Tools/playerstagegazebo/gazebo-svn-20110124/build$ make
/usr/bin/cmake -H/home/jiapei/Tools/playerstagegazebo/gazebo-svn-20110124 -B/home/jiapei/Tools/playerstagegazebo/gazebo-svn-20110124/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /home/jiapei/Tools/playerstagegazebo/gazebo-svn-20110124/build/CMakeFiles /home/jiapei/Tools/playerstagegazebo/gazebo-svn-20110124/build/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory `/home/jiapei/Tools/playerstagegazebo/gazebo-svn-20110124/build'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jiapei/Tools/playerstagegazebo/gazebo-svn-20110124/build'
/usr/bin/cmake -E cmake_progress_start /home/jiapei/Tools/playerstagegazebo/gazebo-svn-20110124/build/CMakeFiles 0
jiapei@jiapei-laptop:~/Tools/playerstagegazebo/gazebo-svn-20110124/build$ 


By the way, are you using today's SVN?
Or are you building the released version gazebo-0.10.0.tar.bz2 ??


Cheers
JIA



On Fri, Jan 28, 2011 at 9:28 PM, Peter Nordin <peter.nordin@liu.se> wrote:
Hello

I am also having problems building the current Gazebo svn version, and I
hope that someone can help.
I have successfully (as far as I know) installed the necessary
dependencies, including

ode 0.11.1
bullet 2.77
assimp 2.0.863
ogre 1.7.2

I have also been able to make Gazebo cmake recognise that bullet has
been compiled with double precision.
I configured bullet with the following cmake options:

cmake ../ -DUSE_DOUBLE_PRECISION=ON -DBUILD_DEMOS=OFF -DBUILD_SHARED_LIBS=ON

and Gazebo with the following cmake options:

cmake ../ -Dbullet_include_dir=/usr/local/include/bullet
-Dbullet_include_dirs=/usr/local/include/bullet
-Dbullet_library_dirs=/usr/local/lib

gazebo cmake does not complain, but when I run make it will stop at 83%
while linking the gazebo executable with a bunch of undefined references
all relating to bullet
--------------------------
[ 83%] Building CXX object server/CMakeFiles/gazebo-exec.dir/main.o
Linking CXX executable gazebo
physics/bullet/libgazebo_physics_bullet.so: undefined reference to
`btHinge2Constraint::btHinge2Constraint(btRigidBody&, btRigidBody&,
btVector3&, btVector3&, btVector3&)'
physics/bullet/libgazebo_physics_bullet.so: undefined reference to
`btCollisionObject::~btCollisionObject()'
physics/bullet/libgazebo_physics_bullet.so: undefined reference to
`btAlignedFreeInternal(void*)'
.
and so on
.
--------------------------

After taking a look in server/CMakeFiles/gazebo-exec.dir/link.txt I
noticed that cmake had somehow forgot to add the bullet libs here, after
manually adding "-lBulletCollision -lBulletDynamics
-lBulletMultiThreaded -lBulletSoftBody -lBulletSoftBodySolvers_CPU" (the
bullet libs in my /usr/local/lib) to the end of this file, most of the
undefined references were "solved".

But now one remains:
--------------------------
[ 83%] Built target gazebo_av-shared
Linking CXX executable gazebo
physics/bullet/libgazebo_physics_bullet.so: undefined reference to
`gazebo::Geom::Update()'
collect2: ld returned 1 exit status
make[2]: *** [server/gazebo] Error 1
make[1]: *** [server/CMakeFiles/gazebo-exec.dir/all] Error 2
make: *** [all] Error 2
--------------------------

As far as i understand the gazebo::Geom:Update() should be in
"server/physics/libgazebo_physics.so" which is included in the link.txt
file.
I have no ideas how to get any further.

With regards
Peter Nordin


On 01/28/2011 10:21 AM, JIA Pei wrote:
>
> Hi, all:
>
> I'm not able to successfully install current Gazebo SVN installation.
> The downloaded SVN is just of today, say, Jan. 28, 2011 .
>
> Can anybody help me out how to install current Gazebo SVN?
>
> Cheers
> JIA
>
> --
> Welcome to Vision Open
> http://www.visionopen.com

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Playerstage-users mailing list
Playerstage-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/playerstage-users



--
Welcome to Vision Open
http://www.visionopen.com

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Playerstage-users mailing list
Playerstage-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/playerstage-users




--
Welcome to Vision Open
http://www.visionopen.com