<div>Andrei,</div>
<div>&nbsp;</div>
<div>I&#39;ve added your (offline) suggested change to the mysql.h to my version, and the wiki, and am currently stuck on the following problem:</div>
<div>&nbsp;</div>
<div>C:\mythtv\mythtv\run&gt;mythfrontend.exe<br>2007-12-28 15:33:38.968 Using runtime prefix = C:/msys/1.0<br>2007-12-28 15:33:39.000 QMulticastSocket: setsockopt - IP_ADD_MEMBERSHIP Error<br>2007-12-28 15:33:39.000 QMulticastSocket: setsockopt - IP_ADD_MEMBERSHIP Error
<br>2007-12-28 15:33:39.015 Empty LocalHostName.<br>2007-12-28 15:33:39.015 Using localhost value of SILVER<br>QSqlDatabase: QMYSQL3 driver not loaded<br>QSqlDatabase: available drivers:<br>2007-12-28 15:33:39.015 New DB connection, total: 1
<br>2007-12-28 15:33:39.015 Unable to connect to database!<br>2007-12-28 15:33:39.015 No error type from QSqlError?&nbsp; Strange...<br>QSqlQuery::exec: database not open<br>QSqlQuery::exec: database not open<br>2007-12-28 15:33:
39.093 DB Error (KickDatabase):<br>Query was:<br>SELECT NULL;<br>No error type from QSqlError?&nbsp; Strange...<br>2007-12-28 15:33:39.109 QMulticastSocket: setsockopt - IP_ADD_MEMBERSHIP Error</div>
<div>&nbsp;</div>
<div>I&#39;m rebuilding the entire of QT to see if the mysql.h patch fixes the lack of &quot;available drivers&quot;.&nbsp; :-(</div>
<div>&nbsp;</div>
<div>any other ideas that might be quicker? (QT&#39;s a hog to build)</div>
<p>Buzz</p>
<p><br><br>&nbsp;</p>
<div class="gmail_quote">On Dec 28, 2007 3:07 PM, Andrei Tanas &lt;<a href="mailto:andrei@tanas.ca">andrei@tanas.ca</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div lang="EN-US" vlink="purple" link="blue">
<div>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d">Buzz,</span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d">&nbsp;</span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d">In your mysql.h file, I think you should change this:</span></p>
<p><span style="FONT-SIZE: 10pt; COLOR: blue">#if</span><span style="FONT-SIZE: 10pt"> (<span style="COLOR: blue">defined</span>(_WIN32) || <span style="COLOR: blue">defined</span>(_WIN64)) &amp;&amp; !<span style="COLOR: blue">
defined</span>(__WIN__)</span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d">To this:</span></p>
<p><span style="FONT-SIZE: 10pt; COLOR: blue">#if</span><span style="FONT-SIZE: 10pt"> (<span style="COLOR: blue">defined</span>(_WIN32) || <span style="COLOR: blue">defined</span>(_WIN64) || <span style="COLOR: blue">defined
</span>(__MINGW32__)) &amp;&amp; !<span style="COLOR: blue">defined</span>(__WIN__)</span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d">The important thing is that </span></p>
<p><span style="FONT-SIZE: 10pt; COLOR: blue">#define</span><span style="FONT-SIZE: 10pt"> STDCALL <span style="COLOR: blue">__stdcall</span></span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d">Should be there, otherwise everything seems to compile properly, but doesn't work (stdcall functions are called as cdecl, stack pointer does not get restored, you get almost immediate segfaults after a couple of mysql function calls, but not immediately in the mysql call itself). I spent hours trying to figure this out. I think this was also a problem of earlier Cygwin build attempts.
</span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d">&nbsp;</span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d">I see you already have compiled exe? Congratulations! It's good to see that there's progress being made.</span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d">&nbsp;</span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d">Regards,</span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d">Andrei.</span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d">&nbsp;</span></p>
<div style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: medium none; PADDING-LEFT: 4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: blue 1.5pt solid; PADDING-TOP: 0in; BORDER-BOTTOM: medium none">
<div>
<div style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<p><b><span style="FONT-SIZE: 10pt">From:</span></b><span style="FONT-SIZE: 10pt"> buzz [mailto:<a href="mailto:davidbuzz@gmail.com" target="_blank">davidbuzz@gmail.com</a>] <br><b>Sent:</b> Thursday, December 27, 2007 11:29 PM
<br><b>To:</b> Andrei Tanas 
<div>
<div></div>
<div class="Wj3C7c"><br><b>Subject:</b> Re: [mythtv] Ticket #4270: MythTV on Windows (with MinGW)</div></div></span>
<p></p></p></div></div>
<div>
<div></div>
<div class="Wj3C7c">
<p>&nbsp;</p>
<div>
<p>Andrei,</p></div>
<div>
<p>Hi, mysql.h is attached! &nbsp;:-)&nbsp;&nbsp;&nbsp; Don&#39;t worry about editing the page at the same time as me/others, just try to keep an eye on the &#39;history&#39; tab, and try not to edit the same section/s at the same time.&nbsp; :-) 
</p></div>
<div>
<p>&nbsp;</p></div>
<div>
<p style="MARGIN-BOTTOM: 12pt">Buzz.</p></div>
<div>
<p>On Dec 28, 2007 2:18 PM, Andrei Tanas &lt;<a href="mailto:andrei@tanas.ca" target="_blank">andrei@tanas.ca</a>&gt; wrote:</p>
<div>
<div>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d">Hi,</span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d">&nbsp;</span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d">Seems that we are working on the wiki page at the same time :)</span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d">Can you send me your mysql.h, I&#39;d like to take a look at it?</span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d">&nbsp;</span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d">Thanks,</span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d">Andrei.</span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d">&nbsp;</span></p>
<div style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: medium none; PADDING-LEFT: 4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: blue 1.5pt solid; PADDING-TOP: 0in; BORDER-BOTTOM: medium none">
<div>
<div style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<p><b><span style="FONT-SIZE: 10pt">From:</span></b><span style="FONT-SIZE: 10pt"> <a href="mailto:mythtv-dev-bounces@mythtv.org" target="_blank">mythtv-dev-bounces@mythtv.org</a> [mailto:<a href="mailto:mythtv-dev-bounces@mythtv.org" target="_blank">
 mythtv-dev-bounces@mythtv.org</a>] <b>On Behalf Of </b>buzz<br><b>Sent:</b> Wednesday, December 26, 2007 2:18 AM<br><b>To:</b> <a href="mailto:mythtv-dev@mythtv.org" target="_blank">mythtv-dev@mythtv.org</a> </span></p>
<div>
<div>
<p><span style="FONT-SIZE: 10pt"><br><b>Subject:</b> Re: [mythtv] Ticket #4270: MythTV on Windows (with MinGW)</span></p></div></div></div></div>
<div>
<div>
<p>&nbsp;</p>
<div>
<p>FYI to others -&nbsp; the missing &#39;pr&#39; command under Win32&nbsp;requires the optional/extra mingw/msys &#39;coreutils&#39; package to be installed.&nbsp; I did this but forgot to document it, clearly Andrei did too.&nbsp;</p></div>

<div>
<p>&nbsp;</p></div>
<div>
<p>It&#39;s in the wiki now (step 3c).</p></div>
<div>
<p>&nbsp;</p></div>
<div>
<p>I&#39;ve also added a new section to the bottom of the page&nbsp; &quot;problems others have encountered&quot; with 5 different issues others/I have encountered so far.&nbsp;</p></div>
<div>
<p>&nbsp;</p></div>
<div>
<p>Could&nbsp;all Win32 developer/wantabee&#39;s please add errors (and hopefully resolutions) there as you find them? thanks.</p></div>
<div>
<p>&nbsp;</p></div>
<div>
<p><a href="http://www.mythtv.org/wiki/index.php/Windows_Port#Problems_others_have_encountered" target="_blank">http://www.mythtv.org/wiki/index.php/Windows_Port#Problems_others_have_encountered</a></p></div>
<div>
<p>&nbsp;</p></div>
<div>
<p>Buzz.</p></div>
<div>
<p>ps. merry christmas to all for yesterday!</p></div>
<div>
<p>&nbsp;</p></div>
<div>
<p>&nbsp;</p></div>
<div>
<p>---------- Forwarded message ----------<br>From: &quot;Jay Modi&quot; &lt;<a href="mailto:jaymode@gmail.com" target="_blank">jaymode@gmail.com</a>&gt;<br>To: &quot;Development of mythtv&quot; &lt;<a href="mailto:mythtv-dev@mythtv.org" target="_blank">
 mythtv-dev@mythtv.org</a>&gt;<br>Date: Mon, 24 Dec 2007 14:47:56 -0500<br>Subject: Re: [mythtv] Ticket #4270: MythTV on Windows (with MinGW)<br>I can not get the instructions from the HOWTO on the wiki to work for me. I have simplified what I am doing to try to get to the root cause of the issue. 
<br>1. Download MINGW and select full install. Install DIR = D:\MinGW <br>2. Download MSYS and install to D:\msys\1.0\<br>3. Download updated bash and zlib. Extract into D:\msys\1.0<br>4. Install tortoise svn<br>5. Checkout mythtv from svn 
<br>6. Download freetype and compile with ./configure --prefix=/usr &amp;&amp; make &amp;&amp; make install <br>7. Go to the mythtv directory and run</p></div>
<p>&nbsp;./configure --prefix=/usr --disable-dbox2 --disable-hdhomerun \<br>&nbsp;--disable-dvb --disable-ivtv --disable-iptv --disable-joystick-menu \<br>&nbsp;--disable-xvmc-vld --disable-x11 --disable-xvmc --enable-directx \ <br>&nbsp;--enable-memalign-hack --cpu=k8 --compile-type=debug 
</p>
<p>When I first run this I get an error like &quot;pr: command not found&quot;, so I download coreutils from the msys page and get pr.exe from there and place it in D:\msys\1.0\bin. I rerun the same command and then I get this error: 
</p>
<p>ERROR! You must have FreeType installed to compile MythTV.<br>If you think configure made a mistake, make sure you are using the latest<br>version from SVN.&nbsp; If the latest version fails, report the problem to the<br><a href="mailto:mythtv-dev@mythtv.org" target="_blank">
mythtv-dev@mythtv.org</a> mailing list or IRC #mythtv on <a href="http://irc.freenode.net/" target="_blank">irc.freenode.net</a><br>Include the log file &quot;config.err&quot; produced by configure as this will help <br>solving the problem 
</p>
<p>My libs are in D:\msys\1.0\bin and the include files are in D:\msys\1.0\include. I have tried moving them to the D:\MinGW directory but that has not worked.</p>
<p>I have tried going through all of the steps in the Wiki but always come out with this er</p></div></div></div></div></div></div>
<p>&nbsp;</p></div></div></div></div></div></blockquote></div><br>