Posts: 2,517
Joined: May 2007
Reputation:
118
Been looking at SQLite. All I can find is how to cross compile it on Linux?
Why does it have to be in an DLL as opposed to the way it currently is (which is what?).
What kind of setup will I need to compile it? Will I need all of XBMC compilable in order to do this?
Posts: 26,215
Joined: Oct 2003
Reputation:
187
For Win32, you'll need to compile it with the solution file in SVN (docs/ folder).
You'll either need to compile it as a DLL (possibly won't work, depending on whether it uses stuff like string internally, as our DLL loader doesn't support a lot of template stuff) or change the filesystem layer in it to use XBMC's filesystem (including CFile etc. as necessary) and building as a .lib as it is now.
You may need all of XBMC compilable (for win32 is fine) to do it, yes. For win32, you require the DirectX SDK and visual studio .net 2003. This is probably the preferred method.
For xbox you require the XDK (and VS.net 2003).
Ofcourse, if you are on linux, you can use the linuxport branch and hope that someone kind will port it back to xbox/win32 for you.
As I say, this may or may not be a simple exercise - I haven't really looked into it - I'm just the ideas man here :p
Cheers,
Jonathan
Posts: 5,008
Joined: Sep 2003
Reputation:
30
pike
Team Kodi Admin
Posts: 5,008
phunkyfish, on behalf of our forum let me apologize. we use a solution to catch spammers and when someone is below 10 posts, they are in the dangerzone of getting caught automatically. we also relaxed the rules slightly.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
You no longer need the XBMC specific sqlite.dll. Just a regular SQLite v3 dll will do the trick for reading stuff on the PC.
It won't (most likely) be loadable from XBMC's DllLoader, but I don't really know as I've never tried. See some of the (many) dll interface files (eg DllImageLib.h) and see if you can get the sqlite dll to load and do something useful. If you can, then that's definitely the way to go.
I'll fix up the manual.
DB doesn't really change that often as far as layout goes.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
5933 is fine.
I highly recommend you testing on the win32 version though - it's a much less painful experience (way quicker to debug when it's on the local machine than over the network).
With that said, however, debugging over the network using the XDK is remarkably good, assuming you aren't using wireless.
Posts: 2,517
Joined: May 2007
Reputation:
118
Sorry I meant to say "find a page on building and running XBMC on a PC".
Cheers for all the hand holding!
Posts: 26,215
Joined: Oct 2003
Reputation:
187
1. Grab SVN.
2. Open Tools/Win32.
3. Edit run_me_first.bat to suit your paths (if necessary).
4. Open the XBMC_PC.sln up and away you go.
You (just) need the DirectX SDK installed - anything from summer 2004 update and above should work fine.
Most things work, and it's what I use for development 99% of the time.
Cheers,
Jonathan
Posts: 2,517
Joined: May 2007
Reputation:
118
Cool, that makes things a whole lot easier. I'll give a last tomorrow when the SVN checkout is complete... And thanks...
Posts: 2,517
Joined: May 2007
Reputation:
118
I have this months DirectX SDK. I'll post again tommorow if (when!) I have any problems...