Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Users

osx-packager-qtsdk.pl (was Re: [mythtv-commits] packaging/master commit: 1af486e9a by Jean-Yves Avenard (jyavenard))

 

 

MythTV users RSS feed   Index | Next | Previous | View Threaded


ctreleaven at cogeco

Mar 5, 2012, 5:51 AM

Post #1 of 7 (543 views)
Permalink
osx-packager-qtsdk.pl (was Re: [mythtv-commits] packaging/master commit: 1af486e9a by Jean-Yves Avenard (jyavenard))

At 10:01 AM +0000 3/5/12, MythTV wrote:
> Author: Jean-Yves Avenard <jyavenard [at] mythtv>
> Change Date: 2012-03-05T01:54:56-08:00
> Push Date: 2012/03/05 02:01:13 -0800
> Repository: packaging
> Branch: master
>New Revision: 1af486e9af65fc7bec5c3dffddaa1a9b3dcdf102
> Changeset: https://github.com/MythTV/packaging/commit/1af486e9a
>
>Log:
>
>New mac packager using external Qt libraries
>
>This is a major rewrite of the mac packager. It now uses external Qt libraries as downloaded from the Qt web site.
>
>It adds significant improvement:
>- 64 bits application support (both PPC and Intel)
>- Universal 32/64 bits support
>
>So far tested with XCode 4.3 on OSX 10.7 and XCode 3.2 on OS X 10.6
>
>Application built on 10.6 will run on 10.5, 10.6 and 10.7
>Application built on 10.7 will run on 10.6 and 10.7. There is an easy fix to the 10.6 SDK that can make the applications compatible on 10.5. This will be documented later.
>
>For the time being, the builder only works with very recent master/0.25 and several fixes were added to the code to properly support LLVM compiler.
>0.24 support may be added later
>
>Added:
>
> OSX/build/osx-packager-qtsdk.pl
>
>Modified:
>
> OSX/build/osx-bundler.pl

J-Y

Looks really interesting. Sorry to ask such a basic question, but could you point me to the right QT download? The standalone SDK installer is 1.2 GB which is a big chunk of my crappy download cap. The libraries installer seem to be at:

http://qt.nokia.com/downloads/qt-for-open-source-cpp-development-on-mac-os-x

Cocoa: Mac binary package for Mac OS X 10.5 - 10.6 (64-bit)
http://get.qt.nokia.com/qt/source/qt-mac-opensource-4.8.0.dmg (178 MB, includes build and interface tools)

Is this the right one? The notes in the new osx-packager-qtsdk.pl indicate that there should be both 32 bit and 64 bit versions--but I only see 64?

Thanks again for all the work dragging the Mac client forward!

Craig
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-users


jyavenard at gmail

Mar 5, 2012, 7:54 AM

Post #2 of 7 (517 views)
Permalink
Re: osx-packager-qtsdk.pl (was Re: [mythtv-commits] packaging/master commit: 1af486e9a by Jean-Yves Avenard (jyavenard)) [In reply to]

Hi

On Tuesday, 6 March 2012, Craig Treleaven wrote:

>
>
> Looks really interesting. Sorry to ask such a basic question, but could
> you point me to the right QT download? The standalone SDK installer is 1.2
> GB which is a big chunk of my crappy download cap. The libraries installer
> seem to be at:
>
>
Thé 1.2GB is the SDK, you don't have to use it

>
> http://qt.nokia.com/downloads/qt-for-open-source-cpp-development-on-mac-os-x
>
> Cocoa: Mac binary package for Mac OS X 10.5 - 10.6 (64-bit)
> http://get.qt.nokia.com/qt/source/qt-mac-opensource-4.8.0.dmg (178 MB,
> includes build and interface tools)


You can use that one. But note that the 4.8.0 package is 64 bits only. I
used the 4.7.4 package instead. While it doesn't support lion officially,
it works fine.
Just lots of warnings in the log..


> Is this the right one? The notes in the new osx-packager-qtsdk.plindicate that there should be both 32 bit and 64 bit versions--but I only
> see 64?
>
>
The packager will test the qt you've installed and error out if you are
trying to compile 32 bits against 64 libs or vice versa..


> Thanks again for all the work dragging the Mac client forward!
>
> I have spent in excess of 100 hours on that crap believe it or not :(

Do not use Xcode 4.2, it will crash during the build. Use 4.3 or lion, or
4.1 on 10.6 (3.x will work too)

Otherwise, built 32/64 packages are available there:
http://avenard.org/files/mac/

I will amend the readme file with the new procedure.. I still need to work
on the 0.24 build too


coronasensei at gmail

May 22, 2012, 10:45 PM

Post #3 of 7 (453 views)
Permalink
Re: osx-packager-qtsdk.pl (was Re: [mythtv-commits] packaging/master commit: 1af486e9a by Jean-Yves Avenard (jyavenard)) [In reply to]

On 6/03/12 2:54 AM, Jean-Yves Avenard wrote:
> Hi
>
> On Tuesday, 6 March 2012, Craig Treleaven wrote:
>
>
>
> Looks really interesting. Sorry to ask such a basic question, but
> could you point me to the right QT download? The standalone SDK
> installer is 1.2 GB which is a big chunk of my crappy download
> cap. The libraries installer seem to be at:
>
>
> Thé 1.2GB is the SDK, you don't have to use it
>
> http://qt.nokia.com/downloads/qt-for-open-source-cpp-development-on-mac-os-x
>
> Cocoa: Mac binary package for Mac OS X 10.5 - 10.6 (64-bit)
> http://get.qt.nokia.com/qt/source/qt-mac-opensource-4.8.0.dmg (178
> MB, includes build and interface tools)
>
>
> You can use that one. But note that the 4.8.0 package is 64 bits only.
> I used the 4.7.4 package instead. While it doesn't support lion
> officially, it works fine.
> Just lots of warnings in the log..
>
>
> Is this the right one? The notes in the new osx-packager-qtsdk.pl
> <http://osx-packager-qtsdk.pl> indicate that there should be both
> 32 bit and 64 bit versions--but I only see 64?
>
>
> The packager will test the qt you've installed and error out if you
> are trying to compile 32 bits against 64 libs or vice versa..
>
> Thanks again for all the work dragging the Mac client forward!
>
> I have spent in excess of 100 hours on that crap believe it or not :(
>
> Do not use Xcode 4.2, it will crash during the build. Use 4.3 or lion,
> or 4.1 on 10.6 (3.x will work too)
>
> Otherwise, built 32/64 packages are available there:
> http://avenard.org/files/mac/
>
> I will amend the readme file with the new procedure.. I still need to
> work on the 0.24 build too
>
Hi, I've just compiled a new copy of 0.25 master to see if it fixes a
sleep issue I'm having on my macbook.
Running 10.7.4, xcode 4.3.2. Current git of the build script
osx-packager-qtsdk.pl (as far as I can tell).

Installed qt-mac-opensource-4.7.4.dmg

Used:
# ./osx-packager-qtsdk.pl -verbose -pluginskip -qtbin /usr/bin
-qtplugins /Developer/Applications/Qt/plugins

I had one small problem with the script in that pkg-config is not
getting installed in .osx-packager/build/bin. This caused it to fail
during the configure of mythtv.
I looked in pkg-config src folder and pkg-config had been built by the
packager, but had not installed into the bin folder. I deleted just
.osx-built in pkg-config folder and started osx-packager again and yep,
it's installed now.

Did a clean all by deleting build folder, and delete all .osx-built and
.osx-config and tried again, same thing - first run through no
pkg-config bin, delete just the one .osx-built and rerun and it's fine.

After that I got a successful build!
I wont get a chance to try it until I get home (where my backend is),
but the application does launch successfully.

Last time I tried building for osx (before this new script) my efforts
died badly trying to get qt to compile. I gave up. I for one am a big
fan of being able to install the binary qt libraries for this!

Cheers,
Andrew


jyavenard at gmail

May 23, 2012, 2:59 AM

Post #4 of 7 (449 views)
Permalink
Re: osx-packager-qtsdk.pl (was Re: [mythtv-commits] packaging/master commit: 1af486e9a by Jean-Yves Avenard (jyavenard)) [In reply to]

On 23 May 2012 15:45, Andrew Leech <coronasensei [at] gmail> wrote:

> I had one small problem with the script in that pkg-config is not getting
> installed in .osx-packager/build/bin. This caused it to fail during the
> configure of mythtv.
> I looked in pkg-config src folder and pkg-config had been built by the
> packager, but had not installed into the bin folder. I deleted just
> .osx-built in pkg-config folder and started osx-packager again and yep, it's
> installed now.

Only if you didn't start with a fresh copy of .osx-packager folder nor
followed the instructions proivded.

You can't re-use the .osx-packager folder created by the original packager.
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-users


coronasensei at gmail

May 23, 2012, 6:44 PM

Post #5 of 7 (444 views)
Permalink
Re: osx-packager-qtsdk.pl (was Re: [mythtv-commits] packaging/master commit: 1af486e9a by Jean-Yves Avenard (jyavenard)) [In reply to]

On 23/05/12 7:59 PM, Jean-Yves Avenard wrote:
> On 23 May 2012 15:45, Andrew Leech<coronasensei [at] gmail> wrote:
>
>> I had one small problem with the script in that pkg-config is not getting
>> installed in .osx-packager/build/bin. This caused it to fail during the
>> configure of mythtv.
>> I looked in pkg-config src folder and pkg-config had been built by the
>> packager, but had not installed into the bin folder. I deleted just
>> .osx-built in pkg-config folder and started osx-packager again and yep, it's
>> installed now.
> Only if you didn't start with a fresh copy of .osx-packager folder nor
> followed the instructions proivded.
>
> You can't re-use the .osx-packager folder created by the original packager.
>
Ok I'm really not sure what went wrong, but my mythtv-git folder must
have got stuffed up. Even though I git reset and cleaned it every way I
could find before the final compiling yesterday, and I deleted
.osx-packager/build and all the extracted folders in .osx-packager/src/,
I got that error.

Today I did the same but deleted mythtv-git as well and let it pull a
clean copy down. It then compiles fine, although still leaving no
.osx-packager/build/bin/pkg-config at the end - I didn't realise it's
deleted as a post process of some other part of the script. There must
have been some stale configure cache or Makefile or something in my
previous mythtv-git causing the problem.

Is there a guaranteed way to clean the mythtv-git folder other than just
checking out a fresh copy?
Yesterday I tried:
git reset --hard HEAD
git clean -f
git checkout
I thought they'd get rid of any other stuff, but apparently not.

Also, just to be sure, is the osx-packager-qtsdk.pl script on mythtv git
the best version?:
http://code.mythtv.org/trac/browser/packaging/OSX/build/osx-packager-qtsdk.pl

I did have to change it slightly to allow compilation with the older qt
4.7.4:

--- a/OSX/build/osx-packager-qtsdk.pl
+++ b/OSX/build/osx-packager-qtsdk.pl
@@ -447,7 +447,7 @@ else
if ( $hostos =~ m/^1[12]\./ && $QTVERSION !~ m/^4\.[89]\./ )
{
&Complain("You must use Qt 4.8.0 or above with your OS");
- exit;
+ # exit;
}
$QTBIN="$PREFIX/bin";
$QTPLUGINS="$PREFIX/plugins";

I didn't want a 64 bit only build, so grabbed the older universal qt. Is
there anything in particular that works better in 4.8.0 on lion such
that I should be using it instead?

Thanks,
Andrew
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-users


jyavenard at gmail

May 23, 2012, 7:02 PM

Post #6 of 7 (437 views)
Permalink
Re: osx-packager-qtsdk.pl (was Re: [mythtv-commits] packaging/master commit: 1af486e9a by Jean-Yves Avenard (jyavenard)) [In reply to]

On 24 May 2012 11:44, Andrew Leech <coronasensei [at] gmail> wrote:
> I did have to change it slightly to allow compilation with the older qt
> 4.7.4:


>
> --- a/OSX/build/osx-packager-qtsdk.pl
> +++ b/OSX/build/osx-packager-qtsdk.pl
> @@ -447,7 +447,7 @@ else
>     if ( $hostos =~ m/^1[12]\./ && $QTVERSION !~ m/^4\.[89]\./ )
>     {
> &Complain("You must use Qt 4.8.0 or above with your OS");
> -        exit;
> +        # exit;
>     }
>     $QTBIN="$PREFIX/bin";
>     $QTPLUGINS="$PREFIX/plugins";

which is a rubbish change.
This is only required if you are building Qt from source
4.7.4 will not compile with lion. period
not in 32 bits mode, not in 64 bits.. it just won't compile and isn't
compatible.

You can however, use the binary distribution 4.7.x and 4.6.x

During compilation of myth, you will get thousands of warning that
this OS isn't supported, but it will still work.

I don't put special test in a code unless they are absolutely required..

Don't expect any supports if you modify this build script.
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-users


coronasensei at gmail

May 23, 2012, 7:18 PM

Post #7 of 7 (441 views)
Permalink
Re: osx-packager-qtsdk.pl (was Re: [mythtv-commits] packaging/master commit: 1af486e9a by Jean-Yves Avenard (jyavenard)) [In reply to]

On 24/05/12 12:02 PM, Jean-Yves Avenard wrote:
> On 24 May 2012 11:44, Andrew Leech<coronasensei [at] gmail> wrote:
>> I did have to change it slightly to allow compilation with the older qt
>> 4.7.4:
>
>> --- a/OSX/build/osx-packager-qtsdk.pl
>> +++ b/OSX/build/osx-packager-qtsdk.pl
>> @@ -447,7 +447,7 @@ else
>> if ( $hostos =~ m/^1[12]\./&& $QTVERSION !~ m/^4\.[89]\./ )
>> {
>> &Complain("You must use Qt 4.8.0 or above with your OS");
>> - exit;
>> + # exit;
>> }
>> $QTBIN="$PREFIX/bin";
>> $QTPLUGINS="$PREFIX/plugins";
> which is a rubbish change.
> This is only required if you are building Qt from source
> 4.7.4 will not compile with lion. period
> not in 32 bits mode, not in 64 bits.. it just won't compile and isn't
> compatible.
>
> You can however, use the binary distribution 4.7.x and 4.6.x
>
> During compilation of myth, you will get thousands of warning that
> this OS isn't supported, but it will still work.
>
> I don't put special test in a code unless they are absolutely required..
>
> Don't expect any supports if you modify this build script.
>
Ah I understand, thanks for the clarification.
I had left that in from when I was trying to compile Qt from source, as
I already had that downloaded and wanted to avoid the binary download
(I've got rubbish internet). I have since switched to binary anyway and
didn't realise that check didn't apply to binary. Sorry for wasting your
time.

I massively appreciate your work on this new packager and in replying to
my posts. I thought I may have been finding issues in the packager I
should alert you to, I see now the issues were all of my own generating.
I did think I had ruled out my own error before posting, but clearly hadn't.

Best Regards,
Andrew
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-users

MythTV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.