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

arch pl0x #335

Closed
Chinggis6 opened this Issue Jun 15, 2017 · 25 comments

Comments

Projects
None yet
5 participants
@Chinggis6

Chinggis6 commented Jun 15, 2017

Can't find a supported Debian or Ubuntu-based distribution.

:(

Any consideration to release in the AUR?

For Arch and Manjaro Linux'es.

@juanrubio

This comment has been minimized.

Show comment
Hide comment
@juanrubio

juanrubio Jun 15, 2017

Collaborator

Hi!

I would love to release Tizonia for Arch-like distros. Unfortunately I'm not very familiar with Arch in general, so releasing in the AUR is at the moment a bit out of my reach.

I will leave this issue open in case I have some time for this in the near future (or someone wants to step in and do it! :-) )

Collaborator

juanrubio commented Jun 15, 2017

Hi!

I would love to release Tizonia for Arch-like distros. Unfortunately I'm not very familiar with Arch in general, so releasing in the AUR is at the moment a bit out of my reach.

I will leave this issue open in case I have some time for this in the near future (or someone wants to step in and do it! :-) )

@Hans-Maulwurf

This comment has been minimized.

Show comment
Hide comment
@Hans-Maulwurf

Hans-Maulwurf Jun 29, 2017

+1 for an arch aur build :)

Hans-Maulwurf commented Jun 29, 2017

+1 for an arch aur build :)

@juanrubio juanrubio self-assigned this Jul 4, 2017

@juanrubio juanrubio added this to the v0.9.0 milestone Jul 4, 2017

@sylveon

This comment has been minimized.

Show comment
Hide comment
@sylveon
Contributor

sylveon commented Jul 18, 2017

@juanrubio

This comment has been minimized.

Show comment
Hide comment
@juanrubio

juanrubio Jul 21, 2017

Collaborator

Indeed!, here is a first stab at a PKGBUILD for tizonia, 2fa3772
Still work in progress, but thanks!

Collaborator

juanrubio commented Jul 21, 2017

Indeed!, here is a first stab at a PKGBUILD for tizonia, 2fa3772
Still work in progress, but thanks!

@juanrubio

This comment has been minimized.

Show comment
Hide comment
@juanrubio

juanrubio Jul 22, 2017

Collaborator

I'm adding two PKGBUILD files, for 'release' and 'git' versions. Still WIP. (0cd1fd3)

Collaborator

juanrubio commented Jul 22, 2017

I'm adding two PKGBUILD files, for 'release' and 'git' versions. Still WIP. (0cd1fd3)

@tizonia

This comment has been minimized.

Show comment
Hide comment
@tizonia

tizonia Aug 22, 2017

Owner

@Chinggis6 , @Hans-Maulwurf , @charlesmilette

FYI, I believe the two PKGBUILD files in

https://github.com/tizonia/tizonia-openmax-il/tree/master/pkgbuild

are pretty much done (at least they both work on my Manjaro installation).

However, there is a question about use of Python 2 vs Python 3, since Tizonia still depends on Python 2.

I've raised that question in Arch forums (in case you want to have a look)
https://bbs.archlinux.org/viewtopic.php?id=229325

Owner

tizonia commented Aug 22, 2017

@Chinggis6 , @Hans-Maulwurf , @charlesmilette

FYI, I believe the two PKGBUILD files in

https://github.com/tizonia/tizonia-openmax-il/tree/master/pkgbuild

are pretty much done (at least they both work on my Manjaro installation).

However, there is a question about use of Python 2 vs Python 3, since Tizonia still depends on Python 2.

I've raised that question in Arch forums (in case you want to have a look)
https://bbs.archlinux.org/viewtopic.php?id=229325

@sylveon

This comment has been minimized.

Show comment
Hide comment
@sylveon

sylveon Aug 22, 2017

Contributor

I tried it when submitting my PR, and it took it's sweet time to compile. However (probably unrelated), I experience the following error when trying to play music:

image

Contributor

sylveon commented Aug 22, 2017

I tried it when submitting my PR, and it took it's sweet time to compile. However (probably unrelated), I experience the following error when trying to play music:

image

@tizonia

This comment has been minimized.

Show comment
Hide comment
@tizonia

tizonia Aug 22, 2017

Owner

Yes, compiling Tizonia is no small feat, mostly because of the player state machines. But that is another kind of problem.

Regarding the FATAL error, sounds like the installation is not complete. I have done a number of fixes in both PKGBUILD files after you submitted your PR. Would you be able to remove the package and reinstall it again this time using one the latest PKGBUILDs, it does not matter which one. Both packages currently build and run OK at my end (also make sure you have installed all the AUR dependencies).

After that, the /usr/lib should contain among other things. the Tizonia IL Core, like this:

libtizcore.so -> libtizcore.so.0.0.9
etc

Also, your $HOME/.config/tizonia/tizonia.conf should contain this line:

component-paths = /usr/lib/tizonia0-plugins12
Owner

tizonia commented Aug 22, 2017

Yes, compiling Tizonia is no small feat, mostly because of the player state machines. But that is another kind of problem.

Regarding the FATAL error, sounds like the installation is not complete. I have done a number of fixes in both PKGBUILD files after you submitted your PR. Would you be able to remove the package and reinstall it again this time using one the latest PKGBUILDs, it does not matter which one. Both packages currently build and run OK at my end (also make sure you have installed all the AUR dependencies).

After that, the /usr/lib should contain among other things. the Tizonia IL Core, like this:

libtizcore.so -> libtizcore.so.0.0.9
etc

Also, your $HOME/.config/tizonia/tizonia.conf should contain this line:

component-paths = /usr/lib/tizonia0-plugins12
@tizonia

This comment has been minimized.

Show comment
Hide comment
@tizonia

tizonia Aug 22, 2017

Owner

Also, it is necessary to trick the environment to use Python 2 as default. Doing something along these lines:

First create a dummy folder:

$ mkdir ~/bin

Then add a symlink python to python2 and the config scripts in it:

$ ln -s /usr/bin/python2 ~/bin/python
$ ln -s /usr/bin/python2-config ~/bin/python-config

Finally put the new folder at the beginning of your PATH variable:

$ export PATH=~/bin:$PATH
Owner

tizonia commented Aug 22, 2017

Also, it is necessary to trick the environment to use Python 2 as default. Doing something along these lines:

First create a dummy folder:

$ mkdir ~/bin

Then add a symlink python to python2 and the config scripts in it:

$ ln -s /usr/bin/python2 ~/bin/python
$ ln -s /usr/bin/python2-config ~/bin/python-config

Finally put the new folder at the beginning of your PATH variable:

$ export PATH=~/bin:$PATH
@sylveon

This comment has been minimized.

Show comment
Hide comment
@sylveon

sylveon Aug 22, 2017

Contributor

I have built and reinstalled the package from master, applied the changes to my config and did the PATH trick, but I now get the following:

image

Also when it fails like this my terminal does not registers any keypresses afterwards.

Contributor

sylveon commented Aug 22, 2017

I have built and reinstalled the package from master, applied the changes to my config and did the PATH trick, but I now get the following:

image

Also when it fails like this my terminal does not registers any keypresses afterwards.

@tizonia

This comment has been minimized.

Show comment
Hide comment
@tizonia

tizonia Aug 22, 2017

Owner

OK, this is now looking a bit better. The OpenMAX IL Core library is now being located correctly, but the plugin dlls are not found it seems.

This error is typical when the component-paths is pointing to the wrong location:

In my Manjaro system, $HOME/.config/tizonia/tizonia.conf contains this line:

component-paths = /usr/lib/tizonia0-plugins12

and in that location, I can see the OpenMAX IL plugin dlls:
tizonia-component-paths

Do you see the same content in your system?

Owner

tizonia commented Aug 22, 2017

OK, this is now looking a bit better. The OpenMAX IL Core library is now being located correctly, but the plugin dlls are not found it seems.

This error is typical when the component-paths is pointing to the wrong location:

In my Manjaro system, $HOME/.config/tizonia/tizonia.conf contains this line:

component-paths = /usr/lib/tizonia0-plugins12

and in that location, I can see the OpenMAX IL plugin dlls:
tizonia-component-paths

Do you see the same content in your system?

@sylveon

This comment has been minimized.

Show comment
Hide comment
@sylveon

sylveon Aug 22, 2017

Contributor

Yes.
image

Contributor

sylveon commented Aug 22, 2017

Yes.
image

@juanrubio

This comment has been minimized.

Show comment
Hide comment
@juanrubio

juanrubio Aug 22, 2017

Collaborator

Possibly your tizonia.conf is still missing some important configuration items, most notably:

# The default audio renderer used by the tizonia player
# -------------------------------------------------------------------------
# Valid values are:
# - OMX.Aratelia.audio_renderer.pulseaudio.pcm
# - OMX.Aratelia.audio_renderer.alsa.pcm
default-audio-renderer = OMX.Aratelia.audio_renderer.pulseaudio.pcm

I would probably copy the default config from /etc/tizonia/tizonia.conf to your $HOME/.config/tizonia folder and then I would edit in there the gmusic credentials etc.

Collaborator

juanrubio commented Aug 22, 2017

Possibly your tizonia.conf is still missing some important configuration items, most notably:

# The default audio renderer used by the tizonia player
# -------------------------------------------------------------------------
# Valid values are:
# - OMX.Aratelia.audio_renderer.pulseaudio.pcm
# - OMX.Aratelia.audio_renderer.alsa.pcm
default-audio-renderer = OMX.Aratelia.audio_renderer.pulseaudio.pcm

I would probably copy the default config from /etc/tizonia/tizonia.conf to your $HOME/.config/tizonia folder and then I would edit in there the gmusic credentials etc.

@sylveon

This comment has been minimized.

Show comment
Hide comment
@sylveon

sylveon Aug 22, 2017

Contributor

Same thing happens.

Doesn't it reads the system-wide config in /etc/tizonia and then read the user config? That' what I would have expected.

Contributor

sylveon commented Aug 22, 2017

Same thing happens.

Doesn't it reads the system-wide config in /etc/tizonia and then read the user config? That' what I would have expected.

@juanrubio

This comment has been minimized.

Show comment
Hide comment
@juanrubio

juanrubio Aug 23, 2017

Collaborator

At this point I'm pretty sure there is something specific to your environment.

The --gmusic-album command requires three plugins:

"OMX.Aratelia.audio_source.http"
"OMX.Aratelia.audio_decoder.mp3"
And the default pcm renderer

Do you have a working pulseadio server on your system?. In system without pulseaudio, you can resort to the alsa renderer by configuring:

default-audio-renderer = OMX.Aratelia.audio_renderer.alsa.pcm

Collaborator

juanrubio commented Aug 23, 2017

At this point I'm pretty sure there is something specific to your environment.

The --gmusic-album command requires three plugins:

"OMX.Aratelia.audio_source.http"
"OMX.Aratelia.audio_decoder.mp3"
And the default pcm renderer

Do you have a working pulseadio server on your system?. In system without pulseaudio, you can resort to the alsa renderer by configuring:

default-audio-renderer = OMX.Aratelia.audio_renderer.alsa.pcm

@juanrubio

This comment has been minimized.

Show comment
Hide comment
@juanrubio

juanrubio Aug 23, 2017

Collaborator

By the way, there is no need to apply the Python environment trick manually anymore. Since this commit, ee2765a, the PKGBUILD will do the magic by itself, without requiring any action from the user.

Collaborator

juanrubio commented Aug 23, 2017

By the way, there is no need to apply the Python environment trick manually anymore. Since this commit, ee2765a, the PKGBUILD will do the magic by itself, without requiring any action from the user.

@juanrubio

This comment has been minimized.

Show comment
Hide comment
@juanrubio
Collaborator

juanrubio commented Aug 26, 2017

@juanrubio

This comment has been minimized.

Show comment
Hide comment
@juanrubio

juanrubio Aug 26, 2017

Collaborator

@sylveon, I've created an issue to document the use of the configuration files in Tizonia, see #368

Doesn't it reads the system-wide config in /etc/tizonia and then read the user config?

At the moment, the application only reads one of them, giving priority to the one in the user's home, if it exists.

Collaborator

juanrubio commented Aug 26, 2017

@sylveon, I've created an issue to document the use of the configuration files in Tizonia, see #368

Doesn't it reads the system-wide config in /etc/tizonia and then read the user config?

At the moment, the application only reads one of them, giving priority to the one in the user's home, if it exists.

@juanrubio

This comment has been minimized.

Show comment
Hide comment
@juanrubio

juanrubio Aug 26, 2017

Collaborator

@sylveon I've created another issue for the wrong terminal state, see #369

when it fails like this my terminal does not registers any keypresses afterwards.

Collaborator

juanrubio commented Aug 26, 2017

@sylveon I've created another issue for the wrong terminal state, see #369

when it fails like this my terminal does not registers any keypresses afterwards.

@juanrubio

This comment has been minimized.

Show comment
Hide comment
@juanrubio

juanrubio Aug 26, 2017

Collaborator

AUR packages are available and I believe they should work in most Arch-like environments. So I'm closing this issue for now, feel free to re-open if any of you guys think there is a problem with the packaging.

Collaborator

juanrubio commented Aug 26, 2017

AUR packages are available and I believe they should work in most Arch-like environments. So I'm closing this issue for now, feel free to re-open if any of you guys think there is a problem with the packaging.

@juanrubio juanrubio closed this Aug 26, 2017

@sylveon

This comment has been minimized.

Show comment
Hide comment
@sylveon

sylveon Aug 27, 2017

Contributor

Actually, I think there is one last blocker:

The python-soundcloud-git package is for python3 and not python2, which results in a build failure with the latest python2 path change:

<thousands of configure.ac and libtoolize lines>
configure: error: failed to find required module soundcloud
configure: error: ./configure failed for libtizsoundcloud
configure: error: ./configure failed for soundcloud
configure: error: ./configure failed for clients
==> ERROR: A failure occurred in build().
    Aborting...
:: failed to build tizonia-all-git package(s)

As for my OMX issue, I think it might be fixed by setting the python2 path before building rather than after ;)

Contributor

sylveon commented Aug 27, 2017

Actually, I think there is one last blocker:

The python-soundcloud-git package is for python3 and not python2, which results in a build failure with the latest python2 path change:

<thousands of configure.ac and libtoolize lines>
configure: error: failed to find required module soundcloud
configure: error: ./configure failed for libtizsoundcloud
configure: error: ./configure failed for soundcloud
configure: error: ./configure failed for clients
==> ERROR: A failure occurred in build().
    Aborting...
:: failed to build tizonia-all-git package(s)

As for my OMX issue, I think it might be fixed by setting the python2 path before building rather than after ;)

@juanrubio

This comment has been minimized.

Show comment
Hide comment
@juanrubio

juanrubio Aug 27, 2017

Collaborator

Uhm, interesting. the actual Python code is both Python 2 and Python 3 compatible. But sounds like since the PKGBUILD has no explicit dependency on Python 2, it gets installed using the default Python 3 run-time.

I had it installed as a Python 2 package while I had the environment trick in place, and that is probably why it hasn't failed for me since, even after I removed the trick.

Any idea on how to resolve this issue?

Collaborator

juanrubio commented Aug 27, 2017

Uhm, interesting. the actual Python code is both Python 2 and Python 3 compatible. But sounds like since the PKGBUILD has no explicit dependency on Python 2, it gets installed using the default Python 3 run-time.

I had it installed as a Python 2 package while I had the environment trick in place, and that is probably why it hasn't failed for me since, even after I removed the trick.

Any idea on how to resolve this issue?

@juanrubio juanrubio reopened this Aug 27, 2017

@juanrubio

This comment has been minimized.

Show comment
Hide comment
@juanrubio

juanrubio Aug 27, 2017

Collaborator

I guess, one obvious solution is to create a python2-soundcloud-git package... I should probably ask the original python-soundcloud-git maintainer in case he/she might be interested in providing that as well.

Collaborator

juanrubio commented Aug 27, 2017

I guess, one obvious solution is to create a python2-soundcloud-git package... I should probably ask the original python-soundcloud-git maintainer in case he/she might be interested in providing that as well.

@juanrubio juanrubio added this to the v0.10.0 milestone Aug 28, 2017

@juanrubio juanrubio removed this from the v0.9.0 milestone Aug 28, 2017

@sylveon

This comment has been minimized.

Show comment
Hide comment
@sylveon

sylveon Aug 28, 2017

Contributor

I have noticed you pushed an update to the AUR adding the python2-soundcloud-git package as a dependency and tried installing it.

Now it builds, runs and plays music fine!

Contributor

sylveon commented Aug 28, 2017

I have noticed you pushed an update to the AUR adding the python2-soundcloud-git package as a dependency and tried installing it.

Now it builds, runs and plays music fine!

@tizonia

This comment has been minimized.

Show comment
Hide comment
@tizonia

tizonia Aug 28, 2017

Owner

Awesome! And thanks a lot for your feedback!

Owner

tizonia commented Aug 28, 2017

Awesome! And thanks a lot for your feedback!

@tizonia tizonia closed this Aug 28, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment