Kodi Community Forum
How to build parts of xbmc as command line app (either on Windows or Linux) - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+--- Thread: How to build parts of xbmc as command line app (either on Windows or Linux) (/showthread.php?tid=79207)



How to build parts of xbmc as command line app (either on Windows or Linux) - vinaykagarwal - 2010-08-18

Hello,

I am trying to build DVDInputStream and some derived classes (in xbmc/cores/dvdplayer/DVDInputStream) as a standalone console application either on Windows or Linux. Normally something like this is pretty trivial but due to large number of dependencies, I have not been successful at it after 3 days of effort.
1. Windows build has "WinMain" and I am not sure how do I modify it to use main().
2. On linux, there are a large number of Makefiles to sort through.
3. Trying to pull out selected files and trying to build causes
PHP Code:
LINK fatal error LNK1561entry point must be defined 
even though main() is clearly defined.

Any suggestions? Thanks in advance.

Regards,
Vinay Agarwal