< Back to IRCAM Forum

Help to install OpenMusic on Linux needed!

Hello Karim,
Thank you for your answer. I’ll try with Ubuntu 18.04 LTS, because even fresh install of fedora 29 has the same problem with OMAudioLib.
Best regards,
Piotr

Will try later the fedora install.
Best
K

It’s very strange… I’ve tried with plain Ubuntu 18.04.03 LTS on Boxes in Fedora and it gives me the same error:
ERROR: Illegal instruction(4) [code 0] at 7FBF14BE7E10
Unknown foreign code in module “/usr/share/openmusic/resources/lib/linux/OMAudioLib.so” [ #x7FBF14AD1000 ]
rax 7FBF14F385C0 ; rbx 7FBF2C1E1FD8 ; rcx 7FBF2C0008D0 ; rdx 7FBF151A0E58
rsp 7FBF3ABFCAA8 ; rbp 7FBF2C1E1FE0 ; rdi 7FBF2C1E1FF8 ; rsi 7FBF2C0008D8
r8 7FBF14B04CD0 ; r9 7FBF14B04CD0 ; r10 A ; r11 7FBF24C09240
r12 7FBF2C1E1FF8 ; r13 7FBF34000B20 ; r14 4000049839 ; r15 412100844C

I have really no idea what the problem is…
Best regards,
Piotr

My info about the installs:

  • virtualbox Version 6.0.8 r130520 (Qt5.11.3)
  • running under Debian Latest Stable (Debian 10 Buster)
  • virtual system: UbuntuStudio 18.04 (amd64) 64bits
  • Installed + updated (this might be important before running OM) + vbox-guest-additions
    By the way it is not the latest release. there’s a 19.x version now available.
  • OM_6.15-Linux_Ubuntu_18.04.2.LTS.deb installed using dpkg (requires some extra packages)

And that’s most of it.

Launched OM through Icon and thru terminal.
But wait, other detail, are you using some extra language on your computer ?
Mine is set in english. On my debian i use both EN + french.
I don’t have your error type unfortunately.
By the way, i don’t know if this is relevant, but are you using a special sound card ?

Now will test with latest Fedora.

Best
K

Hi All,

I don’t know if useful: I am on Fedora 30 and Open Music 6.15 runs. But I don’t remember if I am using auto-compiled OMAudioLib.so I created sometime ago for similar problems. Anyway, if useful, I enclose my current used OMAudioLib.so (zipped), if useful to test it in your Fedora installation (please, before backup your copy).

Ciao

fdsdb
OMAudioLib.zip (1.2 MB)

Ok tried fedora 31 (latest), sorry to say it is no good:

  • Very slow (?)
  • No kernel headers available for the installed kernel
  • OM has no icons.

I will forget about it …
Best
K

Hello,
My setup is:

  • Fedora 29 64 bit
  • Gnome Boxes ver. 3.34.2
  • my language is polish but changing it to english doesn’t help
  • my soundcard is standard laptop chipset:
    HDA-Intel - HDA Intel MID
    HDA Intel MID at 0xf6960000 irq 32

I’ve tried to run OpenMusic on several different configurations but always on the same machine:

  • on fedora 29
    -on fedora 30
    -on fedora 31
    -on ubuntustudio 18.04 on virtual machine
  • on ubuntu 18.04 on virtual machine
    -on fedora 29 on virtual machine
    No succes :frowning:
    BTW, thank you for your help.
    Best regards,
    Piotr

@fdsdb
Thank you for sending me your OMAudioLib.so version. I copied it to /usr/share/openmusic/resources/lib/linux/ previously changing the original file name, but it didn’t help. I got the same error about:

ERROR: Illegal instruction(4) [code 0] at 7FE1C6A66AA0
Unknown foreign code in module “/usr/share/openmusic/resources/lib/linux/OMAudioLib.so”

Anyway, thank you for your help.
Best regards,
Piotr

Hi Piotr,

Very strange indeed. Can you first try to run ldconfig in your terminal ?
Maybe this will help.
Else i will suggest a complicated solution but it will work hopefully.

Best
K

…update, (slightly off topic)
for kernel headers: install kernel-devel package
But still concerning OM => no icons…

Best
K

Hi Karim,
running ldconfig before starting openmusic doesn’t help but I was able to compile omaudiolib and after changing the original library with the one I compiled I can now run openmusic on my fedora.
After quick test i can say that everything is working fine! Great.
Many thanks for your help!
Best,
Piotr

PS. Is it possible to make a self contained distribution agnostic linux version of OpenMusic. Mayby something like AppImage or Flatpak

Oh great.
that was what i wanted to suggest. To compile the omaudiolib against your existing libs.
Jean, just wrote to me, and he suggested even a better solution, to make om run independently if yes or not the libs are loaded. This may take sometime, since i have to get me a Linux Lispwork to be able to compile OM for linux.
However, these issus are also unfortunately also on windows (same problem with audiolib). Should investigate all of this soon.

Personaly i use OM on linux in without installer. Will try to explain this.
I copy all the folder /usr/share/openmusic somewhere, then copy the binary into it (/usr/bin/openmusic). And call open music whith this script:

#!/bin/sh

LD_LIBRARY_PATH=’.’ /home/karim/bin/openmusic/openmusic

and this will work. However the omaudiolib problem is unrelated to this. It is something to do with installed audio libs. Maybe you have installed a binary with a lib that is incompatible with the already compiled version of omaudiolib.

But you have done well to do so!

BEst
K
and happy xmas

Dear Karim,

Thank you for your advice. Next time I install a new system I’l try your way of running OpenMusic. For now I am perfectly happy with what I got. OpenMusic is great!
I don’t have enough technical knowledge, but is there any way to pack all needed components and make easy to install solution like this?

Just in case anyone would need to compile OMAudioLib on Fedora here is what works for me:

  • after running make from /omaudiolib-master/Builds/Linux/ I got:

Package alsa was not found in the pkg-config search path.
Perhaps you should add the directory containing alsa.pc' to the PKG_CONFIG_PATH environment variable Package 'alsa', required by 'virtual:world', not found Package 'libcurl', required by 'virtual:world', not found Package alsa was not found in the pkg-config search path. Perhaps you should add the directory containingalsa.pc’
to the PKG_CONFIG_PATH environment variable
Package ‘alsa’, required by ‘virtual:world’, not found
Package ‘libcurl’, required by ‘virtual:world’, not found
make: *** [Makefile:167: check-pkg-config] Błąd 1

  • so I had to manually install additional packages: alsa-lib-devel and libcurl-devel
  • after that I have successfully compiled OMAudioLib
  • than I copied the resulting file with from /omaudiolib-master/Builds/Linux/build to /usr/share/openmusic/resources/lib/linux/
    *it works!

All the best!
Piotr

PS. Omlily is also great! I use it frequently and find it very useful. Thank you!

Dear Piotr,

Yes indeed, sorry forgot to mention this. usually when you get to compile things you will need the dev (headers) file. And since omAudiofile relies on alsa (which is a good thing) it is dependent on these.
I took a look on AppImage packaging, Well to tell you the truth, i don’t think it is a good idea, since it is a copycat of what Apple does. And this, in spite it seems to be very practical, in fact it is not at all. What is ideal is the packaging for each system AND a free bundle that is mid way from packaging and Appimaging. That what i was referring to in my last reply. In fact that is what i use myself on Linux, since OM includes its own libraries. However, let’s not be hasty, and give this some time to reflect…

Thanx a lot for your feedback, and your patience.

Best
K

With the release of OM 6.16 comes a complete redesign of loading OMAudioLib on Linux. The included .so should now be compatible across Fedora releases 29-31, Ubuntu 18.04 and newer, and recent Debian based OS’es. It is also installed and loaded from within OMs own resources.

Please use this version if you observe troubles with loading of OMAudioLib on Linux.

-anders

I’ve successfully installed OM 6.16 on Ubuntu 18.04, everything looks good and behaves as expected, with one exception: No available connection to Jack audio, sad to say. In fact, I can’t get sound regardless what device I select. MIDI works fine, no problems there, but I’m confused how to get regular audio. OM doesn’t appear in the Jack graph, am I missing a library somewhere ? Or do I need to build one from source ? Btw, I’m very excited to get back into OM, I’d like to get it working with VCV Rack as a synthesis target. TIA!

Hi Dave.

There’s no Jack support built in to OM, instead it connects to ALSA or Pulse. If you want to have audio output through Jack use e.g. the PulseAudio Jack sink, which OM will connect to automatically if it finds it (or you can select it from the Prefernces if you want to change output devices manually).

Alas, the Jack sink does not appear in the device list. It’s working, it appears in the QJackCtl audio tab, but OM’s audio configuration isn’t seeing it. Btw, I built and installed OMAudioLib, it’s in /usr/lib (Ubuntu 18.04). Does OM expect to find it somewhere else ?

I built and installed OMAudioLib, it’s in /usr/lib

As described here this should no longer be necessary if you install one of the released builds (the included OMAudioLib.so is tested and compatible also with Ubuntu 18.04). Also the install/load path has changed.

Okay, thanks, I’ve removed my version. At this point the only version is in /usr/share/openmusic/resources/lib/linux/. Ran ldconfig just to make sure, restarted OM 6.16, checked Preferences, no explicit entry for the Jack Sink in PulseAudio. I have two selections for PulseAudio: “Playback/recording through the PulseAudio sound server” and “PulseAudio sound Server”, followed by a bunch of selections for the HDA and loopback devices. Should I see a separate entry for the Jack Sink ?