kamalasv / orthanc

Automatically exported from code.google.com/p/orthanc
GNU General Public License v3.0
0 stars 0 forks source link

failed to compile #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Download Version 0.6.1.tar.gz
2.Unpack
3. cmake -DSTATIC_BUILD=ON -DCMAKE_BUILD_TYPE=Debug ~/Orthanc
4. make

What is the expected output? What do you see instead?
No errors on boost 1.49

What version of the product are you using? On what operating system?
0.6.1, issues with compile

Please provide any additional information below.

After first error, a re-make

me@bill-linuxbase:~/Downloads/OrthancBuild$ make
[  1%] Built target GoogleLog
[ 58%] Built target OpenSSL
[ 68%] Built target Curl
[ 70%] Built target Lua
[ 70%] Building CXX object 
CMakeFiles/CoreLibrary.dir/boost_1_49_0/libs/thread/src/pthread/thread.cpp.o
In file included from 
/home/me/Downloads/OrthancBuild/boost_1_49_0/boost/thread/pthread/mutex.hpp:14:0
,
                 from /home/me/Downloads/OrthancBuild/boost_1_49_0/boost/thread/mutex.hpp:16,
                 from /home/me/Downloads/OrthancBuild/boost_1_49_0/boost/thread/pthread/thread_data.hpp:12,
                 from /home/me/Downloads/OrthancBuild/boost_1_49_0/boost/thread/thread.hpp:17,
                 from /home/me/Downloads/OrthancBuild/boost_1_49_0/libs/thread/src/pthread/thread.cpp:10:
/home/me/Downloads/OrthancBuild/boost_1_49_0/boost/thread/xtime.hpp:23:5: 
error: expected identifier before numeric constant
/home/me/Downloads/OrthancBuild/boost_1_49_0/boost/thread/xtime.hpp:23:5: 
error: expected ‘}’ before numeric constant
/home/me/Downloads/OrthancBuild/boost_1_49_0/boost/thread/xtime.hpp:23:5: 
error: expected unqualified-id before numeric constant
/home/me/Downloads/OrthancBuild/boost_1_49_0/boost/thread/xtime.hpp:46:14: 
error: expected type-specifier before ‘system_time’
In file included from 
/home/me/Downloads/OrthancBuild/boost_1_49_0/boost/thread/pthread/mutex.hpp:14:0
,
                 from /home/me/Downloads/OrthancBuild/boost_1_49_0/boost/thread/mutex.hpp:16,
                 from /home/me/Downloads/OrthancBuild/boost_1_49_0/boost/thread/pthread/thread_data.hpp:12,
                 from /home/me/Downloads/OrthancBuild/boost_1_49_0/boost/thread/thread.hpp:17,
                 from /home/me/Downloads/OrthancBuild/boost_1_49_0/libs/thread/src/pthread/thread.cpp:10:
/home/me/Downloads/OrthancBuild/boost_1_49_0/boost/thread/xtime.hpp: In 
function ‘int xtime_get(xtime*, int)’:
/home/me/Downloads/OrthancBuild/boost_1_49_0/boost/thread/xtime.hpp:73:40: 
error: ‘get_system_time’ was not declared in this scope
/home/me/Downloads/OrthancBuild/boost_1_49_0/boost/thread/xtime.hpp:73:40: 
note: suggested alternative:
In file included from 
/home/me/Downloads/OrthancBuild/boost_1_49_0/boost/thread/locks.hpp:12:0,
                 from /home/me/Downloads/OrthancBuild/boost_1_49_0/boost/thread/pthread/mutex.hpp:12,
                 from /home/me/Downloads/OrthancBuild/boost_1_49_0/boost/thread/mutex.hpp:16,
                 from /home/me/Downloads/OrthancBuild/boost_1_49_0/boost/thread/pthread/thread_data.hpp:12,
                 from /home/me/Downloads/OrthancBuild/boost_1_49_0/boost/thread/thread.hpp:17,
                 from /home/me/Downloads/OrthancBuild/boost_1_49_0/libs/thread/src/pthread/thread.cpp:10:
/home/me/Downloads/OrthancBuild/boost_1_49_0/boost/thread/thread_time.hpp:19:24:
 note:   ‘boost::get_system_time’
In file included from 
/home/me/Downloads/OrthancBuild/boost_1_49_0/boost/thread/pthread/mutex.hpp:14:0
,
                 from /home/me/Downloads/OrthancBuild/boost_1_49_0/boost/thread/mutex.hpp:16,
                 from /home/me/Downloads/OrthancBuild/boost_1_49_0/boost/thread/pthread/thread_data.hpp:12,
                 from /home/me/Downloads/OrthancBuild/boost_1_49_0/boost/thread/thread.hpp:17,
                 from /home/me/Downloads/OrthancBuild/boost_1_49_0/libs/thread/src/pthread/thread.cpp:10:
/home/me/Downloads/OrthancBuild/boost_1_49_0/boost/thread/xtime.hpp: At global 
scope:
/home/me/Downloads/OrthancBuild/boost_1_49_0/boost/thread/xtime.hpp:88:1: 
error: expected declaration before ‘}’ token
make[2]: *** 
[CMakeFiles/CoreLibrary.dir/boost_1_49_0/libs/thread/src/pthread/thread.cpp.o] 
Error 1
make[1]: *** [CMakeFiles/CoreLibrary.dir/all] Error 2
make: *** [all] Error 2
me@bill-linuxbase:~/Downloads/OrthancBuild$ 

This seems to be a known issue with boost, solved by reving the library used.  
However, the project really seems to want to use boost 1.49.

Not sure why I'd be the first to see this?

Using Ubuntu 13.04

Original issue reported on code.google.com by woreil...@gmail.com on 16 Sep 2013 at 9:44

GoogleCodeExporter commented 9 years ago
Hello,

Thanks for your feedback. As I am developing on Ubuntu 12.10, I have not 
encountered this problem before. I have just patched the Orthanc mainline to 
use Boost 1.54.0 instead of 1.49.0: This modification will be part of the 
Orthanc 0.6.2.
https://code.google.com/p/orthanc/source/detail?r=210c9671059249905d4d7b0c00c909
af114fe136

In the meantime, you will find enclosed with this comment a patch to use Boost 
1.54.0 with Orthanc 0.6.1. 

Please also note that it is possible to use the system library of Ubuntu 13.04 
through dynamic linking. The build instructions can be found in the official 
Orthanc 0.6.1 package for Debian:
http://anonscm.debian.org/viewvc/debian-med/trunk/packages/orthanc/tags/0.6.1-1/
debian/rules?view=markup

HTH,
Sébastien-

Original comment by s.jodo...@gmail.com on 17 Sep 2013 at 8:21

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks, will test.

Original comment by woreil...@gmail.com on 18 Sep 2013 at 10:03

GoogleCodeExporter commented 9 years ago
This patch is part of Orthanc since the 0.6.2 release. I close now the issue.

Original comment by s.jodo...@gmail.com on 1 Nov 2013 at 11:19