Windows build problems with current svn.

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
kraqh3d Offline
Retired Developer
Posts: 7,183
Joined: Dec 2003
Reputation: 4
Location: New York City, USA
Post: #1
Has anyone been able to build a working R29939 binary for Windows?

I was able to build it (eventually, after seeing Wiso's instructions about the libraries being built in the main project) but it doesn't seem to work. It starts but doesn't crash. The last entries in the log are cpluff loading the new default addons. Then nothing. No window. Nothing. I'm forced to kill the process, leaving me with a zero-byte crashlog. I have some changes that are not upstream but I doubt they are related. (Tomorrow, I'll force complete sync to svn as a test though.)

And fyi, there's an issue building lame_enc.dll. The configMS.h file needs to be renamed to config.h or it wont build, which is surprising as I would've expected something like this:

Code:
#ifdef _WIN32
#include <configMS.h>
#else
#include <config.h>
#endif

** edit **
I backed out all my changes, did a full sync, and even used the BuildSetup.bat to build which I almost never do. I've poured over the svn logs and can't figure out what I'm missing. I'm stumped and I bet it's something rather silly and trivial.

Should building the full project produce system/libexpat.dll in addition to system/players/dvdplayer/libexpat-1.dll? I only get libexpat-1.dll. I've tried putting the actual libexpat.dll binary in system as well as copying and renaming libexpat-1.dll. Both produce the same problem. And Xbmc just crashes immediately if system/libexpat.dll is missing entirely.

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: 2010-05-09 22:19 by kraqh3d.)
find quote
marirs Offline
Member
Posts: 64
Joined: Dec 2008
Reputation: 0
Post: #2
I had to replace %CUR_PATH% with "..\.." and %XBMC_PATH% with "..\..\..\.." in fontconfig_d.bat and libexpat_d.bat to get the download scripts to work on my system.
find quote
kraqh3d Offline
Retired Developer
Posts: 7,183
Joined: Dec 2003
Reputation: 4
Location: New York City, USA
Post: #3
Hmm... I didn't have that problem. The getDeps.bat file worked correctly. It just wgets and extracts fontconfig and expat into include and lib folders. VS 2008 Express was able to compile without issue (after fixing config.h for LAME that is). It certainly would barf if it couldn't find the fontconfig and expat header files. It seems like it's building the complete solution, but XBMC.exe just hangs right after cpluff loads the default addons (some scrapers and the Confluence and PM3HD skins.)

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
Nuka1195 Offline
Skilled Python Coder
Posts: 3,914
Joined: Dec 2004
Reputation: 17
Post: #4
PHP Code:
Indexfontconfig_d.bat
===================================================================
--- 
fontconfig_d.bat (revision 29986)
+++ 
fontconfig_d.bat (working copy)
@@ -
4,+4,@@
 
md tmp
 cd tmp
 
-echo Downloading fontconfig freetype6.dll ...
+echo 
Downloading fontconfig ^& freetype6.dll ...
 echo ------------------------------------------
 %
WGET"http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/fontconfig-dev_2.8.0-2_win32.zip"
 
%WGET"http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/fontconfig_2.8.0-2_win32.zip" 

maybe his batch is crashing before the wget? it works for me, but does echo an error message.

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote
Nuka1195 Offline
Skilled Python Coder
Posts: 3,914
Joined: Dec 2004
Reputation: 17
Post: #5
Debug Directx builds and runs fine for me on current svn, no changes necessary to build.

Release Directx does not build.

same error as you before your changes?

PHP Code:
Error 194 error BK1506 cannot open file '..\..\..\project\obj\ReleaseNASM\libmp3lame_dll\encoder.sbr'No such file or directory BSCMAKE

Error 189 error PRJ0019
A tool returned an error code from "Assembling fftsse..." libmp3lame_dll 

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote
kraqh3d Offline
Retired Developer
Posts: 7,183
Joined: Dec 2003
Reputation: 4
Location: New York City, USA
Post: #6
Nuka,

I've been building release. I don't have any problems with expat or fontconfig. They are definitely being fetched as I can build the entire solution without errors, but the executable just hangs on me. I'll try a debug build this evening for comparison.

To build lame, you need to add a executable path to VS to nasmw.exe. Wiso dropped it in trunk/tools/Win32BuildTools/nasmw.exe. After, you may get the errors about config.h missing.

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
Nuka1195 Offline
Skilled Python Coder
Posts: 3,914
Joined: Dec 2004
Reputation: 17
Post: #7
thanks, i give release a try then.

i know you didn't have any problems with the builddep.bat. thought it may be an issue for the other person. but looking again at his fix, doesn't sound like it. though the & still should be escaped.

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote
kraqh3d Offline
Retired Developer
Posts: 7,183
Joined: Dec 2003
Reputation: 4
Location: New York City, USA
Post: #8
So, you produced a fully working debug release binary (sans lame)? The last working version I had was after the addons merge but before the dll's were pulled from trunk and compiled in the solution. Since the dll's rarely change, I may try pulling them from an old rev and dropping them in one at a time until i can get a working release binary.

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: 2010-05-10 22:35 by kraqh3d.)
find quote
Nuka1195 Offline
Skilled Python Coder
Posts: 3,914
Joined: Dec 2004
Reputation: 17
Post: #9
ok here's what happens.

i first built debug directx. which built fine with no changes.

i then made the path change and release directx built fine.

what happened was, debug directx built the config.h file, so that's why release built fine after debug build.

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote
Nuka1195 Offline
Skilled Python Coder
Posts: 3,914
Joined: Dec 2004
Reputation: 17
Post: #10
release runs fine too. mp3's play. i did however run debug first which created all the databases and such.

this is running with the -p command line option.

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote
Post Reply