Category Archives: compiling

Accessing GPIO from Qt5

Qt5 is has many useful classes for handling the filesystem, but I didn’t find anything for handling the GPIOs in an embedded system. You need to handle the GPIO configuration by opening a standard file descriptor and reading/writing from/to with the standard QFile methods. This is just a snippet that shows briefly how to change… Read More »

Skipping incompatible /lib/ when searching for /lib/

This normally happens when compiling for an arch, say ARM, and try to execute the binary in an x86_64 arch. But in this case, it was not this problem, I was sure that I was compiling and executing for the right places for the right archs. The error was the following: /opt/gcc-linaro-4.9-2014.11-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/4.9.3/../../../../arm-linux-gnueabihf/bin/ld: skipping incompatible /lib/… Read More »

Cross-building LibGTop

LibGTop is a library used to get system specific data such as CPU, memory usage and info about running processes. Since it’s part of the GNOME desktop environment, it’s used by some system monitor applets, but it’s main interface is completely independent, so it can be used as a standalone library even for embedded system… Read More »