|
I am not allowed to post on Linux site, so I am posting here.
I have never done this so I am confused with these instructions.
I like to install the Qwt library "under" my Qt folder.
I am using QtCreator so my qmake is current and working, so I skipped verifying qmake.
qwt-6.2.0 folder did not exist on my system so I did
cd Qt
mkdir qwt-6.2.0
then I get lost what to do next...
this folder obviously does not exists in /Qt folder
/usr/local/Qt-5.0.1/bin/qmake qwt.pro
Unix-like systems
The first step before creating the Makefile is to check that the correct version of qmake is used. F.e. on older Linux distribution you often find a Qt3 qmake and in the path.
The default setting of qmake is to generate a makefile that builds Qwt for the same environment where the version of qmake has been built for. So creating a makefile usually means something like:
cd qwt-6.2.0
/usr/local/Qt-5.0.1/bin/qmake qwt.pro
The generated Makefile includes all paths related to the chosen Qt version and the next step is:
make
( On multicore systems you can speed up building the Qwt libraries with running several jobs simultaneously: f.e. "make -j4" on a dual core. )
Finally you have to install everything below the directories you have specified in qwtconfig.pri. Usually this is one of the system directories ( /usr/local, /opt, ... ) where you don't have write permission and then the installation needs to be done as root:
sudo make install
( On systems where sudo is not supported you can do the same with: su -c "make install" )
|
|
|
|
|
hci_tool "commands " are derived from "blueZ" library.
Using hci_tool commands in C/C++ (source )code is ....
The hci_tool scan command is implemented in "blueZ" as hci_inquire....
hci_tool --help give a nice overview of all the command options.
Is there a real (written) resource to "translate" hci_tool commands to "blueZ" library functions ?
OK - I found hci_lib.h where all the (function) declarations are...
Now if I can get FUNCTION DESCRIPTIONS I will be closer to "best guess" how hcitool commands and bluez function relate. Is there such documentation anywhere ?
It is NOT in "blueZ" on github .
?
modified 25-Mar-22 0:38am.
|
|
|
|
|
|
Thanks - that is what I am using. It is odd there is no documentation.
Most functions use same or similar variables , but...
for example "device_desc" and "dd" are same...
This "open" concept is not that open - somehow "job security" comes to mind instead...
Perhaps "Most commonly used variable names dictionary (u-tube) " is overdue.
int i = index of something...
int error = error number ( duh )
Have a great day
|
|
|
|
|
Member 14968771 wrote: for example "device_desc" and "dd" are same... Maybe, but that is not a rule that you can rely on.
|
|
|
|
|
It is against my conviction to use "blueZ' but ....
I am trying locate the actual library to link my program with.
From experience I know the file names change so I really do not know what to search for
bluez ... bluetooth..libbluetooth... libbluetooth.so...
I decided to remove and install and hoped for answers..
No go!
What name am I looking for and where is such file located?
Cheers
q5@q5-desktop $ sudo apt-get remove libbluetooth-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following package was automatically installed and is no longer required:
libfwupdplugin1
Use 'sudo apt autoremove' to remove it.
The following packages will be REMOVED:
libbluetooth-dev
0 upgraded, 0 newly installed, 1 to remove and 4 not upgraded.
After this operation, 847 kB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 195509 files and directories currently installed.)
Removing libbluetooth-dev:amd64 (5.60-0ubuntu2.2) ...
q5@q5-desktop $ sudo apt-get install libbluetooth-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following package was automatically installed and is no longer required:
libfwupdplugin1
Use 'sudo apt autoremove' to remove it.
The following NEW packages will be installed:
libbluetooth-dev
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
Need to get 0 B/252 kB of archives.
After this operation, 847 kB of additional disk space will be used.
Selecting previously unselected package libbluetooth-dev:amd64.
(Reading database ... 195466 files and directories currently installed.)
Preparing to unpack .../libbluetooth-dev_5.60-0ubuntu2.2_amd64.deb ...
Unpacking libbluetooth-dev:amd64 (5.60-0ubuntu2.2) ...
Setting up libbluetooth-dev:amd64 (5.60-0ubuntu2.2) ...
q5@q5-desktop $
|
|
|
|
|
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
k5054@localhost:~$ pkg-config --cflags bluez
k5054@localhost:~$ pkg-config --libs bluez
-lbluetooth
k5054@localhost:~$ This tells us that we don't need any additional flags for compilation, and only need to add -lbluetooth when linking.
If you really want to know where the lib is, you can use dpkg to tell you where it is
k5054@localhost:~$ dpkg -S libbluetooth | grep .so
libbluetooth3:amd64: /usr/lib/x86_64-linux-gnu/libbluetooth.so.3
libbluetooth3:amd64: /usr/lib/x86_64-linux-gnu/libbluetooth.so.3.19.3
libbluetooth-dev:amd64: /usr/lib/x86_64-linux-gnu/libbluetooth.so
k5054@localhost:~$ 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.
Keep Calm and Carry On
|
|
|
|
|
Member 14968771 wrote: The following NEW packages will be installed:
libbluetooth-dev
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" .
THANKS
|
|
|
|
|
Member 14968771 wrote: PLEASE help me with link to real "blueZ" instructions ( NOT the original link, Since you have not told us which one does not work, I assume you meant the one at bluez.org. So maybe try Bluetooth Management | Ubuntu[^].
|
|
|
|
|
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
$ autoconf
configure.ac:5: error: possibly undefined macro: AM_INIT_AUTOMAKE
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:11: error: possibly undefined macro: AM_MAINTAINER_MODE
configure.ac:24: error: possibly undefined macro: AM_PROG_CC_C_O
configure.ac:25: error: possibly undefined macro: AC_PROG_CC_PIE
configure.ac:26: error: possibly undefined macro: AC_PROG_CC_ASAN
configure.ac:27: error: possibly undefined macro: AC_PROG_CC_LSAN
configure.ac:28: error: possibly undefined macro: AC_PROG_CC_UBSAN
configure.ac:35: error: possibly undefined macro: AC_DISABLE_STATIC
configure.ac:36: error: possibly undefined macro: AC_PROG_LIBTOOL
configure.ac:44: error: possibly undefined macro: AM_CONDITIONAL What you ned to do instead is use autoreconf --install . This will build a new configure script which you can then use to build the bulez library.
Keep Calm and Carry On
modified 13-Mar-22 14:23pm.
|
|
|
|
|
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 tried VsCode. It's in the Ubuntu repository.
Unfortunately I couldn't get even Hello World to compile and run, so I went back to gedit and gcc/g++.
Now I need to find out how to do graphics drawing.
I finally settled on Lazarus/freepascal.
It's just like Delphi, which I used to use extensively. software is running and drawing graphics nicely now. Allbeit in Pascalrather than C++;
|
|
|
|
|
Eclipse or QT - QTCreator
Do not mention to anybody in QT you are looking for "IDE" - they call it "library" .
73 AA7EJ Vaclav
|
|
|
|
|
I know this is old but in case it helps anyone, look at Eclipse.
|
|
|
|
|
The reply immediately above yours, posted back in March, already mentioned Eclipse.
And resurrecting an old thread to post a link immediately looks suspicious. I had to resort to Google to double-check that the link you posted is the real Eclipse site, and not some spam knock-off.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Dear Team,
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)?
Thank,
Kanel
|
|
|
|
|
Does Vmware or Virtual box not suit your needs?
Keep Calm and Carry On
|
|
|
|
|
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.
|
|
|
|
|
|
Okay, thank you for the resources then. Much appreciated!
|
|
|
|
|
|