Sophie

Sophie

distrib > Mageia > 6 > armv5tl > media > core-updates > by-pkgid > 768f7d9f703884aa2562bf0a651086df > files > 22

qtbase5-doc-5.9.4-1.1.mga6.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qmake-manual.qdoc -->
  <title>Overview | qmake Manual</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td >Qt 5.9</td><td ><a href="qmake-manual.html">qmake Manual</a></td><td >Overview</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right">Qt 5.9.4 Reference Documentation</td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
  <link rel="prev" href="qmake-manual.html" />
  <link rel="next" href="qmake-tutorial.html" />
<p class="naviNextPrevious headerNavi">
<a class="prevPage" href="qmake-manual.html">qmake Manual</a>
<span class="naviSeparator">  &#9702;  </span>
<a class="nextPage" href="qmake-tutorial.html">Getting Started</a>
</p><p/>
<div class="sidebar">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#describing-a-project">Describing a Project</a></li>
<li class="level1"><a href="#building-a-project">Building a Project</a></li>
<li class="level1"><a href="#using-third-party-libraries">Using Third Party Libraries</a></li>
<li class="level1"><a href="#precompiling-headers">Precompiling Headers</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">Overview</h1>
<span class="subtitle"></span>
<!-- $$$qmake-overview.html-description -->
<div class="descr"> <a name="details"></a>
<p>The qmake tool provides you with a project-oriented system for managing the build process for applications, libraries, and other components. This approach gives you control over the source files used, and allows each of the steps in the process to be described concisely, typically within a single file. qmake expands the information in each project file to a Makefile that executes the necessary commands for compiling and linking.</p>
<a name="describing-a-project"></a>
<h2 id="describing-a-project">Describing a Project</h2>
<p>Projects are described by the contents of project (<code>.pro</code>) files. qmake uses the information within the files to generate Makefiles that contain all the commands that are needed to build each project. Project files typically contain a list of source and header files, general configuration information, and any application-specific details, such as a list of extra libraries to link against, or a list of extra include paths to use.</p>
<p>Project files can contain a number of different elements, including comments, variable declarations, built-in functions, and some simple control structures. In most simple projects, it is only necessary to declare the source and header files that are used to build the project with some basic configuration options. For more information about how to create a simple project file, see <a href="qmake-tutorial.html">Getting Started</a>.</p>
<p>You can create more sophisticated project files for complex projects. For an overview of project files, see <a href="qmake-project-files.html">Creating Project Files</a>. For detailed information about the variables and functions that you can use in project files, see <a href="qmake-reference.html">Reference</a>.</p>
<p>You can use application or library project templates to specify specialized configuration options to fine tune the build process. For more information, see <a href="qmake-common-projects.html">Building Common Project Types</a>.</p>
<p>You can use the Qt Creator new project wizard to create the project file. You choose the project template, and Qt Creator creates a project file with default values that enable you to build and run the project. You can modify the project file to suit your purposes.</p>
<p>You can also use qmake to generate project files. For a full description of qmake command line options, see <a href="qmake-running.html">Running qmake</a>.</p>
<p>The basic configuration features of qmake can handle most cross-platform projects. However, it might be useful, or even necessary, to use some platform-specific variables. For more information, see <a href="qmake-platform-notes.html">Platform Notes</a>.</p>
<a name="building-a-project"></a>
<h2 id="building-a-project">Building a Project</h2>
<p>For simple projects, you only need to run qmake in the top level directory of your project to generate a Makefile. You can then run your platform's <code>make</code> tool to build the project according to the Makefile.</p>
<p>For more information about the environment variables that qmake uses when configuring the build process, see <a href="qmake-environment-reference.html">Configuring qmake</a>.</p>
<a name="using-third-party-libraries"></a>
<h2 id="using-third-party-libraries">Using Third Party Libraries</h2>
<p>The guide to Third Party Libraries shows you how to use simple third party libraries in your Qt project.</p>
<a name="precompiling-headers"></a>
<h2 id="precompiling-headers">Precompiling Headers</h2>
<p>In large projects, it is possible to take advantage of precompiled header files to speed up the build process. For more information, see <a href="qmake-precompiledheaders.html">Using Precompiled Headers</a>.</p>
</div>
<!-- @@@qmake-overview.html -->
<p class="naviNextPrevious footerNavi">
<a class="prevPage" href="qmake-manual.html">qmake Manual</a>
<span class="naviSeparator">  &#9702;  </span>
<a class="nextPage" href="qmake-tutorial.html">Getting Started</a>
</p>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2017 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br>    Qt and respective logos are trademarks of The Qt Company Ltd.     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>