Developing plugin using Rabbitmq message broker

In Progress

Comments

2 comments

  • Avatar
    Anton Babinov

    Hi,

    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.

    0
    Comment actions Permalink
  • Avatar
    cubesj

    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
    add_subdirectory(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:

    {"description":"",
    "errorCode":"cannotLoadLibrary",
    "homeDir":"",
    "instanceIndex":-1,
    "isActive":true,
    "libName":"sample_analytics_plugin",
    "libraryFilename":"C:/Program Files/Network Optix/Nx Meta/MediaServer/plugins/sample_analytics_plugin.dll",
    "mainInterface":"undefined",
    "name":"","nxSdkVersion":"",
    "optionality":"nonOptional",
    "resourceBindingInfo":[],
    "status":"notLoadedBecauseOfError",
    "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.

     

    0
    Comment actions Permalink

Please sign in to leave a comment.