10-STEP PROCESS TO INSTALL PLAYER/STAGE/GAZEBO IN UBUNTU

AUTHORS:ABHISHEK KUMAR ANNAMRAJU,AKASH DEEP SINGH,ADHESH SHRIVASTAVA

Hi Friends

Lets get into installing player project in the ubuntu system in a very easy process of 10 steps.

Note:Please make sure the system has no version of opencv installed,if present make sure to remove it completely from the system libraries.You can install it after this process is complete.Also for  Ubuntu 12.10,13.04 or 13.10 the process remains same,but the library names/versions of dependencies we are going to install may differ.

Let’s get started:-

Step 1:-

Create a directory named src in /home directory

In the terminal,type the following

a)mkdir src
b)cd src

Step 2:-

Download player and stage tar files and store in src
LINKS:
http://sourceforge.net/projects/playerstage/files/Player/3.0.2/player-3.0.2.tar.gz/download
http://sourceforge.net/projects/playerstage/files/Stage/3.2.2/Stage-3.2.2-Source.tar.gz/download

Step 3:-

Install pre-requisites/dependencies

in the terminal,type the following

a)sudo apt-get update
b)sudo apt-get upgrade
c)sudo apt-get install autotools-dev
d)sudo apt-get install build-essential
e)sudo apt-get install cmake
f)sudo apt-get install cpp
g)sudo apt-get install libboost-signals1.46.1
h)sudo apt-get install libboost-signals1.46-dev
i)sudo apt-get install libboost-thread1.46.1
j)sudo apt-get install libboost-thread1.46-dev
k)sudo apt-get install libcv2.3
l)sudo apt-get install libcv-dev
m)sudo apt-get install libgdk-pixbuf2.0-0
n)sudo apt-get install libgdk-pixbuf2.0-dev
o)sudo apt-get install libgnomecanvas2-0
p)sudo apt-get install libgnomecanvas2-dev
q)sudo apt-get install libgsl0-dev
r)sudo apt-get install libgtk2.0-dev
s)sudo apt-get install libjpeg62-dev
t)sudo apt-get install libtool
u)sudo apt-get install libxmu-dev swig
v)sudo apt-get install python2.7-dev
w)sudo apt-get install libcv-dev
x)sudo apt-get install libcvaux-dev
y)sudo apt-get install libhighgui-dev
z)sudo apt-get install freeglut3

a)sudo apt-get install freeglut3-dev
b)sudo apt-get install libfltk1.1
c)sudo apt-get install libfltk1.1-dev
d)sudo apt-get install libltdl7
e)sudo apt-get install libltdl-dev
f)sudo apt-get install libpng12-dev
g)sudo apt-get install libpng12-0

a)sudo apt-get update
b)sudo apt-get upgrade

Step 4:-

Install player-

In the terminal,type the following

a)tar xzvf player-3.0.2.tar.gz
b)cd player-3.0.2
c)mkdir build
d)cd build
e)cmake ../
f)sudo make

*****************************************************************************

NOTE:-Error bugs for make(if errors dont appear in ‘make’,please skip this part)

–error bugs while installation(if no errors skip this part)
1)cmake stopped with errors in timer.cpp
:- add #include <unistd.h> in timer.cpp

2)artoolkitplus error
:- install artoolkitplus
–$ cd Downloads
$ wget https://launchpad.net/artoolkitplus/trunk/2.3.0/+download/ARToolKitPlus-2.3.0.tar.bz2
$ tar xvjf ARToolKitPlus-2.3.0.tar.bz2
$ cd ARToolKitPlus-2.3.0
$ mkdir build
$ cd build
$ cmake ..
$ make
$ sudo make install

3)cmake stopped with readlog.cc error
:-make changes in readlog.cc
change line 668  –>  ret = gzseek(this->file,0,SEEK_SET);
TO –>                ret = gzseek((gzFile)this->file,0,SEEK_SET);
change line 714  –>  ret = (gzgets(this->file, this->line, this->line_size) == NULL);
TO –>                ret = (gzgets((gzFile)this->file, this->line, this->line_size) == NULL);

4)assembler message error
:- do “sudo make” instead of “make”

5)link cxx error-(cannot find opencv and other bullshits)(STILL A PROBLEM)

a)changes in .bashrc file of build
$cd
$gksudo gedit ./bashrc
add the following to it
$ export PATH=~/usr/local/bin:$PATH
$ export CPATH=~/usr/local/include:$CPATH
$ export LD_LIBRARY_PATH=~/usr/lib:$LD_LIBRARY_PATH

b)change the CMAKE_CXX_FLAGS variable in /player-3.0.2/build/CMakeCache.txt.
Change the line
CMAKE_CXX_FLAGS:STRING=
To
CMAKE_CXX_FLAGS:STRING=   -lboost_system
c)install all libdc files
d)install libpq-dev libpqxx-dev

****************************END OF ERROR BUGS*******************

g)sudo make

h)sudo make install

i)sudo updatedb

Step 5:-

Open a new terminal and type

a)gksudo gedit ./bashrc

When the file opens,add the following to the end of it

PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/home/USER/src/player-3.0.2/build/libplayercore
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/home/USER/src/player-3.0.2/build/libplayerinterface
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/home/USER/src/player-3.0.2/build/libplayercommon
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/home/USER/src/player-3.0.2/build/
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/home/USER/src/player-3.0.2/build/client_libs/libplayerc++
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/home/USER/src/player-3.0.2/build/client_libs/libplayerc
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
export PKG_CONFIG_PATH
export PATH=$PATH:"/usr/local/lib64"
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"/usr/local/lib":"/usr/local/lib64"
export PLAYERPATH="/usr/local/lib":"/usr/local/lib64"
export STAGEPATH="/usr/local/lib":"/usr/local/lib64"

Step 6:-

Checking installation

in the treminal : $ pkg-config –libs playercore
(output: -L/usr/local/lib64 -lplayercore -lpthread -lltdl -ldl -lplayerinterface -lplayercommon)
In the terminal : $ pkg-config –cflags playercore
(output: -I/usr/local/include/player-3.0)

Step 7:-

Install Stage

In the terminal,type the following

a)sudo apt-get update
b)sudo apt-get upgrade
c)tar xzvf Stage-3.2.2-Source.tar.gz
d)cd Stage-3.2.2-Source/
e)mkdir build
f)cd build/
g)cmake ../
h)sudo make

*****************************************************************************************

NOTE:-Error bugs for make(if errors dont appear in ‘make’,please skip this part)

–error bugs while installation(if no errors skip this part)

–error with undefined reference to various libs and functions

In the same terminal,type
a)cd ..
c)sudo gedit CMakeLists.txt

Note:-This CMakeListestxt file will be in the folder player-3.0.2,make sure to do the changes in the correct one if you open a new terminal
change the three lines:

SET (CMAKE_CXX_FLAGS_RELEASE " -O3 -DNDEBUG ${WALL} " CACHE INTERNAL "C Flags for release" FORCE)
SET (CMAKE_CXX_FLAGS_DEBUG " -ggdb ${WALL} " CACHE INTERNAL "C Flags for debug" FORCE)
SET (CMAKE_CXX_FLAGS_PROFILE " -O3 -ggdb -pg ${WALL} " CACHE INTERNAL "C Flags for profile" FORCE)

TO:

SET (CMAKE_CXX_FLAGS_RELEASE " -O3 -DNDEBUG -Wl,--no-as-needed" CACHE INTERNAL "C Flags for release" FORCE)
SET (CMAKE_CXX_FLAGS_DEBUG " -ggdb -Wl,--no-as-needed " CACHE INTERNAL "C Flags for debug" FORCE)
SET (CMAKE_CXX_FLAGS_PROFILE " -O3 -ggdb -pg -Wl,--no-as-needed " CACHE INTERNAL "C Flags for profile" FORCE)

(save and close the file)

********************* END OF ERROR BUGS*******************************

i)cd build

j)sudo make

k)sudo make install

Step 8:-

Testing installation
open a new terminal
a)cd src/Stage-3.2.2-Source/worlds
b)player simple.cfg

Note:

Error:-

player: error while loading shared libraries: libplayerdrivers.so.3.0: cannot open shared object file: No such file or directory.

open a terminal and write:-

export LD_LIBRARY_PATH+=/usr/local/lib64:/usr/local/lib

Step 9:-

Installing gazebo(1.9.1)
open a new terminal

a)sudo sh -c ‘echo “deb http://packages.osrfoundation.org/gazebo/ubuntu precise main” > /etc/apt/sources.list.d/gazebo-latest.list’
b)wget http://packages.osrfoundation.org/gazebo.key -O – | sudo apt-key add –
c)sudo apt-get update
d)sudo apt-get install gazebo

Step 10 :-

Testing gazebo
open a new terminal

a)gazebo
(for the first run it takes time to open the gui,keep patience)

NOTE:-to add models manually to gazebo

open a terminal and type

a)cd ~/.gazebo/models

b)wget -R *index.html*,*.tar.gz –cut-dirs=1 –no-parent -r -x -nH http://gazebosim.org/models/HERE YOU ENTER THE MODEL NAME/

You have now succeeded in installing player/stage/gazebo.

For any further queries please let me know in the blog or mail me at “abhishek4273@gmail.com”.

############CHEERS############

Thank you 🙂

See also :- http://blindperception.wordpress.com/

Advertisements

18 thoughts on “10-STEP PROCESS TO INSTALL PLAYER/STAGE/GAZEBO IN UBUNTU”

  1. hey i am getting this 2 errors while using the “sudo make” statement inside build..Can you help on this matter..
    ayush@ayush:~/src/player-3.0.2/build$ sudo make
    — Player version 3.0.2
    — Operating system is Linux
    — Got System Processor x86_64
    — Linux x86_64 Detected
    — Player will be installed to /usr/local
    — Player libraries will be in lib64
    — Large file support is disabled.
    — ===== Client Libraries =====
    — Python bindings for C client library will be built
    — Could NOT find Ruby (missing: RUBY_EXECUTABLE RUBY_INCLUDE_DIR RUBY_LIBRARY)
    — Ruby bindings for C client library will not be built – could not find Ruby
    — Python bindings for C++ client library will not be built – disabled by user
    — Could NOT find Ruby (missing: RUBY_EXECUTABLE RUBY_INCLUDE_DIR RUBY_LIBRARY)
    — Ruby bindings for C++ client library will not be built – could not find Ruby
    — Boost version: 1.54.0
    — PlayerC++ client library will be built with Boost::Thread support.
    — PlayerC++ client library will be built with Boost::Signals support.
    — ============================

    — —– Processing driver make files —–
    — checking for module ‘artoolkitplus>=2.1’
    — package ‘artoolkitplus>=2.1’ not found
    — checking for module ‘opencv’
    — package ‘opencv’ not found
    — checking for module ‘opencv’
    — package ‘opencv’ not found
    — checking for module ‘opencv’
    — package ‘opencv’ not found
    — checking for module ‘opencv’
    — package ‘opencv’ not found
    — checking for module ‘gstreamer-base-0.10’
    — package ‘gstreamer-base-0.10’ not found
    — checking for module ‘opencv’
    — package ‘opencv’ not found
    — checking for module ‘opencv’
    — package ‘opencv’ not found
    — checking for module ‘GbxGarminAcfr=1.0.0’
    — package ‘GbxGarminAcfr=1.0.0’ not found
    — checking for module ‘libstatgrab’
    — package ‘libstatgrab’ not found
    — checking for module ‘libgarcia’
    — package ‘libgarcia’ not found
    — checking for module ‘flexiport=1.0.0’
    — package ‘flexiport=1.0.0’ not found
    — checking for module ‘GbxSmartBatteryAcfr=1.0.0’
    — package ‘GbxSmartBatteryAcfr=1.0.0’ not found
    — checking for module ‘GbxSickAcfr=1.0.0’
    — package ‘GbxSickAcfr=1.0.0’ not found
    — checking for module ‘hokuyo_aist=1.0.0’
    — package ‘hokuyo_aist=1.0.0’ not found
    — checking for module ‘howl>=0.9.6’
    — package ‘howl>=0.9.6’ not found
    — checking for module ‘libpqxx’
    — found libpqxx, version 4.0.1
    — —– Done —–

    — ===== Drivers =====
    — The following drivers will be built:
    — AioToSonar
    — accel_calib
    — acts
    — amcl
    — amtecpowercube
    — aodv
    — bitlogic
    — blobposition
    — blobtodio
    — blobtracker
    — bumper2laser
    — bumpersafe
    — bumpertodio
    — camera1394
    — cameracompress
    — camerauncompress
    — camerauvc
    — camerav4l2
    — camfilter
    — canonvcc4
    — clodbuster
    — cmdsplitter
    — cmucam2
    — cmvision
    — create
    — deadstop
    — diocmd
    — diodelay
    — diolatch
    — dummy
    — epuck
    — er1
    — erratic
    — fakelocalize
    — festival
    — flockofbirds
    — garminnmea
    — globalize
    — goto
    — gridmap
    — gripcmd
    — imgcmp
    — imgsave
    — inhibitor
    — insideM300
    — iwspy
    — kartowriter
    — khepera
    — laserbar
    — laserbarcode
    — lasercspace
    — lasercutter
    — laserposeinterpolator
    — laserptzcloud
    — laserrescan
    — lasersafe
    — lasertoranger
    — linuxjoystick
    — localbb
    — mapcspace
    — mapfile
    — mapscale
    — mbicp
    — mica2
    — microstrain
    — motionmind
    — mricp
    — nd
    — nomad
    — obot
    — opaquecmd
    — p2os
    — passthrough
    — pbslaser
    — portio
    — ptu46
    — rangerposeinterpolator
    — rangertodio
    — rangertolaser
    — readlog
    — relay
    — rflex
    — roboteq
    — robotracker
    — roomba
    — rs4leuze
    — rt3xxx
    — searchpattern
    — segwayrmp400
    — serialstream
    — serio
    — sickLDMRS
    — sickRFI341
    — sicklms200
    — sicklms400
    — sicknav200
    — sicks3000
    — skyetekM1
    — snd
    — sonartoranger
    — sonyevid30
    — speechcmd
    — sphereptz
    — stalltodio
    — suppressor
    — tcpstream
    — vec2map
    — velcmd
    — vfh
    — vmapfile
    — wavefront
    — wbr914
    — writelog

    — The following drivers will not be built:
    — acr120u – Could not find header usb.h
    — alsa – Could not find header alsa/asoundlib.h
    — amtecm5 – Could not find header Device.h
    — artoolkitplus – Could not find package artoolkitplus
    — cameragst – Could not find package gstreamer-base-0.10
    — camerav4l – Could not find header linux/videodev.h
    — cvcam – Could not find package opencv
    — eedhcontroller – Disabled – probably doesn’t build
    — flexiport – Could not find package flexiport
    — garcia – Could not find package libgarcia
    — gbxgarminacfr – Could not find package GbxGarminAcfr
    — gbxsickacfr – Could not find package GbxSickAcfr
    — hokuyo_aist – Could not find package hokuyo_aist
    — imageseq – Could not find package opencv
    — isense – Could not find header isense/isense.h
    — laservisualbarcode – Has not been updated to use dynamic message structures
    — laservisualbw – Has not been updated to use dynamic message structures
    — linuxwifi – Could not find header linux/wireless.h
    — nimu – Could not find header usb.h
    — oceanserver – Could not find package GbxSmartBatteryAcfr
    — phidgetAcc – Could not find header phidget21.h
    — phidgetRFID – Could not find header phidget21.h
    — phidgetifk – Could not find header phidget21.h
    — postgis – Could not find package libpqxx
    — postlog – Could not find package libpqxx
    — rcore_xbridge – Could not find header libparticle.h
    — reb – Disabled by default
    — robotino – Could not find header robotinocom.h
    — segwayrmp – Disabled by default
    — service_adv_mdns – Disabled by default
    — shapetracker – Could not find package opencv
    — simpleshape – Could not find package opencv
    — sphere – Could not find header linux/videodev.h
    — sphinx2 – Disabled by default
    — sr3000 – Could not find header libusbSR.h
    — statgrab – Could not find package libstatgrab
    — stoc – Could not find header SVS/svsclass.h
    — swissranger – Could not find header libMesaSR.h
    — unicapimage – Could not find header unicap.h
    — upcbarcode – Could not find package opencv
    — videocanny – Could not find package opencv
    — xsensmt – Disabled by default – set XSENSMT_SOURCE_DIR
    — yarpimage – Could not find header yarp/os/all.h
    — ===================

    — ===== Examples =====
    — ====================

    — ===== Player utilities =====
    — XMMS plugin will not be built – XMMS not found
    — ============================

    — Configuring done
    — Generating done
    — Build files have been written to: /home/ayush/src/player-3.0.2/build
    [ 1%] Built target playercommon
    [ 1%] Generating functiontable_gen.h
    [ 1%] Built target functiontable_gen
    [ 1%] Generating interface_table.h
    [ 1%] Built target interface_table
    [ 2%] Generating player_interfaces.h
    [ 2%] Built target player_interfaces
    [ 3%] Built target playerinterface
    [ 3%] Generating playerxdr.?
    [ 3%] Built target playerxdr_src
    [ 3%] Built target playerwkb
    [ 3%] Built target playerjpeg
    [ 13%] Built target playerc
    [ 13%] Generating playerc_wrap.h
    [ 13%] Built target playerc_wrap_i_target
    [ 13%] Built target _playerc
    [ 14%] Building CXX object client_libs/libplayerc++/CMakeFiles/playerc++.dir/playerc++.o
    In file included from /home/ayush/src/player-3.0.2/client_libs/libplayerc++/playerclient.h:66:0,
    from /home/ayush/src/player-3.0.2/client_libs/libplayerc++/playerc++.h:61,
    from /home/ayush/src/player-3.0.2/client_libs/libplayerc++/playerc++.cc:44:
    /usr/include/boost/signal.hpp:17:4: warning: #warning “Boost.Signals is no longer being maintained and is now deprecated. Please switch to Boost.Signals2. To disable this warning message, define BOOST_SIGNALS_NO_DEPRECATION_WARNING.” [-Wcpp]
    # warning “Boost.Signals is no longer being maintained and is now deprecated. Please switch to Boost.Signals2. To disable this warning message, define BOOST_SIGNALS_NO_DEPRECATION_WARNING.”
    ^
    [ 14%] Building CXX object client_libs/libplayerc++/CMakeFiles/playerc++.dir/playerclient.o
    In file included from /home/ayush/src/player-3.0.2/client_libs/libplayerc++/playerclient.h:66:0,
    from /home/ayush/src/player-3.0.2/client_libs/libplayerc++/playerc++.h:61,
    from /home/ayush/src/player-3.0.2/client_libs/libplayerc++/playerclient.cc:54:
    /usr/include/boost/signal.hpp:17:4: warning: #warning “Boost.Signals is no longer being maintained and is now deprecated. Please switch to Boost.Signals2. To disable this warning message, define BOOST_SIGNALS_NO_DEPRECATION_WARNING.” [-Wcpp]
    # warning “Boost.Signals is no longer being maintained and is now deprecated. Please switch to Boost.Signals2. To disable this warning message, define BOOST_SIGNALS_NO_DEPRECATION_WARNING.”
    ^
    In file included from /usr/include/pthread.h:24:0,
    from /usr/include/x86_64-linux-gnu/c++/4.8/bits/gthr-default.h:35,
    from /usr/include/x86_64-linux-gnu/c++/4.8/bits/gthr.h:148,
    from /usr/include/c++/4.8/ext/atomicity.h:35,
    from /usr/include/c++/4.8/bits/ios_base.h:39,
    from /usr/include/c++/4.8/ios:42,
    from /usr/include/c++/4.8/ostream:38,
    from /usr/include/c++/4.8/iostream:39,
    from /home/ayush/src/player-3.0.2/client_libs/libplayerc++/playerclient.cc:48:
    /home/ayush/src/player-3.0.2/client_libs/libplayerc++/playerclient.cc: In member function ‘void PlayerCc::PlayerClient::RunThread()’:
    /home/ayush/src/player-3.0.2/client_libs/libplayerc++/playerclient.cc:171:34: error: expected unqualified-id before numeric constant
    boost::xtime_get(&xt, boost::TIME_UTC);
    ^
    make[2]: *** [client_libs/libplayerc++/CMakeFiles/playerc++.dir/playerclient.o] Error 1
    make[1]: *** [client_libs/libplayerc++/CMakeFiles/playerc++.dir/all] Error 2
    make: *** [all] Error 2

  2. I am getting the following error while installation on 14.04 version of ubuntu:

    — Configuring done
    — Generating done
    — Build files have been written to: /home/shivam/src/player-3.0.2/build
    [ 1%] Built target playercommon
    [ 1%] Generating functiontable_gen.h
    [ 1%] Built target functiontable_gen
    [ 1%] Generating interface_table.h
    [ 1%] Built target interface_table
    [ 2%] Generating player_interfaces.h
    [ 2%] Built target player_interfaces
    [ 3%] Built target playerinterface
    [ 3%] Generating playerxdr.?
    [ 3%] Built target playerxdr_src
    [ 3%] Built target playerjpeg
    [ 3%] Built target playerwkb
    [ 13%] Built target playerc
    [ 13%] Generating playerc_wrap.h
    [ 13%] Built target playerc_wrap_i_target
    [ 13%] Built target _playerc
    [ 14%] Building CXX object client_libs/libplayerc++/CMakeFiles/playerc++.dir/playerc++.o
    In file included from /home/shivam/src/player-3.0.2/client_libs/libplayerc++/playerclient.h:66:0,
    from /home/shivam/src/player-3.0.2/client_libs/libplayerc++/playerc++.h:61,
    from /home/shivam/src/player-3.0.2/client_libs/libplayerc++/playerc++.cc:44:
    /usr/include/boost/signal.hpp:17:4: warning: #warning “Boost.Signals is no longer being maintained and is now deprecated. Please switch to Boost.Signals2. To disable this warning message, define BOOST_SIGNALS_NO_DEPRECATION_WARNING.” [-Wcpp]
    # warning “Boost.Signals is no longer being maintained and is now deprecated. Please switch to Boost.Signals2. To disable this warning message, define BOOST_SIGNALS_NO_DEPRECATION_WARNING.”
    ^
    [ 14%] Building CXX object client_libs/libplayerc++/CMakeFiles/playerc++.dir/playerclient.o
    In file included from /home/shivam/src/player-3.0.2/client_libs/libplayerc++/playerclient.h:66:0,
    from /home/shivam/src/player-3.0.2/client_libs/libplayerc++/playerc++.h:61,
    from /home/shivam/src/player-3.0.2/client_libs/libplayerc++/playerclient.cc:54:
    /usr/include/boost/signal.hpp:17:4: warning: #warning “Boost.Signals is no longer being maintained and is now deprecated. Please switch to Boost.Signals2. To disable this warning message, define BOOST_SIGNALS_NO_DEPRECATION_WARNING.” [-Wcpp]
    # warning “Boost.Signals is no longer being maintained and is now deprecated. Please switch to Boost.Signals2. To disable this warning message, define BOOST_SIGNALS_NO_DEPRECATION_WARNING.”
    ^
    In file included from /usr/include/pthread.h:24:0,
    from /usr/include/x86_64-linux-gnu/c++/4.8/bits/gthr-default.h:35,
    from /usr/include/x86_64-linux-gnu/c++/4.8/bits/gthr.h:148,
    from /usr/include/c++/4.8/ext/atomicity.h:35,
    from /usr/include/c++/4.8/bits/ios_base.h:39,
    from /usr/include/c++/4.8/ios:42,
    from /usr/include/c++/4.8/ostream:38,
    from /usr/include/c++/4.8/iostream:39,
    from /home/shivam/src/player-3.0.2/client_libs/libplayerc++/playerclient.cc:48:
    /home/shivam/src/player-3.0.2/client_libs/libplayerc++/playerclient.cc: In member function ‘void PlayerCc::PlayerClient::RunThread()’:
    /home/shivam/src/player-3.0.2/client_libs/libplayerc++/playerclient.cc:171:34: error: expected unqualified-id before numeric constant
    boost::xtime_get(&xt, boost::TIME_UTC);
    ^
    make[2]: *** [client_libs/libplayerc++/CMakeFiles/playerc++.dir/playerclient.o] Error 1
    make[1]: *** [client_libs/libplayerc++/CMakeFiles/playerc++.dir/all] Error 2
    make: *** [all] Error 2

    Please Help!
    Regards,
    Vishi

  3. This is the error I get upon executing sudo make for Stage.Please resolve it.

    Linking CXX shared library libstage.so
    /usr/bin/ld: CMakeFiles/stage.dir/blockgroup.o: relocation R_X86_64_PC32 against symbol `_ZTVN3Stg4PoseE’ can not be used when making a shared object; recompile with -fPIC
    /usr/bin/ld: final link failed: Bad value
    collect2: error: ld returned 1 exit status
    libstage/CMakeFiles/stage.dir/build.make:981: recipe for target ‘libstage/libstage.so.3.2.2’ failed
    make[2]: *** [libstage/libstage.so.3.2.2] Error 1
    CMakeFiles/Makefile2:124: recipe for target ‘libstage/CMakeFiles/stage.dir/all’ failed
    make[1]: *** [libstage/CMakeFiles/stage.dir/all] Error 2
    Makefile:160: recipe for target ‘all’ failed
    make: *** [all] Error 2
    advait@advait-HP-Pavilion-15-Notebook-PC:~/src/Stage-3.2.2-Source/build$

    1. Hi,

      Its been quite long since I worked on this library. But these errors arise in general when either linking is very inappropriate in cmakelists file or the library doesn’t exist in the specified location. Also please don’t do “sudo make”. Try making it without being a sudo user like just “make”.

      Regards,
      Abhishek

  4. Hello! I very much appreciate your tutorial!
    BUT i am getting the following error when trying to install

    [ 28%] Linking CXX executable playerc++_test
    /usr/bin/ld: CMakeFiles/playerc++_test.dir/test.o: undefined reference to symbol ‘_ZN5boost6system15system_categoryEv’
    //usr/lib/x86_64-linux-gnu/libboost_system.so.1.58.0: error adding symbols: DSO missing from command line
    collect2: error: ld returned 1 exit status
    client_libs/libplayerc++/test/CMakeFiles/playerc++_test.dir/build.make:541: recipe for target ‘client_libs/libplayerc++/test/playerc++_test’ failed
    make[2]: *** [client_libs/libplayerc++/test/playerc++_test] Error 1
    CMakeFiles/Makefile2:588: recipe for target ‘client_libs/libplayerc++/test/CMakeFiles/playerc++_test.dir/all’ failed
    make[1]: *** [client_libs/libplayerc++/test/CMakeFiles/playerc++_test.dir/all] Error 2
    Makefile:149: recipe for target ‘all’ failed
    make: *** [all] Error 2

    please please please help me!

      1. Have a look at the cmakelists.txt file, make sure in target link libraries -lboost is added or not. I haven’t worked with this library for long now, but the error you are getting is very common with cmake, it occurs when required libraries are not linked. Searching for it in stackoverflow or Ubuntu forums will give a deeper insight

        Regards,
        Abhishek

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s