У меня проблема - https://github.com/mate-desktop/caja/issues/1751
Dimez стёр мою предыдущую тему:
https://www.linux.org.ru/forum/desktop/17428934
Я написал тест:
$ cat main.c
#include <stdio.h>
#include <gio/gio.h>
int main(int argc, char *argv[]) {
GApplication *app;
GError *error = NULL;
// # warning: ‘G_APPLICATION_FLAGS_NONE’ is deprecated: Use 'G_APPLICATION_DEFAULT_FLAGS' instead [-Wdeprecated-declarations]
app = g_application_new ("org.mate.caja", G_APPLICATION_DEFAULT_FLAGS);
g_application_register (app, NULL, &error);
if (error != NULL) {
g_printerr ("Could not register the application: %s\n", error->message);
g_error_free (error);
}
else
{
g_print ("Success\n");
}
return 0;
}
$ cat Makefile.am
bin_PROGRAMS = my_caja
my_caja_SOURCES = main.c
AM_CPPFLAGS = $(GLIB_CFLAGS) $(GIO_CFLAGS)
AM_LDFLAGS = $(GLIB_LIBS) $(GIO_LIBS)
$ cat configure.ac
AC_INIT([my_caja], [0.0.0])
AC_CONFIG_SRCDIR([main.c])
AC_CONFIG_HEADERS([config.h])
# Check for GLIB
PKG_CHECK_MODULES([GLIB], [glib-2.0], [have_glib=yes], [have_glib=no])
AS_IF([test "x$have_glib" = "xyes"], [
AC_DEFINE([HAVE_GLIB], [1], [Define to 1 if GLIB is available])
AC_SUBST([GLIB_CFLAGS])
AC_SUBST([GLIB_LIBS])
], [
AC_MSG_ERROR([GLIB is required to compile this program])
])
# Check for GIO
PKG_CHECK_MODULES([GIO], [gio-2.0], [have_gio=yes], [have_gio=no])
AS_IF([test "x$have_gio" = "xyes"], [
AC_DEFINE([HAVE_GIO], [1], [Define to 1 if GIO is available])
AC_SUBST([GIO_CFLAGS])
AC_SUBST([GIO_LIBS])
], [
AC_MSG_ERROR([GIO is required to compile this program])
])
AM_INIT_AUTOMAKE([foreign])
AC_PROG_CC
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
$ autoreconf -fi && ./configure && make
$ ./my_caja
Success
Что делать дальше?