GPaste icon indicating copy to clipboard operation
GPaste copied to clipboard

Failed to compile GPaste on Ubuntu 20.04.2 LTS.

Open hongyi-zhao opened this issue 2 years ago • 4 comments

$ git log -1
commit 11fbb217b66dbf5d7d1396c41574bfd8b3fe76c0 (HEAD -> master, origin/master, origin/HEAD)
Author: Rafael Fontenelle <[email protected]>
Date:   Sun Oct 3 01:17:23 2021 +0000

    Translated using Weblate (Portuguese (Brazil))
    
    Currently translated at 77.9% (159 of 204 strings)
    
    Translation: GPaste/GPaste
    Translate-URL: https://hosted.weblate.org/projects/gpaste/gpaste/pt_BR/

$ ./autogen.sh 
src/vapi.mk:35: error: ENABLE_VAPIGEN does not appear in AM_CONDITIONAL
Makefile.am:67:   'src/vapi.mk' included from here
autoreconf: automake failed with exit status: 1

$ autoreconf -vfi
autoreconf: Entering directory `.'
autoreconf: running: autopoint --force
Copying file ABOUT-NLS
Creating directory build-aux
Copying file build-aux/config.rpath
Copying file m4/codeset.m4
Copying file m4/extern-inline.m4
Copying file m4/fcntl-o.m4
Copying file m4/gettext.m4
Copying file m4/glibc2.m4
Copying file m4/glibc21.m4
Copying file m4/iconv.m4
Copying file m4/intdiv0.m4
Copying file m4/intl.m4
Copying file m4/intldir.m4
Copying file m4/intlmacosx.m4
Copying file m4/intmax.m4
Copying file m4/inttypes-pri.m4
Copying file m4/inttypes_h.m4
Copying file m4/lcmessage.m4
Copying file m4/lib-ld.m4
Copying file m4/lib-link.m4
Copying file m4/lib-prefix.m4
Copying file m4/lock.m4
Copying file m4/longlong.m4
Copying file m4/nls.m4
Copying file m4/po.m4
Copying file m4/printf-posix.m4
Copying file m4/progtest.m4
Copying file m4/size_max.m4
Copying file m4/stdint_h.m4
Copying file m4/threadlib.m4
Copying file m4/uintmax_t.m4
Copying file m4/visibility.m4
Copying file m4/wchar_t.m4
Copying file m4/wint_t.m4
Copying file m4/xsize.m4
Copying file po/Makefile.in.in
Copying file po/Makevars.template
Copying file po/Rules-quot
Copying file po/boldquot.sed
Copying file po/[email protected]
Copying file po/[email protected]
Copying file po/insert-header.sin
Copying file po/quot.sed
Copying file po/remove-potcdate.sin
autoreconf: running: aclocal --force -I m4 ${ACLOCAL_FLAGS}
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
libtoolize: copying file 'build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:89: installing 'build-aux/ar-lib'
configure.ac:87: installing 'build-aux/compile'
configure.ac:91: installing 'build-aux/config.guess'
configure.ac:91: installing 'build-aux/config.sub'
configure.ac:93: installing 'build-aux/install-sh'
configure.ac:93: installing 'build-aux/missing'
src/vapi.mk:35: error: ENABLE_VAPIGEN does not appear in AM_CONDITIONAL
Makefile.am:67:   'src/vapi.mk' included from here
Makefile.am: installing 'build-aux/depcomp'
parallel-tests: installing 'build-aux/test-driver'
autoreconf: automake failed with exit status: 1

Regards HZ

hongyi-zhao avatar Oct 12 '21 01:10 hongyi-zhao

@hongyi-zhao I have the same issue...

jokerekv2 avatar Oct 14 '21 16:10 jokerekv2

you need install the packages "valac" and "gobject-introspection"

AlonsoMCarlos avatar Oct 29 '21 16:10 AlonsoMCarlos

This problem has been fixed by the following packages:

$ sudo apt install valac gobject-introspection

But now I meet the following problem:

$ ./configure
[...]

checking for GLIB... no
configure: error: Package requirements (glib-2.0 >= 2.70.0 gobject-2.0 >= 2.70.0 gio-2.0 >= 2.70.0) were not met:

Requested 'glib-2.0 >= 2.70.0' but version of GLib is 2.64.6
Requested 'gobject-2.0 >= 2.70.0' but version of GObject is 2.64.6
Requested 'gio-2.0 >= 2.70.0' but version of GIO is 2.64.6

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GLIB_CFLAGS
and GLIB_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

I also tried the following, but still failed:

$ sudo apt build-dep gpaste 
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help resolve the situation:

The following packages have unmet dependencies:
 builddeps:gpaste : Depends: libclutter-1.0-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

hongyi-zhao avatar Oct 30 '21 02:10 hongyi-zhao

This problem has been fixed by the following packages:

$ sudo apt install valac gobject-introspection

But now I meet the following problem:

$ ./configure
[...]

checking for GLIB... no
configure: error: Package requirements (glib-2.0 >= 2.70.0 gobject-2.0 >= 2.70.0 gio-2.0 >= 2.70.0) were not met:

Requested 'glib-2.0 >= 2.70.0' but version of GLib is 2.64.6
Requested 'gobject-2.0 >= 2.70.0' but version of GObject is 2.64.6
Requested 'gio-2.0 >= 2.70.0' but version of GIO is 2.64.6

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GLIB_CFLAGS
and GLIB_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

I also tried the following, but still failed:

$ sudo apt build-dep gpaste 
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help resolve the situation:

The following packages have unmet dependencies:
 builddeps:gpaste : Depends: libclutter-1.0-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

I confirm that I have the same issue.

Rivierg avatar Nov 26 '21 05:11 Rivierg