XBMC for Windows build errors
#1
Question 
I'm having an issue compiling XBMC for windows.

System 1: Vista SP1, Visual C++ Express 2008
System 2: XP Pro SP3, Visual C++ Express 2008

I followed the instructions, step for step from the http://www.xbmc.org/wiki/?title=HOW-TO_c...ource_code page.

I have not set up a development environment for a long time, so was careful to follow instructions. When I build it appears that some areas build, but 2 fail, and there are a lot of errors. I attempted to build each individually (in different order) still wont compile. So i set things up on a fresh install of XP on a different machine to see if it helped. Still the same errors.

Here is the full build log:

http://pastebin.com/m48f510a1

In case there were issues at the time - i tried to build an earlier, stable version - this didn't work either same errors.

Anyone that can shine a light would really be helping, I'm very keen to start contributing, but i've fallen at the first stumbling block Blush

Many Thanks, DP
Reply
#2
you're missing the sdl headers
Reply
#3
Quote:Build started: Project: XBMC, Configuration: Release (DirectX)|Win32

You need to set the build to SDL.
Reply
#4
Release (SDL) build seemed to build, but with lots of warnings:
XBMC - 0 error(s), 218 warning(s)

However, when I try to execute xbmc.exe I get a runtime error:

The application has requested the Runtime to terminate in an unusual way. Am I missing the point somewhat?

I just cleaned and rebuilt the SDL so i could pastebin the log, and now i get an error:

http://pastebin.com/m3cf4ab29
Reply
#5
You need to set the XBMC_HOME environment variable as described on the wiki page or move xbmc.exe to the linuxport directory.
Reply
#6
ok, its set - i didn't realise there were different settings for the different builds.

Anyway, i built and 1 failed: http://pastebin.com/m3979f8bc

I then built again, with no changes at all, and it succeeded (don't know why): http://pastebin.com/m3fa653ad

However, when I clicked run, i get the error message "This application has failed to start because MSVCR71.dll was not found." Any idea's?
Reply
#7
ok, i found another post that referenced the missing dlls: http://forum.xbmc.org/showthread.php?tid...SVCR71.dll

So i decided to just copy them from an installed version of XBMC into the Release (SDL) folder, and this has sort of got it working when I launch it from inside Visual C++ Studio edition. Is this advisable?

However, when I attempt to launch it from the executable, it doesn't work - I get a runtime error. Also, the builds file structure doesn't resemble the version I downloaded and installed for windows - I was expecting it to basically be the same once compiled. Is this expected? and if so are there instructions on how the release versions are compiled.

As you can tell, setting up the development environment is new to me, I haven't covered it in my C++ reading. I very much appreciate the patience you are showing helping me to begin to understand this better.
Reply
#8
Have you setup the XBMC_HOME variable ?
The normal XBMC log IS NOT a debug log, to enable debug logging you must toggle it on under XBMC Settings - System or in advancedsettings.xml. Use XBMC Debug Log Addon to retrieve it.
Reply
#9
did you simply try to replace the xbmc.exe of your release directory into your xbmc folder. If xbmc is working from this folder that means your visual c++ environnement config is not set correctly
Reply
#10
Atm only the SDL targets do work so only use them. If you compile a release build just copy the created xbmc.exe in you xbmc installation directory -> done.
If you want to run it with the debugger attached you have to set the XBMC_HOME variable as the debugger won't run the executable from the installation directory and you tell XBMC to use the svn directory structure.
Since XBMC isn't run from the installation directory you'll need to copy all dlls from the main installation directory to the debug directory where the compiled xbmc.exe is located.
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.
Reply

Logout Mark Read Team Forum Stats Members Help
XBMC for Windows build errors0