English
English
简体中文
Register
Log In
English
English
简体中文
Register
Log In
Language
English
English
简体中文
Register
Log In

Does the development kit support a dynamic library?

Last Updated on2024-01-18 08:11:07
Currently, only static libraries are available. The code is compiled with the -fPIC option, allowing you to generate a dynamic library from the static one.
The command below packages all static libraries into a single dynamic library.
gcc -shared -o libtuyaos.so -L./libs -Wl,--whole-archive -lty_iot_sdk -lty_module_gw_base -lty_module_gw_app -lty_module_zigbee -ltuyaos_adapter -Wl,--no-whole-archive

Click for services and help

Help Center