statismo-asm build error

43 views
Skip to first unread message

Ibrahim A

unread,
Feb 13, 2017, 4:48:39 PM2/13/17
to statismo
Dear all,
I got this error wehen I try to build statismo-asm:
====================
[ 25%] Building CXX object CMakeFiles/fit-asm.dir/src/itkFitASM.cxx.o
In file included from <myPath>/src/itkFitASM.cxx:14:0:
<myPath>/src/ASM/itkASMFitting.h:70:35: error: ‘std::shared_ptr’ has not been declared
         void SetInternalData(std::shared_ptr<ASMMeshOperations> asmMeshOperations, ImplType statismoResult, ModelPointerType model) {
                                   ^
<myPath>/src/ASM/itkASMFitting.h:70:45: error: expected ‘,’ or ‘...’ before ‘<’ token
         void SetInternalData(std::shared_ptr<ASMMeshOperations> asmMeshOperations, ImplType statismoResult, ModelPointerType model) {
                                             ^
In file included from <myPath>/src/itkFitASM.cxx:14:0:
<myPath>/src/ASM/itkASMFitting.h:95:14: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
         std::shared_ptr<ASMMeshOperations> m_meshOperations;
              ^
<myPath>/src/ASM/itkASMFitting.h: In member function ‘void itk::ASMFittingResult<TPointSet, TImage>::SetInternalData(int)’:
<myPath>/src/ASM/itkASMFitting.h:71:13: error: ‘m_meshOperations’ was not declared in this scope
             m_meshOperations = asmMeshOperations;
             ^
<myPath>/src/ASM/itkASMFitting.h:71:32: error: ‘asmMeshOperations’ was not declared in this scope
             m_meshOperations = asmMeshOperations;
                                ^
<myPath>/src/ASM/itkASMFitting.h:72:23: error: ‘model’ was not declared in this scope
             m_model = model;
                       ^
<myPath>/src/ASM/itkASMFitting.h:73:32: error: ‘statismoResult’ was not declared in this scope
             m_statismoResult = statismoResult;
                                ^
<myPath>/src/ASM/itkASMFitting.h: In member function ‘typename TPointSet::Pointer itk::ASMFittingResult<TPointSet, TImage>::GetMesh()’:
<myPath>/src/ASM/itkASMFitting.h:90:20: error: ‘m_meshOperations’ was not declared in this scope
             return m_meshOperations->TransformMesh(instance, GetRigidTransformation());
                    ^
<myPath>/src/ASM/itkASMFitting.h: At global scope:
<myPath>/ASM/itkASMFitting.h:169:14: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
         std::shared_ptr<ASMMeshOperations> m_asmOperations;
              ^
<myPath>/src/ASM/itkASMFitting.h: In constructor ‘itk::ASMFittingStep<TPointSet, TImage>::ASMFittingStep()’:
<myPath>/src/ASM/itkASMFitting.h:127:28: error: class ‘itk::ASMFittingStep<TPointSet, TImage>’ does not have any field named ‘m_asmOperations’
         ASMFittingStep() : m_asmOperations(new ASMMeshOperations()), m_model(0), m_target(0), m_configuration(0, 0, 0), m_transform(0) { }
                            ^
<myPath>/src/ASM/itkASMFitting.h: In member function ‘void itk::ASMFittingStep<TPointSet, TImage>::Update()’:
<myPath>/src/ASM/itkASMFitting.h:154:47: error: ‘m_asmOperations’ was not declared in this scope
             ImplType *impl = ImplType::Create(m_asmOperations.get(), m_configuration, m_model->GetstatismoImplObj(), m_coeffs, m_transform,
                                               ^
In file included from /media/ibr/Ohome/ibr/sw/XXXstatismo-asm/src/itkFitASM.cxx:12:0:
<myPath>/src/ASM/itkASMIdentityImagePreprocessor.h: In instantiation of ‘typename statismo::ASMPreprocessedImage<TPointSet>::ImageType itk::ASMIdentityPreprocessedImage<TPointSet, TImage>::GetType() const [with TPointSet = itk::Mesh<float, 3u>; TImage = itk::Image<float, 3u>; typename statismo::ASMPreprocessedImage<TPointSet>::ImageType = statismo::ASMPreprocessedImage<itk::Mesh<float, 3u> >::ImageType]’:
<myPath>/src/itkFitASM.cxx:134:1:   required from here
<myPath>/src/ASM/itkASMIdentityImagePreprocessor.h:68:74: error: ‘Intensity’ is not a member of ‘statismo::ASMPreprocessedImage<itk::Mesh<float, 3u> >::ImageType’
             return statismo::ASMPreprocessedImage<TPointSet>::ImageType::Intensity;
                                                                          ^
make[2]: *** [CMakeFiles/fit-asm.dir/src/itkFitASM.cxx.o] Error 1
make[1]: *** [CMakeFiles/fit-asm.dir/all] Error 2
make: *** [all] Error 2

====================

any suggestion?
I have Ubuntu 14. 

Best gregards,
Ibraheem

Ibrahim A

unread,
Feb 13, 2017, 4:51:16 PM2/13/17
to statismo
This is the link where I downloaded the sw: https://github.com/statismo/statismo-asm

Marcel Luethi

unread,
Feb 14, 2017, 8:37:53 AM2/14/17
to Ibrahim A, statismo
Hi Ibraheem,

The problem is that C++11 support is not switched on. I have just pushed a commit, such that this is done automatically for you. Hence if you pull the latest version from github it should compile.

Note, however, that statismo-asm is still experimental and not as well tested as the rest of statismo. Also, while I will try my best to help with advise if things are not working, I am currently not able to invest much time into the project.


Best regards,

Marcel

--
You received this message because you are subscribed to the Google Groups "statismo" group.
To unsubscribe from this group and stop receiving emails from it, send an email to statismo-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Marcel Luethi

unread,
Feb 14, 2017, 9:20:46 AM2/14/17
to Ibrahim A, statism...@googlegroups.com
Statismo-ASM requires the lastest (currently still unreleased) version of statismo. See the statismo-asm README. You should check out and use the branch vs2015 of statismo.

Best regards,
Marcel

ps. A new release of statismo is in the pipeline

On Tue, Feb 14, 2017 at 2:57 PM, Ibrahim A <ibr...@gmail.com> wrote:
Hi Marcel,
many thanks for your quick reply. I understand the situation, it would be nice if you can help with such small stuff. I downloaded the updated source and now I get file missing error::
[ 25%] Building CXX object CMakeFiles/fit-asm.dir/src/itkFitASM.cxx.o
In file included from ~/statismo-asm/src/ASM/ASMFitting.h:40:0,
                 from ~/statismo-asm/src/itkFitASM.cxx:7:
~/statismo-asm/src/ASM/ActiveShapeModel.h:43:24: fatal error: StatismoIO.h: No such file or directory
 #include "StatismoIO.h"
                        ^
compilation terminated.
make[2]: *** [CMakeFiles/fit-asm.dir/src/itkFitASM.cxx.o] Error 1
make[1]: *** [CMakeFiles/fit-asm.dir/all] Error 2
I searched for the file  StatismoIO.h but it is not found in statismo source or build. 
Best regards,
Ibraheem
Reply all
Reply to author
Forward
0 new messages