Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Code that works with qmake does not work with cmake
Forum Updated to NodeBB v4.3 + New Features

Code that works with qmake does not work with cmake

Scheduled Pinned Locked Moved Solved QML and Qt Quick
22 Posts 3 Posters 3.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • JonBJ JonB

    @serkan_tr said in Code that works with qmake does not work with cmake:

    • Using the Run Settings section in Qt Creator (see https://doc.qt.io/qtcreator/creator-run-settings.html#selecting-the-run-environment ), OR
    • Calling qputenv() in main(), before you construct QGuiApplication (for example: qputenv("QT_DEBUG_PLUGINS", "1"); qputenv("QML_IMPORT_TRACE", "1");)

    To be sure would you like to show exactly whatever you did for whichever one of these?

    serkan_trS Offline
    serkan_trS Offline
    serkan_tr
    wrote on last edited by
    #12

    I tried to use

    qt5_import_qml_plugins
    

    but it gave an error, there is no such commandScreenshot (5).png

    NOTE:In addition, I would like to give you the following information. When compiled with qmake, it works without error, but when compiled with cmake, it gives this error.

    Is it possible to run a cmake file inside the qmake file?

    JonBJ JKSHJ 2 Replies Last reply
    0
    • serkan_trS serkan_tr

      I tried to use

      qt5_import_qml_plugins
      

      but it gave an error, there is no such commandScreenshot (5).png

      NOTE:In addition, I would like to give you the following information. When compiled with qmake, it works without error, but when compiled with cmake, it gives this error.

      Is it possible to run a cmake file inside the qmake file?

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #13

      @serkan_tr
      Please re-read and follow the instructions you were given:

      @JKSH said in Code that works with qmake does not work with cmake:

      Using the Run Settings section in Qt Creator (see https://doc.qt.io/qtcreator/creator-run-settings.html#selecting-the-run-environment ), OR

      You have asked and we have explained that these environment variables need to be set at runtime, not at build time. Yet you show you have put them into the Build nonetheless.....

      serkan_trS 1 Reply Last reply
      0
      • JonBJ JonB

        @serkan_tr
        Please re-read and follow the instructions you were given:

        @JKSH said in Code that works with qmake does not work with cmake:

        Using the Run Settings section in Qt Creator (see https://doc.qt.io/qtcreator/creator-run-settings.html#selecting-the-run-environment ), OR

        You have asked and we have explained that these environment variables need to be set at runtime, not at build time. Yet you show you have put them into the Build nonetheless.....

        serkan_trS Offline
        serkan_trS Offline
        serkan_tr
        wrote on last edited by serkan_tr
        #14

        @JonB said in Code that works with qmake does not work with cmake:

        @serkan_tr
        Please re-read and follow the instructions you were given:

        @JKSH said in Code that works with qmake does not work with cmake:

        Using the Run Settings section in Qt Creator (see https://doc.qt.io/qtcreator/creator-run-settings.html#selecting-the-run-environment ), OR

        You have asked and we have explained that these environment variables need to be set at runtime, not at build time. Yet you show you have put them into the Build nonetheless.....

        
        QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/msvcp140_codecvt_ids.dll"
        "Failed to extract plugin meta data from 'C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/msvcp140_codecvt_ids.dll'" 
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Chartsd.dll"
        "Failed to extract plugin meta data from 'C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Chartsd.dll'" 
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Cored.dll"
        "Failed to extract plugin meta data from 'C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Cored.dll'" 
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Guid.dll"
        "Failed to extract plugin meta data from 'C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Guid.dll'" 
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Locationd.dll"
        "Failed to extract plugin meta data from 'C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Locationd.dll'" 
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Multimediad.dll"
        "Failed to extract plugin meta data from 'C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Multimediad.dll'" 
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Networkd.dll"
        "Failed to extract plugin meta data from 'C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Networkd.dll'" 
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Positioningd.dll"
        "Failed to extract plugin meta data from 'C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Positioningd.dll'" 
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5PositioningQuickd.dll"
        "Failed to extract plugin meta data from 'C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5PositioningQuickd.dll'" 
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Qmld.dll"
        "Failed to extract plugin meta data from 'C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Qmld.dll'" 
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5QmlModelsd.dll"
        "Failed to extract plugin meta data from 'C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5QmlModelsd.dll'" 
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Quickd.dll"
        "Failed to extract plugin meta data from 'C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Quickd.dll'" 
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5SerialPortd.dll"
        "Failed to extract plugin meta data from 'C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5SerialPortd.dll'" 
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Sqld.dll"
        "Failed to extract plugin meta data from 'C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Sqld.dll'" 
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Svgd.dll"
        "Failed to extract plugin meta data from 'C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Svgd.dll'" 
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Testd.dll"
        "Failed to extract plugin meta data from 'C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Testd.dll'" 
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5TextToSpeechd.dll"
        "Failed to extract plugin meta data from 'C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5TextToSpeechd.dll'" 
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Widgetsd.dll"
        "Failed to extract plugin meta data from 'C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Widgetsd.dll'" 
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Xmld.dll"
        "Failed to extract plugin meta data from 'C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Xmld.dll'" 
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/SDL2.dll"
        "Failed to extract plugin meta data from 'C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/SDL2.dll'" 
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/ucrtbase.dll"
        "Failed to extract plugin meta data from 'C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/ucrtbase.dll'" 
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/vcruntime140.dll"
        "Failed to extract plugin meta data from 'C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/vcruntime140.dll'" 
                 not a plugin
        QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/vcruntime140_1.dll"
        "Failed to extract plugin meta data from 'C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/vcruntime140_1.dll'" 
                 not a plugin
        QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/5.15.2/msvc2019_64/plugins/platforms/platformthemes" ...
        QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/platformthemes" ...
        QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/5.15.2/msvc2019_64/plugins/platforms/styles" ...
        QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/styles" ...
        QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/styles/qwindowsvistastyled.dll"
        Found metadata in lib C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/styles/qwindowsvistastyled.dll, metadata=
        {
            "IID": "org.qt-project.Qt.QStyleFactoryInterface",
            "MetaData": {
                "Keys": [
                    "windowsvista"
                ]
            },
            "archreq": 1,
            "className": "QWindowsVistaStylePlugin",
            "debug": true,
            "version": 331520
        }
        
        
        Got keys from plugin meta data ("windowsvista")
        loaded library "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/styles/qwindowsvistastyled.dll"
        Settings location "C:/Users/emsar/AppData/Roaming/QGroundControl.org/QGroundControl.ini" Is writable?: true
        Filter rules "*Log.debug=false\nGStreamerAPILog.debug=true\nqt.qml.connections=false"
        System reported locale: QLocale(English, Latin, United States) ; Name "en_US" ; Preffered (used in maps):  "en-US"
        QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/5.15.2/msvc2019_64/plugins/platforms/texttospeech" ...
        QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/texttospeech" ...
        QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/texttospeech/qtexttospeech_sapid.dll"
        Found metadata in lib C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/texttospeech/qtexttospeech_sapid.dll, metadata=
        {
            "IID": "org.qt-project.qt.speech.tts.plugin/5.0",
            "MetaData": {
                "Features": [
                ],
                "Keys": [
                    "sapi"
                ],
                "Provider": "sapi",
                "Version": 100
            },
            "archreq": 1,
            "className": "QTextToSpeechPluginSapi",
            "debug": true,
            "version": 331520
        }
        
        
        Got keys from plugin meta data ("sapi")
        loaded library "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/texttospeech/qtexttospeech_sapid.dll"
        QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/5.15.2/msvc2019_64/plugins/platforms/mediaservice" ...
        QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/mediaservice" ...
        QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/mediaservice/dsengined.dll"
        Found metadata in lib C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/mediaservice/dsengined.dll, metadata=
        {
            "IID": "org.qt-project.qt.mediaserviceproviderfactory/5.0",
            "MetaData": {
                "Keys": [
                    "directshow"
                ],
                "Services": [
                    "org.qt-project.qt.camera",
                    "org.qt-project.qt.mediaplayer"
                ]
            },
            "archreq": 1,
            "className": "DSServicePlugin",
            "debug": true,
            "version": 331520
        }
        
        
        Got keys from plugin meta data ("directshow")
        QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/mediaservice/qtmedia_audioengined.dll"
        Found metadata in lib C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/mediaservice/qtmedia_audioengined.dll, metadata=
        {
            "IID": "org.qt-project.qt.mediaserviceproviderfactory/5.0",
            "MetaData": {
                "Keys": [
                    "audiocapture"
                ],
                "Services": [
                    "org.qt-project.qt.audiosource"
                ]
            },
            "archreq": 1,
            "className": "AudioCaptureServicePlugin",
            "debug": true,
            "version": 331520
        }
        
        
        Got keys from plugin meta data ("audiocapture")
        QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/mediaservice/wmfengined.dll"
        Found metadata in lib C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/mediaservice/wmfengined.dll, metadata=
        {
            "IID": "org.qt-project.qt.mediaserviceproviderfactory/5.0",
            "MetaData": {
                "Keys": [
                    "windowsmediafoundation"
                ],
                "Services": [
                    "org.qt-project.qt.mediaplayer",
                    "org.qt-project.qt.audiodecode"
                ]
            },
            "archreq": 1,
            "className": "WMFServicePlugin",
            "debug": true,
            "version": 331520
        }
        
        
        Got keys from plugin meta data ("windowsmediafoundation")
        QMediaPluginLoader: loading metadata for iid  "org.qt-project.qt.mediaserviceproviderfactory/5.0"  at location  "/mediaservice"
        QMediaPluginLoader: Inserted index  0  into metadata:  QJsonObject({"Keys":["directshow"],"Services":["org.qt-project.qt.camera","org.qt-project.qt.mediaplayer"],"index":0})
        QMediaPluginLoader: Inserting new list for key:  "org.qt-project.qt.camera"
        QMediaPluginLoader: Inserting new list for key:  "org.qt-project.qt.mediaplayer"
        QMediaPluginLoader: Inserted index  1  into metadata:  QJsonObject({"Keys":["audiocapture"],"Services":["org.qt-project.qt.audiosource"],"index":1})
        QMediaPluginLoader: Inserting new list for key:  "org.qt-project.qt.audiosource"
        QMediaPluginLoader: Inserted index  2  into metadata:  QJsonObject({"Keys":["windowsmediafoundation"],"Services":["org.qt-project.qt.mediaplayer","org.qt-project.qt.audiodecode"],"index":2})
        QMediaPluginLoader: Inserting new list for key:  "org.qt-project.qt.audiodecode"
        loaded library "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/mediaservice/dsengined.dll"
        QMediaPluginLoader: loaded plugins for key "org.qt-project.qt.camera" : ("directshow")
        QMediaPluginLoader: loaded plugins for key "org.qt-project.qt.camera" : ("directshow")
        QMediaPluginLoader: loaded plugins for key "org.qt-project.qt.camera" : ("directshow")
        QMediaPluginLoader: loaded plugins for key "org.qt-project.qt.camera" : ("directshow")
        QMediaPluginLoader: loaded plugins for key "org.qt-project.qt.camera" : ("directshow")
        QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/5.15.2/msvc2019_64/plugins/platforms/position" ...
        QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/position" ...
        QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/position/qtposition_positionpolld.dll"
        Found metadata in lib C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/position/qtposition_positionpolld.dll, metadata=
        {
            "IID": "org.qt-project.qt.position.sourcefactory/5.0",
            "MetaData": {
                "Keys": [
                    "positionpoll"
                ],
                "Monitor": true,
                "Position": false,
                "Priority": 1000,
                "Provider": "positionpoll",
                "Satellite": false,
                "Testable": true
            },
            "archreq": 1,
            "className": "QGeoPositionInfoSourceFactoryPoll",
            "debug": true,
            "version": 331520
        }
        
        
        Got keys from plugin meta data ("positionpoll")
        QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/position/qtposition_serialnmead.dll"
        Found metadata in lib C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/position/qtposition_serialnmead.dll, metadata=
        {
            "IID": "org.qt-project.qt.position.sourcefactory/5.0",
            "MetaData": {
                "Keys": [
                    "serialnmea"
                ],
                "Monitor": false,
                "Position": true,
                "Priority": 1000,
                "Provider": "serialnmea",
                "Satellite": false,
                "Testable": false
            },
            "archreq": 1,
            "className": "QGeoPositionInfoSourceFactorySerialNmea",
            "debug": true,
            "version": 331520
        }
        
        
        Got keys from plugin meta data ("serialnmea")
        QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/position/qtposition_winrtd.dll"
        Found metadata in lib C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/position/qtposition_winrtd.dll, metadata=
        {
            "IID": "org.qt-project.qt.position.sourcefactory/5.0",
            "MetaData": {
                "Keys": [
                    "winrt"
                ],
                "Monitor": false,
                "Position": true,
                "Priority": 1000,
                "Provider": "winrt",
                "Satellite": false,
                "Testable": false
            },
            "archreq": 1,
            "className": "QGeoPositionInfoSourceFactoryWinRT",
            "debug": true,
            "version": 331520
        }
        
        
        Got keys from plugin meta data ("winrt")
        loaded library "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/position/qtposition_serialnmead.dll"
        serialnmea: No known GPS device found. Specify the COM port via QT_NMEA_SERIAL_PORT.
        loaded library "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/position/qtposition_winrtd.dll"
        VideoReceiverLog: Stop called on empty URI
        VideoReceiverLog: Stop called on empty URI
        MAVLinkLogManagerLog: MAVLink logs directory: "C:/Users/emsar/OneDrive/Belgeler/QGroundControl/Logs"
        QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/5.15.2/msvc2019_64/plugins/platforms/bearer" ...
        QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/bearer" ...
        QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/bearer/qgenericbearerd.dll"
        Found metadata in lib C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/bearer/qgenericbearerd.dll, metadata=
        {
            "IID": "org.qt-project.Qt.QBearerEngineFactoryInterface",
            "MetaData": {
                "Keys": [
                    "generic"
                ]
            },
            "archreq": 1,
            "className": "QGenericEnginePlugin",
            "debug": true,
            "version": 331520
        }
        
        
        Got keys from plugin meta data ("generic")
        loaded library "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/bearer/qgenericbearerd.dll"
        Map Cache in: "C:/Users/emsar/AppData/Local/cache/QGCMapCache300" / "qgcMapCache.db"
        QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/5.15.2/msvc2019_64/plugins/platforms/sqldrivers" ...
        QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/sqldrivers" ...
        QQmlImportDatabase::addImportPath: "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/qml"
        QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/sqldrivers/qsqlited.dll"
        QQmlImportDatabase::addImportPath: "qrc:/qt-project.org/imports"
        QQmlImportDatabase::addImportPath: "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug"
        Found metadata in lib C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/sqldrivers/qsqlited.dll, metadata=
        {
            "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
            "MetaData": {
                "Keys": [
                    "QSQLITE"
                ]
            },
            "archreq": 1,
            "className": "QSQLiteDriverPlugin",
            "debug": true,
            "version": 331520
        }
        
        
        Got keys from plugin meta data ("QSQLITE")
        QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/sqldrivers/qsqlodbcd.dll"
        Found metadata in lib C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/sqldrivers/qsqlodbcd.dll, metadata=
        {
            "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
            "MetaData": {
                "Keys": [
                    "QODBC3",
                    "QODBC"
                ]
            },
            "archreq": 1,
            "className": "QODBCDriverPlugin",
            "debug": true,
            "version": 331520
        }
        
        
        Got keys from plugin meta data ("QODBC3", "QODBC")
        QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/sqldrivers/qsqlpsqld.dll"
        Found metadata in lib C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/sqldrivers/qsqlpsqld.dll, metadata=
        {
            "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
            "MetaData": {
                "Keys": [
                    "QPSQL7",
                    "QPSQL"
                ]
            },
            "archreq": 1,
            "className": "QPSQLDriverPlugin",
            "debug": true,
            "version": 331520
        }
        
        
        Got keys from plugin meta data ("QPSQL7", "QPSQL")
        loaded library "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/sqldrivers/qsqlited.dll"
        QQmlImportDatabase::addImportPath: "qrc:/qml"
        QQmlImports(qrc:/qml/MainRootWindow.qml)::addLibraryImport: "QtQuick" 2.11 as ""
        QQmlImports(qrc:/qml/MainRootWindow.qml)::addLibraryImport: "QtQuick.Controls" 2.4 as ""
        QQmlImports(qrc:/qml/MainRootWindow.qml)::addLibraryImport: "QtQuick.Dialogs" 1.3 as ""
        QQmlImports(qrc:/qml/MainRootWindow.qml)::addLibraryImport: "QtQuick.Layouts" 1.11 as ""
        QQmlImports(qrc:/qml/MainRootWindow.qml)::addLibraryImport: "QtQuick.Window" 2.11 as ""
        QQmlImports(qrc:/qml/MainRootWindow.qml)::addLibraryImport: "QGroundControl" 1.0 as ""
        QQmlImports(qrc:/qml/MainRootWindow.qml)::addLibraryImport: "QGroundControl.Palette" 1.0 as ""
        QQmlImports(qrc:/qml/MainRootWindow.qml)::addLibraryImport: "QGroundControl.Controls" 1.0 as ""
        QQmlImports(qrc:/qml/MainRootWindow.qml)::importExtension: loaded ":/qml/QGroundControl/Controls/qmldir"
        QQmlImports(qrc:/qml/MainRootWindow.qml)::addLibraryImport: "QGroundControl.ScreenTools" 1.0 as ""
        QQmlImports(qrc:/qml/MainRootWindow.qml)::importExtension: loaded ":/qml/QGroundControl/ScreenTools/qmldir"
        QQmlImports(qrc:/qml/MainRootWindow.qml)::addLibraryImport: "QGroundControl.FlightDisplay" 1.0 as ""
        QQmlImports(qrc:/qml/MainRootWindow.qml)::importExtension: loaded ":/qml/QGroundControl/FlightDisplay/qmldir"
        QQmlImports(qrc:/qml/MainRootWindow.qml)::addLibraryImport: "QGroundControl.FlightMap" 1.0 as ""
        QQmlImports(qrc:/qml/MainRootWindow.qml)::importExtension: loaded ":/qml/QGroundControl/FlightMap/qmldir"
        QQmlApplicationEngine failed to load component
        qrc:/qml/MainRootWindow.qml:14:1: module "QtQuick.Window" is not installed
        qrc:/qml/MainRootWindow.qml:13:1: module "QtQuick.Layouts" is not installed
        qrc:/qml/MainRootWindow.qml:12:1: module "QtQuick.Dialogs" is not installed
        qrc:/qml/MainRootWindow.qml:11:1: module "QtQuick.Controls" is not installed
        qrc:/qml/MainRootWindow.qml:14:1: module "QtQuick.Window" is not installed
        qrc:/qml/MainRootWindow.qml:13:1: module "QtQuick.Layouts" is not installed
        qrc:/qml/MainRootWindow.qml:12:1: module "QtQuick.Dialogs" is not installed
        qrc:/qml/MainRootWindow.qml:11:1: module "QtQuick.Controls" is not installed
        qrc:/qml/MainRootWindow.qml:14:1: module "QtQuick.Window" is not installed
        qrc:/qml/MainRootWindow.qml:13:1: module "QtQuick.Layouts" is not installed
        qrc:/qml/MainRootWindow.qml:12:1: module "QtQuick.Dialogs" is not installed
        qrc:/qml/MainRootWindow.qml:11:1: module "QtQuick.Controls" is not installed
        qrc:/qml/MainRootWindow.qml:14:1: module "QtQuick.Window" is not installed
        qrc:/qml/MainRootWindow.qml:13:1: module "QtQuick.Layouts" is not installed
        qrc:/qml/MainRootWindow.qml:12:1: module "QtQuick.Dialogs" is not installed
        qrc:/qml/MainRootWindow.qml:11:1: module "QtQuick.Controls" is not installed
        QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/5.15.2/msvc2019_64/plugins/platforms/accessiblebridge" ...
        QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/accessiblebridge" ...
        "v4.2.0"
        

        this time it gave such an error, thank you very much for your help
        I can only share this much because it is too long mistake

        JonBJ 1 Reply Last reply
        0
        • serkan_trS serkan_tr

          @JonB said in Code that works with qmake does not work with cmake:

          @serkan_tr
          Please re-read and follow the instructions you were given:

          @JKSH said in Code that works with qmake does not work with cmake:

          Using the Run Settings section in Qt Creator (see https://doc.qt.io/qtcreator/creator-run-settings.html#selecting-the-run-environment ), OR

          You have asked and we have explained that these environment variables need to be set at runtime, not at build time. Yet you show you have put them into the Build nonetheless.....

          
          QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/msvcp140_codecvt_ids.dll"
          "Failed to extract plugin meta data from 'C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/msvcp140_codecvt_ids.dll'" 
                   not a plugin
          QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Chartsd.dll"
          "Failed to extract plugin meta data from 'C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Chartsd.dll'" 
                   not a plugin
          QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Cored.dll"
          "Failed to extract plugin meta data from 'C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Cored.dll'" 
                   not a plugin
          QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Guid.dll"
          "Failed to extract plugin meta data from 'C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Guid.dll'" 
                   not a plugin
          QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Locationd.dll"
          "Failed to extract plugin meta data from 'C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Locationd.dll'" 
                   not a plugin
          QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Multimediad.dll"
          "Failed to extract plugin meta data from 'C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Multimediad.dll'" 
                   not a plugin
          QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Networkd.dll"
          "Failed to extract plugin meta data from 'C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Networkd.dll'" 
                   not a plugin
          QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Positioningd.dll"
          "Failed to extract plugin meta data from 'C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Positioningd.dll'" 
                   not a plugin
          QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5PositioningQuickd.dll"
          "Failed to extract plugin meta data from 'C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5PositioningQuickd.dll'" 
                   not a plugin
          QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Qmld.dll"
          "Failed to extract plugin meta data from 'C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Qmld.dll'" 
                   not a plugin
          QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5QmlModelsd.dll"
          "Failed to extract plugin meta data from 'C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5QmlModelsd.dll'" 
                   not a plugin
          QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Quickd.dll"
          "Failed to extract plugin meta data from 'C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Quickd.dll'" 
                   not a plugin
          QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5SerialPortd.dll"
          "Failed to extract plugin meta data from 'C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5SerialPortd.dll'" 
                   not a plugin
          QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Sqld.dll"
          "Failed to extract plugin meta data from 'C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Sqld.dll'" 
                   not a plugin
          QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Svgd.dll"
          "Failed to extract plugin meta data from 'C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Svgd.dll'" 
                   not a plugin
          QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Testd.dll"
          "Failed to extract plugin meta data from 'C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Testd.dll'" 
                   not a plugin
          QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5TextToSpeechd.dll"
          "Failed to extract plugin meta data from 'C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5TextToSpeechd.dll'" 
                   not a plugin
          QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Widgetsd.dll"
          "Failed to extract plugin meta data from 'C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Widgetsd.dll'" 
                   not a plugin
          QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Xmld.dll"
          "Failed to extract plugin meta data from 'C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Xmld.dll'" 
                   not a plugin
          QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/SDL2.dll"
          "Failed to extract plugin meta data from 'C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/SDL2.dll'" 
                   not a plugin
          QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/ucrtbase.dll"
          "Failed to extract plugin meta data from 'C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/ucrtbase.dll'" 
                   not a plugin
          QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/vcruntime140.dll"
          "Failed to extract plugin meta data from 'C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/vcruntime140.dll'" 
                   not a plugin
          QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/vcruntime140_1.dll"
          "Failed to extract plugin meta data from 'C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/vcruntime140_1.dll'" 
                   not a plugin
          QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/5.15.2/msvc2019_64/plugins/platforms/platformthemes" ...
          QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/platformthemes" ...
          QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/5.15.2/msvc2019_64/plugins/platforms/styles" ...
          QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/styles" ...
          QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/styles/qwindowsvistastyled.dll"
          Found metadata in lib C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/styles/qwindowsvistastyled.dll, metadata=
          {
              "IID": "org.qt-project.Qt.QStyleFactoryInterface",
              "MetaData": {
                  "Keys": [
                      "windowsvista"
                  ]
              },
              "archreq": 1,
              "className": "QWindowsVistaStylePlugin",
              "debug": true,
              "version": 331520
          }
          
          
          Got keys from plugin meta data ("windowsvista")
          loaded library "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/styles/qwindowsvistastyled.dll"
          Settings location "C:/Users/emsar/AppData/Roaming/QGroundControl.org/QGroundControl.ini" Is writable?: true
          Filter rules "*Log.debug=false\nGStreamerAPILog.debug=true\nqt.qml.connections=false"
          System reported locale: QLocale(English, Latin, United States) ; Name "en_US" ; Preffered (used in maps):  "en-US"
          QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/5.15.2/msvc2019_64/plugins/platforms/texttospeech" ...
          QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/texttospeech" ...
          QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/texttospeech/qtexttospeech_sapid.dll"
          Found metadata in lib C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/texttospeech/qtexttospeech_sapid.dll, metadata=
          {
              "IID": "org.qt-project.qt.speech.tts.plugin/5.0",
              "MetaData": {
                  "Features": [
                  ],
                  "Keys": [
                      "sapi"
                  ],
                  "Provider": "sapi",
                  "Version": 100
              },
              "archreq": 1,
              "className": "QTextToSpeechPluginSapi",
              "debug": true,
              "version": 331520
          }
          
          
          Got keys from plugin meta data ("sapi")
          loaded library "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/texttospeech/qtexttospeech_sapid.dll"
          QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/5.15.2/msvc2019_64/plugins/platforms/mediaservice" ...
          QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/mediaservice" ...
          QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/mediaservice/dsengined.dll"
          Found metadata in lib C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/mediaservice/dsengined.dll, metadata=
          {
              "IID": "org.qt-project.qt.mediaserviceproviderfactory/5.0",
              "MetaData": {
                  "Keys": [
                      "directshow"
                  ],
                  "Services": [
                      "org.qt-project.qt.camera",
                      "org.qt-project.qt.mediaplayer"
                  ]
              },
              "archreq": 1,
              "className": "DSServicePlugin",
              "debug": true,
              "version": 331520
          }
          
          
          Got keys from plugin meta data ("directshow")
          QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/mediaservice/qtmedia_audioengined.dll"
          Found metadata in lib C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/mediaservice/qtmedia_audioengined.dll, metadata=
          {
              "IID": "org.qt-project.qt.mediaserviceproviderfactory/5.0",
              "MetaData": {
                  "Keys": [
                      "audiocapture"
                  ],
                  "Services": [
                      "org.qt-project.qt.audiosource"
                  ]
              },
              "archreq": 1,
              "className": "AudioCaptureServicePlugin",
              "debug": true,
              "version": 331520
          }
          
          
          Got keys from plugin meta data ("audiocapture")
          QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/mediaservice/wmfengined.dll"
          Found metadata in lib C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/mediaservice/wmfengined.dll, metadata=
          {
              "IID": "org.qt-project.qt.mediaserviceproviderfactory/5.0",
              "MetaData": {
                  "Keys": [
                      "windowsmediafoundation"
                  ],
                  "Services": [
                      "org.qt-project.qt.mediaplayer",
                      "org.qt-project.qt.audiodecode"
                  ]
              },
              "archreq": 1,
              "className": "WMFServicePlugin",
              "debug": true,
              "version": 331520
          }
          
          
          Got keys from plugin meta data ("windowsmediafoundation")
          QMediaPluginLoader: loading metadata for iid  "org.qt-project.qt.mediaserviceproviderfactory/5.0"  at location  "/mediaservice"
          QMediaPluginLoader: Inserted index  0  into metadata:  QJsonObject({"Keys":["directshow"],"Services":["org.qt-project.qt.camera","org.qt-project.qt.mediaplayer"],"index":0})
          QMediaPluginLoader: Inserting new list for key:  "org.qt-project.qt.camera"
          QMediaPluginLoader: Inserting new list for key:  "org.qt-project.qt.mediaplayer"
          QMediaPluginLoader: Inserted index  1  into metadata:  QJsonObject({"Keys":["audiocapture"],"Services":["org.qt-project.qt.audiosource"],"index":1})
          QMediaPluginLoader: Inserting new list for key:  "org.qt-project.qt.audiosource"
          QMediaPluginLoader: Inserted index  2  into metadata:  QJsonObject({"Keys":["windowsmediafoundation"],"Services":["org.qt-project.qt.mediaplayer","org.qt-project.qt.audiodecode"],"index":2})
          QMediaPluginLoader: Inserting new list for key:  "org.qt-project.qt.audiodecode"
          loaded library "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/mediaservice/dsengined.dll"
          QMediaPluginLoader: loaded plugins for key "org.qt-project.qt.camera" : ("directshow")
          QMediaPluginLoader: loaded plugins for key "org.qt-project.qt.camera" : ("directshow")
          QMediaPluginLoader: loaded plugins for key "org.qt-project.qt.camera" : ("directshow")
          QMediaPluginLoader: loaded plugins for key "org.qt-project.qt.camera" : ("directshow")
          QMediaPluginLoader: loaded plugins for key "org.qt-project.qt.camera" : ("directshow")
          QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/5.15.2/msvc2019_64/plugins/platforms/position" ...
          QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/position" ...
          QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/position/qtposition_positionpolld.dll"
          Found metadata in lib C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/position/qtposition_positionpolld.dll, metadata=
          {
              "IID": "org.qt-project.qt.position.sourcefactory/5.0",
              "MetaData": {
                  "Keys": [
                      "positionpoll"
                  ],
                  "Monitor": true,
                  "Position": false,
                  "Priority": 1000,
                  "Provider": "positionpoll",
                  "Satellite": false,
                  "Testable": true
              },
              "archreq": 1,
              "className": "QGeoPositionInfoSourceFactoryPoll",
              "debug": true,
              "version": 331520
          }
          
          
          Got keys from plugin meta data ("positionpoll")
          QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/position/qtposition_serialnmead.dll"
          Found metadata in lib C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/position/qtposition_serialnmead.dll, metadata=
          {
              "IID": "org.qt-project.qt.position.sourcefactory/5.0",
              "MetaData": {
                  "Keys": [
                      "serialnmea"
                  ],
                  "Monitor": false,
                  "Position": true,
                  "Priority": 1000,
                  "Provider": "serialnmea",
                  "Satellite": false,
                  "Testable": false
              },
              "archreq": 1,
              "className": "QGeoPositionInfoSourceFactorySerialNmea",
              "debug": true,
              "version": 331520
          }
          
          
          Got keys from plugin meta data ("serialnmea")
          QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/position/qtposition_winrtd.dll"
          Found metadata in lib C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/position/qtposition_winrtd.dll, metadata=
          {
              "IID": "org.qt-project.qt.position.sourcefactory/5.0",
              "MetaData": {
                  "Keys": [
                      "winrt"
                  ],
                  "Monitor": false,
                  "Position": true,
                  "Priority": 1000,
                  "Provider": "winrt",
                  "Satellite": false,
                  "Testable": false
              },
              "archreq": 1,
              "className": "QGeoPositionInfoSourceFactoryWinRT",
              "debug": true,
              "version": 331520
          }
          
          
          Got keys from plugin meta data ("winrt")
          loaded library "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/position/qtposition_serialnmead.dll"
          serialnmea: No known GPS device found. Specify the COM port via QT_NMEA_SERIAL_PORT.
          loaded library "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/position/qtposition_winrtd.dll"
          VideoReceiverLog: Stop called on empty URI
          VideoReceiverLog: Stop called on empty URI
          MAVLinkLogManagerLog: MAVLink logs directory: "C:/Users/emsar/OneDrive/Belgeler/QGroundControl/Logs"
          QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/5.15.2/msvc2019_64/plugins/platforms/bearer" ...
          QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/bearer" ...
          QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/bearer/qgenericbearerd.dll"
          Found metadata in lib C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/bearer/qgenericbearerd.dll, metadata=
          {
              "IID": "org.qt-project.Qt.QBearerEngineFactoryInterface",
              "MetaData": {
                  "Keys": [
                      "generic"
                  ]
              },
              "archreq": 1,
              "className": "QGenericEnginePlugin",
              "debug": true,
              "version": 331520
          }
          
          
          Got keys from plugin meta data ("generic")
          loaded library "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/bearer/qgenericbearerd.dll"
          Map Cache in: "C:/Users/emsar/AppData/Local/cache/QGCMapCache300" / "qgcMapCache.db"
          QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/5.15.2/msvc2019_64/plugins/platforms/sqldrivers" ...
          QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/sqldrivers" ...
          QQmlImportDatabase::addImportPath: "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/qml"
          QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/sqldrivers/qsqlited.dll"
          QQmlImportDatabase::addImportPath: "qrc:/qt-project.org/imports"
          QQmlImportDatabase::addImportPath: "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug"
          Found metadata in lib C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/sqldrivers/qsqlited.dll, metadata=
          {
              "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
              "MetaData": {
                  "Keys": [
                      "QSQLITE"
                  ]
              },
              "archreq": 1,
              "className": "QSQLiteDriverPlugin",
              "debug": true,
              "version": 331520
          }
          
          
          Got keys from plugin meta data ("QSQLITE")
          QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/sqldrivers/qsqlodbcd.dll"
          Found metadata in lib C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/sqldrivers/qsqlodbcd.dll, metadata=
          {
              "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
              "MetaData": {
                  "Keys": [
                      "QODBC3",
                      "QODBC"
                  ]
              },
              "archreq": 1,
              "className": "QODBCDriverPlugin",
              "debug": true,
              "version": 331520
          }
          
          
          Got keys from plugin meta data ("QODBC3", "QODBC")
          QFactoryLoader::QFactoryLoader() looking at "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/sqldrivers/qsqlpsqld.dll"
          Found metadata in lib C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/sqldrivers/qsqlpsqld.dll, metadata=
          {
              "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
              "MetaData": {
                  "Keys": [
                      "QPSQL7",
                      "QPSQL"
                  ]
              },
              "archreq": 1,
              "className": "QPSQLDriverPlugin",
              "debug": true,
              "version": 331520
          }
          
          
          Got keys from plugin meta data ("QPSQL7", "QPSQL")
          loaded library "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/sqldrivers/qsqlited.dll"
          QQmlImportDatabase::addImportPath: "qrc:/qml"
          QQmlImports(qrc:/qml/MainRootWindow.qml)::addLibraryImport: "QtQuick" 2.11 as ""
          QQmlImports(qrc:/qml/MainRootWindow.qml)::addLibraryImport: "QtQuick.Controls" 2.4 as ""
          QQmlImports(qrc:/qml/MainRootWindow.qml)::addLibraryImport: "QtQuick.Dialogs" 1.3 as ""
          QQmlImports(qrc:/qml/MainRootWindow.qml)::addLibraryImport: "QtQuick.Layouts" 1.11 as ""
          QQmlImports(qrc:/qml/MainRootWindow.qml)::addLibraryImport: "QtQuick.Window" 2.11 as ""
          QQmlImports(qrc:/qml/MainRootWindow.qml)::addLibraryImport: "QGroundControl" 1.0 as ""
          QQmlImports(qrc:/qml/MainRootWindow.qml)::addLibraryImport: "QGroundControl.Palette" 1.0 as ""
          QQmlImports(qrc:/qml/MainRootWindow.qml)::addLibraryImport: "QGroundControl.Controls" 1.0 as ""
          QQmlImports(qrc:/qml/MainRootWindow.qml)::importExtension: loaded ":/qml/QGroundControl/Controls/qmldir"
          QQmlImports(qrc:/qml/MainRootWindow.qml)::addLibraryImport: "QGroundControl.ScreenTools" 1.0 as ""
          QQmlImports(qrc:/qml/MainRootWindow.qml)::importExtension: loaded ":/qml/QGroundControl/ScreenTools/qmldir"
          QQmlImports(qrc:/qml/MainRootWindow.qml)::addLibraryImport: "QGroundControl.FlightDisplay" 1.0 as ""
          QQmlImports(qrc:/qml/MainRootWindow.qml)::importExtension: loaded ":/qml/QGroundControl/FlightDisplay/qmldir"
          QQmlImports(qrc:/qml/MainRootWindow.qml)::addLibraryImport: "QGroundControl.FlightMap" 1.0 as ""
          QQmlImports(qrc:/qml/MainRootWindow.qml)::importExtension: loaded ":/qml/QGroundControl/FlightMap/qmldir"
          QQmlApplicationEngine failed to load component
          qrc:/qml/MainRootWindow.qml:14:1: module "QtQuick.Window" is not installed
          qrc:/qml/MainRootWindow.qml:13:1: module "QtQuick.Layouts" is not installed
          qrc:/qml/MainRootWindow.qml:12:1: module "QtQuick.Dialogs" is not installed
          qrc:/qml/MainRootWindow.qml:11:1: module "QtQuick.Controls" is not installed
          qrc:/qml/MainRootWindow.qml:14:1: module "QtQuick.Window" is not installed
          qrc:/qml/MainRootWindow.qml:13:1: module "QtQuick.Layouts" is not installed
          qrc:/qml/MainRootWindow.qml:12:1: module "QtQuick.Dialogs" is not installed
          qrc:/qml/MainRootWindow.qml:11:1: module "QtQuick.Controls" is not installed
          qrc:/qml/MainRootWindow.qml:14:1: module "QtQuick.Window" is not installed
          qrc:/qml/MainRootWindow.qml:13:1: module "QtQuick.Layouts" is not installed
          qrc:/qml/MainRootWindow.qml:12:1: module "QtQuick.Dialogs" is not installed
          qrc:/qml/MainRootWindow.qml:11:1: module "QtQuick.Controls" is not installed
          qrc:/qml/MainRootWindow.qml:14:1: module "QtQuick.Window" is not installed
          qrc:/qml/MainRootWindow.qml:13:1: module "QtQuick.Layouts" is not installed
          qrc:/qml/MainRootWindow.qml:12:1: module "QtQuick.Dialogs" is not installed
          qrc:/qml/MainRootWindow.qml:11:1: module "QtQuick.Controls" is not installed
          QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/5.15.2/msvc2019_64/plugins/platforms/accessiblebridge" ...
          QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/accessiblebridge" ...
          "v4.2.0"
          

          this time it gave such an error, thank you very much for your help
          I can only share this much because it is too long mistake

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #15

          @serkan_tr
          You now have the requested diagnostic logs. Not my area I'm afraid, but somebody will doubtless see this and advise in due course.

          serkan_trS 1 Reply Last reply
          0
          • JonBJ JonB

            @serkan_tr
            You now have the requested diagnostic logs. Not my area I'm afraid, but somebody will doubtless see this and advise in due course.

            serkan_trS Offline
            serkan_trS Offline
            serkan_tr
            wrote on last edited by
            #16

            @JonB
            thanks a lot for your help

            1 Reply Last reply
            0
            • serkan_trS serkan_tr

              I tried to use

              qt5_import_qml_plugins
              

              but it gave an error, there is no such commandScreenshot (5).png

              NOTE:In addition, I would like to give you the following information. When compiled with qmake, it works without error, but when compiled with cmake, it gives this error.

              Is it possible to run a cmake file inside the qmake file?

              JKSHJ Offline
              JKSHJ Offline
              JKSH
              Moderators
              wrote on last edited by
              #17

              @serkan_tr said in Code that works with qmake does not work with cmake:

              this time it gave such an error, thank you very much for your help
              I can only share this much because it is too long mistake

              It's not an error, it's a debug log.

              Two things look very strange to me:

              1. Your program is trying to load C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Cored.dll as a plugin. This should not happen.
              2. Your program only adds one import path (QQmlImportDatabase::addImportPath: "qrc:/qml"). It should add a few different paths, including the folder that contains Qt5Cored.dll.

              Delete C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Cored.dll and try again. If it still doesn't work, post your updated debug log.

              Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

              serkan_trS 1 Reply Last reply
              1
              • JKSHJ JKSH

                @serkan_tr said in Code that works with qmake does not work with cmake:

                this time it gave such an error, thank you very much for your help
                I can only share this much because it is too long mistake

                It's not an error, it's a debug log.

                Two things look very strange to me:

                1. Your program is trying to load C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Cored.dll as a plugin. This should not happen.
                2. Your program only adds one import path (QQmlImportDatabase::addImportPath: "qrc:/qml"). It should add a few different paths, including the folder that contains Qt5Cored.dll.

                Delete C:/Users/emsar/workspace/Qt/build-qgroundcontrol-Debug/Qt5Cored.dll and try again. If it still doesn't work, post your updated debug log.

                serkan_trS Offline
                serkan_trS Offline
                serkan_tr
                wrote on last edited by
                #18

                @JKSH
                thank you very much for telling me where to look it doesn't seem to work properly but it worked.
                I think the reason for the problem is that the naming of the files it creates is wrong.
                The resulting filenames are as follows: Qt5Quickd.dll,
                Qt5Network.dll
                ..
                delete and save the d at the end of these filenames and run
                Qt5Quick.dll,
                Qt5Network.dll

                1 Reply Last reply
                0
                • JKSHJ Offline
                  JKSHJ Offline
                  JKSH
                  Moderators
                  wrote on last edited by
                  #19

                  @serkan_tr You're welcome.

                  The d suffix indicates a Debug DLL.

                  • If you create a Debug build, then your application will link to Qt5Quickd.dll
                  • If you create a Release build, then your application will link to Qt5Quick.dll

                  If your application cannot find C:\Users\emsar\workspace\Qt\build-qgroundcontrol-Debug\Qt5Quickd.dll, then it will look for C:\Qt\5.15.2\msvc2019_64\bin\Qt5Quickd.dll

                  This all means that your original problem was a deployment problem. It was not related to qmake or CMake.

                  Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                  serkan_trS 1 Reply Last reply
                  0
                  • JKSHJ JKSH

                    @serkan_tr You're welcome.

                    The d suffix indicates a Debug DLL.

                    • If you create a Debug build, then your application will link to Qt5Quickd.dll
                    • If you create a Release build, then your application will link to Qt5Quick.dll

                    If your application cannot find C:\Users\emsar\workspace\Qt\build-qgroundcontrol-Debug\Qt5Quickd.dll, then it will look for C:\Qt\5.15.2\msvc2019_64\bin\Qt5Quickd.dll

                    This all means that your original problem was a deployment problem. It was not related to qmake or CMake.

                    serkan_trS Offline
                    serkan_trS Offline
                    serkan_tr
                    wrote on last edited by
                    #20

                    @JKSH said in Code that works with qmake does not work with cmake:

                    @serkan_tr You're welcome.

                    The d suffix indicates a Debug DLL.

                    • If you create a Debug build, then your application will link to Qt5Quickd.dll
                    • If you create a Release build, then your application will link to Qt5Quick.dll

                    If your application cannot find C:\Users\emsar\workspace\Qt\build-qgroundcontrol-Debug\Qt5Quickd.dll, then it will look for C:\Qt\5.15.2\msvc2019_64\bin\Qt5Quickd.dll

                    This all means that your original problem was a deployment problem. It was not related to qmake or CMake.

                    Now I'm starting to understand a little more
                    but at the end it worked without error when d was deleted. Is it because it was pulled from the qt folder, not directly from the file?

                    JKSHJ 1 Reply Last reply
                    0
                    • serkan_trS serkan_tr

                      @JKSH said in Code that works with qmake does not work with cmake:

                      @serkan_tr You're welcome.

                      The d suffix indicates a Debug DLL.

                      • If you create a Debug build, then your application will link to Qt5Quickd.dll
                      • If you create a Release build, then your application will link to Qt5Quick.dll

                      If your application cannot find C:\Users\emsar\workspace\Qt\build-qgroundcontrol-Debug\Qt5Quickd.dll, then it will look for C:\Qt\5.15.2\msvc2019_64\bin\Qt5Quickd.dll

                      This all means that your original problem was a deployment problem. It was not related to qmake or CMake.

                      Now I'm starting to understand a little more
                      but at the end it worked without error when d was deleted. Is it because it was pulled from the qt folder, not directly from the file?

                      JKSHJ Offline
                      JKSHJ Offline
                      JKSH
                      Moderators
                      wrote on last edited by
                      #21

                      @serkan_tr said in Code that works with qmake does not work with cmake:

                      Is it because it was pulled from the qt folder, not directly from the file?

                      Yes. As I said in my previous post: If your application cannot find C:\Users\emsar\workspace\Qt\build-qgroundcontrol-Debug\Qt5Quickd.dll, then it will look for C:\Qt\5.15.2\msvc2019_64\bin\Qt5Quickd.dll

                      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                      serkan_trS 1 Reply Last reply
                      0
                      • JKSHJ JKSH

                        @serkan_tr said in Code that works with qmake does not work with cmake:

                        Is it because it was pulled from the qt folder, not directly from the file?

                        Yes. As I said in my previous post: If your application cannot find C:\Users\emsar\workspace\Qt\build-qgroundcontrol-Debug\Qt5Quickd.dll, then it will look for C:\Qt\5.15.2\msvc2019_64\bin\Qt5Quickd.dll

                        serkan_trS Offline
                        serkan_trS Offline
                        serkan_tr
                        wrote on last edited by
                        #22

                        @JKSH
                        yes as you said i deleted the files and it worked
                        thank you very much for your help

                        1 Reply Last reply
                        0

                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved