Problem compiling XBMC for Windows
#1
I'm attempting to compile XBMC for Windows and I'm getting the following error:

error C2512: 'CFileItem' : no appropriate default constructor available

I actually get a number of errors but I believe they all stem from the above error.

I'm using Visual Studio 2008 and I'm on Vista.

I did a get of the source, installed the DirectX SDK and add the include and library directx paths to my solution.

This is happening during the compile of the XBMC project, the guilib, libPlatinum and UnrarXLib projects all compile with no errors.

Am I missing something obvious?
Reply
#2
We'd need more information - why not post your build log on pastebin or similar?
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.


Image
Reply
#3
Posted

http://pastebin.com/m46a6a59e

The problems start with GUIInfoManager.cpp
Reply
#4
Try adding a #include "FileItem.h" somewhere up the top there. Looks like an include order problem.

EDIT: Hmm, nope - FileItem.h is included in PlayList.h which is included in GUIInfoManager.cpp

The default constructor is clearly present in FileItem.h/cpp.

Which branch do you have checked out?
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.


Image
Reply
#5
I'm not sure which branch to be honest. I used the instructions from

HOW-TO compile XBMC for Windows from source code in the XBMC wiki.

I did an SVN get using:

https://xbmc.svn.sourceforge.net/svnroot...xport/XBMC
Reply
#6
What solution file are you using ?
Reply
#7
I'm using:

XBMC for Windows.sln

in the project\VS2008Express directory
Reply
#8
The only thing I noticed is that we call CFileItem without the brackets:
m_currentFile = new CFileItem;

IIRC I have this seen before but in this case it works fine for me.
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
#9
I noticed that to. I put the brackets () in but had the same result.
Reply
#10
Well this seems to have worked itself out. So thanks to whoever fixed it.

However it would be kind of nice to know what the problem is, if anyone does know. As others have commented, it looked it should have been fine the way it was.
Reply
#11
and fyi

m_currentFile = new CFileItem;
and
m_currentFile = new CFileItem();

are exactly the same
Reply
#12
Thanks and good to know Wink
but IIRC that causes once problems on Windows. Maybe I mix it with another problem.
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
Problem compiling XBMC for Windows0