PS3 / Sixaxis compiling error

Home Forums RetroPie Project Everything else related to the RetroPie Project PS3 / Sixaxis compiling error

RetroPie has a new website and forum. Please visit https://retropie.org.uk/ for the new site. The new forum is located at https://retropie.org.uk/forum/. This forum is left here as a read-only archive.

This topic contains 2 replies, has 3 voices, and was last updated by Profile photo of petrockblog petrockblog 2 years, 11 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #7027
    Profile photo of helistorm
    helistorm
    Participant

    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-bin pkg-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 1

    Any ideas how to fix this error ?
    The PS3 controller was also connected via the powered USB-HUB the whole time.

    #7043
    Profile photo of gizmo98
    gizmo98
    Participant

    Could be a gcc 4.7 issue. New sources on github seem to fix this:
    https://github.com/falkTX/qtsixa/commit/b8f3b5d77dc2ad1d1cfaaa0c1123ae4734d703d7

    #7057
    Profile photo of petrockblog
    petrockblog
    Keymaster

    I have merged your suggested bug fix for that issue today – thanks a lot for that!

    I have not had time to test that, though.

Viewing 3 posts - 1 through 3 (of 3 total)

Forums are currently read only - please visit the new RetroPie forums at https://retropie.org.uk/forums/

Skip to toolbar