Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-138053

qqmlprivate compile issue with nvcc

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.8, 6.10.0 Beta2, 6.11.0 FF
    • 6.8.2
    • QML: Compiler
    • None
    • docker nvidia/cuda 12.9.1-devel-ubuntu24.04
    • Linux/X11
    • b0d9b0ff3 (dev), cc39c0dcd (6.10)

    Description

      Hi, I have some issue to compile some cuda library depending on qt with nvcc compiler in a docker nvidia/cuda 12.9.1-devel-ubuntu24.04

      I have to add explicitely the type 'QBasicAtomicInt' in qqmlprivate.h to make all compile.

       

      /opt/Qt/6.8.2/gcc_64/include/QtQml/qqmlprivate.h: In function 'constexpr QtPrivate::QMetaTypeInterface QQmlPrivate::metaTypeForNamespace(const QMetaObject* (* const&)(const QtPrivate::QMetaTypeInterface*), const char*)':
      /opt/Qt/6.8.2/gcc_64/include/QtQml/qqmlprivate.h:1124:163: error: could not convert '{0, 0, 0, 0, metaObjectFunction, name, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr}' from '<brace-enclosed initializer list>' to 'QtPrivate::QMetaTypeInterface'

       

      if I replace 

       

      return {
                  /*.revision=*/ 0,
                  /*.alignment=*/ 0,
                  /*.size=*/ 0,
                  /*.flags=*/ 0,
                  /*.typeId=*/ {},
                  /*.metaObject=*/ metaObjectFunction,
                  /*.name=*/ name,
                  /*.defaultCtr=*/ nullptr,
                  /*.copyCtr=*/ nullptr,
                  /*.moveCtr=*/ nullptr,
                  /*.dtor=*/ nullptr,
                  /*.equals*/ nullptr,
                  /*.lessThan*/ nullptr,
                  /*.debugStream=*/ nullptr,
                  /*.dataStreamOut=*/ nullptr,
                  /*.dataStreamIn=*/ nullptr,
                  /*.legacyRegisterOp=*/ nullptr 
              };

          
      by 

       

       

      return {
                  /*.revision=*/ 0,
                  /*.alignment=*/ 0,
                  /*.size=*/ 0,
                  /*.flags=*/ 0,
                  /*.typeId=*/ QBasicAtomicInt{},
                  /*.metaObject=*/ metaObjectFunction,
                  /*.name=*/ name,
                  /*.defaultCtr=*/ nullptr,
                  /*.copyCtr=*/ nullptr,
                  /*.moveCtr=*/ nullptr,
                  /*.dtor=*/ nullptr,
                  /*.equals*/ nullptr,
                  /*.lessThan*/ nullptr,
                  /*.debugStream=*/ nullptr,
                  /*.dataStreamOut=*/ nullptr,
                  /*.dataStreamIn=*/ nullptr,
                  /*.legacyRegisterOp=*/ nullptr
              }; 

       

       

       

      it compile well.

       

      Qt version used installed by : 
      qtVer="682"
      /qt-unified-linux-x64-4.6.1-online.run --root /opt/Qt --accept-licenses --default-answer --confirm-command install qt.qt6.$qtVer.linux_gcc_64 extensions.qtwebengine.$qtVer.linux_gcc_64 qt.qt6.$qtVer.addons.qtwebchannel qt.qt6.$qtVer.addons.qthttpserver qt.qt6.$qtVer.wasm_singlethread  qt.qt6.$qtVer.addons.qtmultimedia qt.qt6.$qtVer.addons.qtpositioning extensions.qtpdf.$qtVer.linux_gcc_64 qt.qt6.$qtVer.addons.qtconnectivity --accept-obligations --email xxxxxx --pw xxxxxx  

       

      Attachments

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

        Activity

          People

            ulherman Ulf Hermann
            jeandof Jean-Dominique Favreau
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes