PDA

View Full Version : Depoyment Qt application as Shared Library



norrbotten68
22nd April 2014, 15:20
Hi.
I know that it was question that have the same Titel but I asking anyway.
I made a simple poject.
usin information from "Qt for Linux/X11- Deployng"
in terminal I wrout
cd /path to my application
make clean // no problems here
qmake -config release //I get a long list of information that I don't know how to use I only whant to make some sort installation to run this esay project on another machine

QMake has two modes, one mode for generating project files based on
some heuristics, and the other for generating makefiles. Normally you
shouldn't need to specify a mode, as makefile generation is the default
mode for qmake, but you may use this to test qmake on an existing project

Mode:
-project Put qmake into project file generation mode
In this mode qmake interprets files as files to
be built,
defaults to *.c; *.ui; *.y; *.l; *.ts; *.xlf; *.qrc; *.h; *.hpp; *.hh; *.hxx; *.H; *.cpp; *.cc; *.cxx; *.C
Note: The created .pro file probably will
need to be edited. For example add the QT variable to
specify what modules are required.
-makefile Put qmake into makefile generation mode (default)
In this mode qmake interprets files as project files to
be processed, if skipped qmake will try to find a project
file in your current working directory

Warnings Options:
-Wnone Turn off all warnings
-Wall Turn on all warnings
-Wparser Turn on parser warnings
-Wlogic Turn on logic warnings

Options:
* You can place any variable assignment in options and it will be *
* processed as if it was in [files]. These assignments will be parsed *
* before [files]. *
-o file Write output to file
-unix Run in unix mode
-win32 Run in win32 mode
-macx Run in Mac OS X mode
-d Increase debug level
-t templ Overrides TEMPLATE as templ
-tp prefix Overrides TEMPLATE so that prefix is prefixed into the value
-help This help
-v Version information
-after All variable assignments after this will be
parsed after [files]
-norecursive Don't do a recursive search
-recursive Do a recursive search
-set <prop> <value> Set persistent property
-query <prop> Query persistent property. Show all if <prop> is empty.
-cache file Use file as cache [makefile mode only]
-spec spec Use spec as QMAKESPEC [makefile mode only]
-nocache Don't use a cache file [makefile mode only]
-nodepend Don't generate dependencies [makefile mode only]
-nomoc Don't generate moc targets [makefile mode only]
-nopwd Don't look for files in pwd [project mode only]

In documentation a read that I have to try with Plug&Paint application in examples folder. There is no such project there (Qt 5.2.1) !
Then I found that Qt5 have to builds from Git but in list of distros I didn't find Linux Mint.
I try to make an installation for Linux but I can't understand why it have to be such torture . Why VS can provide tools to make installation packages but not Qt Creator team.
Is it any tutorial for Dummies how make the installation of Qt project?
Hope some one can answer without tell me how stupid I am.

anda_skoa
22nd April 2014, 16:00
What exactly is your question?

Cheers,
_

ChrisW67
23rd April 2014, 00:13
Before you can deploy a built Qt project to another machine you need to be able to build it. You have not got that far yet.

cd /path to my application
make clean // no problems here
qmake -config release //I get a long list of information that I don't know how to use I only whant to make some sort installation to run this esay project on another machine

You get that result when there is no PRO file in the current directory for qmake to process, or there is more than one and you have not named the PRO file to process.

When you have successfully built your project then you can look to deployment.