[Qt-qml] qmlviewer plugin path on OSX

Ben Hood 0x6e6562 at gmail.com
Fri Aug 27 20:08:01 CEST 2010


Hi,

I'm trying to get the chapter6 plugin example going from the Qt 4.7
RC1 for OSX distribution going following the instructions here:
http://gutenberg.troll.no/4.7-snapshot/declarative-tutorials-extending-chapter6-plugins.html.

I've successfully built the project (using XCode) and the
chapter6-plugins library has been created in the lib dir.

However, when I run the qmlviewer (I've aliased the QMLViewer App in
my sheel) from the shell, I get the error saying that PieChart is not
a type.

I've tried to get a more verbose output of how the plugin is being
loaded, but it is not telling me very much (see below).

Is there some other way for me to debug the symbols that the qmlviewer
is loading to figure out how to set the path correctly?

$ QML_IMPORT_TRACE=1 qmlviewer app.qml
QDeclarativeImportDatabase::addImportPath "/Developer/Applications/Qt/imports"
QDeclarativeImportDatabase::addImportPath
"/Developer/Applications/Qt/QMLViewer.app/Contents/MacOS"
QDeclarativeImportDatabase::addToImport 0x102355a30 "." -1.-1 File as ""
QDeclarativeImportDatabase::add: loaded "/private/tmp/chapter6-plugins/qmldir"
QDeclarativeImportDatabase::importPlugin
".private.tmp.chapter6-plugins" from
"/private/tmp/chapter6-plugins/lib/libchapter6-plugins.dylib"
QDeclarativeImportDatabase::addToImport 0x102355a30 "Qt" 4.7 Library as ""
QDeclarativeImportDatabase::resolveType "Item" = "QDeclarativeItem"
file:///private/tmp/chapter6-plugins/app.qml:44:5: PieChart is not a type
         PieChart {
         ^

Any help appreciated,

Cheers,

Ben



More information about the Qt-qml mailing list