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

From RidgeRun Developer Wiki
(Created page with "<noinclude> {{R2Inference/Head}} </noinclude> <!-- If you want a custom title for the page, un-comment and edit this line: {{DISPLAYTITLE:R2Inference - <descriptive page name>...")
 
No edit summary
Line 6: Line 6:
-->
-->


Fill this area with the relevant information
==Dependencies==
Make sure you update the "previous" and "next" below! Do not include the R2Inference/ prefix on next/prev there.
 
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:
 
<syntaxhighlight lang='bash'>
sudo apt-get install -y autoreconf automake pkg-config libtool gtk-doc-tools
</syntaxhighlight>
 
==Install library==
 
To build and install r2inference you can run the following commands:
 
<html>
  <center>
  <table class='wikitable'>
    <tr>
      <th>Configure Option</th>
      <th>Description</th>
    </tr>
    <tr>
      <td>--enable-ncsdk</td>
      <td>Compile the library with NCSDK backend support</td>
    </tr>
    <tr>
      <td>--enable-tensorflow</td>
      <td>Compile the library with TensorFlow backend support</td>
    </tr>
    <caption>Table 1. R2Inference configuration options</caption>
  </table>
  </center>
</html>
 
 
<syntaxhighlight lang='bash'>
git clone -b dev-0.1 git@github.com:RidgeRun/r2inference.git
cd r2inference
./autogen $OPTIONS # CHOOSE THE APPROPRIATE CONFIGURATION FROM THE TABLE ABOVE
make
make check
sudo make install
</syntaxhighlight>
 
==Verify==
 
You can verify the library with a simple application:
 
<syntaxhighlight lang='c'>
#include <r2i/r2i.h>
 
int main (int argc, char *argv[]) {
  r2i::RuntimeError error;
 
  auto factory = r2i::IFrameworkFactory::MakeFactory(r2i::FrameworkCode::NCSDK, error);
 
  return error;
}
</syntaxhighlight>
 
You can also check our [[R2Inference/Examples | examples ]] page to get the examples included with the library running.


<noinclude>
<noinclude>
{{R2Inference/Foot|Getting started/Getting the code|Supported backends}}
{{R2Inference/Foot|Getting started/Getting the code|Supported backends}}
</noinclude>
</noinclude>

Revision as of 16:59, 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 $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