Package Details: qtcreator-git v4.9.1.r864.g611e1ea837-1

Git Clone URL: https://aur.archlinux.org/qtcreator-git.git (read-only)
Package Base: qtcreator-git
Description: Lightweight, cross-platform integrated development environment
Upstream URL: https://www.qt.io
Licenses: LGPL
Conflicts: qbs, qtcreator
Provides: qbs, qtcreator
Submitter: delor
Maintainer: rodrigo21 (hunger)
Last Packager: rodrigo21
Votes: 31
Popularity: 0.038882
First Submitted: 2009-04-12 14:35
Last Updated: 2019-06-06 12:33

Dependencies (23)

Required by (32)

Sources (3)

Latest Comments

1 2 3 4 5 6 Next › Last »

hunger commented on 2019-06-06 08:47

The following diff is needed to not pick up the version of Qt Design Studio (which will then break the package):

diff --git a/PKGBUILD b/PKGBUILD index 1823aa7..bd83fd6 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -41,7 +41,7 @@ sha256sums=('SKIP' pkgver() { cd qt-creator

  • git describe --long | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
  • git describe --long --match v* | sed -r 's/([^-]*-g)/r\1/;s/-/./g' }

prepare() {

sleeping commented on 2019-05-03 11:33

Getting this error, patch needs to be removed again I think:

==> Starting prepare()...
patching file src/plugins/clangcodemodel/clangeditordocumentprocessor.cpp
Hunk #2 FAILED at 527.
1 out of 2 hunks FAILED -- saving rejects to file src/plugins/clangcodemodel/clangeditordocumentprocessor.cpp.rej
patching file src/plugins/clangtools/clangtidyclazyrunner.cpp
patch unexpectedly ends in middle of line
Hunk #2 FAILED at 86.
1 out of 2 hunks FAILED -- saving rejects to file src/plugins/clangtools/clangtidyclazyrunner.cpp.rej
==> ERROR: A failure occurred in prepare().
    Aborting...
Error making: qtcreator-git

rodrigo21 commented on 2019-04-02 22:49

Package updated with the patch from @mateste. Thanks for the patch.

mateste commented on 2019-04-02 08:49

Backporting (or is it forwardporting? :) the patch from Arch repo seems to work:

Save it as a .patch file and add it to the PKGBUILD

diff --git a/src/plugins/clangcodemodel/clangeditordocumentprocessor.cpp b/src/plugins/clangcodemodel/clangeditordocumentprocessor.cpp
index 706c5101a3..0f7af62dba 100644
--- a/src/plugins/clangcodemodel/clangeditordocumentprocessor.cpp
+++ b/src/plugins/clangcodemodel/clangeditordocumentprocessor.cpp
@@ -511,6 +511,7 @@ private:
         if (tidyMode == Mode::Disabled)
             return;

+        m_options.append(CppTools::XclangArgs({"-load", "libclangTidyPlugin.so"}));
         m_options.append(CppTools::XclangArgs({"-add-plugin", "clang-tidy"}));

         if (tidyMode == Mode::File)
@@ -526,8 +527,8 @@ private:
         if (checks.isEmpty())
             return;

-        m_options.append(CppTools::XclangArgs({"-add-plugin",
-                                               "clang-lazy",
+        m_options.append(CppTools::XclangArgs({"-load", "ClazyPlugin.so",
+                          "-add-plugin", "clazy",
                                                "-plugin-arg-clang-lazy",
                                                "enable-all-fixits",
                                                "-plugin-arg-clang-lazy",
diff --git a/src/plugins/clangtools/clangtidyclazyrunner.cpp b/src/plugins/clangtools/clangtidyclazyrunner.cpp
index a580704243..42c4319240 100644
--- a/src/plugins/clangtools/clangtidyclazyrunner.cpp
+++ b/src/plugins/clangtools/clangtidyclazyrunner.cpp
@@ -76,6 +76,7 @@ QStringList ClangTidyClazyRunner::constructCommandLineArguments(const QStringLis

     const ClangDiagnosticConfig::TidyMode tidyMode = m_diagnosticConfig.clangTidyMode();
     if (tidyMode != ClangDiagnosticConfig::TidyMode::Disabled) {
+        arguments << XclangArgs({"-load", "libclangTidyPlugin.so"});
         arguments << XclangArgs({"-add-plugin", "clang-tidy"});
         if (tidyMode != ClangDiagnosticConfig::TidyMode::File) {
             const QString tidyChecks = m_diagnosticConfig.clangTidyChecks();
@@ -85,8 +86,9 @@ QStringList ClangTidyClazyRunner::constructCommandLineArguments(const QStringLis

     const QString clazyChecks = m_diagnosticConfig.clazyChecks();
     if (!clazyChecks.isEmpty()) {
-        arguments << XclangArgs({"-add-plugin",
-                                 "clang-lazy",
+        arguments << XclangArgs({"-load", "ClazyPlugin.so",
+                "-add-plugin",
+                                 "clazy",
                                  "-plugin-arg-clang-lazy",
                                  "enable-all-fixits",
                                  "-plugin-arg-clang-lazy",

lpc123 commented on 2019-03-31 17:03

Getting this error on libClangTools after clang upgrade (7.0.1-1 -> 8.0.0-3) released today:

/usr/lib/qtcreator/plugins/libClangTools.so: Cannot load library /usr/lib/qtcreator/plugins/libClangTools.so: (libclang.so.7: cannot open shared object file: No such file or directory)

Ravenclaw commented on 2018-08-17 18:18

The compiling issue mentioned by txtsd still persists. Btw, at least I'm using clang and llvm(-libs) built from svn aur packages.

txtsd commented on 2018-07-27 20:20

/home/txtsd/.cache/yay/qtcreator-git/src/qt-creator/src/tools/clangbackend/source/clangtranslationunitupdater.cpp: In static member function ‘static uint ClangBackEnd::TranslationUnitUpdater::defaultParseOptions()’:
/home/txtsd/.cache/yay/qtcreator-git/src/qt-creator/src/tools/clangbackend/source/clangtranslationunitupdater.cpp:185:12: error: ‘CXTranslationUnit_IgnoreNonErrorsFromIncludedFiles’ was not declared in this scope
          | CXTranslationUnit_IgnoreNonErrorsFromIncludedFiles
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/txtsd/.cache/yay/qtcreator-git/src/qt-creator/src/tools/clangbackend/source/clangtranslationunitupdater.cpp:185:12: note: suggested alternative: ‘CXTranslationUnit_SkipFunctionBodies’
          | CXTranslationUnit_IgnoreNonErrorsFromIncludedFiles
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            CXTranslationUnit_SkipFunctionBodies

fasked commented on 2018-01-11 10:08

The QBS repository URL is invalid. It seems it should be "qbs/qbs.git/".

rodrigo21 commented on 2017-10-14 20:38

Just build in a clean chroot with no errors.
llvm-libs already is a dependency for clang and llvm packages.

Fincer commented on 2017-10-14 18:41

Please add llvm-libs to makedepends. Failed to compile on my system due to missing llvm-libs package (missing libraries).