hydrogen-music / hydrogen

The advanced drum machine for Linux, macOS, and Windows
http://www.hydrogen-music.org
GNU General Public License v2.0
1.05k stars 173 forks source link

Reversed display ! #972

Open Tamzejian opened 3 years ago

Tamzejian commented 3 years ago

Hydrogen version * : 1.0.0.rc1 Operating system + version : ubuntu 20.04 Audio driver + version : Jack 0.5.0


Display is reversed (from right to left!) Number of beats do not display correctly in pattern window.

trebmuh commented 3 years ago

@Tamzejian can you provide us with a screenshot?

Tamzejian commented 3 years ago

@trebmuh Hello and thank you for the response. Here is the screenshot. Capture d’écran du 2020-11-09 21-00-58

trebmuh commented 3 years ago

First time I'm seeing that?!?!?! Even stranger since it looks you're using a French locale (I was tempted to ask you if you were using a right to left language, but French isn't one of those). I have no idea what it is.

Have you asked to your direct upstream (ie ubuntu)?

Tamzejian commented 3 years ago

In fact, no. I don't know how to contact them. I've got no idea what is causing this either, just an end user myself. I saw some packages using right to left scriptures in the latest ubuntu 20.04, but usually this does not (and should not) interfere with display orientation. How is it possible to contact the direct upstream ?

trebmuh commented 3 years ago

Probably here: https://launchpad.net/ubuntu/+source/hydrogen/+bugs

cme commented 3 years ago

...huh

cme commented 3 years ago

Qt has a LayoutDirection setting, i didn't think it would be altered by the environment. Do you see similar behaviour from any other Qt apps?

Tamzejian commented 3 years ago

@cme No, csoundqt, qsynth, qjack don't have this problem. @trebmuh I reported this on the link you provided. Cheers.

trebmuh commented 3 years ago

link to the Ubuntu bug

Tamzejian commented 3 years ago

I tried to compile hydrogen from source.

Unzipped the downloaded source code on "https://github.com/hydrogen-music/hydrogen" and executed instructions in "INSTALL.md" file.

I had a lot of issues : Minor ones : 1 - There is no lib-lash-compat-dev package on the repository, in INSTALL.md. It is not mentioned if it is optional package or not. 2 - Tried to install QT 5 SDK, but had to download and install QT Creator according to : "https://www.wikihow.com/Install-Qt-SDK-on-Ubuntu-Linux#Qt-SDK-5.0-Installation-Instructions". Is it only for compilation purposes ? 3 - The command "./build.sh d" fails to generate documentation.

Hydrogen seems to install correctly. However, it doesn't execute at all. This is an expected error, but :

Ok, so now :

This issue is discussed here : issue#677 I tried : "sudo ln -s /usr/local/lib/libhydrogen-core-1.0.0.so /usr/lib/libhydrogen-core-1.0.0.so". Did not work either.

I don't think it is difficult to get around this problem for someone who is a programmer (I am not).

Thank you.

Tamzejian commented 3 years ago

Hello again. I searched around, namely here : https://unix.stackexchange.com/questions/168340/where-is-ld-library-path-how-do-i-set-the-ld-library-path-env-variable

The library path is /usr/lib/libhydrogen-core-1.0.0.so and export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib did the job.

Hope it keeps working, seems 'export' command had only temporary effect. I don't know where Ubuntu keeps a file containing "LD_LIBRARY_PATH" to write it in a permanent way.

theGreatWhiteShark commented 3 years ago

Hey @Tamzejian,

Thanks for the feedback!

1 - There is no lib-lash-compat-dev package on the repository, in INSTALL.md. It is not mentioned if it is optional package or not.

I have addressed this one in another issue #1007

2 - Tried to install QT 5 SDK, but had to download and install QT Creator according to : "https://www.wikihow.com/Install-Qt-SDK-on-Ubuntu-Linux#Qt-SDK-5.0-Installation-Instructions". Is it only for compilation purposes ?

The packages listed in the apt install command are sufficient to build Hydrogen. No manual Qt compilation required.

3 - The command "./build.sh d" fails to generate documentation.

Could you provide the error message you see?