[mythtv] [mythtv-commits] Ticket #5160: New Win32Packager - compiles and creates stand-alone setup.exe

Arnon Meshoulam arnonm at gmail.com
Tue Apr 8 09:58:52 UTC 2008


Thanks Buzz,

I am incorporating a couple of comments I got, and a few bugs fixes as well
as QT4 support. Next version will include QT3/4 support

Arnon


On 4/8/08, buzz <davidbuzz at gmail.com> wrote:
>
>
> Arnon
>
> Here's an extract for building QT4 in my
> as-yet-unreleased-always-in-progress win32-packager.pl:
>
> cut-n-paste the below into the win32-packager.pl code somewhere after
> building Qt3, and it'll build QT4 too.    (there is no integration of qt4
> into mythtv yet tho).    :-)
>
> I can't say for sure that it all works, because my QT4 build is still
> going, but it's looking good, and I thought it might save you some time!
>
> Buzz
>
> #----------------------------------------
> # building QT4
> #----------------------------------------
> [ archive => $sources.'qt-win-opensource-src-4.3.4.zip',  fetch => '
> ftp://ftp.trolltech.com/qt/source/qt-win-opensource-src-4.3.4.zip'],
> [ dir => $msys.'qt-win-opensource-src-4.3.4', extract =>
> [$sources.'qt-win-opensource-src-4.3.4.zip', $msys] ],
> [dir => $msys.'qt-win-opensource-src-4.3.4_examples', shell => 'mv
> '.$unixmsys.'qt-win-opensource-src-4.3.4/examples
> '.$unixmsys.'qt-win-opensource-src-4.3.4_examples',
>   comment => 'after extracting the qt sources, there is no need for us to
> build the examples, so we will just move the folder out of the way (we could
> just delete it but dont)! ' ] ,
> # write a batch script for the QT environment under DOS:
> [ file => $msys.'qt-win-opensource-src-4.3.4/qt_env.bat', write =>
> [$msys.'qt-win-opensource-src-4.3.4/qt_env.bat',
> 'rem a batch script for the QT environment under DOS:
> set QTDIR='.$dosmsys.'qt-win-opensource-src-4.3.4
> set MINGW='.$dosmingw.'
> set PATH=%QTDIR%\bin;%MINGW%\bin;%PATH%
> set QMAKESPEC=win32-g++
> cd %QTDIR%
> configure -plugin-sql-mysql -no-sql-sqlite
> rem mingw32-make
> '
> ],comment=>'write a batch script for the QT4 environment under DOS'],
> # test if the core .dll is built, and build QT if it isn't!
> [ file => $msys.'qt-win-opensource-src-4.3.4/lib/QtCore4.dll', exec =>
> $dosmsys.'qt-win-opensource-src-4.3.4\qt_env.bat && mingw32-make ',comment
> => 'Execute qt_env.bat to actually build QT now!  - ie configures qt and
> also makes it, hopefully! WARNING SLOW (MAY TAKE HOURS!)' ],
> # For now, we will just test if it built, and abort if it didn't!
> [ file =>
> $msys.'qt-win-opensource-src-4.3.4/plugins/sqldrivers/libqsqlmysql4.dll',
> exec => '', comment => 'lib\libqsqlmysql4.dll - here we are just validating
> some basics of the the QT4 install, and if any of these components are
> missing, the build must have failed ( is the sql driver built properly?) '],
> [ file => $msys.'qt-win-opensource-src-4.3.4/bin/qmake.exe', exec => '',
> comment => 'bin\qmake.exe - here we are just validating some basics of the
> the QT install, and if any of these components are missing, the build must
> have failed'],
> [ file => $msys.'qt-win-opensource-src-4.3.4/bin/moc.exe', exec => '',
> comment => 'bin\moc.exe - here we are just validating some basics of the the
> QT install, and if any of these components are missing, the build must have
> failed'],
> [ file => $msys.'qt-win-opensource-src-4.3.4/bin/uic.exe', exec => '',
> comment => 'bin\uic.exe - here we are just validating some basics of the the
> QT install, and if any of these components are missing, the build must have
> failed'],
>
>
>
>
> On Tue, Apr 8, 2008 at 3:45 AM, Arnon Meshoulam <arnonm at gmail.com> wrote:
>
> > Done, added a small diff file - changes are cosmetic spelling mistakes.
> > As for QT4, I am planning to support both. Script will autmatically
> > assume that build > 16789 will require QT4 and will allow an explicit switch
> > to force QT3/4 as well.
> >
> >
> >
> > On 4/7/08, buzz <davidbuzz at gmail.com> wrote:
> > >
> > > Arnonm,
> > > I also notice that your revised perl code (now inside the .bat file )
> > > is actally based apon an older version of the win32-packager.pl  script, and
> > > is missing a number of improvements that exist in the latest SVN version
> > > (like speling corrections, limiting comments to 80chrs, and other assorted
> > > fixes) .
> > >
> > > Can you please resubmit as patches against the latest version, or if
> > > you desire I can merge them, and upload a revised version (agains HEAD) of
> > > the .pl file for review.
> > >
> > > Others,
> > > All win32 dev's please note that (if you haven't noticed) the last
> > > possible trunk release that the win32-packager.pl etc might yet be able to
> > > build at this time is 16789, as it was the last revision prior to QT4.3
> > > being made a requirement.     Has anyone built and documented QT4.3 on win32
> > > yet?
> > >
> > > Buzz.
> > >
> > > On Mon, Apr 7, 2008 at 10:09 AM, buzz <davidbuzz at gmail.com> wrote:
> > >
> > > > Arnonm,
> > > >
> > > > I'm just curious why you convert it to a .bat file when a .pl file
> > > > works exactly the same way?   ie: install activeperl, and then double-click
> > > > the .pl file, or run it from a .cmd prompt with arguments, etc, all those
> > > > features work with .pl file just fine after a standard install of
> > > > activeperl.    converting to a .bat file only confuses the code more?
> > > >
> > > > Buzz.
> > > >
> > > >
> > > >
> > > > On Mon, Apr 7, 2008 at 7:29 AM, MythTV <mythtv at cvs.mythtv.org>
> > > > wrote:
> > > >
> > > > > #5160: New Win32Packager - compiles and creates stand-alone
> > > > > setup.exe
> > > > >
> > > > > ------------------------------+---------------------------------------------
> > > > >  Reporter:  arnonm at gmail.com  |        Owner:  ijr
> > > > >     Type:  enhancement       |       Status:  new
> > > > >  Priority:  minor             |    Milestone:  0.21.1
> > > > > Component:  mythtv            |      Version:  0.21-fixes
> > > > >
> > > > >  Severity:  medium            |   Resolution:
> > > > >  Mlocked:  0                 |
> > > > >
> > > > > ------------------------------+---------------------------------------------
> > > > >
> > > > >
> > > > > Comment(by arnonm at gmail.com):
> > > > >
> > > > >  Done- all files required in zip (1560.rar) - typo in name
> > > > >
> > > > > --
> > > > > Ticket URL: <http://svn.mythtv.org/trac/ticket/5160#comment:3>
> > > > >  MythTV <http://www.mythtv.org/>
> > > > > MythTV
> > > > > _______________________________________________
> > > > > mythtv-commits mailing list
> > > > > mythtv-commits at mythtv.org
> > > > > http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-dev/attachments/20080408/dc890690/attachment.htm 


More information about the mythtv-dev mailing list