Quantcast

TIME_UTC is not a member of 'boost'

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

TIME_UTC is not a member of 'boost'

Raf Berkvens
Dear mailing list subscribers

When using newer versions of boost (I noticed this using the 1.50 version), TIME_UTC is replaced with TIME_UTC_

I had to edit this in the file client_libs/libplayerc++/playerclient.cc on line 171.

The next error I get during make is:
undefined reference to symbol '_ZN5boost6system15system_categoryEv'

This should come from the file examples/libplayerc++/camera.cc. It can be resolved, says ld, by adding libboost_system to the linker command. I'm not sure how to do this, though. Any suggestions?

Kind regards
Raf Berkvens
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: TIME_UTC is not a member of 'boost'

Raf Berkvens
I'm am now using Boost 1.49, no issues.


On 22 November 2012 15:50, Raf Berkvens <[hidden email]> wrote:

Dear mailing list subscribers

When using newer versions of boost (I noticed this using the 1.50 version),
TIME_UTC is replaced with TIME_UTC_

I had to edit this in the file client_libs/libplayerc++/playerclient.cc on
line 171.

The next error I get during make is:
undefined reference to symbol '_ZN5boost6system15system_categoryEv'

This should come from the file examples/libplayerc++/camera.cc. It can be
resolved, says ld, by adding libboost_system to the linker command. I'm not
sure how to do this, though. Any suggestions?

Kind regards
Raf Berkvens
--
View this message in context: http://old.nabble.com/TIME_UTC-is-not-a-member-of-%27boost%27-tp34711093p34711093.html
Sent from the playerstage-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Playerstage-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/playerstage-users


------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Playerstage-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/playerstage-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: TIME_UTC is not a member of 'boost'

doizuc
In reply to this post by Raf Berkvens
I get the same problem and solve it doing this :

tar xzvf player-3.0.2.tgz
cd player-3.0.2
mkdir build
cd build
cmake ../

Replace TIME_UTC by TIME_UTC_ in file player-3.0.2/client_libs/libplayerc++/playerclient.cc on line 171

For each error : undefined reference to symbol '_ZN5boost6system15system_categoryEv'
add the flag -lboost_system after -lboost_signals in the file player-3.0.2/build/examples/libplayerc++/Makefile/*.dir/link.txt
For example : player-3.0.2/build/examples/libplayerc++/Makefile/camera.dir/list.txt will be :
/usr/bin/c++    -Wall    CMakeFiles/camera.dir/camera.o  -o camera -rdynamic -L/usr/local/lib ../../client_libs/libplayerc++/libplayerc++.so.3.0.2 ../../client_libs/libplayerc/libplayerc.so.3.0.2 ../../libplayerinterface/libplayerinterface.so.3.0.2 ../../libplayercommon/libplayercommon.so.3.0.2 -lm -lz -lgeos -lgeos_c -lboost_thread -lboost_signals -lboost_system -lm ../../libplayerjpeg/libplayerjpeg.so.3.0.2 -ljpeg ../../libplayerwkb/libplayerwkb.so.3.0.2 ../../libplayercommon/libplayercommon.so.3.0.2 -lgeos -lgeos_c -Wl,-rpath,/usr/local/lib:/home/doizuc/Downloads/player-3.0.2/build/client_libs/libplayerc++:/home/doizuc/Downloads/player-3.0.2/build/client_libs/libplayerc:/home/doizuc/Downloads/player-3.0.2/build/libplayerinterface:/home/doizuc/Downloads/player-3.0.2/build/libplayercommon:/home/doizuc/Downloads/player-3.0.2/build/libplayerjpeg:/home/doizuc/Downloads/player-3.0.2/build/libplayerwkb

I'm sure there is a more efficient way to do it adding the flag in CMake config but I don't know how to do it.
An other solution can be to disable the example using ccmake ../
Loading...