[Smtk-developers] Problem with SMTK Master

David Thompson david.thompson at kitware.com
Mon May 25 09:40:23 EDT 2015


Hi Bob,

I see that MeshSelectionItemDefinition definitely contains m_membershipMask, so it seems likely that an old header is getting pulled from somewhere. Can you run

    make smtk/CMakeFiles/smtkCore.dir/attribute/MeshSelectionItem.cxx.i

in the SMTK build directory and then look at the result to see where it is getting headers?

	Thanks,
	David

On May 25, 2015, at 12:26 AM, Robert Michael O'Bara <bob.obara at kitware.com> wrote:

> Hi Yumin,
> Yep,  brand new super build.  
> 
> Bob
> Sent from my iPad
> 
> On May 24, 2015, at 10:30 PM, yumin.yuan at kitware.com wrote:
> 
>> Is this a clean build? If not,you may need to do what Dave suggested in his previous email. Here is part of that email:
>> 
>> 
>>> SMTK is about to start installing its headers into a different location (${PREFIX}/include/smtk/${SMTK_VERSION}/smtk instead of ${PREFIX}/include/smtk). CMB merge request #33 keeps CMB compiling but does require you to remove SMTK_INCLUDE_DIR from your CMB CMakeCache.txt file before rebuilding. It would also be wise to wipe the ${PREFIX}/include/smtk directory before updating+installing SMTK so that CMB doesn't find the old headers and break down the road.
>> 
>> Yumin
>> Sent from my iPhone
>> 
>> On May 24, 2015, at 6:34 PM, Bob Obara <bob.obara at kitware.com> wrote:
>> 
>>> 
>>> Hi All,
>>> 
>>> I’ve updated all of the CMB files to reflect the correct license however while building CMB SuperBuild in develop mode SMTK is giving me an error:
>>> 
>>>  41%] [ 41%] [ 41%] [ 41%] [ 41%] Building CXX object smtk/CMakeFiles/smtkCore.dir/attribute/ModelEntityItemDefinition.cxx.o
>>> Building CXX object smtk/CMakeFiles/smtkCore.dir/attribute/MeshSelectionItem.cxx.o
>>> Building CXX object smtk/CMakeFiles/smtkCore.dir/attribute/MeshSelectionItemDefinition.cxx.o
>>> Building CXX object smtk/CMakeFiles/smtkCore.dir/attribute/RefItem.cxx.o
>>> Building CXX object smtk/CMakeFiles/smtkCore.dir/attribute/RefItemDefinition.cxx.o
>>> /Users/obara/Projects/Kitware/Builds/CMBSuperBuildV4/smtk/src/smtk/smtk/attribute/MeshSelectionItemDefinition.cxx:22:9: error: no member named 'm_membershipMask' in 'smtk::attribute::MeshSelectionItemDefinition'
>>>   this->m_membershipMask = smtk::model::ANY_ENTITY;
>>>   ~~~~  ^
>>> /Users/obara/Projects/Kitware/Builds/CMBSuperBuildV4/smtk/src/smtk/smtk/attribute/MeshSelectionItemDefinition.cxx:36:52: error: out-of-line definition of 'membershipMask' does not match any declaration in 'smtk::attribute::MeshSelectionItemDefinition'
>>> smtk::model::BitFlags MeshSelectionItemDefinition::membershipMask() const
>>>                                                    ^~~~~~~~~~~~~~
>>> /Users/obara/Projects/Kitware/Builds/CMBSuperBuildV4/smtk/src/smtk/smtk/attribute/MeshSelectionItemDefinition.cxx:38:16: error: no member named 'm_membershipMask' in 'smtk::attribute::MeshSelectionItemDefinition'
>>>   return this->m_membershipMask;
>>>          ~~~~  ^
>>> /Users/obara/Projects/Kitware/Builds/CMBSuperBuildV4/smtk/src/smtk/smtk/attribute/MeshSelectionItemDefinition.cxx:42:35: error: out-of-line definition of 'setMembershipMask' does not match any declaration in 'smtk::attribute::MeshSelectionItemDefinition'
>>> void MeshSelectionItemDefinition::setMembershipMask(smtk::model::BitFlags entMask)
>>>                                   ^~~~~~~~~~~~~~~~~
>>> /Users/obara/Projects/Kitware/Builds/CMBSuperBuildV4/smtk/src/smtk/smtk/attribute/MeshSelectionItemDefinition.cxx:44:9: error: no member named 'm_membershipMask' in 'smtk::attribute::MeshSelectionItemDefinition'
>>>   this->m_membershipMask = entMask;
>>>   ~~~~  ^
>>> /Users/obara/Projects/Kitware/Builds/CMBSuperBuildV4/smtk/src/smtk/smtk/attribute/MeshSelectionItem.cxx:25:3: error: use of undeclared identifier 'm_modifyMode'
>>>   m_modifyMode = NONE;
>>>   ^
>>> /Users/obara/Projects/Kitware/Builds/CMBSuperBuildV4/smtk/src/smtk/smtk/attribute/MeshSelectionItem.cxx:128:9: error: no member named 'm_modifyMode' in 'smtk::attribute::MeshSelectionItem'
>>>   this->m_modifyMode = sourceMeshSelectionItem->modifyMode();
>>>   ~~~~  ^
>>> /Users/obara/Projects/Kitware/Builds/CMBSuperBuildV4/smtk/src/smtk/smtk/attribute/MeshSelectionItem.cxx:128:49: error: no member named 'modifyMode' in 'smtk::attribute::MeshSelectionItem'
>>>   this->m_modifyMode = sourceMeshSelectionItem->modifyMode();
>>>                        ~~~~~~~~~~~~~~~~~~~~~~~  ^
>>> /Users/obara/Projects/Kitware/Builds/CMBSuperBuildV4/smtk/src/smtk/smtk/attribute/MeshSelectionItem.cxx:144:50: error: unknown type name 'MeshModifyMode'
>>> std::string MeshSelectionItem::modifyMode2String(MeshModifyMode m)
>>>                                                  ^
>>> /Users/obara/Projects/Kitware/Builds/CMBSuperBuildV4/smtk/src/smtk/smtk/attribute/MeshSelectionItem.cxx:165:1: error: unknown type name 'MeshModifyMode'
>>> MeshModifyMode MeshSelectionItem::string2ModifyMode(const std::string &s)
>>> ^
>>> /Users/obara/Projects/Kitware/Builds/CMBSuperBuildV4/smtk/src/smtk/smtk/attribute/MeshSelectionItem.cxx:187:9: error: use of undeclared identifier 'NUM_OF_MODIFYMODES'; did you mean 'NUM_OF_MODES'?
>>>  return NUM_OF_MODIFYMODES;
>>>         ^~~~~~~~~~~~~~~~~~
>>>         NUM_OF_MODES
>>> /Users/obara/Projects/Kitware/Builds/CMBSuperBuildV4/install/include/smtk/attribute/MeshSelectionItem.h:32:3: note: 'NUM_OF_MODES' declared here
>>>   NUM_OF_MODES      //!< The number of mesh selection modes.
>>>   ^
>>> 5 errors generated.
>>> make[5]: *** [smtk/CMakeFiles/smtkCore.dir/attribute/MeshSelectionItemDefinition.cxx.o] Error 1
>>> make[5]: *** Waiting for unfinished jobs....
>>> 6 errors generated.
>>> make[5]: *** [smtk/CMakeFiles/smtkCore.dir/attribute/MeshSelectionItem.cxx.o] Error 1
>>> make[4]: *** [smtk/CMakeFiles/smtkCore.dir/all] Error 2
>>> make[3]: *** [all] Error 2
>>> -- 2
>>> CMake Error at /Users/obara/Projects/Kitware/Builds/CMBSuperBuildV4/pv-smtk-build.cmake:27 (message):
>>>   Failed!!!
>>> 
>>> 
>>> make[2]: *** [smtk/src/smtk-stamp/smtk-build] Error 1
>>> make[1]: *** [CMakeFiles/smtk.dir/all] Error 2
>>> make: *** [all] Error 2
>>> 
>>> 
>>> Any ideas?
>>> 
>>> Bob
>>> 
>>> -- 
>>> Robert M. O'Bara, MEng.
>>> Assistant Director of Scientific Computing
>>> 
>>> Kitware Inc.
>>> 28 Corporate Drive
>>> Suite 101
>>> Clifton Park, NY 12065
>>> 
>>> Phone: (518) 881- 4931
>>> _______________________________________________
>>> Smtk-developers mailing list
>>> Smtk-developers at smtk.org
>>> http://public.kitware.com/mailman/listinfo/smtk-developers
> _______________________________________________
> Smtk-developers mailing list
> Smtk-developers at smtk.org
> http://public.kitware.com/mailman/listinfo/smtk-developers



More information about the Smtk-developers mailing list