Compiling plasma-mobile with QtCreator

Osmo Antero osmoma at gmail.com
Fri Mar 23 18:03:06 UTC 2012


Hello,
I have just started with plasma-mobile and would like to change the
applications/webbrowser program.

I can now re-compile the entire plasma-mobile/ with this mantra:
$ cd plasma-mobile
$ mkdir build; cd build
$ cmake .. -DCMAKE_INSTALL_PREFIX=/usr
$ make
$ sudo make install

And it's possible to run eg. the active-webbrowser app with success.
$ active-webbrowser -v

However, I would like to use the QtCreator to change the "webbrowser.qml"
file in "$HOME/plasma-mobile/applications/webbrowser/package/contents/ui/".

The QtCreator seems to complain that it cannot find some libraries:

import org.kde.plasma.core 0.1 as PlasmaCore    <-- fails to find
import org.kde.plasma.components 0.1 as PlasmaComponents  <-- fails to find.
import org.kde.plasma.mobilecomponents 0.1 as MobileComponents  <--- found
and OK.

Please see this picture:
http://bildr.no/view/1138783

I have opened the project from its root directory ($HOME/plasma-mobile/)
and the compilation (within QtCreator) seems to work right.
* But what is the right setup for QtCreator for plasma-mobiler
(plasma-device) project.
* How to avoid the above "import..." errors.

The /usr/lib/kde4/imports/org/kde/plasma/ directory has these files:
$ ls -l  /usr/lib/kde4/imports/org/kde/plasma/
drwxr-xr-x 2 root root 4096 Mar 23 09:23 components
drwxr-xr-x 2 root root 4096 Mar 23 09:23 core
drwxr-xr-x 2 root root 4096 Mar 23 09:23 graphicslayouts
drwxr-xr-x 2 root root 4096 Mar 23 09:23 graphicswidgets
drwxr-xr-x 2 root root 4096 Mar 23 17:05 mobilecomponents
drwxr-xr-x 2 root root 4096 Mar 23 09:45 slccomponents

I know Ubuntu/Unity but KDE is pretty new for me at this level.

Kindly
  Osmo (Moma) Antero
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/active/attachments/20120323/16cc8be9/attachment.html>


More information about the Active mailing list