XBMC Community Forum
HOW-TO: Build XBMC for Win32 in VC++ Express Edition - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: Development (/forumdisplay.php?fid=93)
+--- Thread: HOW-TO: Build XBMC for Win32 in VC++ Express Edition (/showthread.php?tid=28318)

Pages: 1 2 3 4 5 6 7


HOW-TO: Build XBMC for Win32 in VC++ Express Edition - aiken - 2007-09-03 05:28

I figured it made sense to document how I got it going. Well, as going as I've gotten it. I'm running VC++ Express Edition on Vista x64, but I believe these instructions should also work for normal x86 installations as well, and probably for other flavors of VC++ (Microsoft Visual Studio).

Updates welcomed; please will reply to this thread with any further or improved steps.

See here for the procedure required: http://xboxmediacenter.com/wiki/index.php?title=HOW-TO:_Compile_XBMC_for_Win32_from_source_code

PS! I am pretty rusty with C++, so be especially wary of my proposed code changes.


- jmarshall - 2007-09-03 06:13

I've committed changes 2->4 to SVN (rev 10148).

The first change is not portable, and I'm not sure why it's needed - os.hpp should be including <windows.h> there I think? Perhaps it's an include order issue?

Thanks,
Jonathan


- aiken - 2007-09-03 09:04

The first change was indeed moronic. The issue, though, is that Vista and VC++EE hate this part of os.hpp:
Code:
#if _WIN32_WINNT < 0x0300
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0300
#endif

Just uncommenting the "#define WINVER 0x0400" on the line just above that fixes the problem, though, and obviates my ugly hack. So apparently someone has seen something like this before.

-b


Help anyone, please... - Gamester17 - 2007-09-03 12:35

I would really appreciate it if you or someone took the time while setting the environment up for themselves to document and write down the step-by-step instructions for how to compile XBMC for Windows with Microsoft Visual Studio (both for DirectX/Direct3D and for SDL/OpenGL if you can) and put those instruction in our wiki manual here => HOW-TO Compile XBMC for Win32 from source code.

Thanks in advance!


- aiken - 2007-09-03 19:53

I am taking notes as I work on the DirectX build for VC2005EE, and will update the wiki once I get it built. There are still some patches to be made for the compiler at this point.

I started out going down the SDL road with VC2005 and made a lot of progress, but never got a complete build. I will put the notes I have on downloading and setting up SDL/GLEW in the wiki as well, though they will end before a complete build is produced.

Cheers
-b


- Nickman - 2007-09-03 22:53

I made the Win32 SDL version compile around aug 14. But later on i havent been able.. It gives LOTS of errors and reports broken stuff and so on.

I thought that maybe some dev didnt want users to be able to compile it just yet and made some small changes to break the compile.


- aiken - 2007-09-03 23:38

Hey, I went to put in my instructions for VS2005 and found the Wiki page locked. Can someone let me into it? Same login info as the forums here.

Thanks
-b


- jmarshall - 2007-09-04 00:00

PM pike and he'll set you up with access.

The SDL build will be fixed when I get some time - very busy atm.

Cheers,
Jonathan


- aiken - 2007-09-04 01:36

I've updated the wiki page with VC++ 2005 Express Edition instructions for both the DX and SDL Win32. Not that neither one will build completely -- the DX version is very, very close, but the SDL version has at least one major stumbling block (SDL_gfx), plus probably the same compiler issue that has me stalled on the DX version.

Cheers
-b


- aiken - 2007-09-04 02:05

Can some mod edit the original post here and just replace it with a link to the wiki page? Some of the instructions are newer there than here, and that will probably continue to be the case.

Thanks
-b