Custom browser build for Chromium OS misses package xi

After setting up the build environment for Chromium OS, I wanted to integrate the Chromium browser such that I can do changes to it as well. How this should work is explained here. However, there was a problem with the gclient sync command in the last part of the first step (gclient Checkout Build).

I use a 64 bit Ubuntu 11.10 as development system, as suggested, and create 32 bit versions of Chromium. This seems to be a problem here. When I executed gclient sync, this lead to the following error message:

Updating projects from gyp files...
Package xi was not found in the pkg-config search path.
Perhaps you should add the directory containing `xi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'xi' found

The quest for xi

First I searched the chroot of my Chromium OS build environment for this xi.pc file. There was one in /usr/lib64/pkgconfig/, unfortunately. So I simply need a 32 bit version of it, but where to find it?

Querying the web for package xi and “xi.pc didn’t yield something useful. After a long while I somehow found out that I’m actually looking for libxi, the X11 Input extension library (note to self: in such cases, “lib” as a prefix might be not so bad at all).
After installing libxi in the chroot through
sudo emerge x11-libs/libXi
gclient sync finally worked as desired.

0
  

Run a custom Chromium OS build in Virtualbox

The developer documentation for the Chromium projects appears pretty detailed and the quick start guide is straight forward. Getting a first build didn’t took long – besides the build time of about 2 hours (X2 6000+, 4 GB RAM). To run the build I wanted to use a virtual machine as this allows to easily try out modifications.

Create an image for Virtualbox

The hard way

The build environment comes along with a script that converts a native image to images for Qemu, Virtualbox or VMware. But invoking the script with --format=virtualbox terminated with an error telling that the command VBoxManage couldn’t be found.

This is because the chroot of the build environment has no Virtualbox installed. This post suggests a way to install Virtualbox there. The same post also tells that the failed conversion could simply be done outside the chroot, so I chose that solution.

The image to pass as input parameter to VBoxManage can be found under src/build/images/x86-generic/latest/vm_temp_image.bin relative to the checkout directory. With this invoke
VBoxManage convertfromraw /path/to/input_image.bin /path/to/vbox_image.vdi

The simple way

As I found out later, Virtualbox also supports the VMDK format from VMware. So instead of the steps above you can simply call the script with --format=vmware and use the resulting image. Whether there is a drawback in terms of performance or whatsoever I don’t know. Please drop a comment if you know something about this.

Get the image running

Not really surprising, Chromium OS can only be set up if there is a working Internet connection available (and if you have a Google account to login with). In my case the network connection for the virtual machine didn’t work right away. The machine didn’t recognize it.

What helped was to change the adapter type for the virtual network interface to Intel PRO/1000 MT Desktop in the network settings for the VM. I also heard and read of troubles with NAT networking. I didn’t encounter any so far, but switching to bridged networking is said to help in this case.

0
  

Studienplan für Master Angewandte Informatik

Seit heute ist auf der Studienplaner-Seite eine zusätzliche Vorlage zu finden. Dank Steffen gibt es nun eine Vorlage für den Master Angewandte Informatik.

1
  

Muon Software Center crashes on fresh Kubuntu

I’ve just installed a fresh 64-bit Kubuntu (11.10) and then wanted to use the packet manager/software center, which now is Muon by default, to add all the stuff I need.

Muon repeatedly crashed with a Segfault when I tried to launch it. Thankfully this problem had been around for some time, so it didn’t took me too long to find a solution which worked for me:

In this thread on ubuntuforums.org there are several fixes suggested of which this one worked for me (disabling proprietary drivers didn’t help), which simply requires to uncomment two entries in ‘/etc/apt/sources.list‘ and invoke an ‘apt-get upgrade‘ afterwards. The respective entries are:

deb http://archive.canonical.com/ubuntu oneiric partner
deb-src http://archive.canonical.com/ubuntu oneiric partner

0
  

(Classic) PC games online – without DRM

It’s time for a non-technical post. Why? Because I got to know a website selling PC games with a philosophy I’d like to support: “We don’t believe in DRM” is their statement.
Read the rest of this entry »

1
  

Public Key Cryptography in Mozilla extensions

In some cases it is desired to encrypt communication. Assuming X.509 certificates at hand, it is quite simple to prepare messages according to Cryptographic Message Syntax (CMS) in extensions using built-in XPCOM features. But how this works is not yet documented on MDN and also the rest of the web is not telling much about it.
Read the rest of this entry »

0
  

When Winamp doesn’t detect portable devices

After some time of consideration I decided that a Sony NWZ-S765 is going to replace my broken mp3 player. One main aspect was that the player supports playlists which can be managed with audio software like Winamp so I could use my regular audio player.

The problem

On my laptop managing playlists with Winamp worked as expected. Everything fine so far. But when I wanted to configure the player from the Winamp installation on my desktop PC it simply didn’t recognize the player and even updating Winamp changed nothing.
Read the rest of this entry »

0
  

Retrieve bibliographic data via Z39.50 with PHPYAZ

Z39.50 is a protocol common in library environments to query and retrieve bibliographic data, for example to fetch additional meta data like author, publication date etc. for a book by its ISBN. Libraries use it to import title records from other libraries or data providers.

Being confronted with the implementation of an application using this protocol as a non-specialist in library system matters requires insights in some standards used in this field, in particular MARC, MAB (English translation of fields >= 90 here) and the Bib-1-Attribute Set.

In the following I’ll describe how to set up an environment for using Z39.50 in PHP and process basic queries on the basis of PHPYAZ provided by Index Data as a free-to-use extension.
Read the rest of this entry »

0
  

Setting up the Gecko SDK with Visual Studio 2010

When you want to get started with the Gecko SDK to build your first binary HelloWorld XPCOM component you likely stumble upon this page in the MDN describing how to do that. Unfortunately it is not up to date. The changes introduced with Gecko 2.0 can be found here.

The necessary steps to set up a development environment for a C++ XPCOM component in Visaual Studio 2010 require to adapt the right things from both articles, so here we go.
Read the rest of this entry »

0
  

Copy and paste problem in Eclipse under XFCE

At my student job we encountered the problem that within Eclipse, we use Galileo (3.5), copy and paste frequently failed. Sometimes it helped to hit Ctrl+C a couple of times but this was annoying and didn’t work reliable.

So I started to search the web for a more convenient solution. In the beginning I didn’t suspect our desktop XFCE but when I tried what is suggested here our issue seemed to be solved. The linked post advises to disable the autostart for the xfce4-settings-helper and stop running instances. After doing this, copy and paste in Eclipse immediately worked again. Repeatable. Without failure between two attempts.

0
  
←Older