title: How can I install Qt 5.2.1 from the command line in Cygwin?
body: <pre class="lang-none prettyprint-override"><code>$ wget --quiet http://download.qt-project.org/official_releases/qt/5.2/5.2.1/qt-opensource-windows-x86-msvc2012_64_opengl-5.2.1.exe
  $
  </code></pre>
  
  <p>As seen above, I first downloaded the Qt package for Visual Studio in a Cygwin Bash shell.</p>
  
  <p>A sidenote: The Qt library packaged within Cygwin is not useful for me because I need to use the Visual Studio C++ compiler.</p>
  
  <p>First I set the correct permissions on the file</p>
  
  <pre class="lang-none prettyprint-override"><code>$ chmod 755 qt-opensource-windows-x86-msvc2012_64_opengl-5.2.1.exe
  </code></pre>
  
  <p>If I start it like this</p>
  
  <pre class="lang-none prettyprint-override"><code>$ ./qt-opensource-windows-x86-msvc2012_64_opengl-5.2.1.exe
  </code></pre>
  
  <p>a graphical window (GUI) is shown but that is not what I want as I would later like to have the installation procedure written into a Bash script that I could run in Cygwin.</p>
  
  <p>If I add the option <code>--help</code>, like this</p>
  
  <pre class="lang-none prettyprint-override"><code>$ ./qt-opensource-windows-x86-msvc2012_64_opengl-5.2.1.exe --help
  </code></pre>
  
  <p>a new terminal window is opened with the following text </p>
  
  <pre class="lang-none prettyprint-override"><code>Usage: SDKMaintenanceTool [OPTIONS]
  
  User:
    --help                                      Show commandline usage                  
    --version                                   Show current version                    
    --checkupdates                              Check for updates and return an XML file describing
                                                the available updates                   
    --updater                                   Start in updater mode.                  
    --manage-packages                           Start in packagemanager mode.  
    --proxy                                     Set system proxy on Win and Mac.        
                                                This option has no effect on Linux.     
    --verbose                                   Show debug output on the console        
    --create-offline-repository                 Offline installer only: Create a local repository inside the
                                                installation directory based on the offline
                                                installer's content.                    
  
  Developer:
    --runoperation [OPERATION] [arguments...]   Perform an operation with a list of arguments
    --undooperation [OPERATION] [arguments...]  Undo an operation with a list of arguments
    --script [scriptName]                       Execute a script                        
    --no-force-installations                    Enable deselection of forced components 
    --addRepository [URI]                       Add a local or remote repo to the list of user defined repos.
    --addTempRepository [URI]                   Add a local or remote repo to the list of temporary available
                                                repos.                                  
    --setTempRepository [URI]                   Set a local or remote repo as tmp repo, it is the only one
                                                used during fetch.                      
                                                Note: URI must be prefixed with the protocol, i.e. file:///
                                                http:// or ftp://. It can consist of multiple
                                                addresses separated by comma only.      
    --show-virtual-components                   Show virtual components in package manager and updater
    --binarydatafile [binary_data_file]         Use the binary data of another installer or maintenance tool.
    --update-installerbase [new_installerbase]  Patch a full installer with a new installer base
    --dump-binary-data -i [PATH] -o [PATH]      Dumps the binary content into specified output path (offline
                                                installer only).                        
                                                Input path pointing to binary data file, if omitted
                                                the current application is used as input.
  </code></pre>
  
  <p>I don't know how to continue from here. Do you know how I could install the Qt 5.2.1 library (for Visual Studio) from the Bash shell in Cygwin?</p>
  
  <p><strong>Update:</strong> The advantage of writing the build script for a Cygwin environment is that commands like <strong>git</strong>, <strong>wget</strong>, and <strong>scp</strong> are available. This <a href="https://stackoverflow.com/a/15335686">Stackoverflow answer</a> describes how to invoke the MSVC compiler from a Cygwin bash script. Note, that the Qt application I'm building is not going to have any dependency on Cygwin.</p>