[Insight-users] [VTK user][Insight User] Some Build Error About InsightApplications

hongsongyang hongsongyang at 163.com
Thu May 9 08:31:33 EDT 2013


About you LNK2019 problem, it is generated becasue compiler could 
only find the *.h files but conld not find the *.lib files correspondingly.
Solution 1: You should add the ITK library path to your system path.
Solution 2: You should add the  ITK library path to your Matlab project.








At 2013-05-09 15:20:29,vijaghorp <vijaya.ghorpade777 at gmail.com> wrote:

Hi,
I have tried with Visual C++ 2010 express, many times. I think it is very difficult to do that on it. So, I used trial version of Visual 2012 C++ professional, it succeeds. I suggest you try the same, after you get the Solution file you can then use it on Visual 2010 express...


And I need some help, in using itk build files in MATLAB . I am not able to do that, I fixed the issue with the version incompaitibilty. But I am getting some errors. please anybody suggest,..below are the errors.


>MatlabAnisotropicFastMarching.obj : error LNK2019: unresolved external symbol mxGetClassID referenced in function "class itk::SmartPointer<class itk::Image<double,1> > __cdecl itkImageFromMxNumericArray<class itk::Image<double,1> >(struct mxArray_tag const *)" (??$itkImageFromMxNumericArray at V?$Image at N$00 at itk@@@@YA?AV?$SmartPointer at V?$Image at N$00 at itk@@@itk@@PEBUmxArray_tag@@@Z)
2>MatlabAnisotropicFastMarching.obj : error LNK2019: unresolved external symbol mxIsNumeric referenced in function "int __cdecl AnisotropicFastMarching<class itk::SSRT2<double,char> >(int,struct mxArray_tag * * const,int,struct mxArray_tag const * * const)" (??$AnisotropicFastMarching at V?$SSRT2 at ND@itk@@@@YAHHQEAPEAUmxArray_tag@@HQEAPEBU0@@Z)
2>MatlabAnisotropicFastMarching.obj : error LNK2019: unresolved external symbol mxIsStruct referenced in function "int __cdecl AnisotropicFastMarching<class itk::SSRT2<double,char> >(int,struct mxArray_tag * * const,int,struct mxArray_tag const * * const)" (??$AnisotropicFastMarching at V?$SSRT2 at ND@itk@@@@YAHHQEAPEAUmxArray_tag@@HQEAPEBU0@@Z)
2>MatlabAnisotropicFastMarching.obj : error LNK2019: unresolved external symbol mxIsComplex referenced in function "class itk::SmartPointer<class itk::Image<double,1> > __cdecl itkImageFromMxNumericArray<class itk::Image<double,1> >(struct mxArray_tag const *)" (??$itkImageFromMxNumericArray at V?$Image at N$00 at itk@@@@YA?AV?$SmartPointer at V?$Image at N$00 at itk@@@itk@@PEBUmxArray_tag@@@Z)
2>MatlabAnisotropicFastMarching.obj : error LNK2019: unresolved external symbol mxGetNumberOfDimensions_730 referenced in function "class itk::SmartPointer<class itk::Image<double,1> > __cdecl itkImageFromMxNumericArray<class itk::Image<double,1> >(struct mxArray_tag const *)" (??$itkImageFromMxNumericArray at V?$Image at N$00 at itk@@@@YA?AV?$SmartPointer at V?$Image at N$00 at itk@@@itk@@PEBUmxArray_tag@@@Z)
2>MatlabAnisotropicFastMarching.obj : error LNK2019: unresolved external symbol mxGetDimensions_730 referenced in function "class itk::SmartPointer<class itk::Image<double,1> > __cdecl itkImageFromMxNumericArray<class itk::Image<double,1> >(struct mxArray_tag const *)" (??$itkImageFromMxNumericArray at V?$Image at N$00 at itk@@@@YA?AV?$SmartPointer at V?$Image at N$00 at itk@@@itk@@PEBUmxArray_tag@@@Z)
2>MatlabAnisotropicFastMarching.obj : error LNK2019: unresolved external symbol mxGetNumberOfElements referenced in function "struct mxArray_tag * __cdecl MxNumericArrayFromItkImage<class itk::Image<double,2> >(class itk::SmartPointer<class itk::Image<double,2> >)" (??$MxNumericArrayFromItkImage at V?$Image at N$01 at itk@@@@YAPEAUmxArray_tag@@V?$SmartPointer at V?$Image at N$01 at itk@@@itk@@@Z)





On Thu, May 9, 2013 at 4:06 AM, hongsongyang <hongsongyang at 163.com> wrote:

Lorensen:
      Have you got any new progress about my problem of building InsightApplication
in VS2010. Although the OS is Win7 64bit, I built both of them in Win32 configuration.
      I have tried to build ITK and InsightApplications once again yesterday, but I still met 
the same problem.
      Should I do some source code modificaiton to avoid these building error?


Thank you very much.


Hongsongyang
      
      






At 2013-05-08 03:39:11,"Bill Lorensen" <bill.lorensen at gmail.com> wrote:

Where did you get Insight Applications?






On Tue, May 7, 2013 at 1:17 PM, hongsongyang <hongsongyang at 163.com> wrote:

Dear All:
      I used VS2010 to build the VTK and ITK successfully. 
But when I build InsightApplications after cmake configurarion, 
vtkVTKITKCommon project could not be built correctly.
Here is the error messages:




1>  vtkITKMutualInformationTransform.cxx
1>d:\itk\itk\modules\core\transform\include\itktransform.h(197): error C4716: 'itk::Transform<double,3,3>::TransformVector' : must return a value
1>d:\itk\itk\modules\core\transform\include\itktransform.h(212): error C4716: 'itk::Transform<double,3,3>::TransformVector' : must return a value
1>d:\itk\itk\modules\core\transform\include\itktransform.h(228): error C4716: 'itk:: Transform<double,3,3>::TransformVector' : must return a value
1>d:\itk\itk\modules\core\transform\include\itktransform.h(243): error C4716: 'itk::Transform<double,3,3>::TransformCovariantVector' : must return a value
1>d:\itk\itk\modules\core\transform\include\itktransform.h(260): error C4716: 'itk::Transform<double,3,3>::TransformCovariantVector' : must return a value
1>d:\itk\itk\modules\core\transform\include\itktransform.h(279): error C4716: 'itk::Transform<double,3,3>::TransformDiffusionTensor3D' : must return a value
1>d:\itk\itk\modules\core\transform\include\itktransform.h(297): error C4716: 'itk::Transform<double,3,3>::TransformDiffusionTensor3D' : must return a value
1>d:\itk\itk\modules\core\transform\include\itktransform.h(319): error C4716: 'itk::Transform<double,3,3>::TransformSymmetricSecondRankTensor' : must return a value
1>d:\itk\itk\modules\cor e\transform\include\itktransform.h(328): error C4716: 'itk::Transform<double,3,3>::TransformSymmetricSecondRankTensor' : must return a value
1>
1>Build FAILED. 




What's the reason for this problem?


Hongsongyang



_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users





--
Unpaid intern in BillsBasement at noware dot com




_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20130509/4a6d58c1/attachment.htm>


More information about the Insight-users mailing list