Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 3

Qt-interest Archive, March 2008
QT on mac for dummies


Message 1 in thread

Hi, 

In spite of not being the owner of a Mac, my  niche GPLed application  was
running also on the Mac thanks to an advanced user who compiled and
packaged it for me.  Unfortunately,  it doesn't work anymore on Mac OS
10.5. Since the original packager seems to have vanished, I am trying to
compile my app with a "standard" user.
I need to be as precise as possible for the instruction I will give him.

1) What software packages should he install on his mac to be able to
compile, run and package the app ?

2) I have found in the list archive a message from the original packager
wich states :
----------------------
I have built Qt4 as a universal binary with frameworks (configure - 
release -prefix /Developer/qt4 -platform macx-g++ -pch -universal - 
sdk /Developer/SDKs/MacOSX10.4u.sdk -qt-zlib -qt-gif -qt-libpng -qt- 
libmng -qt-libjpeg -qt-sql-sqlite
--------------
Can I still use these parameters "as it" ?

3) In the same message :
-----------------------
I can compile and run the ported application without any problem  
until I relocate the frameworks inside the application bundle. Once  
the frameworks are relocated in the bundle, the application still  
launches fine but it can't display images any more.
--------------
What command line parameters should I give to my user to " relocate the
frameworks inside the application bundle" ?

4) How is done the transformation of the application bundle to a .dmg file
ready to distribuate ?

Thanks for your help. Any tutorial welcome.

Alain

--
 [ signature omitted ] 

Message 2 in thread

denebet wrote:
>1) What software packages should he install on his mac to be able to
>compile, run and package the app ?

A 10.5 MacOS should have come with a CD or DVD containing the development 
tools. Install the XCode tools, which will install everything you need.

See also http://doc.trolltech.com/4.3/deployment-mac.html.

>2) I have found in the list archive a message from the original packager
>wich states :
>----------------------
>I have built Qt4 as a universal binary with frameworks (configure -
>release -prefix /Developer/qt4 -platform macx-g++ -pch -universal -
>sdk /Developer/SDKs/MacOSX10.4u.sdk -qt-zlib -qt-gif -qt-libpng -qt-
>libmng -qt-libjpeg -qt-sql-sqlite
>--------------
>Can I still use these parameters "as it" ?

Yes.

Though -pch has no effect if -universal is on.

PS: "as is"

>3) In the same message :
>-----------------------
>I can compile and run the ported application without any problem
>until I relocate the frameworks inside the application bundle. Once
>the frameworks are relocated in the bundle, the application still
>launches fine but it can't display images any more.
>--------------
>What command line parameters should I give to my user to " relocate the
>frameworks inside the application bundle" ?

See the link above for deploying on Mac.

I think the issue there is that Qt cannot find the image plugins after 
relocating to inside the bundle.

>4) How is done the transformation of the application bundle to a .dmg
> file ready to distribuate ?

I tried to find that out today and I couldn't. The Qt documentation links 
to a page on Apple's website that has changed. I'm hoping someone "in the 
know" will help us both.

My guess it passes through PackageMaker.app.

-- 
 [ signature omitted ] 

Attachment: signature.asc
Description: This is a digitally signed message part.


Message 3 in thread

>> 4) How is done the transformation of the application bundle to a .dmg
>> file ready to distribuate ?
>
> I tried to find that out today and I couldn't. The Qt documentation  
> links
> to a page on Apple's website that has changed. I'm hoping someone  
> "in the
> know" will help us both.

If you are wanting to distribute a binary application via a .dmg  
(common choice) all you really need to do is go into Apple's disk  
utility (Applications->Utilities), Make a new disk image large enough  
to hold the binary and any other files you want to distribute, and  
then copy the files over. Once that is done, it is probably a good  
idea (although not strictly necessary) to convert the disk image to  
read-only format from the "Disk utility->images->convert" option.

-----------------------------------------------
Israel Brewster
Computer Support Technician
Frontier Flying Service Inc.
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7250 x293
-----------------------------------------------
>
>
> My guess it passes through PackageMaker.app.
>
> -- 
> Thiago José Macieira - thiago.macieira AT trolltech.com
> Trolltech ASA - Sandakerveien 116, NO-0402 Oslo, Norway

--
 [ signature omitted ] 

Message 4 in thread

Hi,

>> 4) How is done the transformation of the application bundle to a .dmg
>> file ready to distribuate ?
> 
> I tried to find that out today and I couldn't. The Qt documentation links 
> to a page on Apple's website that has changed. I'm hoping someone "in the 
> know" will help us both.

I think this document has changed from legacy "Software Distribution Guide":
http://developer.apple.com/documentation/DeveloperTools/Conceptual/SoftwareDistribution4/
to "Software Delivery Guide":
http://developer.apple.com/documentation/DeveloperTools/Conceptual/SoftwareDistribution/

As pointed out by Israel Brewster, the Disk Utility application 
(/Applications/Utilities) creates a disk image from a folder:
http://developer.apple.com/documentation/DeveloperTools/Conceptual/SoftwareDistribution/Containers/chapter_3_section_2.html#//apple_ref/doc/uid/10000145i-CH4-DontLinkElementID_6

--
 [ signature omitted ]