4

I am trying to port my Windows service to Linux using Mono. The service uses Bluetooth 32feet.NET library.

I have read this post and this post and I tried installing those libraries to my PC:

mono-runtime mono-xbuild mono-devel mono-gmcs libbluetooth-dev

but I couldn't install mono-gmcs since Mono 4 uses mono-mcs. I imported ExternalLibs/Mono etc/NDesk.DBus.dll to my project's debug folder and solved the System.DllNotFoundException: BsSDK exception. Buy I still couldn't figured out why I am getting

Unhandled Exception: System.PlatformNotSupportedException: No supported Bluetooth protocol stack found.

I tried to patch Mono. But I couldn't do it, is there anyone who could got this library work under Linux using Mono?

Thanks for your help.

Community
  • 1
  • 1
Mustafa Berkay Mutlu
  • 1,929
  • 1
  • 25
  • 37

1 Answers1

0

You're on the right path. It depends largely on if you're doing it against blueZ 4 (which 32feet supports) or blueZ 5 (which 32 feet does not support yet, but mono.bluez does)

Here's a full set of steps for bluez4

Brook
  • 5,949
  • 3
  • 31
  • 45