nomeata / screen-message

Very simple tool to display some text as large as possible
54 stars 8 forks source link

compiling screen-message #12

Closed luto closed 1 year ago

luto commented 1 year ago

To figure out #11 I'd like to compile the latest version myself. However, my lack of C build chain knowledge stopped me in my tracks. Is there documentation somewhere on how to build sm? Preferably with symbols and debugging info intact, so I can pinpoint a crash.

$ autoconf
configure.ac:65: warning: The macro `AC_STDC_HEADERS' is obsolete.
configure.ac:65: You should run autoupdate.
./lib/autoconf/oldnames.m4:75: AC_STDC_HEADERS is expanded from...
configure.ac:65: the top level
configure.ac:65: warning: The macro `AC_HEADER_STDC' is obsolete.
configure.ac:65: You should run autoupdate.
./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from...
./lib/autoconf/oldnames.m4:75: AC_STDC_HEADERS is expanded from...
configure.ac:65: the top level
configure.ac:3: 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:10: error: possibly undefined macro: AM_CONDITIONAL
$ configure.ac: error: no proper invocation of AM_INIT_AUTOMAKE was found.
configure.ac: You should verify that configure.ac invokes AM_INIT_AUTOMAKE,
configure.ac: that aclocal.m4 is present in the top-level directory,
configure.ac: and that aclocal.m4 was recently regenerated (using aclocal)
configure.ac:64: error: required file './install-sh' not found
configure.ac:64:   'automake --add-missing' can install 'install-sh'
Makefile.am:37: error: WIN32 does not appear in AM_CONDITIONAL
Makefile.am: error: required file './AUTHORS' not found
Makefile.am: error: required file './ChangeLog' not found
Makefile.am: error: required file './INSTALL' not found
Makefile.am:   'automake --add-missing' can install 'INSTALL'
Makefile.am: error: required file './NEWS' not found
Makefile.am: error: required file './COPYING' not found
Makefile.am:   'automake --add-missing' can install 'COPYING'
configure.ac:61: error: required file 'config.h.in' not found
Makefile.am: error: required file './depcomp' not found
Makefile.am:   'automake --add-missing' can install 'depcomp'
/usr/share/automake-1.16/am/depend2.am: error: am__fastdepCC does not appear in AM_CONDITIONAL
/usr/share/automake-1.16/am/depend2.am:   The usual way to define 'am__fastdepCC' is to add 'AC_PROG_CC'
/usr/share/automake-1.16/am/depend2.am:   to 'configure.ac' and run 'aclocal' and 'autoconf' again
/usr/share/automake-1.16/am/depend2.am: error: AMDEP does not appear in AM_CONDITIONAL
/usr/share/automake-1.16/am/depend2.am:   The usual way to define 'AMDEP' is to add one of the compiler tests
/usr/share/automake-1.16/am/depend2.am:     AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC, AC_PROG_OBJCXX,
/usr/share/automake-1.16/am/depend2.am:     AM_PROG_AS, AM_PROG_GCJ, AM_PROG_UPC
/usr/share/automake-1.16/am/depend2.am:   to 'configure.ac' and run 'aclocal' and 'autoconf' again

Which produces no Makefile and only a broken configure:

$ ./configure
configure: error: cannot find required auxiliary files: compile missing install-sh
nomeata commented 1 year ago

Try autoreconf -i

luto commented 1 year ago

that did it, thanks!