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

Compile Geany Plugins on Windows #887

Closed
ramisedhom opened this issue Jul 19, 2019 · 2 comments
Closed

Compile Geany Plugins on Windows #887

ramisedhom opened this issue Jul 19, 2019 · 2 comments
Labels
build system Automake build system issues question Windows

Comments

@ramisedhom
Copy link

ramisedhom commented Jul 19, 2019

Thanks to advice how to compile Geany Plugins on Windows using MSYS2.

I did following steps:

  1. Installed MSYS2
  2. Downloaded https://github.com/geany/geany-plugins/archive/master.zip
  3. From MSYS2 terminal, installed: intltool, autoconf, libtool and automake

pacman -S intltool
pacman -S autoconf
pacman -S libtool
pacman -S automake

  1. Run: ./autogen.sh, it exist with error. Following is the output:

You should add the contents of '/usr/share/aclocal/intltool.m4' to 'aclocal.m4'.
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I build/cache -I build -I build/bundled -I geanypy/m4 --install
build/i18n.m4:15: warning: macro 'AM_GLIB_GNU_GETTEXT' not found in library
configure.ac:24: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
build/geany.m4:31: GP_CHECK_GEANY is expanded from...
configure.ac:24: the top level
configure.ac:24: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
build/geany.m4:1: _GP_GEANY_LIBDIR is expanded from...
build/geany.m4:16: GP_GEANY_PKG_CONFIG_PATH_PUSH is expanded from...
build/geany.m4:31: GP_CHECK_GEANY is expanded from...
configure.ac:24: the top level
configure.ac:26: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
build/gtk.m4:4: GP_CHECK_GTK_VERSION is expanded from...
configure.ac:26: the top level
configure.ac:24: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
build/geany.m4:31: GP_CHECK_GEANY is expanded from...
configure.ac:24: the top level
configure.ac:24: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
build/geany.m4:1: _GP_GEANY_LIBDIR is expanded from...
build/geany.m4:16: GP_GEANY_PKG_CONFIG_PATH_PUSH is expanded from...
build/geany.m4:31: GP_CHECK_GEANY is expanded from...
configure.ac:24: the top level
configure.ac:26: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
build/gtk.m4:4: GP_CHECK_GTK_VERSION is expanded from...
configure.ac:26: the top level
aclocal-1.16: installing 'build/cache/libtool.m4' from '/usr/share/aclocal/libtool.m4'
aclocal-1.16: installing 'build/cache/ltoptions.m4' from '/usr/share/aclocal/ltoptions.m4'
aclocal-1.16: installing 'build/cache/ltsugar.m4' from '/usr/share/aclocal/ltsugar.m4'
aclocal-1.16: installing 'build/cache/ltversion.m4' from '/usr/share/aclocal/ltversion.m4'
aclocal-1.16: installing 'build/cache/ltobsolete.m4' from '/usr/share/aclocal/ltobsolete.m4'
aclocal-1.16: installing 'build/cache/nls.m4' from '/usr/share/aclocal/nls.m4'
configure.ac:24: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
build/geany.m4:31: GP_CHECK_GEANY is expanded from...
configure.ac:24: the top level
configure.ac:24: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
build/geany.m4:1: _GP_GEANY_LIBDIR is expanded from...
build/geany.m4:16: GP_GEANY_PKG_CONFIG_PATH_PUSH is expanded from...
build/geany.m4:31: GP_CHECK_GEANY is expanded from...
configure.ac:24: the top level
configure.ac:26: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
build/gtk.m4:4: GP_CHECK_GTK_VERSION is expanded from...
configure.ac:26: the top level
autoreconf: configure.ac: tracing
configure.ac:24: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
build/geany.m4:31: GP_CHECK_GEANY is expanded from...
configure.ac:24: the top level
configure.ac:24: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
build/geany.m4:1: _GP_GEANY_LIBDIR is expanded from...
build/geany.m4:16: GP_GEANY_PKG_CONFIG_PATH_PUSH is expanded from...
build/geany.m4:31: GP_CHECK_GEANY is expanded from...
configure.ac:24: the top level
configure.ac:26: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
build/gtk.m4:4: GP_CHECK_GTK_VERSION is expanded from...
configure.ac:26: the top level
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'build/cache'.
libtoolize: copying file 'build/cache/libtool.m4'
libtoolize: copying file 'build/cache/ltoptions.m4'
libtoolize: copying file 'build/cache/ltsugar.m4'
libtoolize: copying file 'build/cache/ltversion.m4'
libtoolize: copying file 'build/cache/lt~obsolete.m4'
build/i18n.m4:15: warning: macro 'AM_GLIB_GNU_GETTEXT' not found in library
configure.ac:24: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
build/geany.m4:31: GP_CHECK_GEANY is expanded from...
configure.ac:24: the top level
configure.ac:24: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
build/geany.m4:1: _GP_GEANY_LIBDIR is expanded from...
build/geany.m4:16: GP_GEANY_PKG_CONFIG_PATH_PUSH is expanded from...
build/geany.m4:31: GP_CHECK_GEANY is expanded from...
configure.ac:24: the top level
configure.ac:26: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
build/gtk.m4:4: GP_CHECK_GTK_VERSION is expanded from...
configure.ac:26: the top level
configure.ac:24: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
build/geany.m4:31: GP_CHECK_GEANY is expanded from...
configure.ac:24: the top level
configure.ac:24: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
build/geany.m4:1: _GP_GEANY_LIBDIR is expanded from...
build/geany.m4:16: GP_GEANY_PKG_CONFIG_PATH_PUSH is expanded from...
build/geany.m4:31: GP_CHECK_GEANY is expanded from...
configure.ac:24: the top level
configure.ac:26: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
build/gtk.m4:4: GP_CHECK_GTK_VERSION is expanded from...
configure.ac:26: the top level
autoreconf: running: /usr/bin/autoconf --force
configure.ac:24: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
build/geany.m4:31: GP_CHECK_GEANY is expanded from...
configure.ac:24: the top level
configure.ac:24: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
build/geany.m4:1: _GP_GEANY_LIBDIR is expanded from...
build/geany.m4:16: GP_GEANY_PKG_CONFIG_PATH_PUSH is expanded from...
build/geany.m4:31: GP_CHECK_GEANY is expanded from...
configure.ac:24: the top level
configure.ac:26: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
build/gtk.m4:4: GP_CHECK_GTK_VERSION is expanded from...
configure.ac:26: the top level
configure:13977: error: possibly undefined macro: AM_GLIB_GNU_GETTEXT
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure:14016: error: possibly undefined macro: AM_CONDITIONAL
configure:14420: error: possibly undefined macro: AS_TR_SH
configure:14420: error: possibly undefined macro: m4_tolower
autoreconf: /usr/bin/autoconf failed with exit status: 1

@Skif-off
Copy link
Contributor

Skif-off commented Jul 20, 2019

https://wiki.geany.org/howtos/win32/msys2 works fine for me (GTK2):

  • One-time Setup
  • GTK+2 compilation
  • Plugins:
cd
curl -L -o geany-plugins-master.zip https://github.com/geany/geany-plugins/archive/master.zip
unzip geany-plugins-master.zip
cd geany-plugins-master
NOCONFIGURE=1 ./autogen.sh
./configure --prefix=/c/geany --with-geany-libdir=/c/geany/lib --disable-silent-rules
make -j2
make install
  • Creating a GTK runtime bundle

P.S. Binary stripping I usually run manually.

@lpaulsen93 lpaulsen93 added build system Automake build system issues question Windows labels Aug 10, 2019
@eht16
Copy link
Member

eht16 commented Apr 28, 2020

Please re-open if you still have issues building Geany with the instructions in the wiki, as mentioned above.

@eht16 eht16 closed this as completed Apr 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build system Automake build system issues question Windows
Projects
None yet
Development

No branches or pull requests

4 participants