Path problems for configuration files

Aleix Pol aleixpol at kde.org
Sun Sep 15 23:55:13 BST 2013


On Fri, Sep 13, 2013 at 6:10 PM, Otmar Struwe <ost.wolf at web.de> wrote:

>  Hello,
>
> I created a project from the "QML Application" template. Everything works
> fine (compiling, linking ...), but when I start the application the
> following messages appear.
>
> Starting: /home/test/projekte/KDE_QML/build/src/kde_qml
> file:///home/test/projekte/KDE_QML/build/src/: File not found
> KCrash: Application 'kde_qml' crashing...
> KCrash: Attempting to start /usr/lib64/kde4/libexec/drkonqi from kdeinit
> *** Exited with return code: 253 ***
>
> The problem is that the in "kde_qmlview.cpp" the "main.qml" is not found.
>
>     view->setSource(QUrl::fromLocalFile(KStandardDirs::locate("data",
> "kde_qml/qml/main.qml")));
>
> Of course I can change this path to an absolute, but that is not realy
> comfortable and of course error prone, if I ever want to release the
> programm. Is there a better way to set up the environment?
>
> The same problem will come up with the UI files.
>
> I am using Kdevelop 4.5.1 with the Kdevelop platform 1.5.1.
>
> Kind regards
>  Otmar
>
> _______________________________________________
> KDevelop mailing list
> KDevelop at kde.org
> https://mail.kde.org/mailman/listinfo/kdevelop
>
>
You probably need to install the application first.

Aleix
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop/attachments/20130916/b2e4fc75/attachment.html>


More information about the KDevelop mailing list