Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed install script, named the required openssl libraries in the README, and fixed a small bug regarding systems without ALSA installed. #216

Closed
wants to merge 1 commit into from

Conversation

map588
Copy link
Contributor

@map588 map588 commented Jan 25, 2025

I separated the bug fix and README edit from the install script changes because they are more minor changes. I just added two lines around #include<alsa/asoundlib.h> that check for USE_ALSA, just like the function below it. The README just contains the specific packages needed, because the openssl package does not include the -dev package needed for includes.

As for the install.sh script, I broke it into two parts, install checks if it can be installed with a package manager, and if not, it just calls the compile script rather than using the downloads. I put the second part of the script in download.sh, and commented out calling sh ./download.sh, so if the links are fixed, the install script would work the same way as before.

The compile() function also did not work on my machine without sudo cmake --install . , so I just moved that part below where it checks for OpenBSD, and added else sudo cmake --install . fi, so it doesn't attempt to use install without sudo and fail the build before the check.

The changes could definitely be improved, (like checking if sudo is needed in that last example), but it makes the install script functional again for distributions which use the APT package manager, which is a lot of distributions.

@map588
Copy link
Contributor Author

map588 commented Jan 25, 2025

I realize now there are problems with the CI, likely to do with the ALSA library issues, and wayland support. Could also be the sudo addition to cmake --install .

… and added the names of necessary libraries in the README for OpenSSL

Modified install script to either use a package manager, or compile with cmake, due to the broken links.

Added 'has_alsa' check, and calls cmake with -DNO_ALSA=true if alsa does not exist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant