Building and Testing¶
- Author:
Stefan Eletzhofer
- Date:
2012-09-27
Abstract¶
This is the draft documentation of the nexiles|gateway C API build process.
Note
for now we’ll develop on the mac. We’ll move to Windows as soon as we’ve sorted the issues with the Windows 7 SDK out.
Test Programs¶
The development source tree in src/c-api contains a makefile which builds the c-api library and several test programs. These have lots of assertions in it and they need to run without errors on each target platform.
The test program does a request to the author’s development Windchill machine – this will likely fail on a different computer. This should probably fixed.
Building¶
To build the library, the examples and the test programs, do:
$ workon nexiles.tools.api
$ cd src/c-api
$ make
External Libraries Used¶
Note
The install prefix for all development libs is the build directory.
libcurl¶
- Home Page:
- Version:
7.27.0
This library handles all the gory details of HTTP.
docs¶
build¶
Build instructions (OS-X):
$ workon nexiles.tools.api
$ cd vendor/curl-7.27.0
$ ./configure --prefix $HOME/develop/nexiles/nexiles.tools.api/build
$ make && make install
jansson¶
- Home Page:
- Version:
2.4
A JSON parser.
Build instructions (OS-X):
$ workon nexiles.tools.api
$ cd vendor/jansson-2.4
$ ./configure --prefix $HOME/develop/nexiles/nexiles.tools.api/build
$ make && make install