With a little off-line help from Eddie, I was able to build
the source code on Linux.  Here are some of the traps I
stumbled into:

* It's easy to build the prereqs *if* you read the documentation.
  One useful thing to know about (so I haven't done this sort of
  thing in a while...) is the --prefix option to configure, which
  lets you determine the final install path.  If you don't set this,
  the default is likely to be something where only root can write.

* You need to extract the source code on Linux.  I started out
  extracting on Windows and copying the files over.  This gave me
  a obscure install failures, presumably due to CR/LF
  incompatibilities.  I tried to address this with random
  applications of dos2unix, but must have failed to hit the right
  file.

I wanted to run the test suite, but I think I should build the SDK
to do that.  To build the SDK, I need to build the documentation,
which has another set of prereqs that I don't have time for right
now :-(

I don't know if we're aiming for the sort of semi-competent C++
audience like myself for compiling the source code, but if we do,
a step-by-step instruction for building on Linux would help.
Explain where to get and how to build the prereqs, and how to
build the SDK.  Maybe that's not necessary though, people more
experienced will have a lot less trouble.

--Thilo

Eddie Epstein wrote:
> Thilo,
> 
> readme.tobuild has been updated to add references in
> these areas. A note of caution here, as with any C/C++
> projects that have dependencies, building of the dependencies
> will often be more difficult than the target project. On the
> other hand, people experienced building open source C++
> components generally do not have much of a problem.
> 
> Another warning, building from svn on Unix is a bit more
> complicated because one must have relatively recent versions
> of GNU automake/autoconf/libtool components. These tools
> are not required at all when building from the source tarball.
> 
> Thanks for spending some time with this,
> Eddie
> 
> On 7/16/07, Thilo Goetz <[EMAIL PROTECTED]> wrote:
>> Hi all,
>>
>> I thought I'd give the C++ version a go today.  I think
>> the build instructions could use some improvements, or
>> maybe I just missed something.  I extracted the source
>> from SVN and looked at the build instructions.  They talk
>> about the prereqs APR, ICU and Xerces.  These do not seem
>> to be included in the svn extract, so links to those
>> prereqs would be appreciated.  The reference to the
>> JNI headers is also rather vague.  A hint on where those
>> would normally be found in a Java installation would be
>> appreciated.
>>
>> --Thilo
>>

Reply via email to