Homepage › Forums › RetroPie Project › Everything else related to the RetroPie Project › PS3 / Sixaxis compiling error
- This topic has 2 replies, 3 voices, and was last updated 10 years, 7 months ago by petrockblog.
-
AuthorPosts
-
05/28/2014 at 07:49 #7027helistormParticipant
Hey guys,
I´m running a RetroPie Raspberry Pi Rev. B with the Retropie GPIO Adapter and a SNES controller. Everything works just fine. Now I want to connect a PS3 controller via Bluetooth for PS and N64 games etc.. As Bluetooth dongle I´m using the ASUS BT 211 model and it is connected via powered a USB-HUB. I followed the installation guide, but I get an error while compiling Sixaxis:
pi@raspberrypi ~ $ cd QtSixA-1.5.1/sixad
pi@raspberrypi ~/QtSixA-1.5.1/sixad $ sudo make
mkdir -p bins
g++ -O2 -Wall -Wl,-Bsymbolic-functions sixad-bin.cpp bluetooth.cpp shared.cpp textfile.cpp -o bins/sixad-binpkg-config --cflags --libs bluez
-lpthread -fpermissive
sixad-bin.cpp: In function ‘int main(int, char**)’:
sixad-bin.cpp:84:20: warning: taking address of temporary [-fpermissive]
sixad-bin.cpp:89:18: error: ‘close’ was not declared in this scope
sixad-bin.cpp:100:20: error: ‘sleep’ was not declared in this scope
sixad-bin.cpp:109:22: error: ‘close’ was not declared in this scope
sixad-bin.cpp:117:22: error: ‘close’ was not declared in this scope
sixad-bin.cpp:140:18: error: ‘close’ was not declared in this scope
sixad-bin.cpp:144:14: error: ‘close’ was not declared in this scope
bluetooth.cpp: In function ‘void do_connect(int, bdaddr_t*, bdaddr_t*, int)’:
bluetooth.cpp:104:30: error: ‘close’ was not declared in this scope
bluetooth.cpp:110:24: error: ‘dup2’ was not declared in this scope
bluetooth.cpp:111:22: error: ‘close’ was not declared in this scope
bluetooth.cpp: In function ‘int l2cap_listen(const bdaddr_t*, short unsigned int, int, int)’:
bluetooth.cpp:148:17: error: ‘close’ was not declared in this scope
bluetooth.cpp:162:17: error: ‘close’ was not declared in this scope
bluetooth.cpp: In function ‘void l2cap_accept(int, int, int, int, int)’:
bluetooth.cpp:195:26: error: ‘close’ was not declared in this scope
bluetooth.cpp:201:26: error: ‘close’ was not declared in this scope
bluetooth.cpp:221:26: error: ‘fork’ was not declared in this scope
bluetooth.cpp:228:32: error: ‘dup2’ was not declared in this scope
bluetooth.cpp:229:30: error: ‘close’ was not declared in this scope
bluetooth.cpp:242:57: error: ‘execve’ was not declared in this scope
bluetooth.cpp:254:26: error: ‘close’ was not declared in this scope
bluetooth.cpp: In function ‘int l2cap_connect(bdaddr_t*, bdaddr_t*, short unsigned int)’:
bluetooth.cpp:274:25: error: ‘close’ was not declared in this scope
bluetooth.cpp:291:25: error: ‘close’ was not declared in this scope
make: *** [sixad_bins] Error 1Any ideas how to fix this error ?
The PS3 controller was also connected via the powered USB-HUB the whole time.05/29/2014 at 12:39 #7043gizmo98ParticipantCould be a gcc 4.7 issue. New sources on github seem to fix this:
https://github.com/falkTX/qtsixa/commit/b8f3b5d77dc2ad1d1cfaaa0c1123ae4734d703d705/29/2014 at 16:25 #7057petrockblogKeymasterI have merged your suggested bug fix for that issue today – thanks a lot for that!
I have not had time to test that, though.
-
AuthorPosts
- The forum ‘Everything else related to the RetroPie Project’ is closed to new topics and replies.