Developing plugin using Rabbitmq message broker




  • Avatar
    Anton Babinov


    we are not familiar with Rabbitmq, so we won't be able to provide clear guidance. What kind of issues are you having? It looks like having Rabbitmq thread inside the plugin for each device agent might actually work, but it is difficult to comment on that without full context. 

    'm assuming you have issue connecting rabbitmq-c module to your project, but we need some samples and examples on which we can follow up with advises.

    Comment actions Permalink
  • Avatar

    Hi Anton,

    Thank you for your response. Right now, I am trying to integrate with the sample analytics plugin for testing. 

    I have copied rabbitmq-c folder inside the sample analytics plugin folder and then  added the following lines in cmakelist.txt of the sample analytics plugin:

    #Integrate Rabbitmq-c
    target_include_directories(fs_vagrancy_plugin PUBLIC rabbitmq-c/librabbitmq)
    target_link_directories(fs_vagrancy_plugin PRIVATE rabbitmq-c/librabbitmq/Debug)
    target_link_libraries(fs_vagrancy_plugin PRIVATE rabbitmq-c/librabbitmq/Debug/rabbitmq.4)

    Then I included a header file from rabbitmq-c inside the device agent and used one functionality After running .\build_samples.bat file, the build was successful. 

    After this, I copied sample_analytics_plugin.dll to nx witness server's media plugin directory but got following error:

    "libraryFilename":"C:/Program Files/Network Optix/Nx Meta/MediaServer/plugins/sample_analytics_plugin.dll",
    "statusMessage":"Failed loading Server Plugin [C:/Program Files/Network Optix/Nx Meta/MediaServer/plugins/sample_analytics_plugin.dll] (): [cannotLoadLibrary]: Cannot load library C:\\Program Files\\Network Optix\\Nx Meta\\MediaServer\\plugins\\sample_analytics_plugin.dll: The specified module could not be found.","vendor":"","version":""},

    I have tried the solution mentioned in Organizing third-party library files but the same issue occurs. maybe it's because of my no experience with CMake before I am unable to link the library statistically.

    Any kind of help is appreciated, thank you in advance.


    Comment actions Permalink
  • Avatar
    Andrey Terentyev


    A guess, while loading the plugin, the Server can't find the debug version of the rabbitmq library binary.

    Please read this article, the "Organizing third-party library files" section

    Comment actions Permalink

Please sign in to leave a comment.