Skip to content

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

@mauriciocoder

Description

@mauriciocoder

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions