« Return to Thread: How to install Player from SVN source...

Re: How to install Player from SVN source...

by jiapei100 :: Rate this Message:

| View in Thread



Thank you so much but I still have problems.

I followed your suggestion as the follows:

jiapei@jiapei-laptop:~/Tools/playerstagegazebo/player-svn$ echo $PKG_CONFIG_PATH
/usr/local/lib/pkgconfig/
jiapei@jiapei-laptop:~/Tools/playerstagegazebo/player-svn$ mkdir build
jiapei@jiapei-laptop:~/Tools/playerstagegazebo/player-svn$ cd build
jiapei@jiapei-laptop:~/Tools/playerstagegazebo/player-svn/build$ cmake ../
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Player version 2.2.0
-- Operating system is Linux
-- Player will be installed to /usr/local
-- Looking for getaddrinfo
-- Looking for getaddrinfo - found
-- Looking for xdr_free
-- Looking for xdr_free - found
-- Looking for xdr_longlong_t
-- Looking for xdr_longlong_t - found
-- Looking for cfmakeraw
-- Looking for cfmakeraw - found
-- Looking for dirname
-- Looking for dirname - found
-- Looking for include files HAVE_LINUX_JOYSTICK_H
-- Looking for include files HAVE_LINUX_JOYSTICK_H - found
-- Looking for poll
-- Looking for poll - found
-- Looking for include files HAVE_STDINT_H
-- Looking for include files HAVE_STDINT_H - found
-- Looking for include files HAVE_STRINGS_H
-- Looking for include files HAVE_STRINGS_H - found
-- Looking for include files HAVE_DNS_SD
-- Looking for include files HAVE_DNS_SD - not found.
-- Looking for include files HAVE_SYS_FILIO_H
-- Looking for include files HAVE_SYS_FILIO_H - not found.
-- Looking for lt_dlopenext in ltdl
-- Looking for lt_dlopenext in ltdl - found
-- Looking for round
-- Looking for round - found
-- Looking for jpeg_read_header in jpeg
-- Looking for jpeg_read_header in jpeg - found
-- Looking for include files HAVE_JPEGLIB_H
-- Looking for include files HAVE_JPEGLIB_H - found
-- Looking for compressBound
-- Looking for compressBound - found
-- Looking for compress2 in z
-- Looking for compress2 in z - found
-- Looking for include files HAVE_ZLIB_H
-- Looking for include files HAVE_ZLIB_H - found
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - found
-- Looking for clock_gettime
-- Looking for clock_gettime - found
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- checking for module 'libgnomecanvas-2.0'
--   found libgnomecanvas-2.0, version 2.20.1.1
-- checking for module 'gtk+-2.0'
--   found gtk+-2.0, version 2.12.9
-- checking for module 'gdk-pixbuf-2.0'
--   found gdk-pixbuf-2.0, version 2.12.9
-- ===== Client Libraries =====
-- Found PythonInterp: /usr/bin/python2.5
-- Python bindings for C client library will be built
-- Found PythonLibs: /usr/lib/python2.5/config/libpython2.5.so
-- Boost version: 1.36.0
-- Found the following Boost libraries:
--   thread
--   signals
-- PlayerC++ client library will be built with Boost::Thread support.
-- PlayerC++ client library will be built with Boost::Signals support.
-- ============================
--
-- ----- Processing driver make files -----
-- Looking for C++ include Device.h
-- Looking for C++ include Device.h - not found
-- Looking for include files HAVE_HDR_ALSA_ASOUNDLIB_H
-- Looking for include files HAVE_HDR_ALSA_ASOUNDLIB_H - found
-- checking for module 'artoolkitplus'
--   package 'artoolkitplus' not found
-- checking for module 'opencv'
--   found opencv, version 1.1.0
-- Looking for include files HAVE_HDR_LINUX_VIDEODEV_H
-- Looking for include files HAVE_HDR_LINUX_VIDEODEV_H - found
-- Looking for include files haveControlH
-- Looking for include files haveControlH - not found.
-- Looking for include files HAVE_HDR_LIBRAW1394_RAW1394_H
-- Looking for include files HAVE_HDR_LIBRAW1394_RAW1394_H - found
-- Looking for include files HAVE_HDR_LIBDC1394_DC1394_CONTROL_H
-- Looking for include files HAVE_HDR_LIBDC1394_DC1394_CONTROL_H - found
-- Looking for include files HAVE_HDR_JPEGLIB_H
-- Looking for include files HAVE_HDR_JPEGLIB_H - found
-- Looking for include files HAVE_HDR_LINUX_VIDEODEV2_H
-- Looking for include files HAVE_HDR_LINUX_VIDEODEV2_H - found
-- Looking for include files HAVE_HDR_YARP_OS_ALL_H
-- Looking for include files HAVE_HDR_YARP_OS_ALL_H - not found.
-- Looking for include files HAVE_HDR_YARP_SIG_ALL_H
-- Looking for include files HAVE_HDR_YARP_SIG_ALL_H - not found.
-- Looking for include files HAVE_HDR_UNICAP_H
-- Looking for include files HAVE_HDR_UNICAP_H - not found.
-- checking for module 'libstatgrab'
--   found libstatgrab, version 0.15
-- Looking for include files HAVE_HDR_USB_H
-- Looking for include files HAVE_HDR_USB_H - found
-- Looking for include files HAVE_HDR_LINUX_JOYSTICK_H
-- Looking for include files HAVE_HDR_LINUX_JOYSTICK_H - found
-- Looking for include files HAVE_LINUX_SERIAL_H
-- Looking for include files HAVE_LINUX_SERIAL_H - found
-- checking for module 'gdk-pixbuf-2.0'
--   found gdk-pixbuf-2.0, version 2.12.9
-- Looking for include files HAVE_HDR_ASM_IOCTLS_H
-- Looking for include files HAVE_HDR_ASM_IOCTLS_H - found
-- checking for module 'libgarcia'
--   package 'libgarcia' not found
-- checking for module 'gtk+-2.0'
--   found gtk+-2.0, version 2.12.9
-- Looking for include files HAVE_HDR_PHIDGET21_H
-- Looking for include files HAVE_HDR_PHIDGET21_H - not found.
-- Looking for include files HAVE_HDR__INCLUDE_CANLIB_H
-- Looking for include files HAVE_HDR__INCLUDE_CANLIB_H - not found.
-- Looking for include files HAVE_HDR_ROBOTINOCOM_H
-- Looking for include files HAVE_HDR_ROBOTINOCOM_H - not found.
-- Looking for include files HAVE_HDR_XTIMER_H
-- Looking for include files HAVE_HDR_XTIMER_H - not found.
-- Looking for include files HAVE_HDR_XTHREAD_H
-- Looking for include files HAVE_HDR_XTHREAD_H - not found.
-- Looking for include files HAVE_HDR_LIBUSBSR_H
-- Looking for include files HAVE_HDR_LIBUSBSR_H - not found.
-- Looking for include files HAVE_HDR_LINUX_SERIAL_H
-- Looking for include files HAVE_HDR_LINUX_SERIAL_H - found
-- checking for module 'flexiport'
--   package 'flexiport' not found
-- Looking for include files HAVE_HDR_ISENSE_ISENSE_H
-- Looking for include files HAVE_HDR_ISENSE_ISENSE_H - not found.
-- checking for module 'GbxSickAcfr'
--   package 'GbxSickAcfr' not found
-- checking for module 'hokuyo_aist'
--   package 'hokuyo_aist' not found
-- checking for module 'howl'
--   found howl, version 0.9.8
-- Looking for include files HAVE_HDR_SPHINX2_CKD_ALLOC_H
-- Looking for include files HAVE_HDR_SPHINX2_CKD_ALLOC_H - found
-- Looking for C++ include SVS/svsclass.h
-- Looking for C++ include SVS/svsclass.h - not found
-- Looking for include files HAVE_HDR_GEOS_C_H
-- Looking for include files HAVE_HDR_GEOS_C_H - not found.
-- checking for module 'libpqxx'
--   found libpqxx, version 2.6.9
-- Looking for include files HAVE_HDR_LINUX_WIRELESS_H
-- Looking for include files HAVE_HDR_LINUX_WIRELESS_H - not found.
-- Looking for include files HAVE_HDR_LIBPARTICLE_H
-- Looking for include files HAVE_HDR_LIBPARTICLE_H - not found.
-- ----- Done -----
--
-- ===== Drivers =====
-- The following drivers will be built:
-- alsa
-- localbb
-- acts
-- cmvision
-- shapetracker
-- simpleshape
-- upcbarcode
-- camerav4l
-- camera1394
-- cameracompress
-- camerauncompress
-- cvcam
-- imageseq
-- sphere
-- camerauvc
-- laserbar
-- laserbarcode
-- laservisualbarcode
-- laservisualbw
-- garminnmea
-- statgrab
-- XSensMT
-- nimu
-- linuxjoystick
-- bumper2laser
-- pbslaser
-- sicklms200
-- sicklms400
-- sicks3000
-- laserposeinterpolator
-- lasercspace
-- laserrescan
-- lasercutter
-- urglaser
-- rs4leuze
-- amcl
-- fakelocalize
-- mapfile
-- mapcspace
-- mapscale
-- vmapfile
-- obot
-- clodbuster
-- cmucam2
-- erratic
-- er1
-- create
-- roomba
-- khepera
-- mricp
-- nomad
-- p2os
-- rflex
-- wbr914
-- serialstream
-- tcpstream
-- wavefront
-- laserptzcloud
-- flockofbirds
-- bumpersafe
-- lasersafe
-- mbicp
-- microstrain
-- motionmind
-- sicknav200
-- nd
-- roboteq
-- vfh
-- amtecpowercube
-- canonvcc4
-- ptu46
-- sonyevid30
-- lasertoranger
-- sonartoranger
-- insideM300
-- skyetekM1
-- sickRFI341
-- acr120u
-- dummy
-- kartowriter
-- writelog
-- readlog
-- passthrough
-- relay
-- AioToSonar
-- festival
-- aodv
-- iwspy
-- mica2
-- accel_calib
--
-- The following drivers will not be built:
-- amtecm5 - Could not find header Device.h
-- artoolkitplus - Could not find package artoolkitplus
-- yarpimage - Could not find header yarp/os/all.h
-- unicapimage - Could not find header unicap.h
-- eedhcontroller - Disabled - probably doesn't build
-- lifomcom - Disabled by default
-- chatterbox - Experimental
-- garcia - Could not find package libgarcia
-- phidgetifk - Could not find header phidget21.h
-- reb - Disabled by default
-- segwayrmp - Disabled by default
-- robotino - Could not find header robotinocom.h
-- sr3000 - Could not find header libusbSR.h
-- flexiport - Could not find package flexiport
-- isense - Could not find header isense/isense.h
-- gbxsickacfr - Could not find package GbxSickAcfr
-- hokuyo_aist - Could not find package hokuyo_aist
-- phidgetRFID - Could not find header phidget21.h
-- service_adv_mdns - Disabled by default
-- sphinx2 - Disabled by default
-- stoc - Could not find header SVS/svsclass.h
-- postgis - Could not find header geos_c.h
-- vec2map - Could not find header geos_c.h
-- linuxwifi - Could not find header linux/wireless.h
-- rcore_xbridge - Could not find header libparticle.h
-- phidgetAcc - Could not find header phidget21.h
-- ===================
--
-- ===== Examples =====
-- ====================
--
-- ===== Player utilities =====
-- checking for module 'gsl'
--   found gsl, version 1.10
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/libX11.so
-- XMMS plugin will not be built - XMMS not found
-- ============================
--
-- Configuring done
-- Generating done
-- Build files have been written to: /home/jiapei/Tools/playerstagegazebo/player-svn/build






It seems that boost is successfully found as

-- Boost version: 1.36.0
-- Found the following Boost libraries:
--   thread
--   signals
-- PlayerC++ client library will be built with Boost::Thread support.
-- PlayerC++ client library will be built with Boost::Signals support.


However, in the next step:
jiapei@jiapei-laptop:~/Tools/playerstagegazebo/player-svn/build$ make
Scanning dependencies of target example1
[ 85%] Building CXX object examples/libplayerc++/CMakeFiles/example1.dir/example1.o
/home/jiapei/Tools/playerstagegazebo/player-svn/examples/libplayerc++/example1.cc:2:28: error: boost/signal.hpp: No such file or directory
/home/jiapei/Tools/playerstagegazebo/player-svn/examples/libplayerc++/example1.cc:3:26: error: boost/bind.hpp: No such file or directory
/home/jiapei/Tools/playerstagegazebo/player-svn/examples/libplayerc++/example1.cc: In function ‘int main(int, char**)’:
/home/jiapei/Tools/playerstagegazebo/player-svn/examples/libplayerc++/example1.cc:72: error: ‘bind’ is not a member of ‘boost’
/home/jiapei/Tools/playerstagegazebo/player-svn/examples/libplayerc++/example1.cc:78: error: ‘bind’ is not a member of ‘boost’
/home/jiapei/Tools/playerstagegazebo/player-svn/examples/libplayerc++/example1.cc:78: error: ‘ref’ is not a member of ‘boost’
/home/jiapei/Tools/playerstagegazebo/player-svn/examples/libplayerc++/example1.cc:79: error: ‘bind’ is not a member of ‘boost’
/home/jiapei/Tools/playerstagegazebo/player-svn/examples/libplayerc++/example1.cc:79: error: ‘ref’ is not a member of ‘boost’
/home/jiapei/Tools/playerstagegazebo/player-svn/examples/libplayerc++/example1.cc:105: error: ‘bind’ is not a member of ‘boost’
make[2]: *** [examples/libplayerc++/CMakeFiles/example1.dir/example1.o] Error 1
make[1]: *** [examples/libplayerc++/CMakeFiles/example1.dir/all] Error 2
make: *** [all] Error 2



I still get the above error about boost.  Is it a must to use the relative path instead of the absolute path?? What's more, my boost version is 1.36.0, are you sure you can deal with version 1.36.0?


Best Regards
JIA Pei







I highly recommend you start performing an out-of-source build, rather
than doing an in-source build. It keeps your source tree clean.

On to the specific problems:

1) You should run cmake instead of ccmake and look for the lines
relating to its search for the Boost libraries, and what it found. This
will give more detail. Also, run make in verbose mode by using
"VERBOSE=1 make", then post the command line that gives the error.

2) You need to add the location of the artoolkitplus pkg-config file to
your PKG_CONFIG_PATH environment variable. It will probably be something
like /usr/local/lib/pkgconfig. So something like the following should work:

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/:$PKG_CONFIG_PATH


Geoff

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

 « Return to Thread: How to install Player from SVN source...