canonical / checkbox

Checkbox
https://checkbox.readthedocs.io
GNU General Public License v3.0
30 stars 47 forks source link

Include libasound2-dev as a Dependency in Build Instructions #1506

Open mauriciocoder opened 2 days ago

mauriciocoder commented 2 days ago

Enhancement Proposal

While following the build process for Checkbox (CONTRIBUTING.md), I encountered an issue during the build step:

(venv) $ cd ~/checkbox/providers/base
(venv) $ ./manage.py build

The following error occurred during compilation:

g++ -std=c++11 ../../src/alsa_test.cpp -lasound -pthread -o alsa_test
../../src/alsa_test.cpp:14:10: fatal error: alsa/asoundlib.h: No such file or directory
   14 | #include <alsa/asoundlib.h>
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [<builtin>: alsa_test] Error 1

The error was resolved by installing the libasound2-dev package, which provides the necessary ALSA development files for compiling against the ALSA sound library. To fix the issue, I ran:

$ sudo apt install libasound2-dev

Enhancement Proposal To prevent others from encountering this issue, I suggest updating the build instructions (CONTRIBUTING.md) file to include libasound2-dev as a prerequisite for building the project.

syncronize-issues-to-jira[bot] commented 2 days ago

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/CHECKBOX-1590.

This message was autogenerated