[mythtv] Ticket #4270: MythTV on Windows (with MinGW)

buzz davidbuzz at gmail.com
Fri Dec 28 05:52:24 UTC 2007


Andrei,

I've added your (offline) suggested change to the mysql.h to my version, and
the wiki, and am currently stuck on the following problem:

C:\mythtv\mythtv\run>mythfrontend.exe
2007-12-28 15:33:38.968 Using runtime prefix = C:/msys/1.0
2007-12-28 15:33:39.000 QMulticastSocket: setsockopt - IP_ADD_MEMBERSHIP
Error
2007-12-28 15:33:39.000 QMulticastSocket: setsockopt - IP_ADD_MEMBERSHIP
Error
2007-12-28 15:33:39.015 Empty LocalHostName.
2007-12-28 15:33:39.015 Using localhost value of SILVER
QSqlDatabase: QMYSQL3 driver not loaded
QSqlDatabase: available drivers:
2007-12-28 15:33:39.015 New DB connection, total: 1
2007-12-28 15:33:39.015 Unable to connect to database!
2007-12-28 15:33:39.015 No error type from QSqlError?  Strange...
QSqlQuery::exec: database not open
QSqlQuery::exec: database not open
2007-12-28 15:33:39.093 DB Error (KickDatabase):
Query was:
SELECT NULL;
No error type from QSqlError?  Strange...
2007-12-28 15:33:39.109 QMulticastSocket: setsockopt - IP_ADD_MEMBERSHIP
Error

I'm rebuilding the entire of QT to see if the mysql.h patch fixes the lack
of "available drivers".  :-(

any other ideas that might be quicker? (QT's a hog to build)

Buzz




On Dec 28, 2007 3:07 PM, Andrei Tanas <andrei at tanas.ca> wrote:

>  Buzz,
>
>
>
> In your mysql.h file, I think you should change this:
>
> #if (defined(_WIN32) || defined(_WIN64)) && !defined(__WIN__)
>
> To this:
>
> #if (defined(_WIN32) || defined(_WIN64) || defined(__MINGW32__)) && !
> defined(__WIN__)
>
> The important thing is that
>
> #define STDCALL __stdcall
>
> 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.
>
>
>
> I see you already have compiled exe? Congratulations! It's good to see
> that there's progress being made.
>
>
>
> Regards,
>
> Andrei.
>
>
>
> *From:* buzz [mailto:davidbuzz at gmail.com]
> *Sent:* Thursday, December 27, 2007 11:29 PM
> *To:* Andrei Tanas
>
> *Subject:* Re: [mythtv] Ticket #4270: MythTV on Windows (with MinGW)
>
>
>
> Andrei,
>
> Hi, mysql.h is attached!  :-)    Don't worry about editing the page at the
> same time as me/others, just try to keep an eye on the 'history' tab, and
> try not to edit the same section/s at the same time.  :-)
>
>
>
> Buzz.
>
> On Dec 28, 2007 2:18 PM, Andrei Tanas <andrei at tanas.ca> wrote:
>
> Hi,
>
>
>
> Seems that we are working on the wiki page at the same time :)
>
> Can you send me your mysql.h, I'd like to take a look at it?
>
>
>
> Thanks,
>
> Andrei.
>
>
>
> *From:* mythtv-dev-bounces at mythtv.org [mailto:mythtv-dev-bounces at mythtv.org]
> *On Behalf Of *buzz
> *Sent:* Wednesday, December 26, 2007 2:18 AM
> *To:* mythtv-dev at mythtv.org
>
>
> *Subject:* Re: [mythtv] Ticket #4270: MythTV on Windows (with MinGW)
>
>
>
> FYI to others -  the missing 'pr' command under Win32 requires the
> optional/extra mingw/msys 'coreutils' package to be installed.  I did this
> but forgot to document it, clearly Andrei did too.
>
>
>
> It's in the wiki now (step 3c).
>
>
>
> I've also added a new section to the bottom of the page  "problems others
> have encountered" with 5 different issues others/I have encountered so far.
>
>
>
> Could all Win32 developer/wantabee's please add errors (and hopefully
> resolutions) there as you find them? thanks.
>
>
>
>
> http://www.mythtv.org/wiki/index.php/Windows_Port#Problems_others_have_encountered
>
>
>
> Buzz.
>
> ps. merry christmas to all for yesterday!
>
>
>
>
>
> ---------- Forwarded message ----------
> From: "Jay Modi" <jaymode at gmail.com>
> To: "Development of mythtv" < mythtv-dev at mythtv.org>
> Date: Mon, 24 Dec 2007 14:47:56 -0500
> Subject: Re: [mythtv] Ticket #4270: MythTV on Windows (with MinGW)
> 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.
> 1. Download MINGW and select full install. Install DIR = D:\MinGW
> 2. Download MSYS and install to D:\msys\1.0\
> 3. Download updated bash and zlib. Extract into D:\msys\1.0
> 4. Install tortoise svn
> 5. Checkout mythtv from svn
> 6. Download freetype and compile with ./configure --prefix=/usr && make &&
> make install
> 7. Go to the mythtv directory and run
>
>  ./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
>
> When I first run this I get an error like "pr: command not found", 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:
>
> ERROR! You must have FreeType installed to compile MythTV.
> If you think configure made a mistake, make sure you are using the latest
> version from SVN.  If the latest version fails, report the problem to the
> mythtv-dev at mythtv.org mailing list or IRC #mythtv on irc.freenode.net
> Include the log file "config.err" produced by configure as this will help
> solving the problem
>
> 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.
>
> I have tried going through all of the steps in the Wiki but always come
> out with this er
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-dev/attachments/20071228/fef528c0/attachment.htm 


More information about the mythtv-dev mailing list