I finaly figured out how to compile and run the library and gui program for the Velleman k8055 board on Ubuntu Linux.
First I downloaded this: libk8055.
But this library contains an error in the header file, it is missing a line, so edit the k8055h file and add the following line:
int ReadAllValues(long int *data1, long int * data2, long int * data3, long int * data4, long int * data5);
To compile and install the library type in the following commands in the command prompt:
make
sudo make install
Next: I downloaded the gui program: k8055gui.
This requires a couple of libraries to be installed on your system first:
sudo apt-get install libwxbase2.8-0 libwxbase2.8-dev libwxgtk2.8-0 libwxgtk2.8-dev libusb-dev
This program also contains an error, to fix this you need to edit the MyFrame.cpp file, and replace (a small remark, thanks to Vincent in the comments below: mind the double quotes!):
#include <k8055.h>
with
extern “C” {
#include <k8055.h>
}
To compile, type in the command window:
make
To start the gui program:
sudo ./k8055gui
I’ll try to find a way so you don’t need to be root to execute the gui program.