SCI Seg3D Mailing List

Text archives Help


[Seg3D] Re: Re: Re: Re: Fwd: problem during installation of seg3d


Chronological Thread 
  • From: Lorenzo Grassi <lorenzo.grassi@solid.lth.se>
  • To: seg3d@sci.utah.edu
  • Cc: Ayla Khan <ayla@sci.utah.edu>
  • Subject: [Seg3D] Re: Re: Re: Re: Fwd: problem during installation of seg3d
  • Date: Fri, 10 May 2013 08:21:14 +0000

Hi Ayla,

I was also able to build Seg3D 2.1.4 on Kubuntu 13.04 64-bit. I write the issue and the solution, so that it can maybe help someone else.

I followed the instructions reported for Ubuntu 12.10:

sudo apt-get install cmake-qt-gui cmake-curses-gui build-essential \
libxft-dev libxi-dev libxmu-headers freeglut3-dev \
libtiff4-dev

export CC=/usr/bin/gcc-4.6
export CXX=/usr/bin/g++-4.6

./build.sh --release

And I got an error reporting:

In file included from
/home/lorenzo/Software/Seg3D2-2.1.4-code/src/Externals/boost/boost/thread/pthread/mutex.hpp:14:0,
from
/home/lorenzo/Software/Seg3D2-2.1.4-code/src/Externals/boost/boost/thread/mutex.hpp:16,
from
/home/lorenzo/Software/Seg3D2-2.1.4-code/src/Externals/boost/boost/thread/pthread/thread_data.hpp:12,
from
/home/lorenzo/Software/Seg3D2-2.1.4-code/src/Externals/boost/boost/thread/thread.hpp:17,
from
/home/lorenzo/Software/Seg3D2-2.1.4-code/src/Externals/boost/libs/thread/src/pthread/thread.cpp:10:
/home/lorenzo/Software/Seg3D2-2.1.4-code/src/Externals/boost/boost/thread/xtime.hpp:23:5:
error: expected identifier before numeric constant
/home/lorenzo/Software/Seg3D2-2.1.4-code/src/Externals/boost/boost/thread/xtime.hpp:23:5:
error: expected ‘}’ before numeric constant
/home/lorenzo/Software/Seg3D2-2.1.4-code/src/Externals/boost/boost/thread/xtime.hpp:23:5:
error: expected unqualified-id before numeric constant
/home/lorenzo/Software/Seg3D2-2.1.4-code/src/Externals/boost/boost/thread/xtime.hpp:46:14:
error: expected type-specifier before ‘system_time’
In file included from
/home/lorenzo/Software/Seg3D2-2.1.4-code/src/Externals/boost/boost/thread/pthread/mutex.hpp:14:0,
from
/home/lorenzo/Software/Seg3D2-2.1.4-code/src/Externals/boost/boost/thread/mutex.hpp:16,
from
/home/lorenzo/Software/Seg3D2-2.1.4-code/src/Externals/boost/boost/thread/pthread/thread_data.hpp:12,
from
/home/lorenzo/Software/Seg3D2-2.1.4-code/src/Externals/boost/boost/thread/thread.hpp:17,
from
/home/lorenzo/Software/Seg3D2-2.1.4-code/src/Externals/boost/libs/thread/src/pthread/thread.cpp:10:
/home/lorenzo/Software/Seg3D2-2.1.4-code/src/Externals/boost/boost/thread/xtime.hpp:
In function ‘int xtime_get(xtime*, int)’:
/home/lorenzo/Software/Seg3D2-2.1.4-code/src/Externals/boost/boost/thread/xtime.hpp:73:40:
error: ‘get_system_time’ was not declared in this scope
/home/lorenzo/Software/Seg3D2-2.1.4-code/src/Externals/boost/boost/thread/xtime.hpp:73:40:
note: suggested alternative:
/home/lorenzo/Software/Seg3D2-2.1.4-code/src/Externals/boost/boost/thread/thread_time.hpp:19:24:
note: ‘boost::get_system_time’
/home/lorenzo/Software/Seg3D2-2.1.4-code/src/Externals/boost/boost/thread/xtime.hpp:
At global scope:
/home/lorenzo/Software/Seg3D2-2.1.4-code/src/Externals/boost/boost/thread/xtime.hpp:88:1:
error: expected declaration before ‘}’ token
make[2]: ***
[Externals/boost/CMakeFiles/boost.dir/libs/thread/src/pthread/thread.cpp.o]
Error 1
make[1]: *** [Externals/boost/CMakeFiles/boost.dir/all] Error 2
make: *** [all] Error 2
Building Seg3D returned an error

Either the code failed to build properly or

the testing programs failed to complete without

every single test program passing the test.
The solution I found consists in renaming all the occurrences of TIME_UTC to TIME_UTC_ in the files timeconv.inl and xtime.hpp. The reason why I need this workaround are explained here:

https://bbs.archlinux.org/viewtopic.php?pid=1130928

Best regards,
Lorenzo




On 05/09/2013 11:41 PM, Ayla Khan wrote:
3A4BBC39-65F6-4EB5-B8D1-55DACF95D663@sci.utah.edu" type="cite">
Hi Lorenzo,

I was able to build the Seg3D 2.1.5 release branch on both Kubuntu and Ubuntu 13.04 64-bit. You're welcome to build from Subversion (https://code.sci.utah.edu/svn/seg3d2/branches/2.1.5), or I can prepare a pre-release tar archive for you. Please let me know which you would prefer.

Ayla

On May 2, 2013, at 2:31 AM, Lorenzo Grassi wrote:

Hi Ayla,

thanks for your help. I am using the GNU C++ compiler. For the sake of completeness, I report the result of the dpkg --list | grep compiler command:

ii  g++ 4:4.7.3-1ubuntu10                           amd64        GNU C++ compiler
ii  g++-4.7 4.7.3-1ubuntu1                              amd64        GNU C++ compiler
ii  gcc 4:4.7.3-1ubuntu10                           amd64        GNU C compiler
ii  gcc-4.7 4.7.3-1ubuntu1                              amd64        GNU C compiler
ii  hardening-includes 2.3                                         all          Makefile for enabling compiler flags for security hardening
ii  libprotoc7 2.4.1-3ubuntu1                              amd64        protocol buffers compiler library
ii  libxkbcommon0:amd64 0.2.0-0ubuntu3                              amd64        library interface to the XKB compiler - shared library
ii  protobuf-compiler 2.4.1-3ubuntu1                              amd64        compiler for protocol buffer definition files

Thanks,
Lorenzo





On 05/01/2013 03:34 AM, Ayla Khan wrote:
Hi Lorenzo,

Kubuntu is not one of our supported Linux distributions, so I'll need more information about your build environment. Can you tell me which C++ compiler you're using?

Thanks,

Ayla

On Apr 30, 2013, at 9:05 AM, Lorenzo Grassi wrote:

Hi,

I am having troubles installing Seg3D2 (2.1.4) on Kubuntu 13.04 64-bit.
After installing the required dependencies, I execute the ./build.sh
--release command.
The Cmake part went fine, but during the make phase I got this error:

[ 1%] Built target zlib
[ 1%] Built target MatlabIO
[ 2%] Built target libpng12
[ 11%] Built target teem
[ 11%] Built target glew
[ 12%] Built target freetype
[ 12%] Built target tinyxml
[ 12%] Built target sqlite
[ 12%] Built target gdcmuuid
[ 14%] Built target gdcmjpeg8
[ 16%] Built target gdcmjpeg12
[ 18%] Built target gdcmjpeg16
[ 18%] Built target gdcmexpat
[ 19%] Built target gdcmopenjpeg
[ 20%] Built target gdcmCommon
[ 21%] Built target gdcmDSED
[ 22%] Built target gdcmIOD
[ 22%] Built target gdcmDICT
[ 24%] Built target gdcmMSFF
[ 25%] Built target itksys
[ 27%] Built target itkjpeg8
[ 29%] Built target itkjpeg12
[ 31%] Built target itkjpeg16
[ 31%] Built target itkzlib
[ 31%] Built target itkpng
[ 32%] Built target itktiff
[ 33%] Built target itkopenjpeg
[ 34%] Built target ITKMetaIO
[ 35%] Built target ITKNrrdIO
[ 35%] Built target ITKEXPAT
[ 35%] Built target ITKznz
[ 35%] Built target ITKniftiio
[ 35%] Built target ITKDICOMParser
[ 35%] Built target itkvcl
[ 44%] Built target itkv3p_netlib
[ 44%] Building CXX object
Externals/itk/Utilities/vxl/core/vnl/CMakeFiles/itkvnl.dir/Templates/vnl_matrix_fixed_ref+float.3.3-.o
In file included from
/home/lorenzo/Software/Seg3D2-2.1.4-code/src/Externals/itk/Utilities/vxl/core/vnl/vnl_matrix_fixed_ref.txx:5:0,
from
/home/lorenzo/Software/Seg3D2-2.1.4-code/src/Externals/itk/Utilities/vxl/core/vnl/Templates/vnl_matrix_fixed_ref+float.3.3-.cxx:1:
/home/lorenzo/Software/Seg3D2-2.1.4-code/src/Externals/itk/Utilities/vxl/core/vnl/vnl_matrix_fixed_ref.h:
In instantiation of ‘bool vnl_matrix_fixed_ref<T, num_rows,
num_cols>::operator_eq(const vnl_matrix_fixed_ref_const<T, num_rows,
num_cols>&) const [with T = float; unsigned int num_rows = 3u; unsigned
int num_cols = 3u]’:
/home/lorenzo/Software/Seg3D2-2.1.4-code/src/Externals/itk/Utilities/vxl/core/vnl/Templates/vnl_matrix_fixed_ref+float.3.3-.cxx:2:1:
required from here
/home/lorenzo/Software/Seg3D2-2.1.4-code/src/Externals/itk/Utilities/vxl/core/vnl/vnl_matrix_fixed_ref.h:657:56:
error: ‘equal’ was not declared in this scope, and no declarations were
found by argument-dependent lookup at the point of instantiation
[-fpermissive]
/home/lorenzo/Software/Seg3D2-2.1.4-code/src/Externals/itk/Utilities/vxl/core/vnl/vnl_matrix_fixed_ref.h:657:56:
note: declarations in dependent base ‘vnl_matrix_fixed_ref_const<float,
3u, 3u>’ are not found by unqualified lookup
/home/lorenzo/Software/Seg3D2-2.1.4-code/src/Externals/itk/Utilities/vxl/core/vnl/vnl_matrix_fixed_ref.h:657:56:
note: use ‘this->equal’ instead
make[2]: ***
[Externals/itk/Utilities/vxl/core/vnl/CMakeFiles/itkvnl.dir/Templates/vnl_matrix_fixed_ref+float.3.3-.o]
Error 1
make[1]: ***
[Externals/itk/Utilities/vxl/core/vnl/CMakeFiles/itkvnl.dir/all] Error 2
make: *** [all] Error 2



Can you please help me fixing this error?

Thanks in advance,
Lorenzo Grassi




      

    




Archive powered by MHonArc 2.6.16.

Top of page