Marble/MeeGoEnvironment: Difference between revisions

From KDE TechBase
(Created page with "''This text is mostly just copied from Projects/Marble/MaemoEnvironment and adapted to the new software.'' === MeeGo 1.2 Harmattan Platform SDK / Scratchbox Setup === Develop...")
 
(Page moved to community wiki)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
''This text is mostly just copied from [[Projects/Marble/MaemoEnvironment]] and adapted to the new software.''
{{ Moved To Community }}
=== MeeGo 1.2 Harmattan Platform SDK / Scratchbox Setup ===
Developing for MeeGo 1.2 Harmattan based devices does not mean to write software and compile on the device itself. Most of the development happens on normal desktop systems. A device like a N9/N950 is indeed not needed: The scratchbox environment emulates it for you. Please follow the [http://harmattan-dev.nokia.com/platform-sdk/ MeeGo 1.2 Harmattan Platform SDK Guidelines] in the Nokia Developer Wiki to setup scratchbox on your system.
After installation, follow the guide to start the SDK UI. You should end up with a scratchbox shell using the HARMATTAN_X86 target. Additionally, start the MeeGo UI in Xephyr as described.
 
=== Compiling Marble ===
To strip down the number of dependencies, we will use the Qt-based version of Marble. The compilation requires cmake as the build system, make sure it is installed:
<syntaxhighlight lang="bash">
[sbox-HARMATTAN_X86: ~] > fakeroot apt-get install cmake
</syntaxhighlight>
(If you prefer <tt>ccmake</tt> over <tt>cmake</tt>, just install <tt>cmake-curses-gui</tt> too)
 
With the necessary dependencies in place we proceed to the next step, checking out the Marble source code.
<syntaxhighlight lang="bash">
[sbox-HARMATTAN_X86: ~] > mkdir -p ~/marble/{src,build}
[sbox-HARMATTAN_X86: ~] > git clone git://anongit.kde.org/marble ~/marble/src
</syntaxhighlight>
''Well, here the problems start. I just get a <tt>bash: git: command not found</tt> and a <tt>fakeroot apt-get install git</tt> just gives me a <tt>E: Couldn't find package git</tt>. Anyone knows how to install Git in scratchbox?''
 
''Workaround: Just somehow copy the sources to your scratchbox dir, e.g. by <tt>scp -r localhost:/path/to/marble-sources ~/marble/src</tt>''
 
Once all files were downloaded, prepare the compilation step:
<syntaxhighlight lang="bash">
[sbox-HARMATTAN_X86: ~] > cd ~/marble/build
[sbox-HARMATTAN_X86: ~] > cmake -DQTONLY=ON ../src
</syntaxhighlight>
 
If cmake finished successfully, compile and install Marble:
<syntaxhighlight lang="bash">
[sbox-HARMATTAN_X86: ~] > make install
</syntaxhighlight>
 
=== Running Marble ===
Execute the <tt>marble-touch</tt> binary with the help of <tt>meego-run</tt>, a script provided by the Harmattan platform to setup a working environment.
<syntaxhighlight lang="bash">
[sbox-HARMATTAN_X86: ~] > meego-run marble-touch
</syntaxhighlight>
Marble Touch should start up and become visible in Xephyr now.

Latest revision as of 04:52, 26 October 2016

This page is now on the community wiki.