Author Topic: Error compiling sound programs on Linux. Error log...  (Read 3359 times)

0 Members and 1 Guest are viewing this topic.

Offline Dav

  • Forum Resident
  • Posts: 792
    • View Profile
Error compiling sound programs on Linux. Error log...
« 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

Offline Dav

  • Forum Resident
  • Posts: 792
    • View Profile
Re: Error compiling sound programs on Linux. Error log...
« Reply #1 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

Offline Colonel_Panic

  • Newbie
  • Posts: 54
    • View Profile
Re: Error compiling sound programs on Linux. Error log...
« Reply #2 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?

Offline johnno56

  • Forum Resident
  • Posts: 1270
  • Live long and prosper.
    • View Profile
Re: Error compiling sound programs on Linux. Error log...
« Reply #3 on: December 24, 2021, 06:07:20 am »
Can you post the full error message, please?
Logic is the beginning of wisdom.

Offline Colonel_Panic

  • Newbie
  • Posts: 54
    • View Profile
Re: Error compiling sound programs on Linux. Error log...
« Reply #4 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