Ive been trying to get past the Python hurdle, without success... Any help you lot can give would be wonderful!
Ill go in-depth of what I did:
I have 2 choices, remove python, or include it (obviously)
I looked into removing it first, as i assumed it be easy... to do this i removed mention of python from configure and the main makefile (and its .in). I also #undef HAS_PYTHON in system.h... In theory this should stop xbmc using python, but doesnt. Quite a few files then complain back when i 'make' saying it doesnt understand XBPythonsomethingoranother...
Question: What is Python used for, because a lot of these files 'make' complains about are GUI related and some are to do with DLL loader etc... is python a
must for xbmc to function? or am i right in assuming its just for scripts and not neccessarily needed to work.
I then decided to look down the route of adding python instead. Obviously reverted back to allowing python, but when make is called, it doesnt understand the XBPythonDllFuncs.S file... I dont know how to make it understand it (unsure if relevant, but arm thinks .s files are assembler files) so added a && !defined(__arm__) to the top along with the powerpc ones.
Now when you make, i get a lot of undefined references to python stuff that that .s file had. I see that those are also defined in XBPythonDll.cpp, but other files cant see it??. I then extern them in the corresponding .h file for other files to see, but still undefined references... I then see theres a bunch of #defines for the already existing data_objects externed in this header file, so i crudely do the same for every one....
Code:
#define [i][b]NAME[/b][/i] (*((PyObject*)pointer_[i][b]NAME[/b][/i]))
But then it errors on certain ones such as:
Code:
action.cpp: In function 'PyObject* PYXBMC::Action_GetAmount2(PYXBMC::Action*, PyObject*)':
action.cpp:159: error: 'pointer_Py_BuildValue' was not declared in this scope
Thanks in advance for the help guys