[mythtv] Re: compiling mythtv frontend for cygwin

Mario L superm1 at gmail.com
Fri Oct 8 17:20:32 UTC 2004


Well not exactly, mingw gcc seems to do things alot differently then
the cygwin gcc does, and this makes for lots of troubles linking
libraries between the two.  So here is where the unfortunateness (if
thats even a word) stands:

Options:
1) Compile QT 3_3_branch with mingw (Compiles fine), link with SQL
from undefined source (Links fine)
      A) Can't link myth compiled with cygwin to QT with mingw, 
errors about how mingw causes a jump into the QT code
      B) Can't compile myth with mingw runtime within cygwin (-mno-cygwin),
             Compiles and Links (with changes up to my old patch):
libavcodec, libavfomat
              Doesn't finish compilation of libmyth, originally i was
getting errors about missing sys headers, but recently i have errors
in mythcontext.cpp about a undefined sleep function, which  i haven't
looked too much into yet.

2) Compile QT 3_3_branch with cygwin, can't compile - no support yet

3) Compile QT3_1_branch with cygwin (Compiles fine), link with SQL from tarball
       A) QT3_1 branch has link problems with current cygwin ld, and
causes apps to crash

4) Compile QT3_1 branch with mingw (Compiles fine), but no support to link SQL 

Of these options, 1B is the most promissing, and would run the
quickest, but is still turning out to be pain.  I have a QT binary up
if you want to give this a partial shot.  Just make sure you declare
your QMAKESPEC to be win32-g++ and your QTDIR to wherever you put this
binary.  The SQL file is a dynamic library and if you actually get
myth to compile will need to be copied along with the qt-mt file.

On Fri, 8 Oct 2004 12:46:34 -0400, Eric A. Litman <elitman at yahoo.com> wrote:
> Have you managed to make any more progress w/ mingw+QT/Win32?
> 
> 
> 
> 
> ----- Original Message -----
> From: "Mario L" <superm1 at gmail.com >
> To: "Buechler, Mark R" <mark_r_buechler at bausch.com >; "Development of mythtv"
> <mythtv-dev at mythtv.org >
> Sent: Tuesday, October 05, 2004 1:27 PM
> Subject: Re: [mythtv] Re: compiling mythtv frontend for cygwin
> 
> > Well Actually mysql is in there, but it is linked dynamically.  If you
> > look at the package i posted up, there is a libmysql.dll that is
> > referenced when a QT app is run.  I did have a bit of a hard time to
> > get everything in QT linked right, so actually QT is linked to a
> > static mysql library which references the dynamic mysql library I
> > provided.
> >
> >
> > On Tue, 5 Oct 2004 13:01:47 -0400, Buechler, Mark R
> > <mark_r_buechler at bausch.com > wrote:
> >> I'm compiling Win32-QT3 now with MinGW. Question - did you manage to get
> >> MySQL plugin compiled with it? I'd like to stay completely away from
> >> Cygwin
> >> if possible but I don't think that'll be possible with MySQL.
> >>
> >> - Mark.
> >>
> >> -----Original Message-----
> >> From: Mario L [mailto:superm1 at gmail.com ]
> >> Sent: Tuesday, October 05, 2004 1:47 AM
> >> To: Ian Caulfield; Development of mythtv
> >> Subject: Re: [mythtv] Re: compiling mythtv frontend for cygwin
> >>
> >> I managed to finally get a build of QT3.3 compiled.  I had to get it done
> >> with mingw to avoid all of the linking issues in cygwin, and then rebuild
> >> qmake for cygwin to allow myth to be built in cygwin.  For some reason
> >> libmyth is having a really hard time linking against it however, and
> >> starts
> >> referring to all of this x11 stuff for some reason.  I did check, and
> >> this
> >> build works with all of the standard qt stuff, ex designer, linguist, and
> >> all of the tutorials.  I posted a rar including all of the necessities to
> >> QT
> >> (libs, binaries, and
> >> includes) if you want to try to link libmyth against it and see the link
> >> errors for yourself.
> >>
> >> http://clue.eng.iastate.edu/~superm1/qt-3-win32-mingw.rar 
> >>
> >> Also, everything I used to build QT3 is at the root of that directory.
> >>  I built against the 3_3_branch of CVS, and had to make a couple of my
> >> own
> >> changes.  I used mingw provided with devcpp.
> >>
> >> I do have to say though, WOW there is a difference in speed between
> >> cygwin
> >> compiled QTWin32 ( for what worked at least) and QTWin32 compiled under
> >> mingw.  If designer wasn't so huge (or if I had more file space provided
> >> by
> >> school) then I would post so you could see the difference.  Let me know
> >> if
> >> any progress is made by anyone to get this link working
> >>
> >>
> >> Bausch & Lomb
> >> 150 Years of Perfecting Vision, Enhancing Life (TM)
> >>
> >> EMAIL DISCLAIMER
> >>
> >> Please Note: The information contained in this message may be privileged
> >> and
> >> confidential, protected from disclosure, and/or intended only for the use
> >> of
> >> the individual or entity named above. If the reader of this message is
> >> not
> >> the intended recipient, or an employee or agent responsible for
> >> delivering
> >> this message to the intended recipient, you are hereby notified that any
> >> disclosure, distribution, copying or other dissemination of this
> >> communication is strictly prohibited. If you received this communication
> >> in
> >> error, please immediately reply to the sender, delete the message and
> >> destroy all copies of it.
> >>
> >> Thank You
> >>
> >>
> >
> 
> 
> --------------------------------------------------------------------------------
> 
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at mythtv.org 
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev 
> 
>


More information about the mythtv-dev mailing list