Wednesday, September 21, 2022

Re: Fwd: Compiling vim 9.0 with gui (SOLVED!)



On Wed, 21 Sept 2022 at 13:22, Bram Moolenaar <Bram@moolenaar.net> wrote:

> I have been trying to compile vim 9.0 with GUI enabled in CentOS 8. I have
> all the gtk-devel packages installed, and I am able to compile other gtk
> apps, but the vim build gives me a vim without GUI. I have tried configure
> --enable-gui=gtk but it doesn't help.
>
> I do not remember any problem with previous versions.

After running configure, look in src/auto/config.log.
Search for "GTK".  It should tell you what is missing.

Thank you very much. I actually didn't find a reference to gtk but searching for gui turned up a failure to find Intrinsic.h

Here is the part of the configure script responsible:

$as_echo_n "checking if X11 header files can be found... " >&6; }
  cflags_save=$CFLAGS
  CFLAGS="$CFLAGS $X_CFLAGS"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <X11/Xlib.h>
#include <X11/Intrinsic.h>
int
main ()
{

  ;
  return 0;
}
_ACEOF

The whole problem was a result of the way I installed my development support on CentOS, which was by installing the gtk3-devel package with yum (dnf). This installed the X development packages necessary for gtk, but it didn't install the (obsolescent) libXt-devel package. Installing that allowed a gui compilation. Perhaps this check in the configure script needs to be updated.

Anyway, I now have a working GUI vim!

Thanks again!

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAPKXbB4RA38NW0yF6C4cyUG3_ed3_e9Vq2wLFEdKYFTAGwqQoQ%40mail.gmail.com.

No comments: