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

Notes on installation, Debian Jessie #8

Closed
thestumbler opened this issue Feb 23, 2016 · 5 comments
Closed

Notes on installation, Debian Jessie #8

thestumbler opened this issue Feb 23, 2016 · 5 comments

Comments

@thestumbler
Copy link

configure.ac.zip

I had to make some modifications to get this to build on my Debian 8 system. Just wanted to post this, in case anyone else runs into the same issue. When you first try to run autoconf in order to generate the configure file, you get a bunch of error messages. I was able to correct them by editing configure.ac and running several configuration commands.

  1. added this line to configure.ac
    AC_CONFIG_MACRO_DIR([m4])
    _see Will Robert's reply #2 in this forum here _
  2. Installed the xorg-server-source package based on the notes in the above thread
    (not sure this is necessary or not). I already had the other packages mentioned installed.
  3. Added this option to configure.ac:
    AM_INIT_AUTOMAKE([subdir-objects])
    see this forum thread here
    Actually, AM_INIT_AUTOMAKE is already in the file, so I just edited to add the new parameter:
    AM_INIT_AUTOMAKE([-Wall -Werror subdir-objects])

After editing the .ac file, I followed the sequence of commands listed
in the reference from #1 above.

$ libtoolize --force
$ aclocal
$ autoheader
$ automake --force-missing --add-missing
$ autoconf

Note: I still get a few of these errors:
sh: 1: test: x: unexpected operator
during the aclocal and automake commands, but it appears they can be safely ignored.

I then proceeded with ./configure, make, sudo make install as usual, with no
problems.

My modified configure.ac file is attached.

@lenoch
Copy link

lenoch commented Feb 23, 2016

Hi,

can you please try to build https://github.com/PedroHLC/osdlyrics/ (the forked upstream)?

Version 0.5 (in development) is the default branch there. Python is much more used in 0.5 (@tigersoldier has done this long ago) so some dependencies are gone while some more are needed.

You can refer to https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=osdlyrics-git to learn about the dependencies you may need to install on Debian:

depends=(dbus-glib desktop-file-utils gtk2 hicolor-icon-theme libnotify python2-dbus python2-chardet python2-gobject2 python2-pycurl sqlite)

@thestumbler
Copy link
Author

Yep, that seems to help quite a bit.
The configure.ac file was still missing the macro-dir directive, but running

$ autoconf
$ autoreconfig -i

did the trick for me and created a workable configure file.

Still have those sh: 1: test: x: unexpected operator errors, but it is working now.
Thanks.

@lenoch
Copy link

lenoch commented Feb 23, 2016

If you could isolate the file that caused the "unexpected operator" errors (used by aclocal/automake) we could fix them.

It seems sh is used instead of bash, as http://stackoverflow.com/questions/3411048/unexpected-operator-in-shell-programming suggests.

@thestumbler
Copy link
Author

I'll try to check that and report back.

You mean I should actually run the install process from sh rather than bash? It's been awhile since I looked into this topic, but as I recall sh may be linked to bash on my Debian installation. I'll confirm and try to make it really point to sh.

I'm going to make a branch to add a special purpose lyrics output, basically sending the text over the serial port. This is the latest and correct branch to build from?

-Chris

Sent from my android device.

-----Original Message-----
From: "Ondřej Svoboda" [email protected]
To: tigersoldier/osd-lyrics [email protected]
Cc: Chris Lott [email protected]
Sent: Wed, 24 Feb 2016 4:30 AM
Subject: Re: [osd-lyrics] Notes on installation, Debian Jessie (#8)

If you could isolate the file that caused the "unexpected operator" errors (used by aclocal/automake) we could fix them.

It seems sh is used instead of bash, as http://stackoverflow.com/questions/3411048/unexpected-operator-in-shell-programming suggests.


Reply to this email directly or view it on GitHub:
#8 (comment)

@lenoch
Copy link

lenoch commented Feb 24, 2016

I mean bash should be the shell aclocal/automake should call, not sh, as it lacks some of the syntax/expressions bash supports and is probably present in configure.ac.

Yes, https://github.com/PedroHLC/osdlyrics/ is the most complete osdlyrics repository. @PedroHLC has made a lot of effort to merge patches proposed for the original repositories and he is quick to respond to pull requests. I think it is worth adding a git remote pointing to his repository.

I am looking forward to your patches :-)

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