Libraries, QML, and Fedora

Eric Mesa ericsbinaryworld at gmail.com
Wed Mar 6 16:25:19 UTC 2013


On Wed, Mar 6, 2013 at 9:14 AM, Sebastian Kügler <sebas at kde.org> wrote:

> On Tuesday, March 05, 2013 21:32:43 Eric Mesa wrote:
> > So far in my QML/QT Quick programs instead of doing an import like this:
> >
> > import  org.kde.plasma.extras as PlasmaExtras
> >
> > I have to do something like this:
> >
> >  import "/usr/lib64/kde4/imports/org/kde/plasma/extras" as PlasmaExtras
>
> That's making sure your code runs on exactly one machine. Yours. :)
>
> > so far that's been OK, but now I'm starting to use create more complex
> > programs and some of those imports have their own imports.  So I need to
> > get this fixed.  What do I need to do in order to get this to work
> > correctly?
>
> Tell the include path:
>
> qmlviewer -I `kde4-config --prefix`/lib64/kde4/imports
>
> or export the right value in QML_IMPORT_PATH
>
> Cheers,
> --
> sebas
>
>
Thank you - setting the env variable worked perfectly.  I set it in my
.bash_profile.  Since I'm the only use on this computer that should be
fine, right?


> --
> Eric Mesa
> http://about.me/ericmesa
> https://www.vizify.com/ericmesa
> http://www.ericsbinaryworld.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20130306/6dddc8d6/attachment.html>


More information about the Plasma-devel mailing list