• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Development Discussion v
« Previous 1 ... 54 55 56 57 58 ... 117 Next »

Linux WiiMote (bluetooth) support
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Linux WiiMote (bluetooth) support
03-04-2012, 08:15 PM
#1
maggu2810
Unregistered
 
If the WiiMote support is build, the file <bluetooth/bluetooth.h> is also included, e.g. because of the bt_get_... functions.
The file comes from the Bluez library.
Recent versions break C++ support (casting void* to anything). So the most distributions are using the following patch to allow usage with C++ code:
http://www.spinics.net/lists/linux-bluetooth/msg20995.html

Because you are using the C++x0 standard, the keyword "typeof" is not available but __typeof__ is (for gcc).
Until Bluez is changing something, the following patch allows compilation again:

diff -Naur a/CMakeLists.txt b/CMakeLists.txt
--- a/CMakeLists.txt 2012-03-03 17:17:50.303444767 +0000
+++ b/CMakeLists.txt 2012-03-03 17:17:03.688443435 +0000
@@ -553,6 +553,7 @@
# Start compiling our code
#
add_definitions(-std=c++0x)
+add_definitions(-Dtypeof=__typeof__)
add_subdirectory(Source)


I also reported the typeof issue to the Bluez mailing list:
http://permalink.gmane.org/gmane.linux.bluez.kernel/22294
Reply
« Next Oldest | Next Newest »


Messages In This Thread
Linux WiiMote (bluetooth) support - maggu2810 - 03-04-2012, 08:15 PM
RE: Linux WiiMote (bluetooth) support - scummos - 03-04-2012, 11:20 PM
RE: Linux WiiMote (bluetooth) support - maggu2810 - 03-04-2012, 11:35 PM

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 2 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode