Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cmake build doesn't work now #28798

Closed
surmish opened this issue May 17, 2024 · 1 comment
Closed

Cmake build doesn't work now #28798

surmish opened this issue May 17, 2024 · 1 comment
Labels
bug issues reporting wrong behavior build building and installing Neovim using the provided scripts

Comments

@surmish
Copy link

surmish commented May 17, 2024

Problem

/home/urmishs/tools/neovim/build  master ?2                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  urmishs@dc6-xterm-227 18:05:06
❯ cmake -DCMAKE_BUILD_TYPE=Release -DLUV_LIBRARY:STRING=-Wl,/home/urmishs/lib/lua/5.1/luv.so -DCMAKE_INSTALL_PREFIX=/home/urmishs/tools/usr ..
-- Found GNU Make at /home/urmishs/tools/usr/bin/gmake

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Neovim doesn't support in-tree builds.  It's recommended that you
use a build/ subdirectory:
    mkdir build
    cd build
    cmake <OPTIONS> ..

Make sure to cleanup some CMake artifacts from this failed build
with:
    rm -rf CMakeFiles CMakeCache.txt
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

CMake Error at cmake/PreventInTreeBuilds.cmake:19 (message):
  Stopping build.
Call Stack (most recent call first):
  cmake/PreventInTreeBuilds.cmake:23 (PreventInTreeBuilds)
  CMakeLists.txt:39 (include)


-- Configuring incomplete, errors occurred!

Steps to reproduce

git clone <neovim repo>
cd neovim
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DLUV_LIBRARY:STRING=-Wl,/home/urmishs/lib/lua/5.1/luv.so -DCMAKE_INSTALL_PREFIX=/home/urmishs/tools/usr

Expected behavior

Should build as the configuration as usual, I've been using this command for a while now.

Neovim version (nvim -v)

0.10.1 @06135cc21571b2707121e31176f544a0e0901e1d

Vim (not Nvim) behaves the same?

NA

Operating system/version

linux centos

Terminal name/version

fish shell (ssh via wezterm)

$TERM environment variable

xterm-256color

Installation

git clone

@surmish surmish added the bug issues reporting wrong behavior label May 17, 2024
@zeertzjq zeertzjq added the build building and installing Neovim using the provided scripts label May 17, 2024
@surmish
Copy link
Author

surmish commented May 17, 2024

Sorry, issue at my end. It works fine on the other machine I have.

@surmish surmish closed this as completed May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug issues reporting wrong behavior build building and installing Neovim using the provided scripts
Projects
None yet
Development

No branches or pull requests

2 participants