Skip to content

feat:only generate plugin.qmltypes for release version#1

Open
maidamai0 wants to merge 1 commit into
pntzio:masterfrom
maidamai0:master
Open

feat:only generate plugin.qmltypes for release version#1
maidamai0 wants to merge 1 commit into
pntzio:masterfrom
maidamai0:master

Conversation

@maidamai0

Copy link
Copy Markdown

In debug version, qmlplugindump tool get an error for incompatible Qt version, mix debug and release verison.

@pntzio

pntzio commented Feb 18, 2020

Copy link
Copy Markdown
Owner

Hmm this seems odd to me. qmlplugindump should work even if your qml plugin is a debug build. I will test it later today to make sure that is the case though.

@maidamai0

maidamai0 commented Feb 20, 2020

Copy link
Copy Markdown
Author

Sorry, I should have pasted the error information:

[build] QQmlImportDatabase::addImportPath: "C:/Qt/5.13.1/msvc2017_64/qml"
[build] QQmlImportDatabase::addImportPath: "qrc:/qt-project.org/imports"
[build] QQmlImportDatabase::addImportPath: "C:/Qt/5.13.1/msvc2017_64/bin"
[build] QQmlImportDatabase::addImportPath: "C:/path/to/build"
[build] QQmlImports(file:///C:/path/to/build/loaddependencies.qml)::addLibraryImport: "QtQml" 2.0 as ""
[build] QQmlImports(file:///C:/path/to/build/loaddependencies.qml)::importExtension: loaded "C:/Qt/5.13.1/msvc2017_64/qml/QtQml/qmldir"
[build] QQmlImports(file:///C:/path/to/build/loaddependencies.qml)::addLibraryImport: "QtQuick" 2.0 as ""
[build] QQmlImports(file:///C:/path/to/build/loaddependencies.qml)::importExtension: loaded "C:/Qt/5.13.1/msvc2017_64/qml/QtQuick.2/qmldir"
[build] QQmlImportDatabase::registerPluginTypes: "QtQuick" from "C:/Qt/5.13.1/msvc2017_64/qml/QtQuick.2"
[build] QQmlImports(file:///C:/path/to/build/loaddependencies.qml)::resolveType: "QtObject" => "QObject" TYPE
[build] QQmlImports(file:///C:/path/to/build/loaddependencies.qml)::addImplicitImport
[build] QQmlImports(file:///C:/path/to/build/typelist.qml)::addLibraryImport: "QtQuick" 2.0 as ""
[build] QQmlImports(file:///C:/path/to/build/typelist.qml)::importExtension: loaded "C:/Qt/5.13.1/msvc2017_64/qml/QtQuick.2/qmldir"
[build] QQmlImports(file:///C:/path/to/build/typelist.qml)::addLibraryImport: "QtQuick" 2.0 as ""
[build] QQmlImports(file:///C:/path/to/build/typelist.qml)::importExtension: loaded "C:/Qt/5.13.1/msvc2017_64/qml/QtQuick.2/qmldir"
[build] QQmlImports(file:///C:/path/to/build/typelist.qml)::addLibraryImport: "code.cpp_extension_for_qml.TimeModule" 1.0 as ""
[build] QQmlImports(file:///C:/path/to/build/typelist.qml)::importExtension: loaded "C:/path/to/build/com/company/TimeModule/qmldir"
[build] QQmlComponent: Component is not ready
[build] file:///C:/path/to/build/typelist.qml:3:1: plugin cannot be loaded for module "com.company.TimeModule": The plugin 'C:/path/to/build/com/company/TimeModule/TimeModuled.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)
[build] NMAKE : fatal error U1077: 'C:\Qt\5.13.1\msvc2017_64\bin\qmlplugindump' : return code '0x3'

I'm also surprised by this, but it seems to be true.
There is a similar question in qt forum:qmlplugindump with debug extension.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants