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

[BUG] fatal error: alsa/asoundlib.h: No such file or directory #248

Open
grantrostig opened this issue Feb 8, 2024 · 8 comments
Open

[BUG] fatal error: alsa/asoundlib.h: No such file or directory #248

grantrostig opened this issue Feb 8, 2024 · 8 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@grantrostig
Copy link

Got error as below on ./install. Not sure if the huge output from the script is stored anywhere, I provided at least one fatal error that did not halt the script.
uname -a
Linux fx6350-fedora 6.6.13-200.fc39.x86_64 #1 SMP PREEMPT_DYNAMIC Sat Jan 20 18:03:28 UTC 2024 x86_64 GNU/Linux

After the error, you can see that I installed alsa. Should I just re-run the install, or delete something first?

Thanks in advance for any assistance.
+++++++++++++++++++++++
[ 26%] Building CXX object src/xtd.core.native.linux/CMakeFiles/xtd.core.native.linux.dir/src/xtd/native/linux/console.cpp.o
[ 26%] Building CXX object src/xtd.core.native.linux/CMakeFiles/xtd.core.native.linux.dir/src/xtd/native/linux/debugger.cpp.o
/home/grostig/src/Worthy-OS/xtd/src/xtd.core.native.linux/src/xtd/native/linux/console.cpp:17:10: fatal error: alsa/asoundlib.h: No such file or directory
17 | #include <alsa/asoundlib.h>
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [src/xtd.core.native.linux/CMakeFiles/xtd.core.native.linux.dir/build.make:90: src/xtd.core.native.linux/CMakeFiles/xtd.core.native.linux.dir/src/xtd/native/linux/console.cpp.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
gmake[1]: *** [CMakeFiles/Makefile2:541: src/xtd.core.native.linux/CMakeFiles/xtd.core.native.linux.dir/all] Error 2
gmake: *** [Makefile:166: all] Error 2
[ 0%] Built target xtd.core.native
[ 25%] Built target xtd.core
[ 25%] Building CXX object src/xtd.core.native.linux/CMakeFiles/xtd.core.native.linux.dir/src/xtd/native/linux/console.cpp.o
/home/grostig/src/Worthy-OS/xtd/src/xtd.core.native.linux/src/xtd/native/linux/console.cpp:17:10: fatal error: alsa/asoundlib.h: No such file or directory
17 | #include <alsa/asoundlib.h>
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [src/xtd.core.native.linux/CMakeFiles/xtd.core.native.linux.dir/build.make:90: src/xtd.core.native.linux/CMakeFiles/xtd.core.native.linux.dir/src/xtd/native/linux/console.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:541: src/xtd.core.native.linux/CMakeFiles/xtd.core.native.linux.dir/all] Error 2
gmake: *** [Makefile:166: all] Error 2
/src/Worthy-OS/xtd/build /src/Worthy-OS/xtd
/src/Worthy-OS/xtd
cp: cannot create regular file '/usr/local/share/xtd/wxwidgets_release_install_manifest.txt': No such file or directory
cp: cannot create regular file '/usr/local/share/xtd/wxwidgets_debug_install_manifest.txt': No such file or directory
cp: cannot stat 'build/Release/install_manifest.txt': No such file or directory
cp: cannot stat 'build/Debug/install_manifest.txt': No such file or directory
Launching xtdc-gui...
grostig@fx6350-fedora:
/src/Worthy-OS/xtd$
grostig@fx6350-fedora:
/src/Worthy-OS/xtd$
grostig@fx6350-fedora:
/src/Worthy-OS/xtd$
grostig@fx6350-fedora:~/src/Worthy-OS/xtd$ sudo dnf install alsa-lib-devel
Installing:
alsa-lib-devel x86_64 1.2.11-2.fc39 updates 901 k
`

@gammasoft71
Copy link
Owner

First of all, thank you for your interest in xtd.

For your information, unfortunately, the installation result is not saved anywhere.

Before reinstalling, you need to delete the build folder.

I hope this helps.

@gammasoft71 gammasoft71 self-assigned this Feb 8, 2024
@gammasoft71 gammasoft71 added the question Further information is requested label Feb 8, 2024
@grantrostig
Copy link
Author

Thank you for your quick response. I'm very impressed by the project and the documentation.

I have also installed these for Fedora 39 and the build almost worked:
alsa-lib-devel
gsound-devel
libuuid-devel

I still have these errors, but the gui did start. Do you know if I need these two files?
+++++++++++++++++++++++++++++++++++++
-- Up-to-date: /usr/local/share/xtd/locale/zh_TW/version.strings
~/src/Worthy-OS/xtd/build ~/src/Worthy-OS/xtd
~/src/Worthy-OS/xtd
cp: cannot stat 'build/3rdparty/wxwidgets/build_cmake/Release/install_manifest.txt': No such file or directory
cp: cannot stat 'build/3rdparty/wxwidgets/build_cmake/Debug/install_manifest.txt': No such file or directory

@gammasoft71
Copy link
Owner

These two files are not always necessary and in your case they don't exist.
I'm going to add a check on the existence of the files so as not to launch a copy that will fail. ;-)

@gammasoft71
Copy link
Owner

Fixed in the commit 07b1b3e

@gammasoft71 gammasoft71 reopened this Feb 8, 2024
@gammasoft71 gammasoft71 changed the title [QUESTION] fatal error: alsa/asoundlib.h: No such file or directory [BUG] fatal error: alsa/asoundlib.h: No such file or directory Feb 8, 2024
@gammasoft71 gammasoft71 added bug Something isn't working Fixed and removed question Further information is requested labels Feb 8, 2024
@gammasoft71 gammasoft71 added this to To do in xtd - kanban board via automation Feb 8, 2024
@gammasoft71 gammasoft71 added this to the 0.2.0 milestone Feb 8, 2024
xtd - kanban board automation moved this from To do to Done Feb 8, 2024
@gammasoft71
Copy link
Owner

The result of the installation is now recorded in the build/install.log file.
See commit fe6d500 and commit b4fafaf.

@grantrostig
Copy link
Author

Thanks for your quick action.

You may also want to consider adding the following packages to the fedora yum install list. They seemed to be what allowed my install to work on Fedora39.
alsa-lib-devel
gsound-devel
libuuid-devel

@gammasoft71 gammasoft71 reopened this Feb 9, 2024
xtd - kanban board automation moved this from Done to To do Feb 9, 2024
@gammasoft71 gammasoft71 removed the Fixed label Feb 10, 2024
@gammasoft71
Copy link
Owner

Hello again,

thank you for your involvement.

Yes, you are right, these packages are mandatory for xtd.

But I'm surprised because the installation procedure includes these packages except libuuid-deve which I forgot 😅.

The following line corresponds to the installation of packages for the Fedora distribution:

sudo yum update; sudo yum install alsa-lib-devel cmake gtk3-devel gsound-devel gtk3-devel -y;;

Can you confirm that these packages have not been installed by the xtd installer?

Otherwise I'll have to investigate...

@gammasoft71
Copy link
Owner

gammasoft71 commented Feb 10, 2024

The libuuid-devel package is added for CentOs, Fedora and RedHat, see commit 029a969.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: In Progress
Development

No branches or pull requests

2 participants