Dolphin, the GameCube and Wii emulator - Forums
Linux Bluetooth compiling error - Printable Version

+- Dolphin, the GameCube and Wii emulator - Forums (https://forums.dolphin-emu.org)
+-- Forum: Dolphin Emulator Discussion and Support (https://forums.dolphin-emu.org/Forum-dolphin-emulator-discussion-and-support)
+--- Forum: Development Discussion (https://forums.dolphin-emu.org/Forum-development-discussion)
+--- Thread: Linux Bluetooth compiling error (/Thread-linux-bluetooth-compiling-error)



Linux Bluetooth compiling error - SquidLord - 03-06-2012

I did notice the other thread concerning Bluetooth on Linux, but this differs slightly.

I get 68% of the way compiling [ends at Wiimote.cpp.o] with this long chain of error:

Code:
In file included from /home/squid/git/dolphin-emu/Source/Core/Core/Src/HW/WiimoteReal/WiimoteRealBase.h:26:0,
                 from /home/squid/git/dolphin-emu/Source/Core/Core/Src/HW/WiimoteReal/WiimoteReal.h:24,
                 from /home/squid/git/dolphin-emu/Source/Core/Core/Src/HW/Wiimote.cpp:5:
/usr/include/bluetooth/bluetooth.h: In function ‘uint64_t bt_get_le64(void*)’:
/usr/include/bluetooth/bluetooth.h:131:9: error: expected identifier before ‘*’ token
/usr/include/bluetooth/bluetooth.h:131:9: error: expected ‘,’ or ‘...’ before ‘(’ token
/usr/include/bluetooth/bluetooth.h:131:9: error: expected ‘;’ at end of member declaration
/usr/include/bluetooth/bluetooth.h:131:9: error: ‘__v’ does not name a type
/usr/include/bluetooth/bluetooth.h:131:9: error: ‘typeof’ was not declared in this scope
/usr/include/bluetooth/bluetooth.h:131:9: error: ‘struct bt_get_le64(void*)::<anonymous>’ has no member named ‘__v’
/usr/include/bluetooth/bluetooth.h: In function ‘uint64_t bt_get_be64(void*)’:
/usr/include/bluetooth/bluetooth.h:136:9: error: expected identifier before ‘*’ token
/usr/include/bluetooth/bluetooth.h:136:9: error: expected ‘,’ or ‘...’ before ‘(’ token
/usr/include/bluetooth/bluetooth.h:136:9: error: expected ‘;’ at end of member declaration
/usr/include/bluetooth/bluetooth.h:136:9: error: ‘__v’ does not name a type
/usr/include/bluetooth/bluetooth.h:136:9: error: ‘typeof’ was not declared in this scope
/usr/include/bluetooth/bluetooth.h:136:9: error: ‘struct bt_get_be64(void*)::<anonymous>’ has no member named ‘__v’
/usr/include/bluetooth/bluetooth.h: In function ‘uint32_t bt_get_le32(void*)’:
/usr/include/bluetooth/bluetooth.h:141:9: error: expected identifier before ‘*’ token
/usr/include/bluetooth/bluetooth.h:141:9: error: expected ‘,’ or ‘...’ before ‘(’ token
/usr/include/bluetooth/bluetooth.h:141:9: error: expected ‘;’ at end of member declaration
/usr/include/bluetooth/bluetooth.h:141:9: error: ‘__v’ does not name a type
/usr/include/bluetooth/bluetooth.h:141:9: error: ‘typeof’ was not declared in this scope
/usr/include/bluetooth/bluetooth.h:141:9: error: ‘struct bt_get_le32(void*)::<anonymous>’ has no member named ‘__v’
/usr/include/bluetooth/bluetooth.h: In function ‘uint32_t bt_get_be32(void*)’:
/usr/include/bluetooth/bluetooth.h:146:9: error: expected identifier before ‘*’ token
/usr/include/bluetooth/bluetooth.h:146:9: error: expected ‘,’ or ‘...’ before ‘(’ token
/usr/include/bluetooth/bluetooth.h:146:9: error: expected ‘;’ at end of member declaration
/usr/include/bluetooth/bluetooth.h:146:9: error: ‘__v’ does not name a type
/usr/include/bluetooth/bluetooth.h:146:9: error: ‘typeof’ was not declared in this scope
/usr/include/bluetooth/bluetooth.h:146:9: error: ‘struct bt_get_be32(void*)::<anonymous>’ has no member named ‘__v’
/usr/include/bluetooth/bluetooth.h: In function ‘uint16_t bt_get_le16(void*)’:
/usr/include/bluetooth/bluetooth.h:151:9: error: expected identifier before ‘*’ token
/usr/include/bluetooth/bluetooth.h:151:9: error: expected ‘,’ or ‘...’ before ‘(’ token
/usr/include/bluetooth/bluetooth.h:151:9: error: expected ‘;’ at end of member declaration
/usr/include/bluetooth/bluetooth.h:151:9: error: ‘__v’ does not name a type
/usr/include/bluetooth/bluetooth.h:151:9: error: ‘typeof’ was not declared in this scope
/usr/include/bluetooth/bluetooth.h:151:9: error: ‘struct bt_get_le16(void*)::<anonymous>’ has no member named ‘__v’
/usr/include/bluetooth/bluetooth.h: In function ‘uint16_t bt_get_be16(void*)’:
/usr/include/bluetooth/bluetooth.h:156:9: error: expected identifier before ‘*’ token
/usr/include/bluetooth/bluetooth.h:156:9: error: expected ‘,’ or ‘...’ before ‘(’ token
/usr/include/bluetooth/bluetooth.h:156:9: error: expected ‘;’ at end of member declaration
/usr/include/bluetooth/bluetooth.h:156:9: error: ‘__v’ does not name a type
/usr/include/bluetooth/bluetooth.h:156:9: error: ‘typeof’ was not declared in this scope
/usr/include/bluetooth/bluetooth.h:156:9: error: ‘struct bt_get_be16(void*)::<anonymous>’ has no member named ‘__v’
make[2]: *** [Source/Core/Core/CMakeFiles/core.dir/Src/HW/Wiimote.cpp.o] Error 1
make[1]: *** [Source/Core/Core/CMakeFiles/core.dir/all] Error 2
make: *** [all] Error 2

I'm using bluez 4.98-4 and have tried 4.98-3 and 4.98-2. Odd that 4.98-2 didn't work after I rolled back as it was the last one that did work. I'm also trying to compile the most recent version from the git. I've also tried appending "-DCMAKE_CXX_FLAGS=-fpermissive" to my usual "cmake .." command.

Any idea, or is this the same issue to as the other thread?


RE: Linux Bluetooth compiling error - scummos - 03-06-2012

I think it's the same error. Try make VERBOSE=1 and check whether the -fpermissive flag is really applied.

Cheers


RE: Linux Bluetooth compiling error - SquidLord - 03-09-2012

(03-06-2012, 08:53 AM)scummos Wrote: I think it's the same error. Try make VERBOSE=1 and check whether the -fpermissive flag is really applied.

Cheers

It appears as though -fpermissive is applied. It's certainly in the output from VERBOSE=1


RE: Linux Bluetooth compiling error - delroth - 03-09-2012

This should be fixed in the latest git revision.


RE: Linux Bluetooth compiling error - SquidLord - 03-12-2012

(03-09-2012, 08:35 PM)delroth Wrote: This should be fixed in the latest git revision.

Just checked and it is! Didn't even need -fpermissive. Successful compile and install. Glad to hear it's fixed.