R2Inference/Getting started/Building the library: Difference between revisions
(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: | ||
--> | --> | ||
==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: | |||
<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
Make sure you also check R2Inference's companion project: GstInference |
R2Inference |
---|
Introduction |
Getting started |
Supported backends |
Examples |
Model Zoo |
Contact Us |
|
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 |
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.