wiki:buildLibvcomm
Last modified 4 years ago Last modified on 11/29/14 19:56:10

libvcomm

Compiling libvcomm library is done in a similar manner for all supported operating systems. A functioning C compiler is required for all operating systems. For convenient use of library, Eclipse project files are included.

Downloading source code

libvcomm source code is in Git repository. To download software:

git clone http://dev.irvoodoo.com/git/libvcomm.git

Compiling

In Linux

If there's no C compilator in Linux, for Debian and Ubuntu distribution the easiest way to get a working development environment is installing build-essential software package. Because libvcomm library uses libudev library, libudev-dev package has to be installed.

To compile:

cd libvcomm/Release.linux
make

As a result of compiling,  libvcomm.so is created. It can be used in the same folder with a program which requires it, or be copied to another folder, where other system libraries are. If you wish to compile a debug version of the library, it is necessary to compile in libvcomm/Debug.linux instead of libvcomm/Release.linux.

Attention !  For libvcomm to be able to communicate with IRvoodoo under regular user, a configuration file has to be installed, which includes udev rules for USB device files permissions. A suitable configuration file (90-irvoodoo.rules) can be found in libvcomm folder. To use it, copy it to /etc/udev/rules.d folder.

In Mac OS X

In case C compilator is missing, „Apple Xcode tools“ for developers has to be installed, which is freely available at https://developer.apple.com/

To compile:

cd libvcomm/Release.mac
make

As a result of compiling, libvcomm.so is created. It is recommended to copy it to /usr/lib folder, where other programs can find it.

In Windows

Using MinGW 4.4 for compiling is recommended. It can be downloaded at: https://dl.dropboxusercontent.com/u/13548189/IRvoodoo/mingw44forQT.zip

To compile:

cd libvcomm/Release.win
make

As a result, vcomm.dll is created, which has to be copied to the same folder with a program which requires it.