Wednesday, 15 October 2014

Qt Creator Tutorial P1 - Introduction

Introduction

This tutorial is based on Qt Creator 3.2.2, Qt 5.3.2.



Qt Creator is tool for building cross-platforms GUIs with C++,JavaScript, QML , ..etc.
First thing is to install Qt Creator and the dependencies. Qt Creator depends on GCC or MinGW or Visual Studio or Clang.

Compiler Choices

There are many compiler choices for Qt Creator. Here are the summaries of each compiler.

GCC
GNU Compiler Collection is GPLv3 compiler collection. It is primarily for GNU/Linux distributions.
Kernel API tied mostly to Unix or Unix-like OSes.

Licence: GPLv3
Platforms: GNU/Linux , open source BSDs (FreeBSD,OpenBSD, ...etc) , Windows (Cygwin), Mac OS X

Advantages:
Mature
GPLv3
Optimized
Fast
Available on all GNU/Linux repositories
Targets embed devices(ARM processors)

Disadvantages:
Not easy to install on Windows(Cygwin)
Large size
GPLv3

Recommendation:
Use GCC if you are on a GNU/Linux distributions or targeting embed devices.

MinGW
MinGW is the port of GCC on to Windows. Implements WinAPI instead of a Unix/Unix-like API.
MinGW w64 is the 64 bit version with a larger implementation of WinAPI.

Licence: GPL(MinGW) LGPLv2(MinGW w64)
Platforms: Windows and Wine.

Advantages:
Stable
GPL
Pre-built binaries for Windows
Smaller package than Cywgin

Disadvantages:
Incomplete implementation of WinAPI
Only supports OpenGL

Recommendation:
Install this on a Windows machine. Easiest package to install on a Windows machine.

Visual Studio
Visual Studio is provided by Microsoft as a development tool for .NET. However,Visual Studio could compile Qt applications.

Licence: Proprietary
Platform: Windows

Advantages:
Mature
.NET API
Support
Pre-built binaries for Windows

Disadvantages:
Some versions might be expensive
.NET runtime
Large package

Recommendation:
Use this route only if you require access to the .NET APIs.

Clang
Compiler suite front end for LLVM. Built specifically for llvm. Offers a drop in replacement for GCC as Clang is compatible with GCC.

Licence: LLVM "BSD" Licence
Platforms: open source BSDs (FreeBSD,OpenBSD, ...etc) , GNU/Linux Windows , Mac OS X

Advantages:
Faster compilation than GCC
Stable
Uses less disk space for compilation than GCC
IDE API (better IDE integration)
Better error messages than GCC
LLVM "BSD" Licence

Disadvantages:
Binaries run slower than GCC
Less platforms than GCC

Recommendation:
Use clang on the open source BSDs since clang is included in the repositories by default.

Next

Qt Creator Tutorial P2 - Install




No comments:

Post a Comment