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

Build error in qmldesigner plugin

    XMLWordPrintable

Details

    • Linux/X11
    • 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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes