You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Chuck Chopp <Ch...@rtfmcsi.com> on 2008/08/21 17:50:55 UTC

32 & 64 bit builds on Windows [and SUSE Linux]

I downloaded the source for Xalan v1.10 and I read the online build 
instructions for Windows.  I don't see anything regarding newer versions 
of Visual C/C++; the IDE projects only go up thru v7.1, and I'm using 
v9.0 [Visual Studio 2008].  I also don't see anything regarding x64 
build support on Windows in the project files, even though some of the 
make files appear to have a "BITS=32" or "BITS=64" option for parameters 
to pass to Microsoft's nmake.exe utility.

What are the correct build instructions to build Xalan v1.10 using 
Visual C/C++ v9.0 for both Win32 & Win64 [x64]?

Also, in a related question, I have a need to build Xalan v1.10 on SUSE 
Linux Enterprise Server for both 32-bit & 64-bit builds of the O.S.  Are 
there updated build instructions available for this, too?

Additionally, it's not clear if I need to rebuild Xerces from scratch, 
or if I can use the binary distributions that are currently available 
for download when it comes to providing the headers & libraries required 
to build Xalan.


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


Re: 32 & 64 bit builds on Windows [and SUSE Linux]

Posted by David Bertoni <db...@apache.org>.
Chuck Chopp wrote:
> David Bertoni wrote:
>> Chuck Chopp wrote:
>>> David,
>>>
Please remember to subscribe to the user list and to post your replies 
to the list:

http://xml.apache.org/mail.html#xalan-c-users

> 
> Thanks - I got TortoiseSVN installed & have downloaded the current trunk 
> of the Xalan source from the repository.
> 
> As for the rest of the build-related issues, I'll look at adding ICU 
> back into the mix and then run thru the build process first for Xerces, 
> then for Xalan, making sure that each is built with the same compiler 
> version [per platform & architecture].
If you do add the ICU, I recommend you not use it for message loading. 
On Windows, use the solution Xalan.sln and choose one of the ICU 
configurations.  On Linux, use the -t option on runConfigure:

./runConfigure -p linux -c gcc -x g++ -t icu

Make sure you don't use the -m option, or you'll need to use ICU 3.2.1, 
rather than the latest ICU, as the message loading in Xalan-C isn't 
compatible with newer ICU releases.

Dave

Re: 32 & 64 bit builds on Windows [and SUSE Linux]

Posted by David Bertoni <db...@apache.org>.
Chuck Chopp wrote:
> David,
> 
> Thanks for the quick response... I appreciate it very much.  Could you 
> please clarify two things for me?
Sure, but please make sure you reply to the entire list, instead of just 
to me.

> 
> 1)  You make reference to getting a copy of the "trunk of the SVN 
> repository" since it has current MS Visual C/C++ project files.
> 
> Is this repository located on the Apache web site, on SourceForge or is 
> it elswhere on the 'Net?
The repository is hosted on Apache servers.  You can use any Subversion 
client to check out a copy of the repository on a local drive.  The 
necessary command is:

svn co http://svn.apache.org/repos/asf/xalan/c/trunk .

which will check out the sources to the current directory.  You can also 
specify another path as the target:

svn co http://svn.apache.org/repos/asf/xalan/c/trunk ~/apache/xalan/c

There are also some GUI Subversion clients available as well.
> 
> 2)  Your statement of "If you really must use Xalan-C 1.10..."  leads me 
> to believe that v1.10 is "stale" or otherwise "out of date".  Based on 
> what I read on the Apache web site, Xalan-C v1.10 and Xerces-C v2.8 
> appeared to be the correct combination of version for the two components 
> that I needed to be working with.
Xalan-C is more than two years old.  Releases have been held up by a 
lack of time on my part, and the loss of a couple of contributors.  I've 
also been waiting for the Xerces-C 3.0 release, which has been over a 
year in the making.

> 
> What is the current version I should be looking for?
You can certainly use 1.10, but the trunk of the repository is stable, 
and has many improvements over 1.10.  The trunk is compatible with 
Xerces-C 2.8 and the 3.0 beta.

> 
> 
> A little more information - My target environments are Windows Server 
> 2003 R2 SP2, Windows Vista SP1 & Windows Server 2008, as well as SUSE 
> Linux Enterprise Server v10 SP1.  My build environment is Vista Ultimate 
> x64 SP1 w/Visual Studio 2008, and both the i386 & x86_64 builds of SLES 
> 10 SP1.
The most important detail is the compiler versions, rather than the 
platforms.  Since you want to build x64 binaries for Windows, Xalan-C 
1.10 will be tricky, since there will be some compilation issues, due to 
changes in Microsoft's compilers.  You will not have these issues with 
the trunk of the repository.

You should not have any problems on SLES with either 1.10 or the current 
trunk.

> 
> I was planning on building w/o ICU, as it's not needed in our 
> application and I'd rather not incur the overhead of having it load into 
> memory and not have the package and/or DLL dependencies for it in our 
> application.
Without the ICU, Xalan-C does not support the XSLT function 
format-number() fully, and you will not get Unicode-compliant collation. 
  Otherwise, you should not have any problems using Xalan-C without the ICU.

Dave

Re: 32 & 64 bit builds on Windows [and SUSE Linux]

Posted by David Bertoni <db...@apache.org>.
Chuck Chopp wrote:
> I downloaded the source for Xalan v1.10 and I read the online build 
> instructions for Windows.  I don't see anything regarding newer versions 
> of Visual C/C++; the IDE projects only go up thru v7.1, and I'm using 
> v9.0 [Visual Studio 2008].  I also don't see anything regarding x64 
> build support on Windows in the project files, even though some of the 
> make files appear to have a "BITS=32" or "BITS=64" option for parameters 
> to pass to Microsoft's nmake.exe utility.
That's left over from the VS6 configurations to build Itanium binaries.

> 
> What are the correct build instructions to build Xalan v1.10 using 
> Visual C/C++ v9.0 for both Win32 & Win64 [x64]?
Xalan-C 1.10 does not build as-is with Visual Studio 2008 in 64-bit 
mode.  Your best bet is to get the trunk of the SVN repository, which 
builds cleanly and has project files for VS 2005 and 2009.

If you really must use Xalan-C 1.10, then search the archives of this 
list, and the Xalan-C user list for messages which will describe in gory 
detail the necessary steps to convert the project files, and the x64 
configurations, and fix the source code issues.

> 
> Also, in a related question, I have a need to build Xalan v1.10 on SUSE 
> Linux Enterprise Server for both 32-bit & 64-bit builds of the O.S.  Are 
> there updated build instructions available for this, too?
You don't need to do anything.  By default, GCC will build 32-bit 
executables on a 32-bit version of LES, and 64-bit executables on a 
64-bit version.

> 
> Additionally, it's not clear if I need to rebuild Xerces from scratch, 
> or if I can use the binary distributions that are currently available 
> for download when it comes to providing the headers & libraries required 
> to build Xalan.
Unless you're using the exact same OS and compiler version as the 
Xerces-C binaries, I would recommend you build your own binaries.

Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org