Hi Fung Yang,
all the step you mentioned seems right for me.
You can also try to set the linker flag, and you can do this is using ccmake.
Pressing the 't' key (advanced mode) you can add extra flags, I think the variable is CMAKE_EXE_LINKER_FLAG.
Also you can try compiling with
$> make VERBOSE=1
and check the linker flags in the line where the error arise.

I hope this can help you.


On 5 November 2013 00:18, fung <fung.yang@auckland.ac.nz> wrote:

Hello! How’s everything?

To install player-3.0.2 onto Ubuntu13.10 32bits,
during make,
I encountered error as listed below:
{
Linking CXX executable playerc++_test
/usr/bin/ld: CMakeFiles/playerc++_test.dir/test.o: undefined reference to
symbol '_ZN5boost6system15system_categoryEv'
/usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libboost_system.so:
error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [client_libs/libplayerc++/test/playerc++_test] Error 1
make[1]: ***
[client_libs/libplayerc++/test/CMakeFiles/playerc++_test.dir/all] Error 2
make: *** [all] Error 2
robot@robot0:~/playerstagesrc/player-3.0.2/build$
}

I tried to
{
(1)
Install libboost-system-dev,
$apt-get install libboost-system-dev

Using dpkg found
   installed libboost-syste is version 1.53.0.0ubun.
   installed libboost-dev is 1.53.0.0ubun
(2)
Change environment variable – LD_LIBRARY_PATH to include the path
where libboost_system.so is, that is:
$ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/i386-linux-gnu

(3)
~/playerstage/player-3.0.2/build$ cmake ../

(4)
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

(5)
~playerstage/player-3.0.2/build$make
 }

Still encounter the same error.

Your advice is very much appreciated.

Many thanks,
Fung Yang





--
View this message in context: http://player-stage-gazebo.10965.n7.nabble.com/player-make-error-undefined-reference-to-symbol-ZN5boost6system15system-categoryEv-tp19135.html
Sent from the playerstage-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Playerstage-users mailing list
Playerstage-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/playerstage-users



--
Gonzalo F. Perez Paina
Research Center in Informatics for Engineering (CIII)
Universidad Tecnológica Nacional. Facultad Regional Córdoba
Maestro M. López esq. Cruz Roja Argentina - C.P.: X5016ZAA
Ed. Salcedo, Of.5. Tel.: 5986000, Int.: 1445
e-mail: gperez@scdt.frc.utn.edu.ar
webpage: http://ciii.frc.utn.edu.ar/GonzaloPerezPaina