Hello,

I have made a very simple QML plugin following the chapter 6 tutorial which compiles fine, but I am not able to use it in my Symbian application.
Here is my folder structure:

Qt Code:
  1. \myApp
  2. myApp.pro
  3. \qml
  4. main.qml
  5. myPlugin
  6. myPlugin.pro
  7. myPlugin.cpp
  8. myPlugin.h
To copy to clipboard, switch view to plain text mode 

After plugin compilation for device and simulator using QtCreator I have :

Qt Code:
  1. \myApp
  2. myApp.pro
  3. \qml
  4. main.qml
  5. \myPlugin
  6. myPlugin.pro
  7. myPlugin.cpp
  8. myPlugin.h
  9. \myPlugin-build-simulator
  10. qmldir
  11. \debug
  12. libmyPlugin.a
  13. myPlugin.dll
  14. \release
  15. libmyPlugin.a
  16. myPlugin.dll
  17. \myPlugin-build-symbian
  18. qmldir
  19. \debug
  20. libmyPlugin.a
  21. myPlugin.dll
  22. \release
  23. libmyPlugin.a
  24. myPlugin.dll
To copy to clipboard, switch view to plain text mode 

main.qml
Qt Code:
  1. import myPlugin 1.0
  2. //...
To copy to clipboard, switch view to plain text mode 

qmldir
Qt Code:
  1. plugin myPlugin
To copy to clipboard, switch view to plain text mode 

myPlugin.pro (generated by QtCreator, left untouched)
Qt Code:
  1. TEMPLATE = lib
  2. TARGET = myPlugin
  3. QT += declarative
  4. CONFIG += qt plugin
  5.  
  6. TARGET = $$qtLibraryTarget($$TARGET)
  7. uri = myPlugin
  8.  
  9. # Input
  10. SOURCES += \
  11. myPlugin_plugin.cpp \
  12. myPlugin.cpp
  13.  
  14. HEADERS += \
  15. myPlugin.h \
  16. myPlugin_plugin.h
  17.  
  18. OTHER_FILES = qmldir
  19.  
  20. !equals(_PRO_FILE_PWD_, $$OUT_PWD) {
  21. copy_qmldir.target = $$OUT_PWD/qmldir
  22. copy_qmldir.depends = $$_PRO_FILE_PWD_/qmldir
  23. copy_qmldir.commands = $(COPY_FILE) \"$$replace(copy_qmldir.depends, /, $$QMAKE_DIR_SEP)\" \"$$replace(copy_qmldir.target, /, $$QMAKE_DIR_SEP)\"
  24. QMAKE_EXTRA_TARGETS += copy_qmldir
  25. PRE_TARGETDEPS += $$copy_qmldir.target
  26. }
  27.  
  28. qmldir.files = qmldir
  29. symbian {
  30. TARGET.EPOCALLOWDLLDATA = 1
  31. } else:unix {
  32. maemo5 | !isEmpty(MEEGO_VERSION_MAJOR) {
  33. installPath = /usr/lib/qt4/imports/$$replace(uri, \\., /)
  34. } else {
  35. installPath = $$[QT_INSTALL_IMPORTS]/$$replace(uri, \\., /)
  36. }
  37. qmldir.path = $$installPath
  38. target.path = $$installPath
  39. INSTALLS += target qmldir
  40. }
To copy to clipboard, switch view to plain text mode 

The code for the plugin is similar to the tutorial : http://doc.qt.nokia.com/4.7-snapshot...6-plugins.html

I got the error "myPlugin module not installed"

How can I install the plugin to my app ?

Thanks