Path problems for configuration files
Otmar Struwe
ost.wolf at web.de
Fri Sep 13 17:10:03 BST 2013
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop/attachments/20130913/193753f0/attachment.html>
More information about the KDevelop
mailing list