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

Qt-interest Archive, March 2008
Deploying Qt application on mac os x


Message 1 in thread

Hello everyone, I've ported my application from windows to mac and it works.
I've deployed it by proceeding as the Trolltech document in
http://doc.trolltech.com/4.3/deployment-mac.html but when I tested the
bundle on an other mac it doesn't lunch.

I'm on Mac OS X 10.4.6 Tiger and using Qt 4.3.2. I tested it on Mac OS X
10.4.10 Tiger. I join a file containing the steps I've done.

Can anyone tell me where I'm wrong and how to proceed?

Many thanks.

Regurads, Mourad.

Attachment:

Attachment: bundle.rtf
Description: MS-Word document


Message 2 in thread

On Mar 21, 2008, at 7:30 AM, HEDFI Mourad wrote:

> Hello everyone, I’ve ported my application from windows to mac and  
> it works. I’ve deployed it by proceeding as the Trolltech document inhttp://doc.trolltech.com/4.3/deployment-mac.html 
>  but when I tested the bundle on an other mac it doesn’t lunch.
> I’m on Mac OS X 10.4.6 Tiger and using Qt 4.3.2. I tested it on Mac  
> OS X 10.4.10 Tiger. I join a file containing the steps I’ve done.
> Can anyone tell me where I’m wrong and how to proceed?
> Many thanks.
> Regurads, Mourad.
> <bundle.rtf>


Generally in my experience this sort of problem is due to not being  
able to find a needed library, or version of a library. Luckily, it  
will tell you which one. In the /Applications/Utilities folder, there  
is an application called console. If you open this, and then watch the  
messages displayed when you try to launch the app, it should give you  
an error message telling you why it won't launch. Once you have that,  
you have a starting point for tracking down a solution. At least, this  
has always worked for me :)

-----------------------------------------------
Israel Brewster
Computer Support Technician
Frontier Flying Service Inc.
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7250 x293
-----------------------------------------------

Message 3 in thread

Israel Brewster wrote:
> On Mar 21, 2008, at 7:30 AM, HEDFI Mourad wrote:
>
>> Hello everyone, I’ve ported my application from windows to mac and it 
>> works. I’ve deployed it by proceeding as the Trolltech document 
>> inhttp://doc.trolltech.com/4.3/deployment-mac.html but when I tested 
>> the bundle on an other mac it doesn’t lunch.
>> I’m on Mac OS X 10.4.6 Tiger and using Qt 4.3.2. I tested it on Mac 
>> OS X 10.4.10 Tiger. I join a file containing the steps I’ve done.
>> Can anyone tell me where I’m wrong and how to proceed?
>> Many thanks.
>> Regurads, Mourad.
>> <bundle.rtf>
>
> Generally in my experience this sort of problem is due to not being 
> able to find a needed library, or version of a library. Luckily, it 
> will tell you which one. In the /Applications/Utilities folder, there 
> is an application called console. If you open this, and then watch the 
> messages displayed when you try to launch the app, it should give you 
> an error message telling you why it won't launch. Once you have that, 
> you have a starting point for tracking down a solution. At least, this 
> has always worked for me :)

+1 for Israel. It is probably a library issue and you should be able to 
track it down with console.app. I static link as much as I can to avoid 
these problems. Make sure you 'strip' you executable to get a sensible 
file size.

best regards

Andy Brice
http://www.perfecttableplan.com
http://www.successfulsoftware.net

--
 [ signature omitted ] 

Message 4 in thread

I build mine static

On Mar 21, 2008, at 11:30 AM, HEDFI Mourad wrote:

> Hello everyone, I’ve ported my application from windows to mac and  
> it works. I’ve deployed it by proceeding as the Trolltech document  
> in http://doc.trolltech.com/4.3/deployment-mac.html but when I  
> tested the bundle on an other mac it doesn’t lunch.
>
> I’m on Mac OS X 10.4.6 Tiger and using Qt 4.3.2. I tested it on Mac  
> OS X 10.4.10 Tiger. I join a file containing the steps I’ve done.
>
> Can anyone tell me where I’m wrong and how to proceed?
>
> Many thanks.
>
> Regurads, Mourad.
>
> <bundle.rtf>


Message 5 in thread

You can check the linking of your apps by using otool -L, e.g.:

 otool -L myapp.app/Contents/MacOs/myapp

You have to make sure that every Qt Frameworks copied into the bundle
refer other Qt Frameworks in the right path.
usually @executable_path/../Frameworks/

All of this is described in the documentation, you just need to pay
attention to it in more detail.

Besides, the Trolls has been nice by creating this tool:

http://labs.trolltech.com/blogs/2007/08/23/deploying-mac-applications-without-the-hassle/

Of course, you can also handle this by static linking your Qt libraries.

Regards,

Jesse

On Fri, Mar 21, 2008 at 10:30 PM, HEDFI Mourad <mourad@xxxxxxxx> wrote:
>
> Hello everyone, I've ported my application from windows to mac and it works.
> I've deployed it by proceeding as the Trolltech document in
> http://doc.trolltech.com/4.3/deployment-mac.html but when I tested the
> bundle on an other mac it doesn't lunch.
>
> I'm on Mac OS X 10.4.6 Tiger and using Qt 4.3.2. I tested it on Mac OS X
> 10.4.10 Tiger. I join a file containing the steps I've done.
>
> Can anyone tell me where I'm wrong and how to proceed?
>
> Many thanks.
>
> Regurads, Mourad.

--
 [ signature omitted ]