Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-25152

Build error in qmldesigner plugin

    XMLWordPrintable

    Details

    • Platform/s:
      Linux/X11
    • Commits:
      4caca8fbfb5480ca442b87ba9a7e05808e846258 (qt-creator/qt-creator/4.14)

      Description

      src/plugins/qmldesigner/CMakeLists.txt needs to link to Threads::Threads for the QmlDesigner target or we're getting this build error:

       

      [ 3034s] /usr/lib/gcc/i586-suse-linux/10/../../../../i586-suse-linux/bin/ld: CMakeFiles/QmlDesigner.dir/designercore/imagecache/imagecache.cpp.o: in function `QmlDesigner::ImageCache::ImageCache(QmlDesigner::ImageCacheStorageInterface&, QmlDesigner::ImageCacheGeneratorInterface&, QmlDesigner::TimeStampProviderInterface&)':
      [ 3034s] /usr/include/c++/10/thread:149: undefined reference to `pthread_create'
      [ 3034s] collect2: error: ld returned 1 exit status
      [ 3034s] make[2]: *** [src/plugins/qmldesigner/CMakeFiles/QmlDesigner.dir/build.make:6436: lib/qtcreator/plugins/libQmlDesigner.so] Error 1

       

       

        Attachments

        For Gerrit Dashboard: QTCREATORBUG-25152
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            con Eike Ziller
            Reporter:
            cgiboudeaux Christophe Giboudeaux
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes