Saturday, May 4, 2024

Re: How do I build vim with clipboard support.

On Sat, May 4, 2024 at 4:38 PM Gary Johnson <garyjohn@spocom.com> wrote:
>
> On 2024-05-04, Jose Ignacio Seco wrote:
> > I'm building with the huge set of features.
> >
> > I cannot see any option related when running configure --help.
> > Then I don't see any error regarding clipboard when configuring or building.
>
> I don't think the absence of support for the clipboard shows up as
> an error; it just shows up as a "no" after some configure check.
>
> > I'm also using --with-x, and installed the related libraries, as it seemed to
> > solve the problem for some people, but not for me.
> >
> > I'm building in Ubuntu 23.10.
> >
> > This is my configuration:
> > ./configure --prefix=/home/nacho/.local \
> > � � � � � � --with-features=huge \
> > � � � � � � --enable-pythoninterp \
> > � � � � � � --enable-python3interp \
> > � � � � � � --enable-libsodium=yes \
> > ��� � � � � --enable-luainterp=yes \
> > � � � � � � --enable-largefile \
> > � � � � � � --with-x
>
> Before building vim for the first time on a machine running Ubuntu,
> I run this:
>
> $ sudo apt-get build-dep vim-gtk3
>
> Regards,
> Gary

Try adding
--enable-gui=gtk3
to your configure arguments. This ought to build a GUI-enabled Vim
that can also be used in Console mode when started as vim rather than
gvim.

I also recommend not to run configure separately, as in some
circumstances a plain "make" will start by invoking configure with
whatever parameters it finds in the environment (or the defaults if
none), but to set configure arguments in the environment, so they will
be set correctly even if make reconfigures your Vim build. Here is an
example (for the bash shell):

export CONF_OPT_GUI='--enable-gui=gtk3'
export CONF_OPT_PERL='--enable-perlinterp'
export CONF_OPT_PYTHON='--enable-pythoninterp'
export CONF_OPT_PYTHON3='--disable-python3interp'
export CONF_OPT_TCL='--enable-tclinterp'
export CONF_OPT_RUBY='--enable-rubyinterp'
export CONF_OPT_LUA='--enable-luainterp'
export CONF_OPT_MZSCHEME='--disable-mzschemeinterp'
export CONF_OPT_CSCOPE='--enable-cscope'
export CONF_OPT_TERMINAL='--enable-terminal'
export CONF_OPT_AUTOSERVE='--enable-autoservername'
export CONF_OPT_FEAT='--with-features=huge'
export CONF_OPT_COMPBY='"--with-compiledby=antoine.mechelynck@gmail.com"'

If written as a script, this must be sourced, not executed, by bash so
that the values remain in the environment after bash has read them.

If you decide to use this, you will need to change at least the last
line and possibly add, change or remove others depending on your
preferred configuration. The names of the environment variables used
by Vim make and their possible values can be found in the src/Makefile
at lines 207 to 640.

Best regards,
Tony.

--
--
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/CAJkCKXsG1iu%3DyhLKfJcY1-iJt-%2ByGKxgjj-8KX-yrQdx%3Dve81A%40mail.gmail.com.

No comments:

Post a Comment