Hi,
i am quite new to OpenWRT. Hopefully my comments are not complete nonsense.
Since I need a python3 installation on my OpenWRT, I thought I could add collectd-mod-python to the collectd package to avoid having to go through collectd-mod-exec.
To basically test the buildsystem and also check my approach I created collectd-mod-gps first. This works through:
- creating a custom packet feed, install gpsd
- edit my_packages/utils/Utilities/collectd/Makefile
COLLECTD_PLUGINS_SELECTED
add gps andCOLLECTD_PLUGINS_DISABLED
remove gps
add line
$(eval $(call BuildPlugin,gps,gps input,gps,+libgps))
- Afterswards the mod collectd-mod-gps is working as excepted.
With collectd-mod-python
its not that easy:
$(eval $(call BuildPlugin,python,python binding input,python,+PACKAGE_collectd-mod-python:libpython3))
But I always get errors when resolving the dependencies while configure runs:
Libraries:
libpython . . . . . . no
Modules:
python . . . . . . . no (dependency error)
In make menconfig
libpython3
is ticked. I tried different namings:
$(eval $(call BuildPlugin,python,python binding input,python,+libpython3))
$(eval $(call BuildPlugin,python,python binding input,python,+python3))
$(eval $(call BuildPlugin,python,python binding input,python,libpython3))
$(eval $(call BuildPlugin,python,python binding input,python,+libpython))
Any advice how to resolve this error? Thanks!