Compiling plasma-mobile with QtCreator

Osmo Antero osmoma at gmail.com
Tue Mar 27 14:54:17 UTC 2012


Hello,
Yes, kderuntime has been installed.
This Kubuntu 12.04 (alpha) system has these kde* packages.


$ dpkg -l | grep
kde

ii  kde-artwork-active
1.0+svn2012022702-0ubuntu1                     themes, styles and more from
the of KDE active
ii  kde-baseapps
4:4.8.1-0ubuntu1                               base applications from the
official KDE release (meta-package)
ii  kde-baseapps-bin
4:4.8.1-0ubuntu1                               core binaries for the KDE
base applications
ii  kde-baseapps-data
4:4.8.1-0ubuntu1                               shared data files for the
KDE base applications
ii  kde-plasma-desktop
5:71~pre15ubuntu11                             KDE Plasma Desktop and
minimal set of applications
ii  kde-runtime
4:4.8.1-0ubuntu1                               runtime components from the
official KDE release
ii  kde-runtime-data
4:4.8.1-0ubuntu1                               shared data files for the
KDE base runtime module
ii  kde-runtime-dev
4:4.8.1-0ubuntu1                               Development files for Nepomuk
ii  kde-style-oxygen
4:4.8.1-0ubuntu4                               Oxygen widget style
ii  kde-wallpapers-default
4:4.8.1-0ubuntu1                               default wallpaper for the
Plasma workspace
ii  kde-window-manager
4:4.8.1-0ubuntu4                               K window manager (KWin)
ii  kde-window-manager-common
4:4.8.1-0ubuntu4                               K window manager (KWin)
Common Files
ii  kde-workspace
4:4.8.1-0ubuntu4                               KDE Plasma Workspace
components
ii  kde-workspace-bin
4:4.8.1-0ubuntu4                               core binaries for the KDE
Plasma Workspace
ii  kde-workspace-data
4:4.8.1-0ubuntu4                               shared data files for the
KDE Plasma Workspace
ii  kde-workspace-dev
4:4.8.1-0ubuntu4                               development files for the
KDE Plasma Workspace
ii  kde-workspace-kgreet-plugins
4:4.8.1-0ubuntu4                               KDE greet libraries for
authentication

ii  kdelibs-bin
4:4.8.1-0ubuntu1                               core executables for KDE
Applications
ii  kdelibs5-data
4:4.8.1-0ubuntu1                               core shared data for all KDE
Applications
ii  kdelibs5-dev
4:4.8.1-0ubuntu1                               development files for the
KDE Development Platform libraries
ii  kdelibs5-experimental-dev
4:4.8.1-0ubuntu1                               experimental development
files for the KDE Development Platform libraries
ii  kdelibs5-plugins
4:4.8.1-0ubuntu1                               core plugins for KDE
Applications
ii  kdepasswd
4:4.8.1-0ubuntu1                               graphical password changing
utility
ii  kdepim-dev
4:4.8.1a-0ubuntu1                              Contains development files
needed to compile kdepim applications.
ii  kdepim-kresources
4:4.8.1a-0ubuntu1                              KDE PIM resource plugins
ii  kdepim-runtime
4:4.8.1-0ubuntu1                               Runtime components for
akonadi-kde
ii  kdepim-strigi-plugins
4:4.8.1a-0ubuntu1                              PIM file format plugins for
Strigi Desktop Search
ii  kdepimlibs-kio-plugins
4:4.8.1-0ubuntu1                               kio slaves used by KDE PIM
applications
ii  kdepimlibs5-dev
4:4.8.1-0ubuntu1                               development files for the
KDE Development Platform PIM libraries
ii  kdesdk-strigi-plugins
4:4.8.1-0ubuntu1                               software development file
format plugins for Strigi Desktop Search
ii  libakonadi-kde4
4:4.8.1-0ubuntu1                               library for using the
Akonadi PIM data server
ii  libkde3support4
4:4.8.1-0ubuntu1                               KDE 3 Support Library for
the KDE 4 Platform
ii  libkdeclarative5
4:4.8.1-0ubuntu1                               Declarative library for
plasma
ii  libkdecorations4
4:4.8.1-0ubuntu4                               library used by decorations
for the KDE window manager
ii  libkdecore5
4:4.8.1-0ubuntu1                               KDE Platform Core Library
ii  libkdepim4
4:4.8.1a-0ubuntu1                              KDE PIM library
ii  libkdepimdbusinterfaces4
4:4.8.1a-0ubuntu1                              kde pim dbusinterface libary
ii  libkdesu5
4:4.8.1-0ubuntu1                               Console-mode Authentication
Library for the KDE Platform
ii  libkdeui5
4:4.8.1-0ubuntu1                               KDE Platform User Interface
Library
ii  libkdewebkit5
4:4.8.1-0ubuntu1                               KDE WebKit Library
ii  libkworkspace4abi1
4:4.8.1-0ubuntu4                              library for the kdebase
workspace
ii  oxygen-cursor-theme
0.0.2010-05-10-kde4.4.3-1ubuntu1    Oxygen Mouse Cursor Theme
ii  plasma-widget-kdeobservatory
4:4.8.1-0ubuntu1                        addons for KDE 4 Plasma - KDE
development tracking tool
ii  python-kde4
4:4.8.1-0ubuntu1                               Python bindings for the KDE
Development Platform

See also a complete file listing of:
$ ls -lR  /usr/lib/kde4/imports/org/kde/plasma/
->  http://www.futuredesktop.org/tmp/plasma-files1.txt

And listing of all installed QT-packages:
$ dpkg -l | grep qt
->  http://www.futuredesktop.org/tmp/qt-files1.txt

This is my first play with QtCreator, and I do not know if I opened the
Plasma-Mobile project right.
I simply imported the CMakeLists.txt from the plasma-mobile directory and
then clicked the [Run CMake] button.

The whole project compiles and runs well. I can run plasma-device and
various apps like the active-webbrowser (I even changed it a bit).

Only thing that bugs me is the QML-files. They report import... errors.

I got the source for plasma-mobile from
https://launchpad.net/ubuntu/precise/+source/plasma-mobile

The git version of plasma-mobile *does not* compile in this Kubuntu 12.04
(alpha) distro.
$ git clone git://anongit.kde.org/plasma-mobile

The CMake reports:
$ cd plasma-mobile
$ mkdir build; cd build
$ cmake .. -DCMAKE_INSTALL_PREFIX=/usr

  CMake Error in components/metadatamodel/CMakeLists.txt:
   Cannot find source file:
     //kao.trig
     Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx

And Make reports:
$ make
/home/moma/plasma-mobile/applications/webbrowser/src/nepomukhelper.cpp: In
member function ‘void NepomukHelper::storeDownloadMetaData(const KUrl&,
const KUrl&)’:
/home/moma/plasma-mobile/applications/webbrowser/src/nepomukhelper.cpp:101:11:
error: ‘class KActivities::Info’ has no member named ‘linkResource’
make[2]: ***
[applications/webbrowser/src/CMakeFiles/active-webbrowser.dir/nepomukhelper.cpp.o]
Error 1
make[1]: ***
[applications/webbrowser/src/CMakeFiles/active-webbrowser.dir/all] Error 2
----

Other samples:
The various samples seems to work fine in QtCreator.
I've tested both the demos and examples and all is good. The projects load,
compile and run fine. Ok.

Get the demos and samples:
cd ~
mkdir qt
cd qt
cp -fr  /usr/lib/qt4/demos/ .
cp -fr  /usr/lib/qt4/examples/ .

Then pick a project in the qtcreator and have fun.

Kindly
  Osmo Antero


On Sun, Mar 25, 2012 at 6:14 PM, Sebastian Kügler <sebas at kde.org> wrote:

> Hi Osmo,
>
> > 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.
>


> Do you have kde-runtime installed?
>


> > import org.kde.plasma.mobilecomponents 0.1 as MobileComponents  <---
> found
> > and OK.
>
> Cheers,
> --
> sebas
>
> http://www.kde.org | http://vizZzion.org | GPG Key ID: 9119 0EF9
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/active/attachments/20120327/8b7ea9d7/attachment.html>


More information about the Active mailing list