Compiling plasma-mobile with QtCreator

Osmo Antero osmoma at gmail.com
Fri Mar 23 18:17:01 UTC 2012


Installation details.

My distro is Ubuntu 12.04 (Precise) alpha.

$ lsb_release -a
Distributor ID: Ubuntu
Description:    Ubuntu precise (development branch)
Release:        12.04
Codename:     precise
--------------

$ kde4-config --kde-version
4.8.1 (4.8.1)

$ dpkg -l | grep kdelibs
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 p
--------------

$ plasma-device --version
Qt: 4.8.0
KDE Development Platform: 4.8.1 (4.8.1)
Plasma Workspace: 1.0
--------------

$ qtcreator -version

Qt Creator 2.4.1 based on Qt 4.8.0
  AnalyzerBase 2.4.1 Code Analyzer Base Plugin
  Bazaar 2.4.1 Bazaar integration.
  BinEditor 2.4.1 Binary editor component.
  Bookmarks 2.4.1 Bookmarks in text editors.
  CMakeProjectManager 2.4.1 CMake support
  CVS 2.4.1 CVS integration.
  ClassView 2.4.1 Class View component.
  CodePaster 2.4.1 Codepaster plugin for pushing/fetching diff from server
  Core 2.4.1 The core plugin for the Qt IDE.
  CppEditor 2.4.1 C/C++ editor component.
  CppTools 2.4.1 Tools for analyzing C/C++ code.
  Debugger 2.4.1 Debugger integration.
  Designer 2.4.1 Qt Designer integration.
  FakeVim 2.4.1 VI-style keyboard navigation.
  Find 2.4.1 Provides the find widget and the hooks for find
implementations.
  GLSLEditor 2.4.1 Editor for GLSL.
  GenericProjectManager 2.4.1 Generic support
  HelloWorld 2.4.1 Hello World sample plugin.
  Help 2.4.1 Help system.
  ImageViewer 2.4.1 Image Viewer component.
  Locator 2.4.1 Provides the Locator widget and the hooks for Locator
filter implementations.
  Macros 2.4.1 Macros in text editors.
  Madde 2.4.1 Support for MADDE-based platforms, including Fremantle and
MeeGo 1.2 Harmattan.
  Mercurial 2.4.1 Mercurial integration.
  Perforce 2.4.1 Perforce integration.
  ProjectExplorer 2.4.1 ProjectExplorer framework that can be extended with
different kind of project types.
  QmlDesigner 2.4.1 Visual Designer for QML files.
  QmlJSEditor 2.4.1 Editor for QML and JavaScript.
  QmlJSInspector 2.4.1 Debugger for QML files
  QmlJSTools 2.4.1 Tools for analyzing Qml/JS code.
  QmlProfiler 2.4.1 Qml Profiler Plugin
  QmlProjectManager 2.4.1 Qt Quick support
  Qt4ProjectManager 2.4.1 Provides project type for Qt 4 pro files and
tools.
  QtSupport 2.4.1 Provides support code for build systems.
  RemoteLinux 2.4.1 Support for deployment to and execution on a remote
Linux host.
  ResourceEditor 2.4.1 Editor for qrc files.
  ScmGit 2.4.1 Git integration.
  Subversion 2.4.1 Subversion integration.
  TaskList 2.4.1 Use .tasks-files to populate the Issues view.
  TextEditor 2.4.1 Text editor framework and the implementation of the
basic text editor.
  UpdateInfo 2.4.1 Displays Update-Infos for Qt Installer Framework-based
Updaters.
  VCSBase 2.4.1 Version Control System Base Plugin
  Valgrind 2.4.1 Valgrind Plugin
  Welcome 2.4.1 Default Welcome Screen Plugin
(C) 2011 Nokia Corporation
-----------

// Osmo (Moma) Antero


On Fri, Mar 23, 2012 at 7:03 PM, Osmo Antero <osmoma at gmail.com> wrote:

> 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
>
>
>


-- 
// moma
   http://www.futuredesktop.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/active/attachments/20120323/fba320a0/attachment.html>


More information about the Active mailing list