It's running fine for desktop... but when I try to deploy to IOS I get the
same errors: *"module Material is not installed"*.
The path was added to the env var QML2_IMPORT_PATH

My first thought was that to deploy an external module to mobile I should
do some extra step, but can't find anything on the documentation regarding
this.

The first time something similar happened I solved it by moving the module
to my project tree, but now I want to understand why it's happening and
what's the right move.

Any idea?

Em qua, 2 de set de 2015 às 10:32, Daniel França <daniel.fra...@gmail.com>
escreveu:

> Ohh silly me, Thanks Koehne.
>
> It's working now, but Qt Creator still thinks the module doesn't exist,
> mark the import in *red *and can't autocomplete*.*
>
> Em qua, 2 de set de 2015 às 10:18, Koehne Kai <kai.koe...@theqtcompany.com>
> escreveu:
>
>>
>>
>> > -----Original Message-----
>> > From: interest-bounces+kai.koehne=theqtcompany....@qt-project.org
>> > [mailto:interest-bounces+kai.koehne=theqtcompany....@qt-project.org]
>> > On Behalf Of Daniel Franca
>> > Sent: Wednesday, September 02, 2015 10:04 AM
>> > To: interest@qt-project.org
>> > Subject: [Interest] Errors trying to import an external QML module to my
>> > project
>> >
>> > Hi guys
>> >
>> > I'm trying to import the modules from papyros
>> > <http://papyros.io/developer/index.html>  (awesome components btw) to
>> > my application. For that I cloned the repo, and then I added the modules
>> > path to the QML2_IMPORT_PATH env var.
>> >
>> > The papyros is already with the qmldir files set correctly, so all I'd
>> to do is to
>> > add the dirs to the QML2_IMPORT_PATH
>> >
>> > i.e: If the qmldir is inside /myhome/qml-material/modules/Material dir,
>> > then I added the /myhome/qml-material/modules/Material to the
>> > QML2_IMPORT_PATH var.
>>
>> The import path should point to the directory that contains the module
>> directory.
>>
>> That is, if your import is
>>
>> import Material 1.0
>>
>> And there's a /myhome/qml-material/modules/Material/qmldir
>>
>> Then you should export QML2_IMPORT_PATH as
>>
>> QML2_IMPORT_PATH=/myhome/qml-material/modules
>>
>>
>> Regards
>>
>> Kai
>>
>>
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to