R2Inference/Getting started/Building the library: Difference between revisions

From RidgeRun Developer Wiki
No edit summary
Line 50: Line 50:
git clone -b dev-0.1 git@github.com:RidgeRun/r2inference.git
git clone -b dev-0.1 git@github.com:RidgeRun/r2inference.git
cd r2inference
cd r2inference
./autogen $OPTIONS # CHOOSE THE APPROPRIATE CONFIGURATION FROM THE TABLE ABOVE
./autogen.sh $OPTIONS # CHOOSE THE APPROPRIATE CONFIGURATION FROM THE TABLE ABOVE
make
make
make check
make check

Revision as of 18:03, 2 January 2019




  Index  




Dependencies

R2Inference has the following dependencies:

  • autoreconf
  • automake
  • pkg-config
  • libtool
  • gtk-doc-tools

In Ubuntu 16.04 based systems, you may install the dependencies with the following command:

sudo apt-get install -y autoreconf automake pkg-config libtool gtk-doc-tools

Install library

To build and install r2inference you can run the following commands:

Configure Option Description
--enable-ncsdk Compile the library with NCSDK backend support
--enable-tensorflow Compile the library with TensorFlow backend support
Table 1. R2Inference configuration options


git clone -b dev-0.1 git@github.com:RidgeRun/r2inference.git
cd r2inference
./autogen.sh $OPTIONS # CHOOSE THE APPROPRIATE CONFIGURATION FROM THE TABLE ABOVE
make
make check
sudo make install

Verify

You can verify the library with a simple application:

#include <r2i/r2i.h>

int main (int argc, char *argv[]) {
  r2i::RuntimeError error;

  auto factory = r2i::IFrameworkFactory::MakeFactory(r2i::FrameworkCode::NCSDK, error);

  return error;
}

You can also check our examples page to get the examples included with the library running.




Previous: Getting started/Getting the code Index Next: Supported backends