Ubuntu

Free Virtual Machines for Windows

I recently had the need for a virtualization solution for Windows to host some Linux-based embedded development tools. Not wanting to shell out big bucks for one of the commercial solutions, I decided to check out some of the free options.

D-Bus gotchya

I happened to need to compile some D-Bus code and ran into a compile error:

dbus-example.c:8:23: error: dbus/dbus.h: No such file or directory

I checked to make the D-Bus development headers were installed and they were. A little Googling shows that others commonly run into this as well - the problem is that the D-Bus headers aren't included in the default compiler include path. You you need to explicitly specify them with:

gcc -I /usr/include/dbus-1.0 -I /usr/lib/dbus-1.0/include -ldbus-1 -o dbus-example dbus-example.c