Compiling c + + libSerial for Debian wheezy

Compiling c + + libSerial for Debian wheezy .

I want to use it for a hardware libSerial the problem I found was that not the debian stable repositories , then I found the task of compiling then you get off the main page and start it when the compilation is not working and me I told me to declare missing some things, then I see that reading just need to include some header sO . Finished the inclusion I went to compile then comes the classic problem that I could not continue because » SIP» was not working (it was not installed) then I remembered that I was missing install package sip python once installed everything I worked blast.

Step 1:
download the package :

wget- c http://colocrossing.dl.sourceforge.net/project/libserial/libserial/0.6.0rc1/libserial-0.6.0rc1.tar.gz

Step 2:
agregarmos this in file .. / src / SerialPort.cpp
# include <cassert>
# include <termios.h>
# include <fcntl.h>
# include <unistd.h>
# include <sys/ioctl.h>
# include <sys/time.h>
# include <signal.h>

Step 3:
in my case I use GNU / Debian, if you are using another distribution should find out if you have the packages available in your repository.

aptitude- t -backports wheezy install python2.6 -sip python- sip- dev

Step 4:
. / configure
make

enter root mode :
and then you type : make install

Note:
in my case I want to install in another folder :
mkdir libserialCompilado0.6rc1
make install DESTDIR = / home/gman/libSerial/libserialCompilado0.6rc1

I wanted to share this solution as I take a little time of my life.

by LMCC

Esta entrada fue publicada en Uncategorized. Guarda el enlace permanente.