aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2017-03-20 17:23:31 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2017-04-06 12:46:25 +0000
commit8237570ecbfed6c82f32de725dd3011f664b73ca (patch)
tree30fc557b5869d91295725b94c3a6282f18cfcff6 /README.md
parent1804b43298846fdfec51807a337ef42cec39b540 (diff)
Describe building with Clang
Task-number: PYSIDE-323 Change-Id: Ib901b04ba1510ee02028805a9fa0c619ced3002c Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'README.md')
-rw-r--r--README.md22
1 files changed, 22 insertions, 0 deletions
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: