Is the Nx Cloud up? Visit our Status Page for the current health and performance of the Nx Cloud.

Status Page

Send HTTP request to third party systems

Answered

Comments

4 comments

  • Permanently deleted user

    Hi Serhii, can you please explain the context of your question?

     

    If you are developing a plugin, you can link and C++ library to make the request from the code.

    If you are working on something else, probably HTTP Action can resolve you problem: https://support.networkoptix.com/hc/en-us/articles/222669328-Action-Do-HTTP-Request

    0
  • Serhii Syrtsov

    Yes, I develop plugin. When I link C++ library (cURL) and make the request from the code, the plugin is not visible for VMS. There is no item "Plugins" in the camera settings. Maybe this library somehow conflict with MetaVMS or something like this.

    0
  • Permanently deleted user

    When plugin is not visible from VMS it often means that the plugin cannot find required dependencies (dynamically linked libraries).

     

    Can you make sure that the library file lies next to the plugin?

    1
  • Andrey Terentyev
    • Network Optix team

    Hello Serhii Syrtsov ,

    Here is the best practice to deal with third party libraries inside a plugin.

    All the third party libraries a plugin depends on should be placed on the server in the same directory where the plugin binary resides.

    Putting those files in the default plugin directory works, but is considered to be a bad practice. Instead, the separate directory should be created with the same name a plugin has, omitting the lib* prefix. The Server will try load linked libraries from that directory first. For example,

    $ sudo mkdir $SERVER_DIR/bin/plugins/opencv_object_detection_analytics_plugin
    $ sudo mv $SERVER_DIR/bin/plugins/libopencv_object_detection_analytics_plugin.so $SERVER_DIR/bin/plugins/opencv_object_detection_analytics_plugin

    _PLUGINLIBS

    1

Please sign in to leave a comment.