Building the API

After installation of the ASN1C 3GPP add-on package is complete, a new directory named 'nas_dev' will have been formed under the 'c' subdirectory. This contains all of the development files needed to build the API.

To build on Windows using Visual Studio, the following would be done:

  1. Open a Visual Studio command-prompt Window and change directory (cd) to the c\nas_dev subdirectory with the ASN1C hierarchy.

  2. Execute the top-level makefile using the 'nmake' command:

    nmake

That should be all that is necessary. It will cause the ASN1C compiler to be invoked to generate C source code for all of related ASN.1 and CSN.1 specifications. It will then compile the resulting files with Visual Studio C/C++ compiler. Resulting libraries in both debug and release configurations may be found in the debug\lib and release\lib subdirectories respectively.

If you wish to build the API with a different version of Visual Studio instead of the default version, all that needs to be done is moving the nas_dev folder from under the 'c' subdirectory to a different 'c_' subdirectory. So, for example, if you wanted to build with Visual Studio 2012, you would move the nas_dev folder under c_vs2012 and execute the procedure above.

To build on Linux, the procedure would be similar:

  1. From a terminal window, change directory (cd) to the c/nas_dev subdirectory within the installation.

  2. Execute the top-level makefile using the 'make' command:

    make