• 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
03-04-2012, 11:20 PM (This post was last modified: 03-04-2012, 11:20 PM by scummos.)
#2
scummos Offline
Level 27 Forum Troll of Trog
****
Posts: 252
Threads: 2
Joined: Nov 2011
You can also use CMAKE_CXX_FLAGS=-fpermissive, alternatively. This does not even require changing the file, just run "cmake .. -DCMAKE_CXX_FLAGS=-fpermissive". Smile

But yeah, the issue is definitely there. Still, the complaint goes into the direction of the bluez developers Smile
Find
Reply
03-04-2012, 11:35 PM
#3
maggu2810
Unregistered
 
Thanks for the "fpermissive hint."

One can argue about who has to change something.
The developers of Bluez could also state that, whoever wishes to use its library has to meet some criteria... Confused
But ATM the C++ support / patch is not available upstream.

A hope a solution can be found.
Reply
« Next Oldest | Next Newest »


  • 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