PDA

View Full Version : create application file



giarandrea
15th August 2012, 18:11
Hi gurus,
i've completed (and successfully compiled) a program created as Qt Widget Project -> Qt GUI Application.
Now i can see that in order to run the app without compiling everytime, i can open directly the .app file inside a folder i chose as "Build directory".
Then let's come to my questions:
1) is this ".app" file self sufficient? I mean..if i transfer it alone (no others files included in build directory) in another pc, which does not even have Qt compiler, will it run?
2) is it possible to use it in ipad? (it works in mac ios 10.6.8)

thanks

Andrea

high_flyer
16th August 2012, 12:58
There is no "Qt" compiler - there is moc, but that is not a real compiler - it only generates code for your c++ compiler.
A target machine does not need a compiler, (unless you are distributing your code as well).
For a user to use your application, you will have to distribute the executable, and its dependencies , which means the Qt libs your application is using.

spirit
16th August 2012, 13:12
2) is it possible to use it in ipad? (it works in mac ios 10.6.8)

thanks

Andrea

No, it's not.
Did Apple release new mac osx called mac ios 10.6.8? :)

As for deploying Qt's apps for mac read [url="http://qt-project.org/doc/qt-4.8/deployment-mac.html"]this[url].

giarandrea
16th August 2012, 17:08
thanks for your answers guys :)
i'm reading the link on deployment but since i'm quite new in programming i need a "less technical" explanation on deploying apps (such as a step by step tutorial)..if you have any link (for mac, not win) it would be apreciated..
thanks

giarandrea
24th August 2012, 17:46
one more question :)..how is it possible to install my app to ipad?

thanks

spirit
24th August 2012, 17:56
Now, there is no Qt port for iOS. If you want to write apps for iOS then you are using wrong forum. You have to use Objective-C and iOS SDK for native development. At least for now. Digia has plans to port Qt for iOS, but nobody knows when it's happend.

high_flyer
29th August 2012, 09:52
What spirit said is generally correct.
But strictly speaking, you could write Qt apps for iOS - there are even few Qt apps on Apple App store.
This however is not trivial, and you will have to follow a process to get it approved by Apple.
Google it.
However, as you are very new to this, I don't think this is something you will manage as a beginner - but who knows - good luck!