svenstaro / glsl-language-server

Language server implementation for GLSL
MIT License
176 stars 29 forks source link

GLSLLS build failed on neovim #60

Open gGameDevelop opened 22 hours ago

gGameDevelop commented 22 hours ago

Im installing glslls with mason but it show me this on the end: ◍ glslls ▼ Displaying full log Cloning git repository "https://github.com/svenstaro/glsl-language-server.git"… Cloning into '.'... From https://github.com/svenstaro/glsl-language-server

gGameDevelop commented 22 hours ago

I'm using Window10 btw.

svenstaro commented 21 hours ago

As you can see from the error: CMake Error: Absolute paths are required for --install-prefix you're calling the compilation wrong. Can you show exactly how you're building it?

gGameDevelop commented 21 hours ago

this is Mason.nvim log,

Its lspservers and third party dependencies manager for neovim.

gGameDevelop commented 20 hours ago

I try to build it by hand but it give me:

Microsoft Windows [version 10.0.19045.5011] (c) Microsoft Corporation. Tous droits réservés.

C:\Users\ucer\Documents\C++\LSP\glsl-language-server>git submodule update --init

C:\Users\ucer\Documents\C++\LSP\glsl-language-server>cmake -Bbuild -GNinja CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake.

Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions.

-- No build type selected, default to Debug -- Google Mock was not found - tests based on that will not build -- spirv-tools not linked - illegal SPIRV may be generated for HLSL CMake Deprecation Warning at externals/fmt/CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake.

Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions.

-- Version: 7.0.3 -- Build type: -- CXX_STANDARD: 11 -- Required features: cxx_variadic_templates CMake Deprecation Warning at externals/json/CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake.

Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions.

-- Using the single-header code from C:/Users/ucer/Documents/C++/LSP/glsl-language-server/externals/json/single_include/ -- Operating system: Windows-10.0.19045 -- Compiler: c++.exe (x86_64-win32-seh-rev0, Built by MinGW-W64 project) 8.1.0; Copyright (C) 2018 Free Software Foundation, Inc.; This is free software; see the source for copying conditions. There is NO; warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -- Configuring done (4.9s) -- Generating done (1.1s) -- Build files have been written to: C:/Users/ucer/Documents/C++/LSP/glsl-language-server/build

C:\Users\ucer\Documents\C++\LSP\glsl-language-server>ninja -Cbuild ninja: error: 'externals/glslang/glslang/libglslang.a', needed by 'glslls.exe', missing and no known rule to make it ninja: Entering directory `build'

C:\Users\ucer\Documents\C++\LSP\glsl-language-server>

svenstaro commented 13 hours ago

I'll be honest, I never built this on Windows. It should work, I don't see why not. However, I don't know why the lib isn't getting built. Can you check whether maybe it has a different name on Windows? Check for the glslang lib.