HOW-TO: Build XBMC for Win32 in VC++ Express Edition

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
my4keys82 Offline
Junior Member
Posts: 14
Joined: Jun 2008
Reputation: 0
Smile    Post: #21
Hello,

Just wanted to say my first build of xbmc.exe only went pretty smoothly today, didn't see the build scripts till now so I copied things manually and mounted Q drive after seeing what was falling over. Only took a couple of mins to get it going which was a pleasent surprise.

I added /MP4 to the command line which speeds compile up a fair bit, this starts 4 compilation threads which works well for dual and quad cores if any one cares.


Mike
find quote
Jeroen Offline
Skilled Skinner
Posts: 1,882
Joined: Feb 2008
Reputation: 4
Location: The Netherlands
Post: #22
I decided to try out building XBMC myself using VC++ Express, but it's not working out.
Bare in mind that I never compiled a thing in my life so I don't fully realize what I'm doing Big Grin
I went through the steps in the Wiki several times, got everything I need, setup VC, etc.
The building process starts end eventually VS gives me a fatal error:

Code:
4>Linking...
4>LINK : fatal error LNK1104: cannot open file '..\..\guilib\debug (sdl)\guilib.lib'
4>Build log was saved at "file://c:\Documents and Settings\Jeroen.STELLAR\Desktop\XBMC BUILDING\tools\Win32\Debug (SDL)\BuildLog.htm"
4>XBMC_PC - 1 error(s), 3984 warning(s)
========== Rebuild All: 2 succeeded, 2 failed, 0 skipped ==========

I've looked for the obviously missing guilib.lib, yet assuming I know where to look I can't locate it in the svn dirs.

So anyway I would like some help :o Would providing the full buildlog be of any help? Anything else I should/can do?
find quote
my4keys82 Offline
Junior Member
Posts: 14
Joined: Jun 2008
Reputation: 0
Post: #23
guilib is a seperate project that's included in the solution and should build when xbmc starts building. You could try just building this project by right clicking on the guilib project in the solution explorer and pressing rebuild. This might narrow down the problem.

I'm not familiar with the Express edition of VS so things might be slightly different.

I'm a total noob here with xbmc so I'm probably not going to be very helpfull and might be giving bad advice!
find quote
Jeroen Offline
Skilled Skinner
Posts: 1,882
Joined: Feb 2008
Reputation: 4
Location: The Netherlands
Post: #24
my4keys82 Wrote:guilib is a seperate project that's included in the solution and should build when xbmc starts building. You could try just building this project by right clicking on the guilib project in the solution explorer and pressing rebuild. This might narrow down the problem.

I'm not familiar with the Express edition of VS so things might be slightly different.

I'm a total noob here with xbmc so I'm probably not going to be very helpfull and might be giving bad advice!

I tried that and ran into another obstacle:
Code:
1>Generating Code...
1>Creating library...
1>LINK : fatal error LNK1181: cannot open input file 'DSound.lib'
1>Build log was saved at "file://c:\Documents and Settings\Jeroen.STELLAR\Desktop\XBMC BUILDING\guilib\Debug (SDL)\BuildLog.htm"
1>guilib - 1 error(s), 570 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

I checked the installation of the DirectX SDK and noticed that DSound.lib resides in
C:\Program Files\Microsoft DirectX SDK (December 2006)\Lib\x86
while the wiki did not mention an x86 subdirectory. Pretty logical, but being able to narrow it down is needed to find the problem.
And that's what your advice did, it compiled with no errors, so thank you Big Grin

Now see if it works Smile
edit: it does, excellent Smile
(This post was last modified: 2008-06-15 12:42 by Jeroen.)
find quote
chadoe Offline
Team-XBMC Developer
Posts: 621
Joined: Nov 2003
Reputation: 0
Location: Home
Post: #25
Jeroen Wrote:I checked the installation of the DirectX SDK and noticed that DSound.lib resides in
C:\Program Files\Microsoft DirectX SDK (December 2006)\Lib\x86
while the wiki did not mention an x86 subdirectory.
That's because you got December 2006 while the wiki are instructions (and link) for Summer 2004, the 2 sdk's use different directories. Glad you got it going Wink

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
(This post was last modified: 2008-06-15 21:01 by chadoe.)
find quote
Jeroen Offline
Skilled Skinner
Posts: 1,882
Joined: Feb 2008
Reputation: 4
Location: The Netherlands
Post: #26
I just checked because I could have sworn I read 2004 or later, but now I see that was for the skinning tool :o Reading can be difficult sometimes Wink

My build's working pretty good, apart from plugins not working and xbmc not going fullscreen even though I set it to fullscreen in the screen settings.
I did a debug and a release build, both the same problems. Are there any additional things I need to do to get plugins working ?
find quote
Jeroen Offline
Skilled Skinner
Posts: 1,882
Joined: Feb 2008
Reputation: 4
Location: The Netherlands
Post: #27
I need some help again Frown

Since the build I compiled turned out not that great I tried to do it again. Unfortunately I'm getting a bunch of fatal errors preventing me from succeeding.

All but XBMC_PC build successfully, it gives me 4 errors:

Code:
C:\Program Files\development\Microsoft Visual Studio 9.0\VC\include\stdio.h(483) : see declaration of '_vsnwprintf'
..\..\xbmc\lib\libGoAhead\XBMChttp.cpp(40) : fatal error C1083: Cannot open include file: 'xbox/XKHDD.h': No such file or directory
XBMCConfiguration.cpp
Code:
C:\Program Files\development\Microsoft Visual Studio 9.0\VC\include\stdio.h(483) : see declaration of '_vsnwprintf'
..\..\xbmc\xbox\IoSupport.cpp(37) : fatal error C1083: Cannot open include file: 'ntddcdrm.h': No such file or directory
Code:
C:\Program Files\development\Microsoft Visual Studio 9.0\VC\include\stdio.h(483) : see declaration of '_vsnwprintf'
..\..\xbmc\GUIWindowBuddies.cpp(29) : fatal error C1083: Cannot open include file: 'xbox/xbeheader.h': No such file or directory
GUIViewStateScripts.cpp
Code:
C:\Program Files\development\Microsoft Visual Studio 9.0\VC\include\stdio.h(358) : see declaration of '_snprintf'
XBTimeZone.cpp
c1xx : fatal error C1083: Cannot open source file: '..\..\xbmc\XBTimeZone.cpp': No such file or directory
At least 2 of them seem to be xbox related. Should these even be required? I have the build type set to Release SDL Win32
I updated from SVN, cleaned and rebuild several times already. I have not changed a thing in the project settings. Anybody able to give me a pointer as to what I am doing wrong?
find quote
WiSo Offline
Team-XBMC Developer
Posts: 2,481
Joined: Oct 2003
Reputation: 0
Location: Germany
Post: #28
There's at the moment some clean work ongoing to get rid of the xbox specific code. Unfortunately it may break the ports and will not be immediately fixed.
You can try to remove the cpp file from project (because it's deleted) and to uncomment the includes. Afterwards press thumbs that nothing out of the files was needed Wink

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
WiSo Offline
Team-XBMC Developer
Posts: 2,481
Joined: Oct 2003
Reputation: 0
Location: Germany
Post: #29
fixed in svn. Update and you should be able to build.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
Jeroen Offline
Skilled Skinner
Posts: 1,882
Joined: Feb 2008
Reputation: 4
Location: The Netherlands
Post: #30
Ah, that explains a lot Big Grin
I'm glad it wasn't because of me losing my mind
Thanks a bunch, going to try again Smile
(This post was last modified: 2008-06-19 19:34 by Jeroen.)
find quote
Post Reply