BlackZork / mqmgateway

MQTT gateway for modbus networks
GNU Affero General Public License v3.0
42 stars 18 forks source link

Converter Not found #8

Closed rungg12 closed 1 year ago

rungg12 commented 2 years ago

systemctl status modmqttd.service says: Converter std.int32() not found

Do I have to install a extra package?

BlackZork commented 2 years ago

You need to setup LD_LIBRARY_PATH in your service file, so main exe can find (install_prefix)/lib/modmqttd/stdconv.so

rungg12 commented 2 years ago

I set the path to the build folder where the "stdconv.so" is located, but it doesnt solve the problem

rungg12 commented 2 years ago

Could I just move stdconv.so to the folder "libmodmqttsrv"?

BlackZork commented 2 years ago

Sorry, wrong advice. Set modmqttd.converter_search_path in config.yaml

rungg12 commented 2 years ago

i put it in the first line of "modmqttd.yaml" with the path to the folder, but it still doesnt work

BlackZork commented 2 years ago

You can run it under strace: strace ./modmqttd/modmqttd --config modmqttd/config.yaml 2>&1 |grep stdconv

and see where it tries to find this file:

statx(AT_FDCWD, "../build/stdconv/stdconv.so", AT_STATX_SYNC_AS_STAT|AT_NO_AUTOMOUNT, STATX_TYPE|STATX_MODE, 0x7ffdc74305a0) = -1 ENOENT (No such file or directory)

rungg12 commented 2 years ago

thank you very much