Deploy Eduction SDK > C API Component > Build the testedk Executable

Build the testedk Executable
The testedk executable file is used to validate that the Eduction SDK compiles, links and runs correctly.
UNIX
The Eduction SDK comes in the form of a shared object, libedk.so. To link to this shared object, two open source libraries are required:
*
*
Both of these libraries belong to the OpenSSL software project, which is free to download. Use the following procedure to install the libraries if you do not have them.
To install the required libraries
1.
2.
Follow the link to the latest downloads (http://www.openssl.org/source/).
3.
 
4.
Unpack the compressed file to your hard disk (for example, into /opt/ssl using tar -zxvf openssl-0.9.8k.tar.gz).
5.
$ ./config
$ make
$ make test
$ make install
This option creates the SSL libraries (for example, /usr/local/ssl/lib).
To build release/testedk.static, navigate to the test directory and run:
make dir=ext
 
NOTE When building on the Solaris SPARC 64-bit platform, add the command option -m64 to both the compilation and linking lines in the makefile file. This instructs the compiler and linker to build 64-bit binaries on this platform.
The resulting binary requires 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:.
Notes for compiling and linking under AIX
Note the following when using an AIX operating system:
*
The make command invokes the native compiler on a particular platform. If it is unsuccessful, use gnumake, which uses the GNU compiler.
*
In the makefile, use xlC instead of gcc.
*
Rename the libekd.so file to libedk.a. AIX file extensions differ from the default .a for libraries and .so for shared objects. The AIX linker might not be located in the edk shared library unless it is renamed.
Windows
To build release\testedk.exe, navigate to the test directory and run:
nmake /f testedk.mak dir=ext
The resulting binary requires 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:.