pabsan-0 / libnvds_mqtt_proto

Protocol library for integrating MQTT into NVIDIA Deepstream 6.1
2 stars 4 forks source link

paho build script fails for CPP #3

Open neilyoung opened 6 months ago

neilyoung commented 6 months ago
ubuntu@ai:~/test/build-deps/paho.mqtt.cpp$ cmake -DPAHO_WITH_SSL=TRUE -DPAHO_BUILD_DOCUMENTATION=FALSE -DPAHO_BUILD_STATIC=TRUE -DPAHO_BUILD_SHARED=FALSE         -DPAHO_MQTT_C_PATH=../paho.mqtt.c/ -DPAHO_MQTT_C_LIB=../paho.mqtt.c/src/libpaho.mqtt3as-static.a ${CROSS_COMPILE_ARG}
CMake Warning:
  No source or binary directory provided.  Both will be assumed to be the
  same as the current working directory, but note that this warning will
  become a fatal error in future CMake releases.

-- Configuring done
CMake Error at src/CMakeLists.txt:80 (add_library):
  Target "paho-mqttpp3-static" links to target
  "eclipse-paho-mqtt-c::paho-mqtt3as-static" but the target was not found.
  Perhaps a find_package() call is missing for an IMPORTED target, or an
  ALIAS target is missing?

-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.

Would you know, why?

neilyoung commented 6 months ago

The original gist works better meanwhile

https://github.com/eclipse/paho.mqtt.cpp