Qt wiki will be updated on October 12th 2023 starting at 11:30 AM (EEST) and the maintenance will last around 2-3 hours. During the maintenance the site will be unavailable.
Wip-clang-setting-up: Difference between revisions
No edit summary |
No edit summary |
||
Line 8: | Line 8: | ||
* Ensure that your have installed LLVM (with clang), minimal LLVM version is 3.2, but it is advised to use the latest release. | * Ensure that your have installed LLVM (with clang), minimal LLVM version is 3.2, but it is advised to use the latest release. | ||
* Build instructions can be found in | * Build instructions can be found in | ||
<code> | |||
src/editors/creator-clang-codemodel.qdoc | |||
</code> | |||
or "on the web":http://doc-snapshot.qt.io/qtcreator-3.1/creator-clang-codemodel.html | |||
* After running compiled IDE, open menu Help / About Plugins and turn on ClangCodeModel plugin. | * After running compiled IDE, open menu Help / About Plugins and turn on ClangCodeModel plugin. | ||
Line 18: | Line 22: | ||
# Unpack or install (with make install) binaries to folder clang/usr/ | # Unpack or install (with make install) binaries to folder clang/usr/ | ||
# Create text file clang/DEBIAN/control with content listed below | # Create text file clang/DEBIAN/control with content listed below | ||
# In selected folder, build package with terminal command | # In selected folder, build package with terminal command | ||
<code> | |||
dpkg-deb -v -D -b clang | |||
</code> | |||
Content of clang/DEBIAN/control file for 64-bit binaries | Content of clang/DEBIAN/control file for 64-bit binaries | ||
<code> | |||
Source: clang | |||
Section: unknown | |||
Priority: optional | |||
Package: clang | |||
Architecture: amd64 | |||
Maintainer: Example (example@example.com) | |||
Version: 3.2 | |||
Conflicts: libclang-common-dev, libclang-dev, libclang1 | |||
Description: Clang personal package | |||
No description | |||
. | |||
</code> | |||
For 32-bit binaries | |||
<code> | |||
Source: clang | |||
Section: unknown | |||
Priority: optional | |||
Package: clang | |||
Architecture: i386 | |||
Maintainer: Example (example@example.com) | |||
Version: 3.2 | |||
Conflicts: libclang-common-dev, libclang-dev, libclang1 | |||
Description: Clang personal package | |||
No description | |||
. |
Revision as of 10:07, 25 February 2015
Getting the sources
Clang code-model integration is now part of the master branch, and the 3.1 release branch. No special steps are needed after you clone the regular qt-creator repository.
Building from sources
- Ensure that your have installed LLVM (with clang), minimal LLVM version is 3.2, but it is advised to use the latest release.
- Build instructions can be found in
src/editors/creator-clang-codemodel.qdoc
or "on the web":http://doc-snapshot.qt.io/qtcreator-3.1/creator-clang-codemodel.html
- After running compiled IDE, open menu Help / About Plugins and turn on ClangCodeModel plugin.
Creating Ubuntu/Debian package from clang 3.2 binaries
Download binaries for clang 3.2 here: http://llvm.org/releases/download.html#3.2 or compile sources manually and make-install with custom prefix (not to /usr directory!).
- Select some folder and create subfolders clang/, clang/DEBIAN/, clang/usr/
- Unpack or install (with make install) binaries to folder clang/usr/
- Create text file clang/DEBIAN/control with content listed below
- In selected folder, build package with terminal command
dpkg-deb -v -D -b clang
Content of clang/DEBIAN/control file for 64-bit binaries
Source: clang
Section: unknown
Priority: optional
Package: clang
Architecture: amd64
Maintainer: Example (example@example.com)
Version: 3.2
Conflicts: libclang-common-dev, libclang-dev, libclang1
Description: Clang personal package
No description
.
For 32-bit binaries
Source: clang
Section: unknown
Priority: optional
Package: clang
Architecture: i386
Maintainer: Example (example@example.com)
Version: 3.2
Conflicts: libclang-common-dev, libclang-dev, libclang1
Description: Clang personal package
No description
.