SawfishWM / rep-gtk

GTK+2 binding to librep
GNU General Public License v2.0
11 stars 5 forks source link

error: can not locate gtk+ >= 2.24.0 #6

Closed gustad closed 5 months ago

gustad commented 5 months ago

Which gtk+ library is the configure script searching for? I get:

checking pkg-config is at least version 0.9.0... yes
checking for LIBREP... yes
checking for GLIB... yes
checking for GTK... no
configure: error: can not locate gtk+ >= 2.24.0

I'm on Gentoo and I have:

[ebuild   R    ] x11-libs/gtk+-3.24.39:3::gentoo  USE="X cups introspection (-aqua) -broadway -cloudproviders -colord -examples -gtk-doc -sysprof -test -vim-syntax -wayland -xinerama" ABI_X86="(64) -32 (-x32)" 12,173 KiB

Is this the wrong library or is the test in the configure.ac not able to handle 3.x?

PKG_CHECK_MODULES(GTK, gtk+-2.0 >= $GTK_MIN_VER
                  ,pc_libs="${pc_libs} gtk+-2.0"
                  ,AC_MSG_ERROR([can not locate gtk+ >= $GTK_MIN_VER]))
gustad commented 5 months ago

I'm able to work around this issue by installing gtk+-2.24.33-r3, but when I run make it appears that some command is missing in the generted command line as I get:

/bin/sh: line 1: --tag=CC: command not found
make: [Makefile:48: gtk-2/gtk.la] Error 127 (ignored)

EDIT: This might be the variable rep_DL_LD which is not set. What should it be set to and what should set it?

gustad commented 5 months ago

rep_DL_LD is used in Makefile.in:

$ git blame Makefile.in |grep rep_DL_LD
675669bf (john                     1999-12-16 19:48:18 +0000  48)       $(rep_DL_LD) $(CPPFLAGS) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(REP_GTK_LIBS)

Which again is set by

lib/rep/rules.mk:rep_DL_LD=$(LIBTOOL) --mode=link --tag=CC $(CC) -avoid-version -module -rpath $(rpath_repcommonexecdir)

However, LIBTOOL does not seem to be set. If I set it in my make command I get a step further:

LIBTOOL=/usr/bin/libtool make
...
libtool:   error: 'glib-glue.lo' is not a valid libtool object
make: *** [Makefile:48: gtk-2/gtk.la] Error 1
gustad commented 5 months ago

I was able to build using the following versions:

librep.git: bf5d0487
rep-gtk.git: dc01f3f
sawfish.git: 656c4583
gustad commented 5 months ago

Closing as I was able to build using gtk+-2.24.33-r3 and the given versions.