QB64.org Forum

Active Forums => QB64 Discussion => Topic started by: Dav on December 17, 2021, 03:49:36 pm

Title: Error compiling sound programs on Linux. Error log...
Post by: Dav on December 17, 2021, 03:49:36 pm
Some of my programs won't compile under my linux, programs that use sound.  I'm obviously missing a sound library.  When compiling a program that uses sound commands I get this compiling error below.  I've googled some possible solutions, but want to ask here first which libraries I should install to correct this.  Thanks

- Dav


Quote
../../src/alsa.c:29:10: fatal error: alsa/asoundlib.h: No such file or directory
   29 | #include <alsa/asoundlib.h>
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.
ar: temp/alsa.o: No such file or directory
g++: error: parts/audio/out/os/lnx/src.a: No such file or directory
Title: Re: Error compiling sound programs on Linux. Error log...
Post by: Dav on December 17, 2021, 04:44:37 pm
Following up - I resolved it by doing this:

sudo apt install libasound2-dev

Now my sound programs compile & run OK.  I also had a zlib error earlier, but manually installed that library. 

- Dav
Title: Re: Error compiling sound programs on Linux. Error log...
Post by: Colonel_Panic on December 24, 2021, 02:23:51 am
I have "general sound issues" with QB64 on Linux Mint
other linux mint users dont experience what i do
maybe i need to sudo apt get some stuff too?
Title: Re: Error compiling sound programs on Linux. Error log...
Post by: johnno56 on December 24, 2021, 06:07:20 am
Can you post the full error message, please?
Title: Re: Error compiling sound programs on Linux. Error log...
Post by: Colonel_Panic on December 24, 2021, 01:36:09 pm
i dont get compile errors; i just experience... sound doesnt work and it gets "skipped"
OR, the sound is a horrible popping noise. when it even "tries"

my "click sound" in my GUI project? is actually a really SHORT "popping" noise error... its just so
SHORT that you perceive it as a ghetto-click sound... but its in reality a short FUBAR