Developing with Moblin
Notes on using Moblin 2 as a development OS, the Moblin SDK, building Clutter and the player with jhbuild, and a glossary of the Moblin stack.
Read it in: CatalàCastellano
This page was on the oriolrius.cat wiki (2009–2012). I bring it back here as it was.
Using moblin as develop OS
Using moblin2 as develop OS
- install, an image from:
http://repo.moblin.org/moblin/releases/test/images/
- The developer image has installed many of package related to software development by default.
- If you not sure which packages you need to install, refer bellow link suggested by Marcus Mae
http://repo.moblin.org/moblin/development/core/ia32/os/i586/
Sources
http://repo.moblin.org/moblin/development/2.1-preview/source/
yum repolist
yum grouplist
yum groupinstall "Moblin Desktop Development"
yum --disablerepo=fedora groupinstall "Moblin Desktop Development"
yum groupinstall "Development Tools"\
"X Software Development"\
"Moblin Foundation Development"\
"Development Libraries"\
"Moblin Desktop Development"
Develop with moblin
Project Generator
SDK i Tool Chain
- http://moblin.org/documentation/moblin-sdk
- http://moblin.org/documentation/moblin-sdk-tool-chain
- fer-me un poster: http://moblin.org/sites/all/files/u139/Moblin%20Arch%20Diagram.jpg
eclipse clutter
http://moblin.org/documentation/moblin-sdk/coding-tutorials/getting-started-developing-eclipse
First application
http://moblin.org/documentation/moblin-sdk/hello-moblin
instruccions senceres per fer una app en C des de zero, inclos:
- creació projecte
- dev
- creació de paquet
Chrooting
- Developing without a Netbook (cheatsheet)
- Developing without a Netbook (complete guide)
Construcción de clutter & cia con jhbuild
Además de las notas que se indican en Installing Clutter with jhbuild hay que tener en cuenta que, debido a que la configuración oficial para jhbuild del proyecto clutter no está tan actualizada como debería y no funciona correctamente, se ha desarrollado un módulo de configuración propio. Este módulo está en el repositorio subversion. Así pues para instalar clutter via jhbuild hay que:
- Descargar el módulo del player con subversion
- En trunk/clutter/clutter.modules está el fichero con la configuración
- Modificamos el fichero de config de jhbuild (~/.jhbuildrc-clutter) y cambiamos la variable moduleset:
moduleset = 'file:///path/to/clutter.modules'
- Construimos:
$ .local/bin/jhbuild -f ~/.jhbuildrc-clutter
Instalación del player y sus dependencias
jhbuild
- jhbuild se instala desde git, no es necesario permisos de superusuario
- jhbuild se encarga del stack de dependencias de clutter y pyclutter, así como sus dependencias relacionadas con gtk+. Para ello contamos con un fichero clutter.modules modificado (disponible en el repositorio svn, en player-clutter/clutter/clutter.modules).
Dependencias del sistema
El entorno generado por jhbuild no es un entorno totalmente aislado, algunas dependencias (imágenes, video, etc.) deben estar instaladas en el sistema (p. ej. gstreamer, todas sus dependencias y plugins). Las siguientes dependencias se han instalado durante la implantación:
- libffi-devel
- libtiff-devel
- gstreamer-python-devel (con todas sus dependecias)
Además, gstreamer-plugins-bad entra en conflicto con gir-repository, por lo que no debe instalarse (al menos antes de instalar clutter). He comentado las líneas correspondientes del script prep.sh
Dependencias gestionadas por jhbuild
- clutter-gtk no compila contra gtk+ de git. Al parecer clutter-gtk hace uso de algunas funciones obsoletas de gtk+, que habrán desaparecido. Parece ser que están trabajando en este tema[1], por lo que dado que actualmente no necesitamos clutter-gtk, podemos obviar este error.
- pyclutter tiene un problema en la instalación, lanza el script $CLUTTER_PATH/install/share/pygobject/xsl/fixxref.py pero no tiene permisos de ejecución, se arregla con un chmod a+x a fixxref.py. Este error debería ser fácil de arreglar modificando el código de instalación de pygobject, si molesta lo arreglamos y lo mandamos a upstream
[1] http://lists.o-hand.com/clutter/3689.html
Glosari
- Mutter: Mutter is Clutter-based compositing window manager for Gnome.
- The Moblin Garage is an online applications catalog that contains free/open source software applications released under a recognized open source license along with proprietary applications redistributed at no cost.
- The available applications are installed through the use of the Moblin Application Installer, which is a client application that is launched from the Moblin myzone panel. The Moblin Application Installer provides a logically categorized list of applications that you can choose to install. The selection of applications that appear within the Moblin Application Installer comes from the Moblin Garage.
- in-vehicle infotainment (IVI)
- MID: mobile internet device
- gnome-settings-daemon.i586 : The daemon sharing settings from GNOME to GTK+/KDE applications
- Carrick: the network connection panel for the Moblin netbook interface. It aims to provide a usable front-end to the ConnMan connectivity daemon.
- Netbook Toolkit (Nbtk): The Netbook Toolkit is a GUI toolkit, using Clutter and is optimised for the Moblin netbook experience. It consists of various classes useful for building UIs such as Buttons, Tooltips, Scrollbars and others. It also supports styling through CSS stylesheets.
- Mojito: Mojito is a social data store, which will fetch and store data from the "social web", such as your friend's blog posts, photos, upcoming events, and so on. At its core, it is a modular database, with a number of modules which fetch data periodically and cache it locally. These modules cover most sources of social data on the Internet, such as RSS/Atom feeds, Flickr*/MySpace*/Picasa* photos, Myspace* and Facebook news feeds, eBay* alerts, and more.
- Bickley: Bickley is a metadata management API and framework
- xdg-user-dirs: tool for manage user directories like the desktop folder and the music folder. It also handles location (i.e. translation) of the filenames.
- libcanberra: portable sound event API
- PackageKit: PackageKit is a system designed to make installing and updating software on your computer easier. The primary design goal is to unify all the software graphical tools used in different distributions, and use some of the latest technology like PolicyKit to make the process suck less.
- gvfs-*: conjunto de utilidades CLI para usar el gnome-volume filesystems permite montar por ejemplo unidades via FTP, SSH, etc. luego copiar ficheros, borrar, etc.
- ConsoleKit: framework for defining and tracking users, login sessions and seats.
- PolicyKit: is an application-level toolkit for defining and handling the policy that allows unprivileged processes to speak to privileged processes: It is a framework for centralizing the decision making process with respect to granting access to privileged operations for unprivileged applications.