I recently tried my hand at trying to patch in a few old xbmc patches into xbmc4xbox unsuccessfully. My limited c++ skills have brought me to a stale mate. I came to share what I have done so maybe someone better than I can take it further than me if its something they would also like to have. The patches were from right before the xbmc / xbmc4xbox split. They happened shortly before but this functionality never made it to the xbox. Alot of the changes in the patches had already been implement in xbmc4xbox and I removed them. I then scanned the code page by page and piece by piece of the rejected hunks of the patches and found if I could the code it was for by isolating a special string within the patch that rejected and found the code that needed to be changed and rewrote those sections of patches to work. Most the patches are finished there are 2 that are not. 1 only needs minor changes and should be an easy clean up in 5 minutes. The other needs alot of work. I didnt take them any further because I didnt think I could get it to work if I did. The patches build off linux mysql and I mapped that to the mysql within the mythtv section of the build because thats the only place I know where any mysql exist but there does not seem to be enough of mysql there to complete the build process and I dont know how to get it in there.
The xbmc thread this steams from can be found here
http://forum.xbmc.org/showthread.php?tid=55794
On page 3 it describes that the following tickets would provide mysql support.
http://trac.xbmc.org/ticket/8169
http://trac.xbmc.org/ticket/7529
attached are my changes the original code I reworked can be found within the links I provided.
MYSQL database support
- BuZz
- Site Admin
- Posts: 1891
- Joined: Wed Jul 04, 2012 12:50 am
- Location: UK
- Has thanked: 66 times
- Been thanked: 423 times
- Contact:
Re: MYSQL database support
You will need to build a mysql library also (or link against the one used for mythtv). Someone had an attempt at this before and got stuck at a similar point as you (Not sure where their post is - possibly on the old forum).
The reason it has not been implemented is lack of interest though. There are some problems adding mysql - statically linking it in will increase the size and memory usage of xbmc4xbox significantly (It's a large library). Another option which is more work would be to use the dll loader so it is only loaded as needed which is more work, but even then I would be reluctant to include it. How many people would use a centralised database for XBMC4Xbox? It wouldn't be any use in sharing the database with modern HTPC running XBMC so I think the work to implement it and maintain the code is not really worth the reward.
The reason it has not been implemented is lack of interest though. There are some problems adding mysql - statically linking it in will increase the size and memory usage of xbmc4xbox significantly (It's a large library). Another option which is more work would be to use the dll loader so it is only loaded as needed which is more work, but even then I would be reluctant to include it. How many people would use a centralised database for XBMC4Xbox? It wouldn't be any use in sharing the database with modern HTPC running XBMC so I think the work to implement it and maintain the code is not really worth the reward.