Skip to main content
Topic: dsda-doom error while loading shared libraries: libportmidi.so.1:cannot open (Read 535 times) previous topic - next topic
0 Members and 4 Guests are viewing this topic.

dsda-doom error while loading shared libraries: libportmidi.so.1:cannot open

I'm not sure if I should have this in Applications/Software or package management (or the AUR part of the forums, but this doesn't appear to be a dsda-doom specific issue), Since I saw a similar error posted for another thread, I thought here would be better possibly. Basically, up until a recent update to libraries I had no issues running dsda-doom (a fork of PR BOOM+, which is a source port of DOOM). I don't know if there are any other applications that are affected. The only other thing I've noticed since these library updates are my Blue Yeti mic isn't recognized by Audacity, but is recognized and usable in other applications.

Code: [Select]
artix:[user]:/% dsda-doom 
dsda-doom: error while loading shared libraries: libportmidi.so.1: cannot open shared object file: No such file or directory

Code: [Select]
artix:[user]:/% pacman -S -s portmidi
world/portmidi 1:2.0.4-1 [installed]
    Cross platform library for interfacing with OS MIDI I/O APIs
extra/portmidi 1:2.0.4-1 [installed]
    Cross platform library for interfacing with OS MIDI I/O APIs

Code: [Select]
artix:[user]:/% pacman -Sii portmidi
Repository      : world
Name            : portmidi
Version         : 1:2.0.4-1
Description     : Cross platform library for interfacing with OS MIDI I/O APIs
Architecture    : x86_64
URL             : https://github.com/portmidi/portmidi
Licenses        : MIT
Groups          : None
Provides        : libportmidi.so=2-64
Depends On      : glibc  alsa-lib  libasound.so=2-64
Optional Deps   : None
Required By     : audacity  hatari  hydrogen  mame  mixxx  pd  performous
                  python-pygame  xjadeo
Optional For    : csound  darktable
Conflicts With  : None
Replaces        : None
Download Size   : 41.52 KiB
Installed Size  : 118.08 KiB
Packager        : Artix Build Bot <[email protected]>
Build Date      : Mon 20 Mar 2023 12:38:34 AM EDT
MD5 Sum         : adf8071516915f1b13b6293f18043575
SHA-256 Sum     : d6fbd4cdc9ce39705d3e2e9a20b01e02704ab315bd7d65f889f73f73ec8ac229
Signatures      : 1247D995F165BBAC

Repository      : extra
Name            : portmidi
Version         : 1:2.0.4-1
Description     : Cross platform library for interfacing with OS MIDI I/O APIs
Architecture    : x86_64
URL             : https://github.com/portmidi/portmidi
Licenses        : MIT
Groups          : None
Provides        : libportmidi.so=2-64
Depends On      : glibc  alsa-lib  libasound.so=2-64
Optional Deps   : None
Required By     : audacity  hatari  hydrogen  mame  mixxx  pd  performous
                  python-pygame  xjadeo
Optional For    : csound  darktable
Conflicts With  : None
Replaces        : None
Download Size   : 41.55 KiB
Installed Size  : 118.18 KiB
Packager        : David Runge <[email protected]>
Build Date      : Sun 19 Mar 2023 04:19:31 AM EDT
MD5 Sum         : b5a7c7868cb5dbea9ce545f27cde7412
SHA-256 Sum     : 2f54a2172d8d8db87ab0c9d43e12220d9524a6e9150309c332995a2017a332db
Signatures      : 139B09DA5BF0D338

Code: [Select]
artix:[user]:/% pacman -Qii portmidi
Name            : portmidi
Version         : 1:2.0.4-1
Description     : Cross platform library for interfacing with OS MIDI I/O APIs
Architecture    : x86_64
URL             : https://github.com/portmidi/portmidi
Licenses        : MIT
Groups          : None
Provides        : libportmidi.so=2-64
Depends On      : glibc  alsa-lib  libasound.so=2-64
Optional Deps   : None
Required By     : audacity  dsda-doom
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 118.08 KiB
Packager        : Artix Build Bot <[email protected]>
Build Date      : Mon 20 Mar 2023 12:38:34 AM EDT
Install Date    : Sat 25 Mar 2023 04:34:29 PM EDT
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature
Backup Files    :
(none)

As stated earlier, it lists Audacity needing it as a dependency. I don't see why it would be related to this particular package, and like I said, audacity doesn't seem to recognize my Blue Yeti anymore. It recognizes my webcam's mic as a recording input, but Blue Yeti isn't in the list. I last used Audacity for voice recording with the Blue Yeti  near the beginning of March, specifically March 2nd.

dsda-doom is from the AUR. There hasn't been any discussion on there recently about it. Searching for the error generically brings up a few stackoverflow posts that don't seem to suggest anything useful for this situation. Just commands like:
Code: [Select]
sudo find / -name the_name_of_the_file.so

echo $LD_LIBRARY_PATH

Which doesn't seem super helpful. (and the output from running those with the correct .so without sudo just listed a bunch of paths and permission errors due to what I assume has to do with me not  running it with sudo)

Any ideas or any other commands you think I could run to help with further diagnosis?

Re: dsda-doom error while loading shared libraries: libportmidi.so.1:cannot open

Reply #1
It looks like dsda-doom needs to be build against the newer portmidi, portmidi's libportmidi.so is now libportmidi.so.2 not .1

Re: dsda-doom error while loading shared libraries: libportmidi.so.1:cannot open

Reply #2
With dsda-doom I'd try reinstalling from the AUR.
I will be compiled again and hopefully will just happily link to the newer version of the portmidi library.

As Audacity is in the Artix repos It will get updated soon I guess.

In the mean time you, if you need it now, you could try creating a symbolic link named libportmidi.so.1 to the new .so name. If that doesn't work you could take the libportmidi.so.1 from the older package in /var/cache/pacman/pkg/ (assuming you haven't deleted it) and copy it to (probably) /usr/lib . A bit naughty in the package management scheme of things but you can always delete it once Audacity is updated.

Code: [Select]
ldd /usr/bin/audacity
will show you where Audacity is looking for it.

If those two options don't make complete sense to you it will be best to wait regarding Audacity

Edit:Partly ninja'd :)

Re: dsda-doom error while loading shared libraries: libportmidi.so.1:cannot open

Reply #3
libportmidi.so.2 => /usr/lib/libportmidi.so.2 (0x00007fb10dbb7000) nothing wrong with audacity either

Re: dsda-doom error while loading shared libraries: libportmidi.so.1:cannot open

Reply #4
Thanks for the replies! I'll try the suggestions.