ONVIF device server - How to compile

From RidgeRun Developer Wiki





Previous: How to get the library Index Next: Examples







After installing the GSoap dependency and the GStreamer Daemon dependency the compilation shouldn't be a problem.

1. Clone the RidgeRun provided repository:

git clone <repository clone url>

2. Go to the downloaded project:

cd <repository name>

3. Generate the files using the Autotools scripts

./autogen.sh

4. Compile and install

make -jN
sudo make install -jN

5. The library should be installed, to link it in the projects you can use the generated file libonvifdevice.pc to link it to your project.

FAQ

  • Question: Autogen fails with gstd/libgstc.h not found error
  • Answer: There are two options:
    • Option1: Install GStd as indicated in the instructions GStreamer Daemon
    • Option2: run the configure script and avoid building the examples: ./configure --disable-test and continue with step #4 (compile and install)






Previous: How to get the library Index Next: Examples