Wintermute0110 / kodi-install

Scripts to compile and install Kodi in Linx Debian/Ubuntu
15 stars 10 forks source link

Trying to compile Kodi 18.9 for a specific need -- fails Linking CXX executable kodi-wayland #5

Open profundity opened 2 years ago

profundity commented 2 years ago

Hi,

Thanks for putting the scripts together to lighten the load!!

I have a specific need to try an compile version 18.9-leia from source. However, at 100% Linking CXX executalbe to kodi-- I get a bunch of python HTTPPythonRequest errors and then XBMCADDON errors ant the build fails. I cannot find too much info on this for 18.9.

Thanks for any help.

build/network/httprequesthandler/python/network_httprequesthandlers_python.a(HTTPPythonWsgiInvoker.cpp.o):HTTPPythonWsgiInvoker.cpp:function CHTTPPythonWsgiInvoker::addWsgiEnvironment(HTTPPythonRequest*, void*): error: undefined reference to 'Py_BuildValue'
build/network/httprequesthandler/python/network_httprequesthandlers_python.a(HTTPPythonWsgiInvoker.cpp.o):HTTPPythonWsgiInvoker.cpp:function CHTTPPythonWsgiInvoker::addWsgiEnvironment(HTTPPythonRequest*, void*): error: undefined reference to 'PyDict_SetItemString'
build/network/httprequesthandler/python/network_httprequesthandlers_python.a(HTTPPythonWsgiInvoker.cpp.o):HTTPPythonWsgiInvoker.cpp:function CHTTPPythonWsgiInvoker::addWsgiEnvironment(HTTPPythonRequest*, void*): error: undefined reference to 'PyString_FromStringAndSize'
build/network/httprequesthandler/python/network_httprequesthandlers_python.a(HTTPPythonWsgiInvoker.cpp.o):HTTPPythonWsgiInvoker.cpp:function CHTTPPythonWsgiInvoker::addWsgiEnvironment(HTTPPythonRequest*, void*): error: undefined reference to 'PyDict_SetItemString'
build/network/httprequesthandler/python/network_httprequesthandlers_python.a(HTTPPythonWsgiInvoker.cpp.o):HTTPPythonWsgiInvoker.cpp:function CHTTPPythonWsgiInvoker::addWsgiEnvironment(HTTPPythonRequest*, void*): error: undefined reference to 'PyDict_SetItemString'
build/network/httprequesthandler/python/network_httprequesthandlers_python.a(HTTPPythonWsgiInvoker.cpp.o):HTTPPythonWsgiInvoker.cpp:function CHTTPPythonWsgiInvoker::addWsgiEnvironment(HTTPPythonRequest*, void*): error: undefined reference to 'PyDict_SetItemString'

And

build/swig/libpython_binding.a(AddonModuleXbmcaddon.i.cpp.o):AddonModuleXbmcaddon.i.cpp:function PythonBindings::initModule_xbmcaddon(): error: undefined reference to 'PyModule_AddStringConstant'
build/swig/libpython_binding.a(AddonModuleXbmcaddon.i.cpp.o):AddonModuleXbmcaddon.i.cpp:function PythonBindings::initModule_xbmcaddon(): error: undefined reference to 'PyModule_AddStringConstant'
build/swig/libpython_binding.a(AddonModuleXbmcaddon.i.cpp.o):AddonModuleXbmcaddon.i.cpp:function PythonBindings::initModule_xbmcaddon(): error: undefined reference to 'PyType_Ready'
build/swig/libpython_binding.a(AddonModuleXbmcaddon.i.cpp.o):AddonModuleXbmcaddon.i.cpp:function PythonBindings::xbmcaddon_XBMCAddon_xbmcaddon_Addon_New(_typeobject*, _object*, _object*): error: undefined reference to 'PyArg_ParseTupleAndKeywords'
build/swig/libpython_binding.a(AddonModuleXbmcaddon.i.cpp.o):AddonModuleXbmcaddon.i.cpp:function PythonBindings::xbmcaddon_XBMCAddon_xbmcaddon_Addon_New(_typeobject*, _object*, _object*): error: undefined reference to 'PyThreadState_Get'
build/swig/libpython_binding.a(AddonModuleXbmcaddon.i.cpp.o):AddonModuleXbmcaddon.i.cpp:function PythonBindings::xbmcaddon_XBMCAddon_xbmcaddon_Addon_getAddonInfo(PythonBindings::PyHolder*, _object*, _object*): error: undefined reference to 'PyArg_ParseTupleAndKeywords'
Wintermute0110 commented 2 years ago

Hi, it looks a Python problem rather than a Kodi problem, like the Python version you are using for the build is wrong. I need more info about your setup, for example, distribution you are using, version, etc.

profundity commented 2 years ago

Yes. Clearly.

Using Ubuntu

music@music-OptiPlex-790:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 21.10
Release:    21.10
Codename:   impish

FIXED: it had something to do with python2-pip, openjpeg, python-pil. Working on making sure these were installed seemed to have removed all errors.