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

Unable to build Amber_Cmake Error_INTERFACE_INCLUDE_DIRECTORIES #984

Closed
varnam379 opened this issue May 12, 2020 · 2 comments
Closed

Unable to build Amber_Cmake Error_INTERFACE_INCLUDE_DIRECTORIES #984

varnam379 opened this issue May 12, 2020 · 2 comments

Comments

@varnam379
Copy link

Trying to build Amber on Windows using:
cmake -GNinja -DVulkan_LIBRARY="C:\VulkanSDK\1.2.135.0" ../..

Getting error as follows:

CMake Error in samples/CMakeLists.txt:
  Target "Vulkan::Vulkan" contains relative path in its
  INTERFACE_INCLUDE_DIRECTORIES:

    "C:/VulkanSDK/1.2.135.0/include"

Here is the complete output after cmake:

cmake -GNinja -DVulkan_LIBRARY="C:\VulkanSDK\1.2.135.0" ../..
-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++.exe
-- Check for working CXX compiler: /usr/bin/c++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using python3
-- Found PythonInterp: /cygdrive/c/Python37/python.exe (found suitable version "3.7.6", minimum required is "3")
-- Amber enable SPIRV-Tools: TRUE
-- Amber enable Shaderc: TRUE
-- Amber enable tests: TRUE
-- Amber enable samples: TRUE
-- Amber enable lodepng: TRUE
-- Amber enable SwiftShader: OFF
-- Amber enable DXC: FALSE
-- Amber enable Clspv: FALSE
-- Could NOT find Dawn (missing: Dawn_INCLUDE_DIR Dawn_GEN_INCLUDE_DIR Dawn_LIBRARY Dawn_native_LIBRARY)
-- Amber: Did not find Dawn
-- Amber: Checking for CTS Vulkan header
-- Found Vulkan: C:/VulkanSDK/1.2.135.0
-- Amber: Using Vulkan from Vulkan SDK at C:\VulkanSDK\1.2.135.0
-- No build type selected, default to Debug
-- Found PythonInterp: /cygdrive/c/Python37/python.exe (found version "3.7.6")
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE
-- Found PythonInterp: /cygdrive/c/Python37/python.exe (found suitable version "3.7.6", minimum required is "3")
-- optimizer enabled
-- Shaderc: build type is "Debug".
-- Configuring Shaderc to avoid building tests.
-- asciidoctor was not found - no documentation will be generated
-- Performing Test COMPILER_SUPPORTS_FALLTHROUGH_WARNING
-- Performing Test COMPILER_SUPPORTS_FALLTHROUGH_WARNING - Success
-- Performing Test COMPILER_SUPPORTS_EXTRA_SEMI_WARNING
-- Performing Test COMPILER_SUPPORTS_EXTRA_SEMI_WARNING - Success
CMake Warning (dev) at third_party/spirv-headers/CMakeLists.txt:52 (option):
  Policy CMP0077 is not set: option() honors normal variables.  Run "cmake
  --help-policy CMP0077" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  For compatibility with older versions of CMake, option is clearing the
  normal variable 'SPIRV_HEADERS_SKIP_EXAMPLES'.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Installing SPIRV-Header
/cygdrive/c/amber
TRUE
/cygdrive/c/amber
TRUE
/cygdrive/c/amber
TRUE
/cygdrive/c/amber
TRUE
/cygdrive/c/amber
TRUE
/cygdrive/c/amber
TRUE
-- Configuring done
CMake Error in samples/CMakeLists.txt:
  Target "Vulkan::Vulkan" contains relative path in its
  INTERFACE_INCLUDE_DIRECTORIES:

    "C:/VulkanSDK/1.2.135.0/include"


-- Generating done
-- Build files have been written to: /cygdrive/c/amber/out/Debug

Any help on fixing this issue?

@paulthomson
Copy link
Collaborator

Hi. The Amber repo is here: https://github.com/google/amber
So you might want to file an issue over there.

This looks like it might be an issue with mixing cygwin and non-cygwin tools. Is your CMake provided by cygwin by any chance? It might work better if you use a non-cygwin CMake.

@paulthomson
Copy link
Collaborator

It looks like you have opened an issue in Amber:
google/amber#856

so I will close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants