Hello Eric,

Thank you very much for your reply, I've solved that problem according to your 
guidance. And sorry for so late reply.
Best Regards,


Huoling




------------------ Original ------------------
From:  "Heim, Eric";<[email protected]>;
Date:  Wed, Apr 30, 2014 11:09 PM
To:  "[email protected]"<[email protected]>; 
"[email protected]"<[email protected]>; 

Subject:  AW: [mitk-users] Can not use the ITK XML reader class in MITKplugin   
project




Hi Huoling,

 

You need to specify the right ITK module in the following way in the

PACKAGE_DEPENDS section of the CMakeLists.txt file of your plugin, e.g. 
PACKAGE_DEPENDS ITK|ItkModuleName1+ItkModuleName2+??

 

In your case adding: ITK|ITKIOXML should do the trick.

 

Kind Regards,

Eric

 

Von: Huoling Luo [mailto:[email protected]] 
Gesendet: Samstag, 19. April 2014 09:27
An: mitk-users
Betreff: [mitk-users] Can not use the ITK XML reader class in MITK plugin 
project



 

Hello everyone,
 
I write a class to read the XML format file, which derived from 
itk::XMLReaderBase. I have test this XML reader class in ITK(ITK-4.5.1) and it 
works fine. But when I used it in MITK plugin, the compile error showed:
    "fatal error C1083: Cannot open include file: 'itkXMLFile.h': No such file 
or directory"
So I add the ITKIOXML related files and directories manually into the property 
of the plugin project. i.e.: ITKIOXML-4.5.lib; 
..\ITK-src\Modules\ThirdParty\Expat\src\expat;..\ITK-build\Modules\ThirdParty\Expat\src\expat;..\ITK-src\Modules\IO\XML\include.
 

The compile error is gone after these settings. But another linker error 
appears:
1>ITKIOXML-4.5.lib(itkXMLFile.obj) : error LNK2019: unresolved external symbol 
XML_ParserFree referenced in function "protected: void __cdecl 
itk::XMLReaderBase::parse(void)" (?parse@XMLReaderBase@itk@@IEAAXXZ)
1>ITKIOXML-4.5.lib(itkXMLFile.obj) : error LNK2019: unresolved external symbol 
XML_ErrorString referenced in function "protected: void __cdecl 
itk::XMLReaderBase::parse(void)" (?parse@XMLReaderBase@itk@@IEAAXXZ)
1>ITKIOXML-4.5.lib(itkXMLFile.obj) : error LNK2019: unresolved external symbol 
XML_GetErrorCode referenced in function "protected: void __cdecl 
itk::XMLReaderBase::parse(void)" (?parse@XMLReaderBase@itk@@IEAAXXZ)
1>ITKIOXML-4.5.lib(itkXMLFile.obj) : error LNK2019: unresolved external symbol 
XML_Parse referenced in function "protected: void __cdecl 
itk::XMLReaderBase::parse(void)" (?parse@XMLReaderBase@itk@@IEAAXXZ)
1>ITKIOXML-4.5.lib(itkXMLFile.obj) : error LNK2019: unresolved external symbol 
XML_SetUserData referenced in function "protected: void __cdecl 
itk::XMLReaderBase::parse(void)" (?parse@XMLReaderBase@itk@@IEAAXXZ)
1>ITKIOXML-4.5.lib(itkXMLFile.obj) : error LNK2019: unresolved external symbol 
XML_SetCharacterDataHandler referenced in function "protected: void __cdecl 
itk::XMLReaderBase::parse(void)" (?parse@XMLReaderBase@itk@@IEAAXXZ)
1>ITKIOXML-4.5.lib(itkXMLFile.obj) : error LNK2019: unresolved external symbol 
XML_SetElementHandler referenced in function "protected: void __cdecl 
itk::XMLReaderBase::parse(void)" (?parse@XMLReaderBase@itk@@IEAAXXZ)
1>ITKIOXML-4.5.lib(itkXMLFile.obj) : error LNK2019: unresolved external symbol 
XML_ParserCreate referenced in function "protected: void __cdecl 
itk::XMLReaderBase::parse(void)" (?parse@XMLReaderBase@itk@@IEAAXXZ)

I don't know whether I should set something related to the ITKIOXML module in 
ITK or MITK, or what should I do to fix this issue? Thank you in advance.
The environment of the program are listed as follow:
MITK git version; Visual Studio 2008 sp1; Windows 7 64bit; CMake 2.8.10.2; ITK 
4.5.1; VTK 6.1
 
Best Regards,
Huoling
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to