v1993 / GLSLang-cmake

Modern CMake find module for GLSLang
BSD 3-Clause "New" or "Revised" License
2 stars 1 forks source link

need help #1

Open magicse opened 2 years ago

magicse commented 2 years ago

Hi, thank you for your work. Could you help me. I have this CMakeLists.txt file. From this project Real-ESRGAN-ncnn-vulkan But I always get next errors from Cmake, GLSLang_DIR - pointed to Z:/AI_SDK/CPP_GFPGAN/Real-ESRGAN-ncnn-vulkan/vulkan/glslang-master-tot/Build/install/lib/cmake

Found glslangValidator: Z:/AI_SDK/CPP_GFPGAN/Real-ESRGAN-ncnn-vulkan/vulkan/Vulkan_SDK/Bin/glslangValidator.exe
Using glslang install located at Z:/AI_SDK/CPP_GFPGAN/Real-ESRGAN-ncnn-vulkan/vulkan/glslang-master-tot/Build/install/lib/cmake
CMake Warning at Z:/AI_SDK/CPP_GFPGAN/Real-ESRGAN-ncnn-vulkan/vulkan/glslang-master-tot/Build/install/lib/cmake/OSDependentTargets.cmake:2 (message):
  Using `OSDependentTargets.cmake` is deprecated: use `find_package(glslang)`
  to find glslang CMake targets.
Call Stack (most recent call first):
  CMakeLists.txt:110 (include)

CMake Warning at Z:/AI_SDK/CPP_GFPGAN/Real-ESRGAN-ncnn-vulkan/vulkan/glslang-master-tot/Build/install/lib/cmake/OGLCompilerTargets.cmake:2 (message):
  Using `OGLCompilerTargets.cmake` is deprecated: use `find_package(glslang)`
  to find glslang CMake targets.
Call Stack (most recent call first):
  CMakeLists.txt:111 (include)

CMake Warning at Z:/AI_SDK/CPP_GFPGAN/Real-ESRGAN-ncnn-vulkan/vulkan/glslang-master-tot/Build/install/lib/cmake/HLSLTargets.cmake:2 (message):
  Using `HLSLTargets.cmake` is deprecated: use `find_package(glslang)` to
  find glslang CMake targets.
Call Stack (most recent call first):
  CMakeLists.txt:114 (include)

CMake Warning at Z:/AI_SDK/CPP_GFPGAN/Real-ESRGAN-ncnn-vulkan/vulkan/glslang-master-tot/Build/install/lib/cmake/glslangTargets.cmake:2 (message):
  Using `glslangTargets.cmake` is deprecated: use `find_package(glslang)` to
  find glslang CMake targets.
Call Stack (most recent call first):
  CMakeLists.txt:116 (include)

CMake Warning at Z:/AI_SDK/CPP_GFPGAN/Real-ESRGAN-ncnn-vulkan/vulkan/glslang-master-tot/Build/install/lib/cmake/SPIRVTargets.cmake:2 (message):
  Using `SPIRVTargets.cmake` is deprecated: use `find_package(glslang)` to
  find glslang CMake targets.
Call Stack (most recent call first):
  CMakeLists.txt:117 (include)

CMake Error at CMakeLists.txt:245 (message):
  The submodules were not downloaded! Please update submodules with "git
  submodule update --init --recursive" and try again.

Configuring incomplete, errors occurred!
magicse commented 2 years ago

Structure of GLSLANG installation folder

| install folder
|
+---lib
|   |   libOSDependentd.a
|   |   libglslangd.a
|   |   libMachineIndependentd.a
|   |   libGenericCodeGend.a
|   |   libOGLCompilerd.a
|   |   libglslang-default-resource-limitsd.a
|   |   libSPVRemapperd.a
|   |   libSPIRVd.a
|   |   libHLSLd.a
|   |
|   +---cmake
|   |   OSDependentTargets.cmake
|   |   glslangTargets.cmake
|   |   OGLCompilerTargets.cmake
|   |   glslangValidatorTargets.cmake
|   |   spirv-remapTargets.cmake
|   |   glslang-default-resource-limitsTargets.cmake
|   |   SPVRemapperTargets.cmake
|   |   SPIRVTargets.cmake
|   |   HLSLTargets.cmake
|   |
|   \---glslang
|   glslang-targets.cmake
|   glslang-targets-debug.cmake
|   glslang-config.cmake
|   glslang-config-version.cmake
|
+---include
|   \---glslang
|   |   build_info.h
|   |
|   +---Public
|   |   ShaderLang.h
|   |
|   +---Include
|   |   arrays.h
|   |   BaseTypes.h
|   |   Common.h
|   |   ConstantUnion.h
|   |   glslang_c_interface.h
|   |   glslang_c_shader_types.h
|   |   InfoSink.h
|   |   InitializeGlobals.h
|   |   intermediate.h
|   |   PoolAlloc.h
|   |   ResourceLimits.h
|   |   ShHandle.h
|   |   SpirvIntrinsics.h
|   |   Types.h
|   |
|   +---MachineIndependent
|   |   |   attribute.h
|   |   |   glslang_tab.cpp.h
|   |   |   gl_types.h
|   |   |   Initialize.h
|   |   |   iomapper.h
|   |   |   LiveTraverser.h
|   |   |   localintermediate.h
|   |   |   ParseHelper.h
|   |   |   reflection.h
|   |   |   RemoveTree.h
|   |   |   Scan.h
|   |   |   ScanContext.h
|   |   |   SymbolTable.h
|   |   |   Versions.h
|   |   |   parseVersions.h
|   |   |   propagateNoContraction.h
|   |   |
|   |   \---preprocessor
|   |   PpContext.h
|   |   PpTokens.h
|   |
|   +---HLSL
|   |   hlslAttributes.h
|   |   hlslParseHelper.h
|   |   hlslTokens.h
|   |   hlslScanContext.h
|   |   hlslOpMap.h
|   |   hlslTokenStream.h
|   |   hlslGrammar.h
|   |   hlslParseables.h
|   |
|   \---SPIRV
|   bitutils.h
|   spirv.hpp
|   GLSL.std.450.h
|   GLSL.ext.EXT.h
|   GLSL.ext.KHR.h
|   GlslangToSpv.h
|   hex_float.h
|   Logger.h
|   SpvBuilder.h
|   spvIR.h
|   doc.h
|   SpvTools.h
|   disassemble.h
|   GLSL.ext.AMD.h
|   GLSL.ext.NV.h
|   NonSemanticDebugPrintf.h
|   SPVRemapper.h
|
\---bin
       glslangValidator.exe
       spirv-remap.exe