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

can not run on ubuntu- 20.04.4 #212

Open
xiaoyifang opened this issue Jun 18, 2022 · 5 comments
Open

can not run on ubuntu- 20.04.4 #212

xiaoyifang opened this issue Jun 18, 2022 · 5 comments

Comments

@xiaoyifang
Copy link

2022/06/17 13:16:44 libraryLocations: [/home/runner/work/goldendict/Qt/6.3.1/gcc_64/lib appdir/usr/bin /usr/lib64 /lib64 /usr/lib /lib /usr/lib/x86_64-linux-gnu/libfakeroot /usr/local/lib /usr/local/lib/x86_64-linux-gnu /lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu /lib32 /usr/lib32 /opt/hostedtoolcache/Python/3.9.13/x64/lib /home/qt/work/install/lib /home/qt/icu_install/lib /lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders /lib/x86_64-linux-gnu/gdk-pixbuf-2.0 /lib/x86_64-linux-gnu/gstreamer-1.0 /usr/lib/x86_64-linux-gnu/gstreamer1.0/gstreamer-1.0]
2022/06/17 13:16:44 len(allELFs): 240
2022/06/17 13:16:44 Bundling alsa-lib directory (for )...
2022/06/17 13:16:44 Could not find alsa-lib directory

@probonopd
Copy link
Owner

Does it really say 2022/06/17 13:16:44 Bundling alsa-lib directory (for )... - is that the whole line or did you remove something there?

@xiaoyifang
Copy link
Author

xiaoyifang commented Jul 16, 2022

image
github has done something to the text.

@probonopd
Copy link
Owner

This is the code in question:

func handleAlsa(appdir helpers.AppDir) {
// FIXME: Doesn't seem to get loaded. Is ALSA_PLUGIN_DIR needed and working in ALSA?
// Is something like https://github.com/flatpak/freedesktop-sdk-images/blob/1.6/alsa-lib-plugin-path.patch needed in the bundled ALSA?
// TODO: What about the `share/alsa` subdirectory? libasound.so.* refers to it as well
for _, lib := range allELFs {
if strings.HasPrefix(filepath.Base(lib), "libasound.so") {
log.Println("Bundling alsa-lib directory (for <tbd>)...")
locs, err := findWithPrefixInLibraryLocations("alsa-lib")
if err != nil {
log.Println("Could not find alsa-lib directory")
log.Println("E.g., in Alpine Linux: apk add alsa-plugins alsa-plugins-pulse")
os.Exit(1)
} else {
log.Println("Bundling dependencies of alsa-lib directory...")
determineELFsInDirTree(appdir, locs[0])
}
break
}
}
}

Please sudo apt-get -y install alsa-lib and retry.

@xiaoyifang
Copy link
Author

xiaoyifang commented Jul 19, 2022

Reading state information...
E: Unable to locate package alsa-lib

ubuntu does not have alsa-lib package

I also tried
sudo apt-get install libasound2 also does not work.

@probonopd
Copy link
Owner

E: Unable to locate package alsa-lib

Sorry, my mistake, that's a source package.

libasound2 should work...

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

No branches or pull requests

2 participants