Difference between revisions of "MythTV on Windows"

From MythTV Official Wiki
Jump to: navigation, search
(Caveats)
(Summary)
Line 1: Line 1:
 
==Summary==
 
==Summary==
A Windows port of MythTV is in-the-works, using MinGW as the build platform, and MS Direct3D as the display layer.  THe frontend compiles, and most basic functionality works, but it crashes regularly.  The patches are currently working their way into SVN, so check the -dev list, and Trac for the current state. Once the frontend is reliable, we can start to see about getting the changes necessary to get MythBackend to run.
+
A Windows port of MythTV is in-the-works, using MinGW as the build platform, and MS Direct3D as the display layer.  The frontend compiles, and most basic functionality works, but it crashes regularly.  The patches are currently working their way into SVN, so check the -dev list, and Trac for the current state. Once the frontend is reliable, we can start to see about getting the changes necessary to get MythBackend to run.
  
 
==Caveats==
 
==Caveats==

Revision as of 15:21, 12 December 2007

Summary

A Windows port of MythTV is in-the-works, using MinGW as the build platform, and MS Direct3D as the display layer. The frontend compiles, and most basic functionality works, but it crashes regularly. The patches are currently working their way into SVN, so check the -dev list, and Trac for the current state. Once the frontend is reliable, we can start to see about getting the changes necessary to get MythBackend to run.

Caveats

Cygwin was previously a limiting factor as it introduced a dependency on cygwin1.dll. We have moved to MinGW, which compiles all the necessary functions statically, rather than linked in through a separate dll.

WARNING THIS DOES NOT WORK YET!. IT IS A WORK IN PROGRESS! IF YOU WISH TO ASSIST THE DEVELOPMENT EFFORT, this might help get you started.!

Please start by reading this link: http://mythtv.org/pipermail/mythtv-dev/2007-December/058662.html

the Trac reference is here: http://svn.mythtv.org/trac/ticket/4270


There are number of dependencies like freetype that are also needed to build MythTV on MinGW, and it would be good to at least have a list of these here: - freetype - can apparently be built from the PORT provided by the MinGW people.

possible others: libvorbis, pthreadGC2, SDL, libvisual, libmySQL, qt-mt3 ??

Many of these have been made available as dll's in the first binary/alpha release by Andrei Tanas at : http://tanas.ca/mythtv.zip but we do not have a step-by-step on how to integrate these dll's into the build process.

HOWTO - A WORK IN PROGRESS

1 - Install MinGW - download the "Automated MinGW Installer". When installing, be sure to install g++ in addition to the default gcc. download: http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=240780 more info: http://www.mingw.org/download.shtml


2 - Install "MSYS base system" current release "MSYS-1.0.10.exe" download: http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=24963 more info: http://www.mingw.org/ ...when instructed by msys (in a DOS window) enter the path where you installed MinGW.


3 - download and extract MSYS additional component/s: into your MSYS instalation : bash - bash-3.1-MSYS-1.0.11-1.tar.bz2 (should end up with a bash.exe in c:/msys/1.0/bin/ once extracted properly)


4 - install tortoiseSVN for GUI access to subversion. http://tortoisesvn.tigris.org/


5 - get the latest copy of the mythtv source code :

5a - make a folder c:\mythtv\

5b - right-click on the empty folder and choose "SVN Checkout..."

5c - enter the string "http://svn.mythtv.org/svn/trunk/" (without the quotes) into the tortoiseSVN window, and click OK.

5c - wait for very large download to finish ( couple of hundred mb?)


6 - enter the msys environment by running c:\msys\1.0\msys.bat Looks like unix doesn't it!. HINT: type 'mount' to see how msys lays out it's folders.

7 - try to compile mythv and if successful the plugins too!

cd mythtv

./configure --prefix=/usr --disable-dbox2 --disable-hdhomerun --disable-dvb --disable-ivtv --disable-iptv --disable-joystick-menu --disable-xvmc-vld --disable-x11 --disable-xvmc --enable-directx --enable-memalign-hack --cpu=k8 --compile-type=debug

make

make install

cd ..


cd mythplugins

./configure --prefix=/usr --disable-mythgallery --disable-mythmusic --disable-mytharchive --disable-mythbrowser --disable-mythflix --disable-mythgame --disable-mythnews --disable-mythphone --disable-mythzoneminder --disable-mythweb --enable-aac --enable-libvisual --enable-fftw --compile-type=debug

make

make install

cd ..