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

Installing gpod-utils #4

Open
frddbbbl opened this issue Jan 12, 2024 · 14 comments
Open

Installing gpod-utils #4

frddbbbl opened this issue Jan 12, 2024 · 14 comments

Comments

@frddbbbl
Copy link

frddbbbl commented Jan 12, 2024

Hi! apologies as this is a stupid issue to open, but i am unsure how to compile this program? I am used to the
make
make install
style and can't seem to see that anywhere. i also tried running the config.sh but that just returns config.sh[4]: autoreconf: not found config.sh[5]: autoconf: not found run configure

cheers and sorry x

@frddbbbl frddbbbl changed the title Installing gpod0 Installing gpod-utils Jan 12, 2024
@whatdoineed2do
Copy link
Owner

Not at all.

you need the automake package along side the other dependencies listed in the README.

Depends on the system you are building on, but:

  • fedora: sudo dnf install autoconf automake
  • debian/ubuntu etc: sudo apt-get install autotools-dev automake autoconf

This'll give you a configure file that you need to run to pull/find location of package deps: you'll also need these dev deps:

  • libgpod
  • glib2
  • json-c
  • ffmpeg

If you are using Debian, take a look at .github/workflows/ubuntu.yml - it shows the dev deps and you should be able to copy/paste the apt-get install line.

Once you ahve these dev deps:

config.sh
./configure && sudo make install

@frddbbbl
Copy link
Author

frddbbbl commented Jan 14, 2024

Thanks! I'm on openBSD so can imagine i may run into issues, have installed automake and autoconf and defined their versions but a lot of errors are then output.`
./config.sh
Provide an AUTOMAKE_VERSION environment variable, please
autoreconf-2.71: error: aclocal failed with exit status: 127
configure.ac:6: warning: AC_INIT: not a literal: "m4_esyscmd([git describe --tags --dirty --always | tr -d '\n'])"
configure.ac:15: warning: The macro 'AC_HEADER_STDC' is obsolete.
configure.ac:15: You should run autoupdate.
/usr/local/share/autoconf-2.71/autoconf/headers.m4:712: AC_HEADER_STDC is expanded from...
configure.ac:15: the top level
configure.ac:62: warning: AC_OUTPUT should be used without arguments.
configure.ac:62: You should run autoupdate.
configure.ac:7: error: possibly undefined macro: AM_INIT_AUTOMAKE
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:30: error: possibly undefined macro: AC_DEFINE
configure.ac:35: error: possibly undefined macro: AM_CONDITIONAL
run configure

`

@whatdoineed2do
Copy link
Owner

I've made a small commit to master but it shouldn't affect what you're reporting.

You will need the m4 macros package - a quick look seems to suggest the package name may be openbsd-m4 or m4 but I dont know enough about *BSD to comment about their packages.

@frddbbbl
Copy link
Author

frddbbbl commented Jan 16, 2024

so I pkg_add m4 and the errors look pretty similar `/usr/local/bin/aclocal[34]: /usr/local/bin/aclocal-1.16.5: not found
autoreconf-2.71: error: aclocal failed with exit status: 127

configure.ac:6: warning: AC_INIT: not a literal: "m4_esyscmd([git describe --tags --dirty --always | tr -d '\n'])"

configure.ac:15: warning: The macro 'AC_HEADER_STDC' is obsolete.

configure.ac:15: You should run autoupdate.

/usr/local/share/autoconf-2.71/autoconf/headers.m4:712: AC_HEADER_STDC is expanded from...

configure.ac:15: the top level

configure.ac:62: warning: AC_OUTPUT should be used without arguments.

configure.ac:62: You should run autoupdate.

configure.ac:7: error: possibly undefined macro: AM_INIT_AUTOMAKE

  If this token and others are legitimate, please use m4_pattern_allow.

  See the Autoconf documentation.

configure.ac:30: error: possibly undefined macro: AC_DEFINE

configure.ac:35: error: possibly undefined macro: AM_CONDITIONAL

run configure
`

The reason i was originally trying to install gpod-utils (other than it looks a lot better than something like rhythmbox) is that for some reason rhythmbox and clementine don't seem to be detecting my ipod when i connect it. This happens whether it is mounted somewhere or not, i am assuming this is to do with ligbpod? but don't really know enough to troubleshoot further.
Thanks for your patience.
Freddie

@whatdoineed2do
Copy link
Owner

A quick look into rhythbox code (https://gitlab.gnome.org/search?search=itdb_&nav_source=navbar&project_id=1857&group_id=8&search_code=true&repository_ref=master) confirms it does use libgpod which is what this codebase also uses.

Mounting ipods and rhythmbox i found inconsistent in the past (same with gtkpod). it also depends on what you want to acheive: writes onyl seem to work with the older models as per limited testing and comments in the libgpod code.

regarding the openbsd errors, i'm affraid i can't help on those since i havent used *bsd for >10years but they all seem to related to m4 macros but also missing autoreconf?

@frddbbbl
Copy link
Author

Thanks, will have a look at the errors soon. My iPod is the 5th gen that worked with rhythmbox when i was on debain so i imagine it has something to do with BSD....

@whatdoineed2do
Copy link
Owner

5th gen works with these tools; i'm using a 5th gen video

@whatdoineed2do
Copy link
Owner

Try seeing if there is the equivalent to autoconf-archive and this might take care of all the m4 errors

@frddbbbl
Copy link
Author

frddbbbl commented Jan 18, 2024

Great cheers man! That has fixed the m4 errors and now creates a configure file but there are a fair few errors related to the macros and the binary aclocal (which i tried to install but was unsure what library it is a part of.) running configure && doas make install also leads to errors. Log for sh config.sh:

/usr/local/bin/aclocal[34]: /usr/local/bin/aclocal-1.16.5: not found
autoreconf-2.71: error: aclocal failed with exit status: 127
configure.ac:6: warning: AC_INIT: not a literal: "m4_esyscmd([git describe --tags --dirty --always | tr -d '\n'])"
configure.ac:17: warning: The preprocessor macro `STDC_HEADERS' is obsolete.
configure.ac:17: Except in unusual embedded environments, you can safely include all
configure.ac:17: ISO C90 headers unconditionally.
configure.ac:7: error: possibly undefined macro: AM_INIT_AUTOMAKE
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:38: error: possibly undefined macro: AC_DEFINE
configure.ac:43: error: possibly undefined macro: AM_CONDITIONAL
run configure

Log for configure && doas make install:

configure: error: cannot find required auxiliary files: install-sh

Yet again thanks for your help and patience.

@whatdoineed2do
Copy link
Owner

The first line tells you that aclocal not found - install that and try again and this should get past the missing macro compalints

You may want to delete the tree and pull master again before thee above to get rid of the warnings about std c

@frddbbbl
Copy link
Author

cool will have a deeper look - tried installing aclocal but it wasn't in the ports. It could be part of a library i guess will have a look.
Cheers,
Freddie

@whatdoineed2do
Copy link
Owner

This is the configure generated from master. Maybe this is the easiest way for you to run try this - since we see theres a few oddities with freebsd already i dont want you to lose time on solving the autotools mess if the other environemnt items dont work (and which i dont know i'll be able ot help solve)

configure.gz

This should pick up all the deps and tell you if you are missing any - on linux if any of the deps are installed in different places (not the /usr) you need to set PKG_CONFIG_PATH, like this example: PKG_CONFIG_PATH=/usr/local/lib64/ffmpeg6/pkgconfig/ ./configure

@frddbbbl
Copy link
Author

so not sure if i have done it right but running ./configure && doas make install
returns configure: error: cannot find install-sh, install.sh, or shtool in "." "./.." "./../.."

can i ask which autoconf and automake versions you installed as i think this may be part of my issue? cheers

@whatdoineed2do
Copy link
Owner

automake 1.16
autoconf 2.69

try unpacking this:
configure.tar.gz - i think these are all the automake generated files

i'm testing this mostly on a Fedora 35. i've built this on a raspberry pi (debian 9) in the past

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