Compiling XERCES 2.7
What is xerces?
An XML DOM parser, XERCES provides functionality for parsing, generating, manipulating, and validating XML documents. Xerces-C++ is faithful to the XML 1.0 and 1.1 recommendations and many associated standards.Dowload Site :
You can find the binaries and source of all the versions from here.Compiling XERCES 2.7 for x64 bit machines on windows.
Step 1: Open xerceesroot\Projects\Win32\VC7.1\xercer-all\xerces-all.sln in visual studio.Step 2: Create a x64 bit configuration in visual studio.
Confirm that in Linker->Advanced->Target Machine it say Machine64
Step 3: Now close the visual studio window and open the file xerceesroot\Projects\Win32\VC7.1\xercer-all\XercesLib\XercesLib.vcproj in a editor.
Step 4: Find "Release|x64" then scroll down to “VCLinkerTool”, there is an AdditionalOptions attribute that says /MACHINE:1386, detele that attribute. Close the editor and load up the solution again.
Step 5: Next go to properties->C/C++->Preprocessor->Preprocessor Definitions add WIN64 preprocessor symbol.
Step 6: Change the wchar_t setting in properties->C/C++->Language->Treat wxhar_t as Built-inType to No (/Zc:wchar_t-)
Step 7: Right click the XercesLib project and select Project Only->Build Only XercisLib.
You will find the compiled x64 binaries at the following path,
<path to xerces root>\Build\Win32\VC7.1\Release\
No comments:
Post a Comment