Comments (15)
I am co-author of that ebuild. I'll add multilib suppot to in and post it here. But probably not until next year.
from bluez-alsa.
Got it done just now, try https://gist.github.com/infirit/c115f5ae66da691f490c76345b636e0a
Gentoo bug https://bugs.gentoo.org/show_bug.cgi?id=603200
file list
# equery f bluez-alsa
* Searching for bluez-alsa ...
* Contents of media-sound/bluez-alsa-9999:
/etc
/etc/init.d
/etc/init.d/bluealsa
/usr
/usr/bin
/usr/bin/bluealsa
/usr/lib32
/usr/lib32/alsa-lib
/usr/lib32/alsa-lib/libasound_module_ctl_bluealsa.so
/usr/lib32/alsa-lib/libasound_module_pcm_bluealsa.so
/usr/lib64
/usr/lib64/alsa-lib
/usr/lib64/alsa-lib/libasound_module_ctl_bluealsa.so
/usr/lib64/alsa-lib/libasound_module_pcm_bluealsa.so
/usr/share
/usr/share/alsa
/usr/share/alsa/alsa.conf.d
/usr/share/alsa/alsa.conf.d/20-bluealsa.conf
/usr/share/doc
/usr/share/doc/bluez-alsa-9999
/usr/share/doc/bluez-alsa-9999/README.md.bz2
from bluez-alsa.
ALSA lib dlmisc.c:272:(snd1_dlobj_cache_get) Cannot open shared library /usr/lib/i386-linux-gnu/alsa-lib/libasound_module_pcm_bluealsa.so
This line is interesting. It seems, that alsa library is not able to load plugin... strange. It is possible to debug it further, but you will have to compile alsa-lib by yourself (with small modification). Compilation is pretty straightforward (I've done it by myself) - ./configure and make (without make install).
In the src/dlmisc.c source file you will have to add "debug" line after the dlopen()
call in the snd_dlopen function (current master line 83 and 87) as follows:
diff --git a/src/dlmisc.c b/src/dlmisc.c
index b36c48f..f14afb9 100644
--- a/src/dlmisc.c
+++ b/src/dlmisc.c
@@ -81,10 +81,12 @@ void *snd_dlopen(const char *name, int mode)
strcat(filename, "/");
strcat(filename, name);
handle = dlopen(filename, mode);
+ fprintf(stderr, "ERR: %s\n", dlerror());
free(filename);
}
if (!handle)
handle = dlopen(name, mode);
+ fprintf(stderr, "ERR: %s\n", dlerror());
return handle;
#else
return NULL;
Then run application as follows:
$ export LD_LIBRARY_PATH=/[... replace with absolute path ...]/alsa-lib/src/.libs/
$ application-to-run
The cause of the error should pop out.
EDIT:
Are you using a 32 bit Linux? Or the game you're trying to run is 32 bit and the system is 64 bit? Because, it is possible, that there is no /usr/lib/i386-linux-gnu/alsa-lib/libasound_module_pcm_bluealsa.so file at all. It might be required to compile a 32 bit version of bluez-alsa PCM plugin and place it there. I've never though about multi-arch systems.... So, it seems, that this issue is an enhancement request :D
from bluez-alsa.
Are you using a 32 bit Linux? Or the game you're trying to run is 32 bit and the system is 64 bit?
Yes, possibly. I'm using 64 bit linux, but have multi-arch libs activated. To be able to start Steam I have to start it like this:
LIBGL_DRIVERS_PATH="/usr/lib32/dri" LIBGL_DEBUG="verbose" /usr/bin/steam
Then for some games I have to reset that path to /usr/lib/dri. Saints Row 4 is not one of them, it should be a 32 bit application.
If I should still compile stuff to help here you tell me, but I would need a pointer what exactly, like from where to get the alsa-lib I'd need. https://www.alsa-project.org/main/index.php/Download ? (And after tomorrow I'll be offline for 2-3 weeks).
from bluez-alsa.
I think, there is no need to compile alsa-lib. This case is clear. You are running a multi-arch Linux and bluez-alsa is not ready for that, not yet.
from bluez-alsa.
bluez-alsa is not ready for that, not yet
I would not say that yet. To run 32bit application on a 64bit native operating system you will need 32bit version of alsa-lib, alsa-plugins and bluealsa. I doubt the op has build and installed a 32bit version of bluez-alsa. If this is the case I would consider this a packaging problem not a bluealsa one.
from bluez-alsa.
It is packaging problem. However, I think (I'm not sure, though), that bluez-alsa build configuration (configure.ac, Makefile.am, etc.) will need to be modified accordingly in order to allow multiarch builds. Bluealsa server does not need to be 32 bit, it is run globally as a system service.
from bluez-alsa.
I doubt the op has build and installed a 32bit version of bluez-alsa
In fact I did not. For #12 I compiled bluealsa manually. You think it is possible that when I install it over https://packages.gentoo.org/packages/media-sound/bluez-alsa, the proper libs will be built and it would work? I could try to install the 9999-git version (but won't have the time this year anymore).
from bluez-alsa.
I could try to install the 9999-git version
It won't help either. You can use this approach as a convenient method for installing latest master snapshot (however, for debugging it is easier to install things manually from the source). This will install (by default) 64bit version. If you want to test this (if it is really an issue), you can crosscompile bluez-alsa as a 32bit and then copy (do not issue make install
) ALSA plugins to the /usr/lib/i386-linux-gnu/alsa-lib directory. If you've never done this before, it might not be straightforward....
from bluez-alsa.
That works! Thanks!
I still had to symlink /usr/lib/i386-linux-gnu to /usr/lib32/ to make it not crash, but that might be really something application specific, assuming a debian environment or something. Only tested till the menu so far, but seems good. Hey, and it's still this year :)
I'll permit myself to open a new bug for the volume issue I still have, but this is progressing very nicely :)
from bluez-alsa.
Good, the ebuild has been updated in the portage tree as well, https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=81434d56ebbd17a4e38fedbaade9e883d1f6d650
from bluez-alsa.
Wow, so the case is closed? It seems, that I've misjudged the power of gentoo ebuilds :)
from bluez-alsa.
I'm not sure whether you want to use that issue to coordinate getting that modified ebuild also for the normal, non-9999 ebuild? Otherwise, for me it is fixed.
from bluez-alsa.
that I've misjudged the power of gentoo ebuilds
A lot of time was spend on making his work and now its easy. Gentoo is a dream for developers and power users :-)
from bluez-alsa.
whether you want to use that issue to coordinate getting that modified ebuild also for the normal, non-9999 ebuild
This issue was a packaging problem. So, I'm marking it as resolved.
@infirit thanks a lot for your assistance!
from bluez-alsa.
Related Issues (20)
- airpods3 failed to connect back HOT 3
- Fail to use google home mini as bluetooth speaker HOT 5
- Illegal Instruction on PiZero HOT 9
- No such device (Bluetooth, IPhone) HOT 2
- Couldn't acquire D-Bus name. HOT 12
- connected airpods pro2, the music is played without sound HOT 5
- [RTL8822CE] SCO with msbc codec enabled requires source code patching to deliver audio to headset HOT 4
- ofono not working anymore HOT 11
- API doc out of date HOT 1
- changing a2dp codec broken HOT 4
- Build error undefined references HOT 3
- Cannot decode mSBC with Realtek USB adapter HOT 1
- LDAC problem after update from 4.0 to 4.1.1 HOT 8
- v4.1.1 fails to build on on Debian buster i386 HOT 8
- No sound from Onkyo receiver HOT 90
- Potential server lockup in PCM drain HOT 2
- Sink producing no audio with aptX codec HOT 2
- allow build with different dbus name HOT 2
- Bluealsa with Google Pixel 8 Android Version 14 (Call sounds like a robot) HOT 9
- Fedora includes a fork of libopenaptx, libfreeaptx HOT 1
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.