Skip to content
Craig Minihan edited this page Dec 9, 2016 · 6 revisions

To build on CentOS 7 you should run the following script to install the required packages:

yum -y install curl
yum -y install gcc-c++ make autoconf autoconf213 git
yum -y install ruby 
yum -y install lcov
yum -y install valgrind
yum -y install python-devel

If you want to build the GTK+ example then you should also install gtkmm:

yum -y install gtkmm30-devel

Once you have the correct packages you can clone the repository and build the library:

git clone --recursive https://github.com/RipcordSoftware/libjsapi.git
cd libjsapi
make

The make process will download SpiderMonkey and gtest 1.7. These projects will be built before libjsapi and are installed into the externals/installed directory under the source root directory.

To run tests and generate a coverage report execute:

make test && ./coverage.sh

The coverage output will appear in the coverage sub-directory.