Posts: 2
Joined: Dec 2016
Reputation:
0
2016-12-27, 20:22
(This post was last modified: 2016-12-27, 20:23 by Calebe94.)
Hey community!
I just want to know about if is possible to write a Kodi Add-On in C++ instead of Python, if there is a way, which library I must do declare in my main program?
Thanks !
Posts: 1,664
Joined: Jun 2011
Reputation:
119
"Addon" is too broad definition. Some types of addons are C/C++ only, like PVR or audio encoders. Other types of addons, like content plugins or program addons are written in Python. However, Python provides Python-C API that allows to write binary Python extension modules in C (not ++). Raw Python-C API is not convenient, but there are a number of convenience tools (Boost.Python, Pybind11 and such) that let you wrap your C++ code into binary Python modules. So technically, even in case of Python addons you can write almost everything in C/C++ except for a launcher script.
However, I need to note that maintaining such addon for all target platforms that run Kodi will be a huge PITA.
Posts: 2
Joined: Dec 2016
Reputation:
0
2017-02-01, 16:43
(This post was last modified: 2017-02-01, 16:48 by Calebe94.)
Thank you for your answer Roman.
This topic can be closed right now.