Where to get Bluetooth/Bluetooth.h for Raspberry Pi? - bluetooth

This is a stupid question. But I cannot find a solution to it. I am trying to build a BLE application with reference to this tutorial https://people.csail.mit.edu/albert/bluez-intro/c404.html. I am cross-compiling for Raspberry Pi3 from my Windows pc wsl. I have downloaded the toolchain from https://github.com/raspberrypi/tools. And I have verified the toolchain by compiling a simple HelloWorld application and ran it from RaspberryPi. Now when I try to compile the above code I am getting the error
/mnt/c/Study/RaspberryPi/main.c:5:33: fatal error: bluetooth/bluetooth.h: No such file or directory
#include <bluetooth/bluetooth.h>
I understand that Bluetooth.h is not my system. My question is where can I get it? So that I can cross-compile from windows. Do I have to download sdk for it? if needed where can I get it?

I found the answer from another forum. I am sharing the link here so that it can be useful if anyone has the same question.
https://raspberrypi.stackexchange.com/a/119201/115617

Related

How to Cross Compile Alsa library for Windows Eclipse

I would like to know how could it be possible to cross compile the Alsa library in Windows for my linux host.
I am using an iMX8X with a Linux image, made by Yocto, and I need to implement the Alsa library in my Eclipse to be able to use the functions it gives. I have tried to,
CC=aarch64-linux-gnu-gcc(in my case) ./configure host=arm-linux
It goes by properly but when I do make with cygwin it fails and I cannot figure it out.
Anyone know how to approach the cross-compilation of a library for Windows Eclipse?
Thanks in advance!
There is no point on compiling Alsa on Windows, this library works with Linux Core in order to work. There is no actual way, for what I found, to compile it on Windows. Best approach has been to make a Virtual Box machine with Ubuntu 20.04, install Eclipse and compile and add Alsa library in the Ubuntu machine. For more information, just ask me about it, glad to help.

Mono and MongoDB on Raspbian

I've written and tested a c# application in visual studio.
..but now need to cross compile it with Mono on a Raspberry PI (set up as a headless server).
I'm having trouble with the MongoDB Driver -- it's not available as default in the build.
I'm including this .. which works fine on windows
using MongoDB.Bson;
using MongoDB.Driver;
But in Linux on the RasPi This is the error:
error CS0246: The type or namespace name `MongoDB' could not be
found. Are you missing an assembly reference?
Can I install the MongodB driver using apt-get?
or .. this repo should help me... If I can compile it..
https://github.com/mongodb/mongo-csharp-driver
how do I go about doing that? clone the repo and run the build.sh ?
Once I do that is this the command that will include it in my build?
Something like: "mcs pkg:mongodb.pkg myapp.cs"
Any advice would be appreciated
The mono documentation talks about how to include packages, towards the bottom of the page. From what I can tell you need something like mcs -pkg:mongodb myapp.cs.

Beaglebone cross compilation

I am a freshman for the beaglebone. I need your help. I have installed the cross compiler toolchain arm-linux-gnueabi on my 64 bit xubuntu in eclipse as well as codeblocks environment. I have made a hello world program, cross compiled it in 3 ways using eclipse , using terminal,using Codeblocks. But when i run my executable file in Beaglebone i get the error saying cant load shared file libstdc++6.so.6:file not found.
Though i have already installed latest libstdc++6,ia32-libs and configured it. I am using ssh for logging into my Beaglebone. My all projects are pending because of this. Please suggest solution. I will be grateful to you. I have worked according to derek molloy c,c++ video but still got the error. I think it is because of difference between 32 bit and 64 bit in beaglebone and laptop respectively.
Have you really installed libstdc++6,ia32-libs on your BB? It looks like x86 lib. Take a look at Buildroot. It already provides BB target, so you can get your basic rootfs quite quickly. Then just add needed packages and you are done. The main benefit, when using such distro like BR, that you have all needed dependencies in your rootfs, that you burn on your microSD card. BR also provides Eclipse plugin.
I thought abi used was arm-linux-gnueabi but when i got the details of abi version running on my beagleboard i found it was arm-linux-gnueabihf. So i just replaced the compiler and then it was able to find all the files.

Can't install mono on linux

I'm having trouble building and installing mono. the problem is that the call
make get-monolite-latest
fails due to invalid url. Anyone knows how to bypass this error?
P.S. I'm using Linux Mint 16
Thanks.
The server is online again; see my question regarding the same problem. It allowed me to complete a Centos install of Mono 3.4.0.

Cross-compiling with wxwidgets in codeblocks

I searched around a fair amount and didn't see anyone else with this specific problem. I'm running Ubuntu 14.04 (amd64) and codeblocks 13.12 (from the ubuntu repositories). I've followed the directions here: "wxWidgets how to cross compile an application for windows from linux using codeblocks?" and am finding myself a bit stuck. I can successfully compile win32 CLI code and code that uses windows.h. If I create a wxwidgets project I can successfully compile it for linux, but if I try and compile it using the mingw compiler setup (per the instructions in that link) I get the following error:
unrecognized command line option "-Wno-unused-local-typedefs"
Any suggestions would be greatly appreciated!
Just remove this option, you're using a compiler too old to have it. As all -Wno-xxx options, this one just suppresses a warning, so removing it is harmless.

Resources