On Fri, Jul 20, 2018 at 12:39 PM, <[email protected]> wrote: > Hi, > > I was trying to compile Vim with GUI on Fedora Server. I used configure > options: > > ./configure --with-x=yes --with-tlib=ncurses --with-features=huge > --enable-gui=gtk3 > > and compilation went smoothly, but when I ran created binary, it ends with > error: > > E25: GUI cannot be used: Not enabled at compile time > > so I checked build log, where I found: > > checking for X... (cached) no > checking if X11 header files can be found... no > checking --enable-gui argument... no GUI support > > , then I remembered the server doesn't have X11 installed. It works correctly > after X devel packages installation, but IMHO configure script should fail > when the option, which is explicitly set, cannot be satisfied. > It would require patch for configure.ac, but I'm not strong with autoconf... > would someone mind looking into it?
It is not a bug, it is a feature. Whenever the arguments to configure request a certain feature, and it doesn't find the necessary software, it falls back on disabling it. Both the console output from configure and the more verbose config.log will mention what was looked for and not found. If you log the console output (e.g. by adding «2>&1 |tee make.log» at the end of the "make config" or "make reconfig" command-line, you can find out there what went wrong; and if you don't, you can still find out what went wrong by inspecting the src/auto/config.log (or the src/shadow/auto/config.log if you use a shadow directory). Also, before running "make install", it is a good idea (especially the first time) to run ./vim --version in your src (or shadow) directory to check if you got all the features you wanted. Having the necessary libraries to _run_ a program using a certain feature is usually not enough to _compile_ such a program: for that, you need the corresponding "development" package(s), where the required source header files are to be found. Such packages usually (depending on your distro) have -dev or -devel at the end of their names; the way to find them may also vary according to the package management software used by your distro. Best regards, Tony. -- -- You received this message from the "vim_dev" 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_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
