Wip-clang-setting-up: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
==Getting the sources==
[[Category:Tools::Qt Creator:Branches]]
 
== 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.
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==
== Building from sources ==


* Ensure that your have installed <span class="caps">LLVM</span> (with clang), minimal <span class="caps">LLVM</span> 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 <br /> or [http://doc-snapshot.qt.io/qtcreator-3.1/creator-clang-codemodel.html on the web] ''[doc-snapshot.qt.io]''
* Build instructions can be found in<br /><code><br />src/editors/creator-clang-codemodel.qdoc<br /></code><br />or &quot;on the web&amp;quot;:http://doc-snapshot.qt.io/qtcreator-3.1/creator-clang-codemodel.html
* After running compiled <span class="caps">IDE</span>, open menu Help / About Plugins and turn on ClangCodeModel plugin.
* After running compiled IDE, open menu Help / About Plugins and turn on ClangCodeModel plugin.


==Creating Ubuntu/Debian package from clang 3.2 binaries==
== 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!).
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!).
Line 16: Line 18:
# 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<br />
# In selected folder, build package with terminal command<br /><code><br />dpkg-deb -v -D -b clang<br /></code>
 
Content of clang/DEBIAN/control file for 64-bit binaries<br /> For 32-bit binaries<br />
 
===Categories:===


* [[:Category:Tools|Tools]]
Content of clang/DEBIAN/control file for 64-bit binaries<br /><code><br />Source: clang<br />Section: unknown<br />Priority: optional<br />Package: clang<br />Architecture: amd64<br />Maintainer: Example (example</code>example.com)<br />Version: 3.2<br />Conflicts: libclang-common-dev, libclang-dev, libclang1<br />Description: Clang personal package<br /> No description<br /> .<br /><code><br />For 32-bit binaries<br /></code><br />Source: clang<br />Section: unknown<br />Priority: optional<br />Package: clang<br />Architecture: i386<br />Maintainer: Example (example<code>example.com)<br />Version: 3.2<br />Conflicts: libclang-common-dev, libclang-dev, libclang1<br />Description: Clang personal package<br /> No description<br /> .
** [[:Category:Tools::Qt-Creator:Branches|Qt Creator:Branches]]

Revision as of 09:46, 24 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
    <br />src/editors/creator-clang-codemodel.qdoc<br />
    

    or "on the web&quot;: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!).

  1. Select some folder and create subfolders clang/, clang/DEBIAN/, clang/usr/
  2. Unpack or install (with make install) binaries to folder clang/usr/
  3. Create text file clang/DEBIAN/control with content listed below
  4. In selected folder, build package with terminal command
    <br />dpkg-deb -v -D -b clang<br />
    

Content of clang/DEBIAN/control file for 64-bit binaries

<br />Source: clang<br />Section: unknown<br />Priority: optional<br />Package: clang<br />Architecture: amd64<br />Maintainer: Example (example

example.com)
Version: 3.2
Conflicts: libclang-common-dev, libclang-dev, libclang1
Description: Clang personal package
No description
.

<br />For 32-bit binaries<br />


Source: clang
Section: unknown
Priority: optional
Package: clang
Architecture: i386
Maintainer: Example (exampleexample.com)
Version: 3.2
Conflicts: libclang-common-dev, libclang-dev, libclang1
Description: Clang personal package
No description
.