> -----Original Message----- > From: [email protected] > [mailto:[email protected]] On > Behalf Of ext Wehmer, Matthias > Sent: Monday, September 03, 2012 9:40 AM > To: [email protected] > Subject: Re: [Development] Problems with QmlEngine and importPath > > Hi everybody, > > > > After I've been given a clue about some test features in Qt5 I tried out the > qqmlmoduleplugin test in tests/auto/qml in the Qt source directory. > > It turned out that this test failed with the same symptoms we've observed in > out project. I send you a shortend version of the output.
> There seems to be a problem with the loading of dll's in windows. > > Is anyone addressing this problem or should I report a bug? Is here anyone > else using Qt with Windows XP or any other Windows version? > Hi Matthias, All the 29 test cases of qqmlmoduleplugin succeed for me (MSVC2010-32 bit, MSVC2010-64 bit and mingw-32 bit running on Windows7). This is with qt5-beta1. Output for the first test case (with set QML_IMPORT_TRACE=1) is ********* Start testing of tst_qqmlmoduleplugin ********* Config: Using QTest library 5.0.0, Qt 5.0.0 PASS : tst_qqmlmoduleplugin::initTestCase() QDEBUG : tst_qqmlmoduleplugin::importsPlugin() QQmlImportDatabase::addImportPath : "D:/dev/qt/qt-5-32/qtbase/imports" QDEBUG : tst_qqmlmoduleplugin::importsPlugin() QQmlImportDatabase::addImportPath : "D:/dev/qt/qt-5-32/qtdeclarative/tests/auto/qml/qqmlmoduleplugin/debug" QDEBUG : tst_qqmlmoduleplugin::importsPlugin() QQmlImportDatabase::addImportPath : "D:/dev/qt/qt-5-32/qtdeclarative/tests/auto/qml/qqmlmoduleplugin/imports" QDEBUG : tst_qqmlmoduleplugin::importsPlugin() QQmlImports(file:///D:/dev/qt/qt- 5-32/qtdeclarative/tests/auto/qml/qqmlmoduleplugin/data/works.qml)::addImplicitI mport QDEBUG : tst_qqmlmoduleplugin::importsPlugin() QQmlImports(file:///D:/dev/qt/qt- 5-32/qtdeclarative/tests/auto/qml/qqmlmoduleplugin/data/works.qml)::addLibraryIm port: "com.nokia.AutoTestQmlPluginType" 1.0 as "" QDEBUG : tst_qqmlmoduleplugin::importsPlugin() QQmlImports(file:///D:/dev/qt/qt- 5-32/qtdeclarative/tests/auto/qml/qqmlmoduleplugin/data/works.qml)::importExtens ion: loaded "D:/dev/qt/qt-5-32/qtdeclarative/tests/auto/qml/qqmlmoduleplugin/imp orts/com/nokia/AutoTestQmlPluginType/qmldir" QDEBUG : tst_qqmlmoduleplugin::importsPlugin() QQmlImportDatabase::importPlugin: "com.nokia.AutoTestQmlPluginType" from "D:/dev/qt/qt-5-32/qtdeclarative/tests/a uto/qml/qqmlmoduleplugin/imports/com/nokia/AutoTestQmlPluginType/plugin.dll" QDEBUG : tst_qqmlmoduleplugin::importsPlugin() QQmlImports(file:///D:/dev/qt/qt- 5-32/qtdeclarative/tests/auto/qml/qqmlmoduleplugin/data/works.qml)::resolveType: "MyPluginType" => "MyPluginType" TYPE PASS : tst_qqmlmoduleplugin::importsPlugin() How did you configure your Qt ? Regards Kai > > Thanks for your help. > > > > Greetings > > Matthias > > > > > > ********* Start testing of tst_qqmlmoduleplugin ********* > > Config: Using QTest library 5.0.0, Qt 5.0.0 > > PASS : tst_qqmlmoduleplugin::initTestCase() > > QDEBUG : tst_qqmlmoduleplugin::importsPlugin() > QQmlImportDatabase::addImportPath: "C:/Qt/5.0_angle/qtbase/imports" > > QDEBUG : tst_qqmlmoduleplugin::importsPlugin() > QQmlImportDatabase::addImportPath: > "C:/Qt/5.0_angle/qtdeclarative/tests/auto/qml/qqmlmoduleplugin/debug" > > QML debugging is enabled. Only use this in a safe environment. > > QDEBUG : tst_qqmlmoduleplugin::importsPlugin() > QQmlImportDatabase::addImportPath: > "C:/Qt/5.0_angle/qtdeclarative/tests/auto/qml/qqmlmoduleplugin/imports" > > QDEBUG : tst_qqmlmoduleplugin::importsPlugin() > QQmlImports(file:///C:/Qt/5.0_angle/qtdeclarative/tests/auto/qml/qqmlmod > uleplugin/data/works.qml)::addImplicitImport > > QDEBUG : tst_qqmlmoduleplugin::importsPlugin() > QQmlImports(file:///C:/Qt/5.0_angle/qtdeclarative/tests/auto/qml/qqmlmod > uleplugin/data/works.qml)::addLibraryImport: > "com.nokia.AutoTestQmlPluginType" 1.0 as "" > > QDEBUG : tst_qqmlmoduleplugin::importsPlugin() > QQmlImports(file:///C:/Qt/5.0_angle/qtdeclarative/tests/auto/qml/qqmlmod > uleplugin/data/works.qml)::importExtension: loaded > "C:/Qt/5.0_angle/qtdeclarative/tests/auto/qml/qqmlmoduleplugin/imports/c > om/nokia/AutoTestQmlPluginType/qmldir" > > QDEBUG : tst_qqmlmoduleplugin::importsPlugin() > QQmlImportDatabase::resolvePlugin: Could not resolve plugin "plugin" in > "C:/Qt/5.0_angle/qtdeclarative/tests/auto/qml/qqmlmoduleplugin/imports/c > om/nokia/AutoTestQmlPluginType" > > QWARN : tst_qqmlmoduleplugin::importsPlugin() > file:///C:/Qt/5.0_angle/qtdeclarative/tests/auto/qml/qqmlmoduleplugin/data > /works.qml:1:1: module "com.nokia.AutoTestQmlPluginType" plugin "plugin" > not found > > import com.nokia.AutoTestQmlPluginType 1.0? > > ^ > > FAIL! : tst_qqmlmoduleplugin::importsPlugin() '!component.isError()' > returned FALSE. () > > tst_qqmlmoduleplugin.cpp(148) : failure location > > > > [...] > > > > tst_qqmlmoduleplugin.cpp(493) : failure location > > PASS : tst_qqmlmoduleplugin::cleanupTestCase() > > Totals: 11 passed, 17 failed, 0 skipped > > ********* Finished testing of tst_qqmlmoduleplugin ********* > > Number of leaked items: 0 > > C:\Qt\5.0_angle\qtdeclarative\tests\auto\qml\qqmlmoduleplugin\debug\tst_ > qqmlmoduleplugin.exe exited with code 17 > > > > > > --------------------------------------------------------------------------------------------------------- > - > > > > Message: 4 > > Date: Tue, 28 Aug 2012 09:42:58 +0200 > > From: "Wehmer, Matthias" <[email protected]> > > Subject: [Development] Problems with QmlEngine and importPath > > To: "[email protected]" <[email protected]> > > Message-ID: > > > <[email protected] > orp.draeger.global> > > > > Content-Type: text/plain; charset="us-ascii" > > > > Hi everybody, > > > > we are currently suffering from the following problem: We fail to change the > default directory for our custom qml plugins, that we have written in C++, and > that we want to import (e.g. via import custom_plugin 1.0). That is the only > directory our QML applications find the plugins is in the default import > directory from the Qt5 directory. What is also strange is that the Qt Creator > recognizes our plugin (i.e. the syntax highlighting works) in an arbitrary > directory as long as the QML_IMPORT_PATH is set. > > > > We are using Qt5 with the angle project and the Qt Creator. > > > > That is what we've tried so far: > > > > 1. changing the QML_IMPORT_PATH: although this results in syntax > highlighting in the Qt Creator, our application still doesn't find the > plugins 2. > using QmlEngine::addImportPath( dest ) : the path is in the importPathList > now, we've checked that, but the plugins can't be found anyway 3. varying > the qmldir files: doesn't work either > > > > Is this a known problem or is there an error in our application? > > Thank you in advance for your help. > > > > Greetings > > Matthias > > > > (i.e. the syntax highlighting works) in an arbitrary directory as long as the > QML_IMPORT_PATH is set. > > > > --- > This communication contains confidential information. If you are not the > intended recipient please return this email to the sender and delete it from > your records. > > Diese Nachricht enthaelt vertrauliche Informationen. Sollten Sie nicht der > beabsichtigte Empfaenger dieser E-mail sein, senden Sie bitte diese an den > Absender zurueck und loeschen Sie die E-mail aus Ihrem System. _______________________________________________ Development mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/development
