google / google/shaderc

Build errors on Ubuntu 22.04.1

Open
#1,306 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
2.2k
Forks
445
Avg merge
11h 6m
Merged PRs (30d)
6

Description

Ninja fails to build. Here's the output:
[log.txt](https://github.com/google/shaderc/files/10608280/log.txt)

I've tried adding cmake flags to compile with c++14, as recommended by the solution here: [https://github.com/google/googletest/issues/3934](url)

It didn't work, so I checked out 'known-good' and got everything built and all tests passed. Still wondering why 'main' won't build, but it's easy to assume that googletest's compilation was faulty because the initial error ninja throws matches the issue linked above. So I grepped for "set(CMAKE_CXX_STANDARD" and found found a bunch of directives to compile with c++11, and none for c++14. Maybe, googletest must be compiled using c++14, or maybe I have a fundamental misunderstanding of building these tools (is the 'known-good' used more often than 'main'?). I still use make, so all these cmake lists and dependencies look like witchcraft.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.