You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xerces.apache.org by David Cargill <ca...@ca.ibm.com> on 2008/03/25 18:39:33 UTC

Building xerces-c on windows 64 bit

Hi,
I noticed that xerces-c 2.8 has 64 bit windows binaries and am trying to
figure out how there were generated.  Was it done on a 64 bit system or on
a 32 bit windows system using a cross compiler (I heard that was an option
but haven't figured out how to do it)?  Did you have to install a special
version of MSVC 2005 to build it?

The xerces-c documentation describes "Building 64 bit libraries on Windows
using Intel C++"  on the build-winunix.xml page but it doesn't talk about
using MSVC to build 64 bit libraries.

Thanks.
David


Re: Building xerces-c on windows 64 bit

Posted by Boris Kolpackov <bo...@codesynthesis.com>.
Hi David,

David Cargill <ca...@ca.ibm.com> writes:

> I noticed that xerces-c 2.8 has 64 bit windows binaries and am trying to
> figure out how there were generated.  Was it done on a 64 bit system or on
> a 32 bit windows system using a cross compiler.

I built them on a 32-bit system with the x86-64 (x64 in MS parlance)
toolchain that comes with MSVC 8.0. The project files shipped with
Xerces-C++ 2.8.0 include 64-bit targets.

The only drawback of using 32-bit system to build 64-bit binaries
is that you cannot test them. I had to copy and test them on a
64-bit Windows Server 2003 box.


> The xerces-c documentation describes "Building 64 bit libraries on Windows
> using Intel C++"  on the build-winunix.xml page but it doesn't talk about
> using MSVC to build 64 bit libraries.

Well, it is actually quite easy since the targets are there and all you
need to do is have the toolchain installed.

Boris

-- 
Boris Kolpackov, Code Synthesis Tools
Open source XML data binding for C++:   http://codesynthesis.com/products/xsd
Mobile/embedded validating XML parsing: http://codesynthesis.com/products/xsde

Re: Building xerces-c on windows 64 bit

Posted by David Bertoni <db...@apache.org>.
David Cargill wrote:
> Hi,
> I noticed that xerces-c 2.8 has 64 bit windows binaries and am trying to
> figure out how there were generated.  Was it done on a 64 bit system or on
> a 32 bit windows system using a cross compiler (I heard that was an option
> but haven't figured out how to do it)?  Did you have to install a special
> version of MSVC 2005 to build it?
Hi Dave,

You need to install x64 compiler support with Visual Studio 2005.  I 
believe you need Standard edition or above, so Express won't work.  You can 
cross-compile, unless you need ICU support, since the ICU 64-bit tools 
won't run on a 32-bit system.  I don't think Microsoft supports building 
Itanium binaries within the IDE any longer, although you can install the 
Itanium compiler and SDK and use it from the command line.  I'm not certain 
which IDEs the latest Intel compilers support.


> 
> The xerces-c documentation describes "Building 64 bit libraries on Windows
> using Intel C++"  on the build-winunix.xml page but it doesn't talk about
> using MSVC to build 64 bit libraries.
We really need to update the documentation.

Dave