How do I build vim with clipboard support.

27 zobrazení
Přeskočit na první nepřečtenou zprávu

Jose Ignacio Seco

nepřečteno,
4. 5. 2024 5:44:424. 5.
komu: vim_use
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'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

Thank you.

Gary Johnson

nepřečteno,
4. 5. 2024 10:38:554. 5.
komu: vim_use
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

Tony Mechelynck

nepřečteno,
4. 5. 2024 12:32:454. 5.
komu: Gary Johnson, vim...@googlegroups.com
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.m...@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.

Jose Ignacio Seco

nepřečteno,
4. 5. 2024 17:38:054. 5.
komu: vim_use
It worked.
I had not installed all the dependencies to compile with X11.

Thank you very much.
Odpovědět všem
Odpověď autorovi
Přeposlat
0 nových zpráv