Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • haroldcakington
    Participant

    Hi Floob,

    I’m having a weird problem with my PS3 controller set up. I run the script as in the video, followed all the instructions. It recognises my bluetooth adapter, but when it asks to insert my PS3 controller via USB, it can’t find it.

    I’ve used lsusb and it detects it fine. It also see’s my USB dongle fine.

    Grabbing the log shows that I’m missing a file:

    <snip>

    = = = = = = = = = = = = = = = = = = = = =
    Building 'ps3controller' : Install/Pair PS3 controller
    = = = = = = = = = = = = = = = = = = = = =
    
    In file included from /usr/include/c++/4.7/arm-linux-gnueabihf/./bits/os_defines.h:40:0,
                     from /usr/include/c++/4.7/arm-linux-gnueabihf/./bits/c++config.h:414,
                     from /usr/include/c++/4.7/iostream:39,
                     from main.cpp:1:
    /usr/include/features.h:356:25: fatal error: sys/cdefs.h: No such file or directory
    compilation terminated.
    rm -f *~ bins/*
    mkdir -p bins
    g++ -O2 -mcpu=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -pipe -Wl,-Bsymbolic-functions sixad-bin.cpp bluetooth.cpp shared.cpp textfile.cpp -o bins/sixad-bin <code>pkg-config --cflags --libs bluez</code> -lpthread -fpermissive
    In file included from /usr/include/stdio.h:28:0,
                     from /usr/include/bluetooth/bluetooth.h:33,
                     from bluetooth.h:21,
                     from sixad-bin.cpp:18:
    /usr/include/features.h:356:25: fatal error: sys/cdefs.h: No such file or directory
    compilation terminated.
    In file included from /usr/include/stdio.h:28:0,
                     from /usr/include/bluetooth/bluetooth.h:33,
                     from bluetooth.h:21,
                     from bluetooth.cpp:18:
    /usr/include/features.h:356:25: fatal error: sys/cdefs.h: No such file or directory
    compilation terminated.
    In file included from /usr/include/unistd.h:26:0,
                     from shared.h:21,
                     from shared.cpp:18:
    /usr/include/features.h:356:25: fatal error: sys/cdefs.h: No such file or directory
    compilation terminated.
    In file included from /usr/include/c++/4.7/arm-linux-gnueabihf/./bits/os_defines.h:40:0,
                     from /usr/include/c++/4.7/arm-linux-gnueabihf/./bits/c++config.h:414,
                     from /usr/include/c++/4.7/cstdlib:43,
                     from textfile.h:21,
                     from textfile.cpp:18:
    /usr/include/features.h:356:25: fatal error: sys/cdefs.h: No such file or directory
    compilation terminated.

    I’ve tried searching how I can get this file, but I can’t seem to make head or tail of it.

    I’m using Rasp v2, Retropie v3.0 (Using NOOBS and OpenElec) with only the dongle and USB cable connected, along with ethernet for updates, and an HDMI TV (Not that I’m using it, as I’m doing everything via SSH)

    Anybody seen this before, and got any ideas what package I need to download to get the cdefs.h file?

    Cheers

Viewing 1 post (of 1 total)