From 8237570ecbfed6c82f32de725dd3011f664b73ca Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Mon, 20 Mar 2017 17:23:31 +0100 Subject: Describe building with Clang Task-number: PYSIDE-323 Change-Id: Ib901b04ba1510ee02028805a9fa0c619ced3002c Reviewed-by: Alexandru Croitor --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index e3f967d7f..b7eacff50 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,28 @@ Then download the sources by running ### Building +#### Dependencies + +PySide versions following 5.6 use a C++ parser based on +[Clang](http://clang.org/). The Clang library (C-bindings), version 3.9 or +higher is required for building. Prebuilt versions of it can be downloaded from +[download.qt.io](http://download.qt.io/development_releases/prebuilt/libclang/). + +After unpacking the archive, set the environment variable *CLANG_INSTALL_DIR* to +point to the folder containing the *include* and *lib* directories of Clang: + + 7z x .../libclang-release_39-linux-Rhel7.2-gcc5.3-x86_64.7z + export CLANG_INSTALL_DIR=$PWD/libclang + +On Windows, the *PATH* variable must be set in addition for the shared library to be +found: + + 7z x .../libclang-release_39-windows-vs2015_64.7z + SET CLANG_INSTALL_DIR=%CD%\libclang + SET PATH=%CLANG_INSTALL_DIR%\bin;%PATH% + +#### Build Instructions + You might consider using a virtual environment as described at [getting started](https://wiki.qt.io/PySide2_GettingStarted). You should be able to build: -- cgit v1.2.3