ferdymercury / amide

AMIDE: a Medical Imaging Data Examiner
http://amide.sourceforge.net/
GNU General Public License v2.0
19 stars 12 forks source link

Ubuntu 22: autoreconf --install fails #15

Closed spl1nk closed 2 years ago

spl1nk commented 2 years ago

Hello! This is Jan.

I am testing the Ubuntu 2022 installation on 22.04 LTS, and within the first step (autoreconf --install) i get the following error: configure.ac:481: the top level gtk-doc.make:7: error: GTK_DOC_USE_LIBTOOL does not appear in AM_CONDITIONAL doc/reference/Makefile.am:131: 'gtk-doc.make' included from here gtk-doc.make:54: error: ENABLE_GTK_DOC does not appear in AM_CONDITIONAL doc/reference/Makefile.am:131: 'gtk-doc.make' included from here gtk-doc.make:55: error: GTK_DOC_BUILD_HTML does not appear in AM_CONDITIONAL doc/reference/Makefile.am:131: 'gtk-doc.make' included from here gtk-doc.make:60: error: GTK_DOC_BUILD_PDF does not appear in AM_CONDITIONAL doc/reference/Makefile.am:131: 'gtk-doc.make' included from here gtk-doc.make:283: error: ENABLE_GTK_DOC does not appear in AM_CONDITIONAL and at the end: autoreconf: error: automake failed with exit status: 1 i tried autoupdate and aclocal as well, to no avail. Any clue as to why?

Kind Regards, Jan

ferdymercury commented 2 years ago

Hi Jan.

Can you try instead with branch "autogen" https://github.com/ferdymercury/amide/tree/autogen ?

spl1nk commented 2 years ago

works better, but now its stuck at ./configure --prefix /opt/amide --enable-gnome-vfs=no --disable-scrollkeeper --enable-gtk-doc=no --disable-doc:

./configure: line 20893: syntax error near unexpected token `1.10'
./configure: line 20893: `GTK_DOC_CHECK(1.10)'
ferdymercury commented 2 years ago

Maybe you can install this? https://packages.ubuntu.com/it/jammy/gtk-doc-tools via sudo apt install You might need to activate the universe ppa.

ferdymercury commented 2 years ago

./configure: line 20893: `GTK_DOC_CHECK(1.10)'

Plan B could be to move line https://github.com/ferdymercury/amide/blob/autogen/amide-current/configure.ac#L461 below 474.

Please try both approaches and let us know how it goes ;) I will update the documentation accordingly. Thanks!

spl1nk commented 2 years ago

hello, unfortunately neither works. with version 1 autoreconf --install fails with

automake: error: cannot open < gnome-doc-utils.make: No such file or directory
autoreconf: error: automake failed with exit status: 1

Option 2 just gives the error at a different position:

./configure: line 20911: syntax error near unexpected token `1.10'
./configure: line 20911: `  GTK_DOC_CHECK(1.10)'
ferdymercury commented 2 years ago

with version 1 autoreconf --install fails with automake: error: cannot open < gnome-doc-utils.make: No such file or directory autoreconf: error: automake failed with exit status: 1

This is a different error message. Can you run here:

touch gnome-doc-utils.make

before autoreconf?

spl1nk commented 2 years ago

hm, ok, it seems to work. Curiously enough, the first 'make' throws an error (though i cannot find where), but using 'make install' afterwards runs without issue. I think id was due to /opt/amide not yet existing? Or i needed to change the ownership of said folder. Anyhow, works.

ferdymercury commented 2 years ago

Option 2 just gives the error at a different position:

You could also just remove that line.

ferdymercury commented 2 years ago

hm, ok, it seems to work. Curiously enough, the first 'make' throws an error (though i cannot find where), but using 'make install' afterwards runs without issue. I think id was due to /opt/amide not yet existing? Or i needed to change the ownership of said folder. Anyhow, works.

Maybe you were also missing the step "gtkdocize" before autoreconf, after having installed gtk-doc-tools. Anyway, glad that it works :) Let us know if you find further issues.