Giter Site home page Giter Site logo

Comments (2)

magicse avatar magicse commented on July 3, 2024

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 

from real-esrgan-ncnn-vulkan.

rien333 avatar rien333 commented on July 3, 2024

@xinntao This is no longer "just a bunch of cmake deprecation warnings", but I'm getting actual errors now. In other words: this project fails to build nowadays. Worse yet, it is actually being actively used by various upstream projects, such as https://gitlab.gnome.org/World/Upscaler.

The complete cmake log:

-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found glslangValidator: /usr/bin/glslangValidator
-- Using glslang install located at /usr/lib/cmake
CMake Warning at /usr/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 Error at /usr/lib/cmake/OSDependentTargets.cmake:8 (add_library):
  add_library cannot create ALIAS target "OSDependent" because target
  "glslang::OSDependent" does not already exist.
Call Stack (most recent call first):
  CMakeLists.txt:110 (include)


CMake Error at CMakeLists.txt:111 (include):
  include could not find requested file:

    /usr/lib/cmake/OGLCompilerTargets.cmake


CMake Warning at /usr/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 Error at /usr/lib/cmake/glslangTargets.cmake:12 (add_library):
  add_library cannot create ALIAS target "MachineIndependent" because target
  "glslang::MachineIndependent" does not already exist.
Call Stack (most recent call first):
  CMakeLists.txt:116 (include)


CMake Error at /usr/lib/cmake/glslangTargets.cmake:13 (add_library):
  add_library cannot create ALIAS target "GenericCodeGen" because target
  "glslang::GenericCodeGen" does not already exist.
Call Stack (most recent call first):
  CMakeLists.txt:116 (include)


CMake Warning at /usr/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)


-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Configuring incomplete, errors occurred!

The cmake invocation (ran from a fully up-to-date arch linux):

    cmake -B build -S "$_pkgname/src" \
    -DBUILD_SHARED_LIBS=0 \
    -DUSE_SYSTEM_NCNN=1 \
    -DUSE_SYSTEM_WEBP=1 \
    -DGLSLANG_TARGET_DIR=/usr/lib/cmake \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -Wno-dev

from real-esrgan-ncnn-vulkan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.