Build the Sample Programs

You can use the sample programs to validate that the Eduction EDK compiles, links, and runs correctly.

UNIX

Use the following procedure to build the sample programs on UNIX.

To build the sample programs on UNIX

  1. Navigate to the c_api/test directory.
  2. Set the PLATFORM environment variable (refer to the makefile for more details).
  3. Run make dir=ext.

The resulting binaries require that the shared object be in the library search path. By default, this is not the case, so a Perl script is provided to add the shared object to the search path by setting LD_LIBRARY_PATH. The script then runs the test binary. To run the script, use the following command:

perl runtestedk.pl ext

The Perl script expects a valid Eduction OEM license key with the name licensekey.dat to be located in the test directory. If the test works correctly, you see a line of text in the output beginning with the string PASS:, otherwise you see the string FAIL:.

Windows

To build the test executable binaries, a Visual Studio 2010 solution file, test.sln, is provided in the test folder.

The resulting binaries require that the edk.dll be in the library search path. By default, this is not the case, so a Perl script is provided to add the library to the search path and then run the test binary. To run the script, use the following command:

perl runtestedk.pl ext

The Perl script expects a valid Eduction OEM license key with the name licensekey.dat to be located in the test directory. If the test works correctly, you see a line of text in the output beginning with the characters PASS:, otherwise you see FAIL:.


_HP_HTML5_bannerTitle.htm