Short answer is you don't need to know. When linking your program with -lbluetooth should be enough, if it's installed in the usual place. Depending on what your development environment is, you can use pkg-config to tell you what flags you need to use to find headers and libs e.g
Note that debian/ubuntu uses the target architecture as part of the filename for libraries, so for a PI with a 32 bit Raspberry Pi OS, the path is /usr/lib/arm-linux-gnueabihf/libbluetooth.so.3, and it would be different again for a PI with a 64-bit OS, or an i386, MIPS, etc.
The following NEW packages will be installed:
So the option to use in your build should be -lbluetooth-dev. But you also need to check that it is installed in one of the automatically searched locations. The names of these will be in the environment variable LD_LIBRARY_PATH. If the library is not in one of those places then you can:
1. Add its name to the envoronment variable, or
2. Use the -L option on the build.
I hope nobody will complain about this post HERE.
I run and was "run off" from other places.
I am going back to use "bluez" to program (C++) Bluetooth application.
I downloaded "blueZ" and trying to follow instructions...RTFM...
... change to folder where bluez source is and execute "./configure"....
There is no "configure" to be found.
PLEASE help me with link to real "blueZ" instructions ( NOT the original link, please - been there - hopelessly outdated and NOT supported ) or suggest resource of REAL latest and workable / working "blueZ" .
What's wrong with the bluez package shipped with your distribution? You can install the package using apt install libbluetooth-dev for debian based distributions (Debian, Ubuntu, PI OS, etc), or dnf install bluez-libs-devel for RedHat based distributions. There also seems to be bluez packages that are targeting QT, so those might be useful to you, too.
Update: If you insist on building from source, you need to generate your own configure script from the included configure.ac. The INSTALL document mentions that you should build this using autoconf, but if you try that you'll probably get something like
I recently installed ubuntu on a spare computer (Surface Pro 3)and have been playing with it.
I'm familiar with Linux in general and used it extensively in the past.
Now I need to get some programming done, specifically desktop engineering apps wit graphics, like graph and fluidstreamline map displays.
What is the best IDE for that purpose? I foresee most coding will be in c/c++.
CQ de W5ALT
Walt Fair, Jr.PhD P. E. Comport Computing Specializing in Technical Engineering Software
I haven't done C++ development on Linux but eventually hope to, at which point I'll probably go for this: Running Visual Studio Code on Linux[^]. A lot of folks on this site like VS Code, but I'm still on VS2022, mostly because my project has over 800 source files and I don't want to bang my head against a new build process.
I am learning about install ubuntu server on the server with multiple hard drive. Instead of investing on the real server and real physical hard drive, is it any solution that I can run the software simulator of partition hard drive in linux (Exp: Create RAID or LVM)?
Hi guys, first post on this discussion forum ever. Nice to meet you all. Hope this belongs here.
I have just returned to college for IT after a lapse in enrollment. We're going to be working with Linux more in the future, and even the Powershell in Windows too. I have been messing around with the Raspberry Pi I got for one of my classes, but I pretty much have to Google every command I use in the terminal for it since I'm not that familiar with Debian (sorry, Raspbian), the Powershell, or Linux terminals at all.
My question is this: what are some essential, need to know commands for moving around in and using the Powershell? You can give me one or several, list form, add a short description of what it does, whatever. I'll be jotting them all down in my notes with some extra fluff anyways for future reference.
Appreciate it guys, thanks.
TL;DR: Need useful, necessary Powershell / Linux terminal commands.
Find a nice book/primer on Unix commands. They mostly work on Linux as well. You need 'cd' to move between folders, 'ls to list files, type to display text files, 'whereis' to find the location of a file 'su' to switch to root access. most commands will list command line options if you add the --help option. Conversely, you can try 'man '+ command to get help on most commands.
When I was working a lot on Linux/Unix, I found a book called "Tricks of the Un ix Masters". It helped immenselywith file editing and bash scripts.
Good Luck and Dive In,
I'm building a linux-based bluetooth speaker that uses speech recognition to display captions for what is playing on the speaker and I'm trying to figure out where to start in terms of where to intercept the bluetooth audio. I understand that ALSA and PulseAudio could be used to intercept audio from applications before they get sent to the audio hardware, but I haven't had much luck figuring out how a bluetooth source can be intercepted. Any help understanding how bluetooth fits into the audio architecture would be appreciated. Here's what I'm trying to do:
Phone->bluetooth->my custom linux-based bluetooth speaker->run raw audio through speech AI->audio out to speakers and captions out to display.
am I looking for someone who specializes in hardware programming? I have a sound card which is at the same time control surface is the digi 003 console of digidesign. at the time this card was dedicated and only worked with a specific software, protools 7, but as the company was acquired they stopped the software updates and now the control part is unusable, we only have access to the card are and at 2out of 8. suddenly I was wondering if it was possible to reprogram it, it isin firewire. if it was possible to go into it somehow and unlock it?
suddenly on my 2008 macpro I installed the famous linux studio that you helped me to troubleshoot, thank you again but it's been a while since I wonder if I could not hack my card to be able to use it at 100 %