How to build Pencil2D Step by Step
Last update: 2014 June 4
This is an step by step guide to help you build Pencil from source.
Total 4 steps:
- Install a C++ compiler.
- Install Qt Library.
- Get the source code.
- Configure and build Pencil.
Step 1. Install a C++ compiler.
Mac OS X: Download and install the latest Xcode (free, but requires an Apple ID).
Then go to Xcode->Preference->Downloads, install the “Command Line Tools.”
Windows: MinGW C++ compiler is contained in Qt installer, select “MinGW” during Qt installation.
Step 2. Install Qt Libraries
Install Qt is quite easy, just download Qt online installer from Qt-Project.org, and run it.
Step 3. Get the source code
You can simply download a zip archive, which contains all source code.
If you plan to contribute to the Pencil project, the best way to get the code is via Git.
(New article: How to contribute to Pencil development, To Be Done)
Step 4. Build Pencil2D in QtCreator
After downloading the source code files, go to its folder directory.
In the source code directory, double click the file pencil.pro to open it with Qt Creator.
Click Run button to build and run Pencil2D.