lumina-desktop / lumina

Lumina Desktop Environment
http://lumina-desktop.org
BSD 3-Clause "New" or "Revised" License
531 stars 116 forks source link

Can you make pulseaudio dependencies optional? #708

Closed FrostKnight closed 4 years ago

FrostKnight commented 4 years ago

For linux or other desktops?

My distro will soon have two options, alsasound or sndio.

So yeah... libpulse keeps getting in the way of me installing this.

beanpole135 commented 4 years ago

Lumina does not have any pulseaudio dependencies. Lumina just uses the Qt5-Multimedia framework/module for interacting with the sound system. You probably just need to change a package/build flag for that module to switch between other sounds systems on your distro of choice. On FreeBSD, qt5-multimedia is using the ALSA backend by default, and Pulse support is an optional build flag.

FrostKnight commented 4 years ago

Lumina does not have any pulseaudio dependencies. Lumina just uses the Qt5-Multimedia framework/module for interacting with the sound system. You probably just need to change a package/build flag for that module to switch between other sounds systems on your distro of choice. On FreeBSD, qt5-multimedia is using the ALSA backend by default, and Pulse support is an optional build flag.

Hmm... are you sure it doesn't have a libpulse dependency? If it isn't, how would I do this?

beanpole135 commented 4 years ago

The only thing that even remotely uses pulse in Lumina is the custom shortcuts for opening the audio mixer that are baked into the OS-specific functionality class: For example: https://github.com/lumina-desktop/lumina/blob/master/src-qt5/core/libLumina/LuminaOS-Linux.cpp

Even that just says to look for a tool called "pavucontrol" before providing a shortcut. It does not link to the pulse libraries or anything and is just a shortcut for launching an external utility.

FrostKnight commented 4 years ago

okay, but what about this error:

/usr/bin/ld: cannot find -lpulse-mainloop-glib /usr/bin/ld: cannot find -lpulse collect2: error: ld returned 1 exit status make[3]: *** [Makefile:569: lumina-desktop] Error 1

I get this when I go to do the make command. :/

Any thoughts as to why that happens?

FrostKnight commented 4 years ago

Or for that matter, how I can bypass it?

q5sys commented 4 years ago

What Distro are you building Lumina on?

On Thu, Nov 7, 2019 at 5:32 PM FrostKnight notifications@github.com wrote:

okay, but what about this error:

/usr/bin/ld: cannot find -lpulse-mainloop-glib /usr/bin/ld: cannot find -lpulse collect2: error: ld returned 1 exit status make[3]: *** [Makefile:569: lumina-desktop] Error 1

I get this when I go to do the make command. :/

Any thoughts as to why that happens?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/lumina-desktop/lumina/issues/708?email_source=notifications&email_token=ABDQJJ5GHXLOOEOGDBJJIEDQSSJRBA5CNFSM4JKAAG32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDOB7TY#issuecomment-551296975, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDQJJ6GJOESL265XUQBBHLQSSJRBANCNFSM4JKAAG3Q .

q5sys commented 4 years ago

Also, can you provide the compile output of a few dozen lines before you get this error? And just for completeness, please output the result of uname -a and qmake -v That'll help us try to figure out what's going on.

On Thu, Nov 7, 2019 at 5:32 PM FrostKnight notifications@github.com wrote:

okay, but what about this error:

/usr/bin/ld: cannot find -lpulse-mainloop-glib /usr/bin/ld: cannot find -lpulse collect2: error: ld returned 1 exit status make[3]: *** [Makefile:569: lumina-desktop] Error 1

I get this when I go to do the make command. :/

Any thoughts as to why that happens?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/lumina-desktop/lumina/issues/708?email_source=notifications&email_token=ABDQJJ5GHXLOOEOGDBJJIEDQSSJRBA5CNFSM4JKAAG32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDOB7TY#issuecomment-551296975, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDQJJ6GJOESL265XUQBBHLQSSJRBANCNFSM4JKAAG3Q .

FrostKnight commented 4 years ago

Hyperbola is my first answer, as for what you told me to do, I will do it now since you ask.

FrostKnight commented 4 years ago

right then, first thing: QMake version 3.1 Using Qt version 5.8.0 in /usr/lib

second thing:

Linux user$ 4.9.194-gnu-1-lts #1 SMP Thu Sep 26 03:47:36 UTC 2019 x86_64 GNU/Linux

hmm, do you think my qmake is too old or the, linux kernel being too old might have an effect?

Although I should add, I do not have anything pulseaudio in my setup or libpulse, and qt is currently having dbus removed or mitigated in this distro. Just so you know.

Heads up right there.

FrostKnight commented 4 years ago

I have almost zero idea why and it makes absolutely no sense, but the problem appears solved. I can build it again for some unknown reason. Must've been some random error... Well... solved.