FAQ
Build cannot find lz4 or OpenSSL
Install the development files libssl-dev and liblz4-dev, and pkg-config (lz4 is found through it). On Ubuntu:
sudo apt-get install -y libssl-dev liblz4-dev pkg-config
The first build is slow
The first configure builds the pinned protobuf release (3.21.12) from source. It takes about 47 s with 20 parallel jobs on Ubuntu 22.04. Later incremental builds do not repeat this step.
Wrong system protobuf version
The generated code and the runtime must be the same protobuf release. The default option LIXEL_OPENAPI_PROTOBUF_PROVIDER=AUTO uses the system protobuf when it is 3.21.0 or newer, otherwise builds the pinned release. Set it to SYSTEM to force the system one, or FETCH to always build the pinned release.
MQTTS connection fails / certificate error
By default the C++ client makes both the CA check and the name check. Check in this order:
- K2, L3: the device certificate has no IP address, so the name check always fails. Use
--ca-file certs/lixel_mqtts_ca.crt --no-verify-hostnameto make the CA check only. --ca-fileis the device certificate: it is refused.--ca-filemust be the CA certificate that issued the device certificate.--no-verify-hostnamewithout--ca-file:ConnectreturnsErrc::InvalidArgument, and the examples exit with status 2.- An example exits with status 2: a TLS option would be ignored, for example
--ca-filewithout--tls, or--ca-filetogether with--insecure. - Debugging only: turn verification off with
--insecure(matches the Python client; identity is not verified).
See Client & Examples · TLS certificate checks.
Note: this differs from Python — the Python client never verifies the certificate.
Request timeout / no response
Request returning RequestTimeout means no response with the same seq arrived within the timeout. Confirm the request and response topics match and the device is in a state that can respond. A missing or wrong key does not cause a timeout: a device that needs a key replies with EC_ProtoError, Request returns DeviceError, and desc is openapi auth error or openapi license exhausted; see Connection & Authentication · OpenAPI authorization and key. A timeout on openapi_license usually means the heartbeat Features of the device does not contain "openapi_license", so the device has no such topic; see Interface Catalog · Query the OpenAPI authorization. Note the device may already have carried out the request; confirm with the device before assuming otherwise. The default timeout is 10 seconds, adjustable via ClientOptions::request_timeout.
Calling Request in a subscription callback does nothing
This is intentional: subscription callbacks run on the MQTT layer's thread, and calling Request there returns Errc::CalledFromCallback instead of blocking; Connect / Disconnect are also not allowed in a callback. Move request logic to a thread outside the callback.
Point cloud decode fails
The real-time point cloud is the LZ4 block format (not frame). Use the library's DecodePointCloud, which handles it correctly. A Zstd-compressed point cloud and a negative header.scaler return Errc::Unsupported.
Can I use it on Windows / macOS
The C++ client supports Linux only; Windows and macOS are not supported.