make failure for QtSixA

FYI guys/gals. I was following the instructions on this page: https://www.piborg.org/rpi-ps3-help to integrate a PS3 game controller.

The instructions say:

o
o
wget http://sourceforge.net/projects/qtsixa/files/QtSixA%201.5.1/QtSixA-1.5.1...
tar xfvz QtSixA-1.5.1-src.tar.gz
cd QtSixA-1.5.1/sixad
make
o
o

The "make" line fails because the code from source forge has a defect. There are two solutions: 1. get the code from GitHub or 2 patch it with the following:

vi compilation_sid.patch
in this file place the following:

--- QtSixA-1.5.1.orig/sixad/shared.h    2011-10-12 03:37:38.000000000 +0300
+++ QtSixA-1.5.1/sixad/shared.h 2012-08-14 19:30:12.190379004 +0300
@@ -18,6 +18,8 @@
 #ifndef SHARED_H
 #define SHARED_H

+#include <unistd.h>
+
struct dev_led {
bool enabled;
bool anim;

save the file and place it in ../../QtSixA-1.5.1 directory.

run the patch file: patch -Np1 -i compilation_sid.patch

make clean

make

This should correct the problem.

Subscribe to Comments for &quot;make failure for QtSixA&quot;