Compiling, linking, and loading
Before you can run one of the sample applications, complete the
following steps:
- On your Linux® system, create a working directory in your
root directory and change to that directory:
mkdir /your_workdir
cd /your_workdir
- Create a maketpf configuration file named maketpf.cfg. Ensure that the first assignment of TPF_ROOT in maketpf.cfg is the absolute path to your working directory.
- Copy the /build_src/base/xml4c/samples/xml4csamples.cntl file to your working directory. The source files on your system are located in the build_src file.
- Use the instructions that follow to build the DOMPrint sample
program. You can apply these same instructions to any other sample
programs that are available. Note: Each of the sample programs has its own .mak file in its own directory.
- Edit the xml4csamples.cntl file for the sample program that you want to build (for this example, DOMPrint). Comment out (by adding the initial # symbol at the beginning of the line) all the program names except those corresponding to the DOMPrint sample. The CXM names are example names that you would change to your own program names.
- Edit the sample maketpf .mak file for the DOMPrint sample program
(
/build_src/base/xml4c/samples/DOMPrint/cxmc.mak). Verify that the maketpf_env assignments in cxmc.mak are correct for your build environment. - Compile and link the DOMPrint sample program from your working directory.
bldtpf xml4csamples.cntl -f
- Use the standard load procedure to transfer and load the XML4C sample program to your test system.