mosquitto
Eclipse Mosquitto - An open source MQTT broker
Latest version: 2.1.2
Add to xmake.lua
add_requires("mosquitto 2.1.2")Learn how to add and link packages with Xmake →
Information
- License
- EPL-2.0
- Recipe updated
- 2026-02-18T20:29:01.000Z
Platforms
- linux: i386, x86_64, armv7, armv7s, arm64, mips, mips64, mipsel, mips64el, loong64, riscv64, s390x, ppc, ppc64, ppc64el, sparc64
- macosx: x86_64, arm64
- windows: x86, x64
Options
broker- Build broker · Type: boolean · Default: false
bundled_deps- Build with bundled dependencies · Type: boolean · Default: true
cjson- Build with cJSON support (required for dynamic security plugin and useful for mosquitto_sub) · Type: boolean · Default: true
dlt- Include DLT support · Type: boolean · Default: false
ec- Include Elliptic Curve support (requires WITH_TLS) · Type: boolean · Default: true
lib_cpp- Build C++ library · Type: boolean · Default: true
socks- Include SOCKS5 support · Type: boolean · Default: true
srv- Include SRV lookup support · Type: boolean · Default: true
threading- Include client library threading support · Type: boolean · Default: false
tls- Include SSL/TLS support · Type: boolean · Default: true
tls_psk- Include TLS-PSK support (requires WITH_TLS) · Type: boolean · Default: true
unix_sockets- Include Unix Domain Socket support · Type: boolean · Default: true
websockets- Include websockets support · Type: boolean · Default: false
Versions
- v2.0.15
- v2.0.18
- v2.1.2
Dependencies
Install with xrepo
Install the package independently of a project and inspect its available configuration.
install
xrepo install "mosquitto 2.1.2"show info
xrepo info "mosquitto"Link a library to your target
Declare the requirement, then attach the library to the target that uses it.
xmake.lua
add_requires("mosquitto 2.1.2")
target("demo")
set_kind("binary")
add_files("src/*.cpp")
add_packages("mosquitto")Open a package environment
Open a shell with the environment exported by this package. Use the executable names documented by the package.
enter shell
xrepo env -b "mosquitto 2.1.2" shell