Onvif Device Reference Design/Getting Started/Environment Setup: Difference between revisions
mNo edit summary |
|||
(10 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
{{Onvif_Device_Reference_Design/Head|previous=Getting Started|next=Getting Started/Evaluating the Project| | {{Onvif_Device_Reference_Design/Head|previous=Getting Started|next=Getting Started/Evaluating the Project|metakeywords=}} | ||
</noinclude> | </noinclude> | ||
{{DISPLAYTITLE:ONVIF Device Reference Design - Environment Setup|noerror}} | |||
__TOC__ | |||
These steps aim to guide you through the installation and building process for the ONVIF Reference Design Project. | |||
== Dependencies == | |||
* Install Meson | * Install Meson | ||
<pre style="white-space: pre-wrap;"> | <pre style="white-space: pre-wrap;"> | ||
Line 32: | Line 35: | ||
* Install LibOnvif | * Install LibOnvif | ||
Please follow the steps in [[Onvif_device_server/Getting_Started/How_to_compile | How to compile and install ONVIF device server guide page]]. | |||
* Install GSTD | * Install GSTD | ||
Follow the steps in [[GStreamer_Daemon_-_Building_GStreamer_Daemon | Building and Installing the GStreamer Daemon guide]]. | |||
* Install RTSPsink | * Install RTSPsink | ||
Follow the steps in [[GstRtspSink_-_Building_the_plug-in | GstRtspSink - Building the plug-in guide]]. | |||
* Install Oatpp | * Install Oatpp | ||
Line 63: | Line 65: | ||
== Build ONVIF reference design == | == Build ONVIF reference design == | ||
* Clone the project from its repository: [https://gitlab.com/RidgeRun/rnd/onvif-server-reference-design/ | * Clone the project from its repository: [https://gitlab.com/RidgeRun/rnd/onvif-server-reference-design/ ONVIF Server Reference Design] | ||
* Create a build directory within the project directory | * Create a build directory within the project directory | ||
Line 91: | Line 93: | ||
== Common Issues == | == Common Issues == | ||
=== Server stops without any message === | === Server stops without any message === | ||
If the server | If the server doesn't start and exits instantly, one of the possible reasons is that the server's OpenSSL certificates are not working. The only way to solve this is to create new CA certificates and compare them to the ones delivered with this project. | ||
=== The server doesn't start and ends with a message of missing configuration === | === The server doesn't start and ends with a message of missing configuration === |
Latest revision as of 15:00, 5 March 2023
Make sure you also check Onvif Device Reference Design's companion project: Onvif device server |
ONVIF Device Reference Design |
---|
Project Architecture |
Getting Started |
Reference Designs |
Customizing the Project |
Contact Us |
These steps aim to guide you through the installation and building process for the ONVIF Reference Design Project.
Dependencies
- Install Meson
pip install meson
Sometimes it doesn't work correctly when installing it, run this command to see if it installed correctly.
meson --version
- Install Ninja
pip install ninja
- Install Pre-commit
pip3 install pre-commit
- Install Doxygen
sudo apt-get install doxygen
- Install LibOnvif
Please follow the steps in How to compile and install ONVIF device server guide page.
- Install GSTD
Follow the steps in Building and Installing the GStreamer Daemon guide.
- Install RTSPsink
Follow the steps in GstRtspSink - Building the plug-in guide.
- Install Oatpp
git clone https://github.com/oatpp/oatpp.git cd oatpp/ mkdir build && cd build cmake .. make install
- Install Oatpp-openssl
git clone https://github.com/oatpp/oatpp-openssl cd oatpp-openssl cmake . sudo make install
Build ONVIF reference design
- Clone the project from its repository: ONVIF Server Reference Design
- Create a build directory within the project directory
mkdir build
- Build the application
meson build cd build
- Build the project and install
cd build ninja sudo ninja install
- To check the correct functionality, go to the src directory and run:
cd rr/src/ ./onvif-server-reference-design-version
Common Issues
Server stops without any message
If the server doesn't start and exits instantly, one of the possible reasons is that the server's OpenSSL certificates are not working. The only way to solve this is to create new CA certificates and compare them to the ones delivered with this project.
The server doesn't start and ends with a message of missing configuration
This means that the user configuration file doesn't exist. This configuration file needs to exists for the server to start, to verify if it exists run the following command
ls /usr/share/onvif_settings/ #expected output configurations.json UserSettings.txt
If it exists and continues to fail, it may mean that it doesn't have right or write permissions.