Thank you guys for the answers!

As I was using the QtSDK, had Qt 4.7.4 and it doesn't come with the
qmlplugindump binary, so I had to compile it. To do that, I needed the
private libraries, so I uninstalled the SDK, got Qt 4.8.0 source, built it,
downloaded the QtCreator 2.4.0, installed it, and finally ran the plugin.

For starters, if I open a single .qml file, it stil didn't recognize the
module, but when I created a qmlproject, it recognized it (and I didn't
have to add any special config to the project).

I was happy, but not for long:

When I import the QtDesktop module and open the Design window, QtCreator
crashes with a segmentation fault. If I take away the "import QtDesktop
0.1" line, it opens correctly.

I ran the qtcreator.sh plugin on a terminal to catch the log.

When I open the design, it doesn't matter if I have the import QtDesktop
line or not, I get this:


> /usr/share/mime/application/x-executable.xml:1: parser error : Document is
> empty
> ^
> /usr/share/mime/application/xml.xml:1: parser error : Document is empty
> ^
> /usr/share/mime/application/x-executable.xml:1: parser error : Document is
> empty
> ^
> /usr/share/mime/application/x-executable.xml:1: parser error : Document is
> empty
> ^
> /usr/share/mime/application/x-shellscript.xml:1: parser error : Document
> is empty
> ^
> /usr/share/mime/application/x-shellscript.xml:1: parser error : Document
> is empty
> ^
> /usr/share/mime/application/x-desktop.xml:1: parser error : Document is
> empty
> ^
> /usr/share/mime/application/x-executable.xml:1: parser error : Document is
> empty
> ^
> /usr/share/mime/application/x-executable.xml:1: parser error : Document is
> empty
> ^
> /usr/share/mime/application/x-executable.xml:1: parser error : Document is
> empty
> ^
> /usr/share/mime/application/x-executable.xml:1: parser error : Document is
> empty
> ^
> /home/andre/.local/share/mime/application/vnd.nokia.qt.qmakeprofile.xml:1:
> parser error : Document is empty
> ^
> QmlDesigner: Log file is:
> "/tmp/qmldesigner-logger-2012-01-22T11-51-50-ZT2866.txt"



When I insert the import QtDesktop 0.1 line, after the xml parser errors,
the program crashes with segmentation fault.

I don't know how to trace the bug, or turn the debug messages on, and would
appreciate any help pointing me in the right direction or telling me what I
am doing wrong.

Thank you one more time,


André de Castilho


2012/1/20 Sven Anderson <sven.ander...@snom.com>:
>
>
> On 20.01.2012 03:41, Alan Alpert wrote:
>> It can work with it, but does not by default. When using your own QML
plugins
>> with creator theres an extra step you have to perform to make it known to
>> creator. I forget exactly what this step is, but it involves running the
>> qmlplugindump utility and placing the output somewhere creator can find
it.
>> For Qt Creator to recognize a module, it needs this metadata, which is
why
>> modules can be unknown to creator but loaded properly in qmlviewer.
>
> Here are the details:
>
>
http://doc.qt.nokia.com/qtcreator-2.4/creator-qml-modules-with-plugins.html
>
>
> Best regards,
>
> Sven
> _______________________________________________
> Qt-qml mailing list
> Qt-qml@qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-qml
_______________________________________________
Qt-qml mailing list
Qt-qml@qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-qml

Reply via email to