Comments (9)
Possibly you need to make distclean
in the bluez-alsa directory before running autoreconf -fi
. You don't say which was the commit of the last build that worked, nor what commit the above error log is from, so it is impossible for anyone to say with certainty which change caused this for you (builds fine for me).
from bluez-alsa.
After one of the recent updates I cannot build new versions any more, getting this error (after some portion of normal compilation output):
If you've pulled new changes to your local git clone, and you've just typed make
in already configured build directory, this might happened. Please, clean the build directory before build and also make sure that the git status
shows no changes to any file. The simplest approach is to start from scratch (fresh git clone, configure and build).
from bluez-alsa.
Sure, this is the first thing I tried, using a clean directory. In fact, just now I tried to build manually (no PKGBUILD
) - same error. This is the sequence of my actions:
rm -rf ~/tmp
mkdir ~/tmp
cd ~/tmp
git clone https://github.com/arkq/bluez-alsa.git
cd bluez-alsa
autoreconf --install --force
mkdir build
cd build
../configure --enable-cli --enable-aac --enable-systemd
make
... and I get exactly the same error with undeclared symbols.
nor what commit the above error log is from
It's from the latest commit, as I just did git clone
.
You don't say which was the commit of the last build that worked
Unfortunately, I can't say that now, as I update packages on that host about once in 2-4 weeks. What I can say for sure is that there was no problem 2 months ago, and there was this same error already 2 weeks ago. If this is the only option to find the issue, I may try to pinpoint the latest working commit when I have time.
There is some warning from autoreconf
, but I don't think it is related:
aclocal: warning: couldn't open directory 'm4': No such file or directory
...
from bluez-alsa.
I suspect this is specific to Arch Linux ARM. I have tried to build on regular Arch Linux host (where I never used bluez-alsa), the build completed normally.
from bluez-alsa.
So I have tried to build some random commit from March, the same error. Yet, this issue began about 3-4 weeks ago, it definitely built normally in March. So I guess something happened with some other package(s) in one of the recent updates in Arch Linux ARM. Sorry, you can probably close the issue (still, if you have any hints on where to look for the cause of the issue, I would appreciate that).
from bluez-alsa.
My first suspicion is that gdbus-codegen is missing or very out of date. On Debian that is in package libglib2.0-dev-bin
, so probably is in libglib2.0
on Arch (I don't have Arch to check that)
from bluez-alsa.
glib2
version 2.80.2-2 is installed, and it provides /usr/lib/libglib-2.0.so
. Search for other packages that may contain dbus codegen
in official repo of Arch Linux yields no result.
from bluez-alsa.
bluealsa-iface.c: In function ‘org_bluealsa_pcm1_skeleton_new’:
bluealsa-iface.c:43:28: error: ‘org_bluealsa_pcm1_interface’ undeclared (first use in this function); did you mean ‘org_bluealsa_pcm1_skeleton_new’?
43 | (GDBusInterfaceInfo *)&org_bluealsa_pcm1_interface,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| org_bluealsa_pcm1_skeleton_new
This file has the wrong contents. src/bluealsa-iface.c
is a generated file, and it should include the declaration of org_bluealsa_pcm1_interface
. So either something is wrong with gdbus-codegen
on your system, or else make
is finding some old version of this file instead of generating it from the xml within the bluez-alsa source. It might be easier to track down what is happening if you build in a subdirectory so we can more easily use git
see what is changing in the source tree.
from bluez-alsa.
Problem solved, thank you.
Digging in the direction you provided, I learned about gdbus-codegen
, and tried to manually generate the C file from the
XML file:
gdbus-codegen --generate-c-code=bluealsa-iface bluealsa-iface.xml
This gave error:
Traceback (most recent call last):
File "/usr/bin/gdbus-codegen", line 53, in <module>
from codegen import codegen_main
File "/usr/share/glib-2.0/codegen/codegen_main.py", line 30, in <module>
from . import dbustypes
File "/usr/share/glib-2.0/codegen/dbustypes.py", line 22, in <module>
from . import utils
File "/usr/share/glib-2.0/codegen/utils.py", line 22, in <module>
import packaging.version
ModuleNotFoundError: No module named 'packaging'
So I installed python-packaging
, and - that's it.
Why this error doesn't spring out in the normal build process, and instead some incorrect C file is generated, is a mystery.
from bluez-alsa.
Related Issues (20)
- HSP HS profile: "arecord -d" duration is ignored HOT 1
- Routing audio to bluealsa from hw:0,1 HOT 31
- Test all deps with pkgconfig HOT 10
- arecord Unable to install hw params, record from bluetooth failed HOT 3
- Error compiling with aptx HOT 1
- Audio cut off in the beginning of the file HOT 3
- how can an SCO link be reestablished after it has been disconnected by the HF device? HOT 2
- How to pipe bluealsa PCM to fifo? HOT 18
- aplay Unable to install hw params HOT 1
- Can't get the A2DP profile to use LDAC codec HOT 11
- LDAC shows only 96KHz as sample rate | support for other sampling rates HOT 14
- Configuring asoundrc for default bluetooth ignored for Internet Browsers? HOT 2
- LE Audio support in bluez-alsa HOT 1
- Audio volume does not go to 100% on Raspberry Pi HOT 19
- Can't detect libsystemd-dev on debian trixie HOT 2
- test-alsa-ctl fails with bluealsa-mock: W: Couldn't get HCI device info: Address family not supported by protocol HOT 2
- test-alsa-midi fails due to permission errors HOT 2
- Distorted recording with certain mic (but not in pulseaudio) HOT 3
- RPI 4: Arecord the audio stream from the phone through Bluezalsa HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bluez-alsa.