|
| | | | Why do I get link error saying icudata library not found when building with ICU? | | | | |
| |
There is a bug in the Makefile of ICU 1.7, 1.8 and 1.8.1. The link created during
ICU installation in $ICUROOT is, for example,
icudata.so@ -> icudt17l.so
instead of
libicudata.so@ -> libicudt17l.so
Therefore the -licudata doesn't work. To bypass the problem, please manually create the
following link:
libicudata.so@ -> libicudt17l.so
This problem has been fixed in ICU 2.0.
|
| | | | I cannot run the sample applications. What is wrong? | | | | |
| |
In order to run an application built using Xerces you must
set up your path and library search path properly. In the stand-alone version
from Apache, you must have the Xerces-C++ runtime library available from
your path settings.
On Windows this library is called xerces-c_2_2_0.dll
which must be available from your PATH settings. (Note that there are
separate debug and release dlls for Windows. The release dll is named
xerces-c_2_2_0.dll , and the debug dll
is named xerces-c_2_2_0d.dll) .
On UNIX platforms the library is called libxerces-c.so.22.0 (or
libxerces-c22.0.so or libxerces-c.sl.22.0)
which must be available from your LD_LIBRARY_PATH
(or LIBPATH or SHLIB_PATH ) environment variable.
Thus, if you installed your binaries under $HOME/fastxmlparser , you need to point your library path to that directory.
| | | | export LIBPATH=$LIBPATH:$HOME/fastxmlparser/lib # (AIX)
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/fastxmlparser/lib # (Solaris, Linux)
export SHLIB_PATH=$SHLIB_PATH:$HOME/fastxmlparser/lib # (HP-UX) | | | | |
If you are using the XML4C parser from IBM, you will
need to put in two additional DLLs. In the Windows build these are icuuc*.dll and icudt*.dll which must be available from your PATH settings. On UNIX, these
libraries are called libicuuc*.so and libicudt*.so (or .sl for HP-UX or .a for AIX) which must be available from your library search path.
If the parser is built with icu message loader (as mentioned above), or message
catalog loader, you need an environment variable, XERCESC_NLS_HOME to point to
the directory, $XERCESCROOT/msg, where the message files reside.
|
|
|