Skip to content

Conversation

@Rasmita-Ardu
Copy link

I have pushed some code fixes which would help other developers to utilize mqtt method in gvametapublish plugin on windows platform.

I would be happy to take up any queries to it.

… on windows platform

-- In dlstreamer\CmakeLists.txt, Paho Library is searched and its path ( dlstreamer_gst/EclipsePahoC/lib/paho-mqtt3c.lib) is saved in variable MQTT.
Set CMAKE_C_FLAGS and CMAKE_CXX_FLAGS(for CXX compilers) here instead of dlstreamer_gst\gst\elements\CMakeLists.txt because audioinference.vcxproj is unable to identify the -DPAHO_INC flag because of the folder structure.

-- In dlstreamer_gst\gst\elements\CMakeLists.txt
Delete line 107 since the flag is being appended above.
Replace paho-mqtt3a with ${MQTT}/../paho-mqtt3a.lib since variable ${MQTT} has the filepath when the above CMakeLists.txt gets executed
Add directory ${MQTT}/../../include to include MQTTAsync.h mentioned in c_metapublish_mqtt.h

-- Edits in dlstreamer_gst\gst\elements\gvametapublish\c_metapublish_mqtt.c are specific for windows
@Rasmita-Ardu Rasmita-Ardu changed the base branch from master to preview/support-for-windows December 24, 2021 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant