Skip to content

Conversation

dzenanz
Copy link
Contributor

@dzenanz dzenanz commented Nov 4, 2020

This is a cleaned-up version of #382. Closes #382.

dzenanz and others added 10 commits November 4, 2020 13:07
Missing typename directives in declarations.
Confusion between long and long long
Use of itkMutexLock instead of std::mutex.
Failure to include <itkMacro.h>.
Use of ComposeRGBImageFilter instead of ComposeImageFilter.
Use of NULL instead of nullptr.
Use of vcl_sqrt instead of std::sqrt, etc.
itk::MultiThreader --> itk::MultiThreaderBase.
Removal of inappropriate Seg3D:: explicit qualification.
This is a squashed commit with erroneous changes of NULL to nullptr
and its revert to fix the introduced SQL errors and Tinyxml updates.
so we don't need to have it as a dependency. Error was:

M:\Dev\Seg3D\src\Application\LayerIO\Matlab73LayerImporter.cc(32,10): fatal error C1083: Cannot open include file: 'itkhdf5/H5LTpublic.h': No such file or directory
registration->StartRegistration() ==> registration->Update()
GetJacobian(...) ==> ComputeJacobianWithRespectToPosition(...)
@dzenanz dzenanz mentioned this pull request Nov 4, 2020
@allywarner allywarner added this to the 2.5.1 milestone Nov 4, 2020
@allywarner allywarner requested a review from tarkpate November 4, 2020 21:32
@tarkpate
Copy link

tarkpate commented Nov 6, 2020

Here's the build log on linux(gcc 10.2):

[ 40%] Built target Application_Renderer
[ 41%] Built target Application_Tool
[ 42%] Built target Application_ToolManager
[ 42%] Built target Application_Clipboard
[ 47%] Built target Application_Tools
[ 48%] Built target Application_ViewerManager
[ 48%] Built target Application_UndoBuffer
[ 48%] Built target Application_Socket
[ 48%] Building CXX object Application/ImageRegistrationTools/CMakeFiles/Application_ImageRegistrationTools.dir/Actions/ActionAssembleFilter.cc.o
In file included from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/scoped_ptr.hpp:14,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex/v4/regex_workaround.hpp:41,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex/v4/regex.hpp:32,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex.hpp:31,
                 from /home/tpat/repos/seg3d/src/Core/Action/ActionParameter.h:40,
                 from /home/tpat/repos/seg3d/src/Core/Action/Actions.h:37,
                 from /home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.h:32,
                 from /home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.cc:29:
/home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/smart_ptr/scoped_ptr.hpp:68:31: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
   68 |     explicit scoped_ptr( std::auto_ptr<T> p ) BOOST_NOEXCEPT : px( p.release() )
      |                               ^~~~~~~~
In file included from /usr/include/c++/10.2.0/memory:83,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/smart_ptr/scoped_ptr.hpp:21,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/scoped_ptr.hpp:14,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex/v4/regex_workaround.hpp:41,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex/v4/regex.hpp:32,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex.hpp:31,
                 from /home/tpat/repos/seg3d/src/Core/Action/ActionParameter.h:40,
                 from /home/tpat/repos/seg3d/src/Core/Action/Actions.h:37,
                 from /home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.h:32,
                 from /home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.cc:29:
/usr/include/c++/10.2.0/bits/unique_ptr.h:57:28: note: declared here
   57 |   template<typename> class auto_ptr;
      |                            ^~~~~~~~
In file included from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/smart_ptr/shared_ptr.hpp:28,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/shared_ptr.hpp:17,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex/v4/regex_workaround.hpp:43,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex/v4/regex.hpp:32,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex.hpp:31,
                 from /home/tpat/repos/seg3d/src/Core/Action/ActionParameter.h:40,
                 from /home/tpat/repos/seg3d/src/Core/Action/Actions.h:37,
                 from /home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.h:32,
                 from /home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.cc:29:
/home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/smart_ptr/detail/shared_count.hpp:395:33: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
  395 |     explicit shared_count( std::auto_ptr<Y> & r ): pi_( new sp_counted_impl_p<Y>( r.get() ) )
      |                                 ^~~~~~~~
In file included from /usr/include/c++/10.2.0/memory:83,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/smart_ptr/scoped_ptr.hpp:21,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/scoped_ptr.hpp:14,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex/v4/regex_workaround.hpp:41,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex/v4/regex.hpp:32,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex.hpp:31,
                 from /home/tpat/repos/seg3d/src/Core/Action/ActionParameter.h:40,
                 from /home/tpat/repos/seg3d/src/Core/Action/Actions.h:37,
                 from /home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.h:32,
                 from /home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.cc:29:
/usr/include/c++/10.2.0/bits/unique_ptr.h:57:28: note: declared here
   57 |   template<typename> class auto_ptr;
      |                            ^~~~~~~~
In file included from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/shared_ptr.hpp:17,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex/v4/regex_workaround.hpp:43,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex/v4/regex.hpp:32,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex.hpp:31,
                 from /home/tpat/repos/seg3d/src/Core/Action/ActionParameter.h:40,
                 from /home/tpat/repos/seg3d/src/Core/Action/Actions.h:37,
                 from /home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.h:32,
                 from /home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.cc:29:
/home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/smart_ptr/shared_ptr.hpp:242:65: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
  242 | template< class T, class R > struct sp_enable_if_auto_ptr< std::auto_ptr< T >, R >
      |                                                                 ^~~~~~~~
In file included from /usr/include/c++/10.2.0/memory:83,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/smart_ptr/scoped_ptr.hpp:21,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/scoped_ptr.hpp:14,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex/v4/regex_workaround.hpp:41,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex/v4/regex.hpp:32,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex.hpp:31,
                 from /home/tpat/repos/seg3d/src/Core/Action/ActionParameter.h:40,
                 from /home/tpat/repos/seg3d/src/Core/Action/Actions.h:37,
                 from /home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.h:32,
                 from /home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.cc:29:
/usr/include/c++/10.2.0/bits/unique_ptr.h:57:28: note: declared here
   57 |   template<typename> class auto_ptr;
      |                            ^~~~~~~~
In file included from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/shared_ptr.hpp:17,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex/v4/regex_workaround.hpp:43,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex/v4/regex.hpp:32,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex.hpp:31,
                 from /home/tpat/repos/seg3d/src/Core/Action/ActionParameter.h:40,
                 from /home/tpat/repos/seg3d/src/Core/Action/Actions.h:37,
                 from /home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.h:32,
                 from /home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.cc:29:
/home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/smart_ptr/shared_ptr.hpp:441:31: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
  441 |     explicit shared_ptr( std::auto_ptr<Y> & r ): px(r.get()), pn()
      |                               ^~~~~~~~
In file included from /usr/include/c++/10.2.0/memory:83,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/smart_ptr/scoped_ptr.hpp:21,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/scoped_ptr.hpp:14,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex/v4/regex_workaround.hpp:41,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex/v4/regex.hpp:32,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex.hpp:31,
                 from /home/tpat/repos/seg3d/src/Core/Action/ActionParameter.h:40,
                 from /home/tpat/repos/seg3d/src/Core/Action/Actions.h:37,
                 from /home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.h:32,
                 from /home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.cc:29:
/usr/include/c++/10.2.0/bits/unique_ptr.h:57:28: note: declared here
   57 |   template<typename> class auto_ptr;
      |                            ^~~~~~~~
In file included from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/shared_ptr.hpp:17,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex/v4/regex_workaround.hpp:43,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex/v4/regex.hpp:32,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex.hpp:31,
                 from /home/tpat/repos/seg3d/src/Core/Action/ActionParameter.h:40,
                 from /home/tpat/repos/seg3d/src/Core/Action/Actions.h:37,
                 from /home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.h:32,
                 from /home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.cc:29:
/home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/smart_ptr/shared_ptr.hpp:454:22: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
  454 |     shared_ptr( std::auto_ptr<Y> && r ): px(r.get()), pn()
      |                      ^~~~~~~~
In file included from /usr/include/c++/10.2.0/memory:83,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/smart_ptr/scoped_ptr.hpp:21,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/scoped_ptr.hpp:14,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex/v4/regex_workaround.hpp:41,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex/v4/regex.hpp:32,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex.hpp:31,
                 from /home/tpat/repos/seg3d/src/Core/Action/ActionParameter.h:40,
                 from /home/tpat/repos/seg3d/src/Core/Action/Actions.h:37,
                 from /home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.h:32,
                 from /home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.cc:29:
/usr/include/c++/10.2.0/bits/unique_ptr.h:57:28: note: declared here
   57 |   template<typename> class auto_ptr;
      |                            ^~~~~~~~
In file included from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/shared_ptr.hpp:17,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex/v4/regex_workaround.hpp:43,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex/v4/regex.hpp:32,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex.hpp:31,
                 from /home/tpat/repos/seg3d/src/Core/Action/ActionParameter.h:40,
                 from /home/tpat/repos/seg3d/src/Core/Action/Actions.h:37,
                 from /home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.h:32,
                 from /home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.cc:29:
/home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/smart_ptr/shared_ptr.hpp:520:34: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
  520 |     shared_ptr & operator=( std::auto_ptr<Y> & r )
      |                                  ^~~~~~~~
In file included from /usr/include/c++/10.2.0/memory:83,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/smart_ptr/scoped_ptr.hpp:21,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/scoped_ptr.hpp:14,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex/v4/regex_workaround.hpp:41,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex/v4/regex.hpp:32,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex.hpp:31,
                 from /home/tpat/repos/seg3d/src/Core/Action/ActionParameter.h:40,
                 from /home/tpat/repos/seg3d/src/Core/Action/Actions.h:37,
                 from /home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.h:32,
                 from /home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.cc:29:
/usr/include/c++/10.2.0/bits/unique_ptr.h:57:28: note: declared here
   57 |   template<typename> class auto_ptr;
      |                            ^~~~~~~~
In file included from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/shared_ptr.hpp:17,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex/v4/regex_workaround.hpp:43,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex/v4/regex.hpp:32,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex.hpp:31,
                 from /home/tpat/repos/seg3d/src/Core/Action/ActionParameter.h:40,
                 from /home/tpat/repos/seg3d/src/Core/Action/Actions.h:37,
                 from /home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.h:32,
                 from /home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.cc:29:
/home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/smart_ptr/shared_ptr.hpp:529:34: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
  529 |     shared_ptr & operator=( std::auto_ptr<Y> && r )
      |                                  ^~~~~~~~
In file included from /usr/include/c++/10.2.0/memory:83,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/smart_ptr/scoped_ptr.hpp:21,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/scoped_ptr.hpp:14,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex/v4/regex_workaround.hpp:41,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex/v4/regex.hpp:32,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex.hpp:31,
                 from /home/tpat/repos/seg3d/src/Core/Action/ActionParameter.h:40,
                 from /home/tpat/repos/seg3d/src/Core/Action/Actions.h:37,
                 from /home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.h:32,
                 from /home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.cc:29:
/usr/include/c++/10.2.0/bits/unique_ptr.h:57:28: note: declared here
   57 |   template<typename> class auto_ptr;
      |                            ^~~~~~~~
In file included from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/shared_ptr.hpp:17,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex/v4/regex_workaround.hpp:43,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex/v4/regex.hpp:32,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex.hpp:31,
                 from /home/tpat/repos/seg3d/src/Core/Action/ActionParameter.h:40,
                 from /home/tpat/repos/seg3d/src/Core/Action/Actions.h:37,
                 from /home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.h:32,
                 from /home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.cc:29:
/home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/smart_ptr/shared_ptr.hpp: In member function ‘boost::shared_ptr<T>& boost::shared_ptr<T>::operator=(std::auto_ptr<_Up>&&)’:
/home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/smart_ptr/shared_ptr.hpp:531:38: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
  531 |         this_type( static_cast< std::auto_ptr<Y> && >( r ) ).swap( *this );
      |                                      ^~~~~~~~
In file included from /usr/include/c++/10.2.0/memory:83,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/smart_ptr/scoped_ptr.hpp:21,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/scoped_ptr.hpp:14,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex/v4/regex_workaround.hpp:41,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex/v4/regex.hpp:32,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex.hpp:31,
                 from /home/tpat/repos/seg3d/src/Core/Action/ActionParameter.h:40,
                 from /home/tpat/repos/seg3d/src/Core/Action/Actions.h:37,
                 from /home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.h:32,
                 from /home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.cc:29:
/usr/include/c++/10.2.0/bits/unique_ptr.h:57:28: note: declared here
   57 |   template<typename> class auto_ptr;
      |                            ^~~~~~~~
In file included from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/bind/mem_fn.hpp:25,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/mem_fn.hpp:22,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/bind/bind.hpp:26,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/bind.hpp:22,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/thread/detail/thread.hpp:30,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/thread/thread_only.hpp:22,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/thread/thread.hpp:12,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/thread.hpp:13,
                 from /home/tpat/repos/seg3d/src/Core/Action/ActionInfo.h:42,
                 from /home/tpat/repos/seg3d/src/Core/Action/Action.h:45,
                 from /home/tpat/repos/seg3d/src/Core/Action/Actions.h:39,
                 from /home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.h:32,
                 from /home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.cc:29:
/home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/get_pointer.hpp: At global scope:
/home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/get_pointer.hpp:27:40: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
   27 | template<class T> T * get_pointer(std::auto_ptr<T> const& p)
      |                                        ^~~~~~~~
In file included from /usr/include/c++/10.2.0/memory:83,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/smart_ptr/scoped_ptr.hpp:21,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/scoped_ptr.hpp:14,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex/v4/regex_workaround.hpp:41,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex/v4/regex.hpp:32,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex.hpp:31,
                 from /home/tpat/repos/seg3d/src/Core/Action/ActionParameter.h:40,
                 from /home/tpat/repos/seg3d/src/Core/Action/Actions.h:37,
                 from /home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.h:32,
                 from /home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.cc:29:
/usr/include/c++/10.2.0/bits/unique_ptr.h:57:28: note: declared here
   57 |   template<typename> class auto_ptr;
      |                            ^~~~~~~~
In file included from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/thread/thread.hpp:13,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/thread.hpp:13,
                 from /home/tpat/repos/seg3d/src/Core/Action/ActionInfo.h:42,
                 from /home/tpat/repos/seg3d/src/Core/Action/Action.h:45,
                 from /home/tpat/repos/seg3d/src/Core/Action/Actions.h:39,
                 from /home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.h:32,
                 from /home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.cc:29:
/home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/thread/detail/thread_group.hpp: In member function ‘boost::thread* boost::thread_group::create_thread(F)’:
/home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/thread/detail/thread_group.hpp:78:18: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
   78 |             std::auto_ptr<thread> new_thread(new thread(threadfunc));
      |                  ^~~~~~~~
In file included from /usr/include/c++/10.2.0/memory:83,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/smart_ptr/scoped_ptr.hpp:21,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/scoped_ptr.hpp:14,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex/v4/regex_workaround.hpp:41,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex/v4/regex.hpp:32,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/regex.hpp:31,
                 from /home/tpat/repos/seg3d/src/Core/Action/ActionParameter.h:40,
                 from /home/tpat/repos/seg3d/src/Core/Action/Actions.h:37,
                 from /home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.h:32,
                 from /home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.cc:29:
/usr/include/c++/10.2.0/bits/unique_ptr.h:57:28: note: declared here
   57 |   template<typename> class auto_ptr;
      |                            ^~~~~~~~
In file included from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/mpl/aux_/na_assert.hpp:23,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/mpl/arg.hpp:25,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/variant/variant_fwd.hpp:19,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/variant/detail/apply_visitor_delayed.hpp:20,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/variant/apply_visitor.hpp:18,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/signals2/slot_base.hpp:21,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/signals2/detail/tracked_objects_visitor.hpp:18,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/signals2/slot.hpp:22,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/signals2/connection.hpp:23,
                 from /home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/signals2/signal.hpp:22,
                 from /home/tpat/repos/seg3d/src/Core/Action/ActionDispatcher.h:38,
                 from /home/tpat/repos/seg3d/src/Core/Action/Actions.h:43,
                 from /home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.h:32,
                 from /home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.cc:29:
/home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/mpl/assert.hpp: At global scope:
/home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/mpl/assert.hpp:188:21: warning: unnecessary parentheses in declaration of ‘assert_arg’ [-Wparentheses]
  188 | failed ************ (Pred::************
      |                     ^
/home/tpat/repos/seg3d/bin/Externals/Source/Boost_external/boost/mpl/assert.hpp:193:21: warning: unnecessary parentheses in declaration of ‘assert_not_arg’ [-Wparentheses]
  193 | failed ************ (boost::mpl::not_<Pred>::************
      |                     ^
In file included from /home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.cc:33:
/home/tpat/repos/seg3d/src/Core/ITKCommon/Optimizers/itkImageMosaicVarianceMetric.h:177:29: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  177 |   virtual void Initialize() throw (ExceptionObject);
      |                             ^~~~~
In file included from /home/tpat/repos/seg3d/src/Core/ITKCommon/Optimizers/itkImageMosaicVarianceMetric.h:315,
                 from /home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.cc:33:
/home/tpat/repos/seg3d/src/Core/ITKCommon/Optimizers/itkImageMosaicVarianceMetric.txx:191:14: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  191 | Initialize() throw (ExceptionObject)
      |              ^~~~~
In file included from /home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.cc:32:
/home/tpat/repos/seg3d/src/Core/ITKCommon/common.hxx: In instantiation of ‘bool calc_mosaic_bboxes(const std::vector<T>&, const std::vector<T>&, const std::vector<T>&, std::vector<T>&, std::vector<T>&, unsigned int) [with point_t = itk::Point<double, 2>; transform_pointer_t = itk::SmartPointer<itk::Transform<double, 2, 2> >]’:
/home/tpat/repos/seg3d/src/Core/ITKCommon/common.hxx:2400:51:   required from ‘void calc_mosaic_bbox_load_images(const std::vector<T>&, const std::__cxx11::list<boost::filesystem::path>&, typename image_pointer_t::ObjectType::PointType&, typename image_pointer_t::ObjectType::PointType&, std::vector<typename image_pointer_t::ObjectType::PointType>&, std::vector<typename image_pointer_t::ObjectType::PointType>&, unsigned int, double, unsigned int) [with image_pointer_t = itk::SmartPointer<const itk::Image<float, 2> >; transform_pointer_t = itk::SmartPointer<itk::Transform<double, 2, 2> >; typename image_pointer_t::ObjectType::PointType = itk::Point<double, 2>]’
/home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.cc:364:30:   required from here
/home/tpat/repos/seg3d/src/Core/ITKCommon/common.hxx:2267:11: warning: unused variable ‘image_point’ [-Wunused-variable]
 2267 |   point_t image_point;
      |           ^~~~~~~~~~~
/home/tpat/repos/seg3d/src/Core/ITKCommon/common.hxx:2268:11: warning: unused variable ‘mosaic_point’ [-Wunused-variable]
 2268 |   point_t mosaic_point;
      |           ^~~~~~~~~~~~
/home/tpat/repos/seg3d/src/Core/ITKCommon/common.hxx: In instantiation of ‘void save_image_tile(T*, const boost::filesystem::path&, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, bool) [with T = itk::Image<float, 2>]’:
/home/tpat/repos/seg3d/src/Core/ITKCommon/common.hxx:1603:27:   required from ‘bool save_as_tiles(T*, const boost::filesystem::path&, const boost::filesystem::path&, unsigned int, unsigned int, double, bool, bool) [with T = itk::Image<float, 2>]’
/home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.cc:628:44:   required from here
/home/tpat/repos/seg3d/src/Core/ITKCommon/common.hxx:1471:24: warning: variable ‘mosaicSize’ set but not used [-Wunused-but-set-variable]
 1471 |   typename T::SizeType mosaicSize = mosaicRegion.GetSize();
      |                        ^~~~~~~~~~
/home/tpat/repos/seg3d/src/Core/ITKCommon/common.hxx: In instantiation of ‘void save_image_tile(T*, const boost::filesystem::path&, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, bool) [with T = itk::Image<short unsigned int, 2>]’:
/home/tpat/repos/seg3d/src/Core/ITKCommon/common.hxx:1603:27:   required from ‘bool save_as_tiles(T*, const boost::filesystem::path&, const boost::filesystem::path&, unsigned int, unsigned int, double, bool, bool) [with T = itk::Image<short unsigned int, 2>]’
/home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.cc:645:51:   required from here
/home/tpat/repos/seg3d/src/Core/ITKCommon/common.hxx:1471:24: warning: variable ‘mosaicSize’ set but not used [-Wunused-but-set-variable]
/home/tpat/repos/seg3d/src/Core/ITKCommon/common.hxx: In instantiation of ‘void save_image_tile(T*, const boost::filesystem::path&, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, bool) [with T = itk::Image<short int, 2>]’:
/home/tpat/repos/seg3d/src/Core/ITKCommon/common.hxx:1603:27:   required from ‘bool save_as_tiles(T*, const boost::filesystem::path&, const boost::filesystem::path&, unsigned int, unsigned int, double, bool, bool) [with T = itk::Image<short int, 2>]’
/home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.cc:662:50:   required from here
/home/tpat/repos/seg3d/src/Core/ITKCommon/common.hxx:1471:24: warning: variable ‘mosaicSize’ set but not used [-Wunused-but-set-variable]
/home/tpat/repos/seg3d/src/Core/ITKCommon/common.hxx: In instantiation of ‘void save_image_tile(T*, const boost::filesystem::path&, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, bool) [with T = itk::Image<unsigned char, 2>]’:
/home/tpat/repos/seg3d/src/Core/ITKCommon/common.hxx:1603:27:   required from ‘bool save_as_tiles(T*, const boost::filesystem::path&, const boost::filesystem::path&, unsigned int, unsigned int, double, bool, bool) [with T = itk::Image<unsigned char, 2>]’
/home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.cc:678:51:   required from here
/home/tpat/repos/seg3d/src/Core/ITKCommon/common.hxx:1471:24: warning: variable ‘mosaicSize’ set but not used [-Wunused-but-set-variable]
In file included from /home/tpat/repos/seg3d/src/Core/ITKCommon/Optimizers/itkImageMosaicVarianceMetric.h:315,
                 from /home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.cc:33:
/home/tpat/repos/seg3d/src/Core/ITKCommon/Optimizers/itkImageMosaicVarianceMetric.txx: In instantiation of ‘void itk::ImageMosaicVarianceMetric<TImage, TInterpolator>::GetValueAndDerivative(const params_t&, itk::ImageMosaicVarianceMetric<TImage, TInterpolator>::measure_t&, itk::ImageMosaicVarianceMetric<TImage, TInterpolator>::derivative_t&) const [with TImage = itk::Image<float, 2>; TInterpolator = itk::LinearInterpolateImageFunction<itk::Image<float, 2>, double>; itk::ImageMosaicVarianceMetric<TImage, TInterpolator>::params_t = itk::OptimizerParameters<double>; itk::ImageMosaicVarianceMetric<TImage, TInterpolator>::measure_t = double; itk::ImageMosaicVarianceMetric<TImage, TInterpolator>::derivative_t = itk::Array<double>]’:
/home/tpat/repos/seg3d/src/Core/ITKCommon/Optimizers/itkImageMosaicVarianceMetric.txx:276:1:   required from here
/home/tpat/repos/seg3d/src/Core/ITKCommon/Optimizers/itkImageMosaicVarianceMetric.txx:435:59: error: cannot bind non-const lvalue reference of type ‘itk::Transform<double, 2, 2>::JacobianPositionType&’ {aka ‘vnl_matrix_fixed<double, 2, 2>&’} to an rvalue of type ‘itk::Transform<double, 2, 2>::JacobianPositionType’ {aka ‘vnl_matrix_fixed<double, 2, 2>’}
  435 |       t->ComputeJacobianWithRespectToPosition(point, data.J_);
      |                                                      ~~~~~^~
In file included from /home/tpat/repos/seg3d/bin/Externals/Install/ITK_external/include/ITK-5.2/vnl/vnl_matrix_fixed.hxx:9,
                 from /home/tpat/repos/seg3d/bin/Externals/Install/ITK_external/include/ITK-5.2/itkMatrix.h:25,
                 from /home/tpat/repos/seg3d/bin/Externals/Install/ITK_external/include/ITK-5.2/itkImageBase.h:34,
                 from /home/tpat/repos/seg3d/bin/Externals/Install/ITK_external/include/ITK-5.2/itkNeighborhoodAccessorFunctor.h:22,
                 from /home/tpat/repos/seg3d/bin/Externals/Install/ITK_external/include/ITK-5.2/itkImage.h:28,
                 from /home/tpat/repos/seg3d/bin/Externals/Install/ITK_external/include/ITK-5.2/itkImageSource.h:32,
                 from /home/tpat/repos/seg3d/bin/Externals/Install/ITK_external/include/ITK-5.2/itkImageToImageFilter.h:31,
                 from /home/tpat/repos/seg3d/src/Core/ITKCommon/Filtering/itkNormalizeImageFilterWithMask.h:40,
                 from /home/tpat/repos/seg3d/src/Core/ITKCommon/common.hxx:47,
                 from /home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.cc:32:
/home/tpat/repos/seg3d/bin/Externals/Install/ITK_external/include/ITK-5.2/vnl/vnl_matrix_fixed.h:157:3: note:   after user-defined conversion: ‘vnl_matrix_fixed<T, num_rows, num_cols>::vnl_matrix_fixed(const vnl_matrix<T>&) [with T = double; unsigned int num_rows = 2; unsigned int num_cols = 2]’
  157 |   vnl_matrix_fixed(const vnl_matrix<T>& rhs)
      |   ^~~~~~~~~~~~~~~~
In file included from /home/tpat/repos/seg3d/bin/Externals/Install/ITK_external/include/ITK-5.2/itkMatrixOffsetTransformBase.h:24,
                 from /home/tpat/repos/seg3d/bin/Externals/Install/ITK_external/include/ITK-5.2/itkAffineTransform.h:21,
                 from /home/tpat/repos/seg3d/bin/Externals/Install/ITK_external/include/ITK-5.2/itkSpatialObject.h:30,
                 from /home/tpat/repos/seg3d/src/Core/ITKCommon/Filtering/itkNormalizeImageFilterWithMask.h:42,
                 from /home/tpat/repos/seg3d/src/Core/ITKCommon/common.hxx:47,
                 from /home/tpat/repos/seg3d/src/Application/ImageRegistrationTools/Actions/ActionAssembleFilter.cc:32:
/home/tpat/repos/seg3d/bin/Externals/Install/ITK_external/include/ITK-5.2/itkTransform.h:525:40: note:   initializing argument 2 of ‘void itk::Transform<TParametersValueType, NInputDimensions, NOutputDimensions>::ComputeJacobianWithRespectToPosition(const InputPointType&, itk::Transform<TParametersValueType, NInputDimensions, NOutputDimensions>::JacobianPositionType&) const [with TParametersValueType = double; unsigned int NInputDimensions = 2; unsigned int NOutputDimensions = 2; itk::Transform<TParametersValueType, NInputDimensions, NOutputDimensions>::InputPointType = itk::Point<double, 2>; itk::Transform<TParametersValueType, NInputDimensions, NOutputDimensions>::JacobianPositionType = vnl_matrix_fixed<double, 2, 2>]’
  525 |                                        JacobianPositionType & itkNotUsed(jacobian)) const
      |                                        ^~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [Application/ImageRegistrationTools/CMakeFiles/Application_ImageRegistrationTools.dir/build.make:238: Application/ImageRegistrationTools/CMakeFiles/Application_ImageRegistrationTools.dir/Actions/ActionAssembleFilter.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2747: Application/ImageRegistrationTools/CMakeFiles/Application_ImageRegistrationTools.dir/all] Error 2
make: *** [Makefile:125: all] Error 2

@dzenanz
Copy link
Contributor Author

dzenanz commented Nov 6, 2020

@rubiojr That error appears with non-default option BUILD_MOSAIC_TOOLS. I just pushed a commit which fixes it for me. By the way, Visual Studio provides a much clearer error message in this case: M:\Dev\Seg3D\src\Core/ITKCommon/Optimizers/itkImageMosaicVarianceMetric.txx(435,1): error C2664: 'void itk::Transform<TParametersValueType,2,2>::ComputeJacobianWithRespectToPosition(const itk::Point<double,2> &,vnl_matrix_fixed<double,2,2> &) const': cannot convert argument 2 from 'itk::Array2D<double>' to 'vnl_matrix_fixed<double,2,2> &'

@dzenanz
Copy link
Contributor Author

dzenanz commented Nov 6, 2020

@allywarner I cherry-picked your revert of nullptr changes to DatabaseManager into this branch. I believe #382 can be closed/abandoned now.

@dcwhite
Copy link
Member

dcwhite commented Nov 9, 2020

Re: Mac-build github build error, they (Github build farm) updated to the latest XCode and now Seg3d's ancient Python and Boost dependencies don't compile. There's an issue for that already, #315.

@allywarner allywarner requested review from jessdtate and removed request for allywarner November 10, 2020 19:39
@tarkpate
Copy link

The build works now on my linux machine now.

Copy link

@tarkpate tarkpate left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some small suggestions. After you decide to add them or not, I can approve the PR.

@dzenanz
Copy link
Contributor Author

dzenanz commented Nov 11, 2020

@RubioJr9 I just applied all your suggestions in a new commit.

dzenanz added a commit to dzenanz/Seg3D that referenced this pull request Nov 11, 2020
Counting on compilers to be smart enough to vectorize the new style
as well as, or better than, the old unrolled style.
@dzenanz
Copy link
Contributor Author

dzenanz commented Nov 11, 2020

I force-pushed to this branch to retain the const-related suggestion. Loop unrolling is now in my fork's branch. As that commit contains a lot of whitespace trimming done in this branch, rebasing on current master causes conflicts. I will make a new PR once this PR is merged. This should avoid confusion.

@dcwhite
Copy link
Member

dcwhite commented Nov 11, 2020

Sounds good, thanks a lot

@tarkpate
Copy link

Thanks, @dzenanz! The mac build is showing a failure related to python. Would you like me to test a mac build on my local machine?

@dzenanz
Copy link
Contributor Author

dzenanz commented Nov 11, 2020

@RubioJr9 yes! Python build fails on my local machine too (unable to include python.h I think). It is unrelated to this PR, it fails the same way with current master.

@jessdtate
Copy link
Contributor

The python crash is likely related to the new clang version used in github actions. We can deal with it in a new PR if it builds on other mac machines.

@jessdtate
Copy link
Contributor

I have this building with clang 11, but it is crashing due a previous opengl problem. If @RubioJr9 and @allywarner can build and run it, let's merge it.

@tarkpate
Copy link

@jessdtate It built fine on my machine. I'm running 10.14 with clang 10.0.1.

@allywarner
Copy link
Contributor

@jessdtate also builds for me on 10.14.6.

@dcwhite
Copy link
Member

dcwhite commented Nov 18, 2020

Let's merge this and then immediately fix #385.

@dcwhite dcwhite mentioned this pull request Nov 19, 2020
@allywarner allywarner merged commit 4f9864d into SCIInstitute:master Nov 20, 2020
@dzenanz
Copy link
Contributor Author

dzenanz commented Nov 20, 2020

Hooray!😄

@jcfr
Copy link
Contributor

jcfr commented Nov 20, 2020

💯

dzenanz added a commit to dzenanz/Seg3D that referenced this pull request Nov 23, 2020
Counting on compilers to be smart enough to vectorize the new style
as well as, or better than, the old unrolled style.
allywarner added a commit that referenced this pull request Jan 14, 2021
Review suggestion by @RubioJr9 in PR #384
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants