GithubHelp home page GithubHelp logo

Comments (7)

TonyBarbour avatar TonyBarbour commented on August 14, 2024 1

Running CMake at the root of repo to create all the makefiles and then going to the Hologram directory and running make builds just Hologram - is that sufficient? I don't think we need to support running CMake in subdirectories

from vulkansamples.

olvaffe avatar olvaffe commented on August 14, 2024

Hologram relies on the top-level CMakeLists.txt to perform the check. Is it advised each subdirectory perform the check itself?

Or were you trying to run cmake from within Hologram? That would make sense, but Linux build would still fail because FindXCB.cmake would be missing.

from vulkansamples.

SaschaWillems avatar SaschaWillems commented on August 14, 2024

Or were you trying to run cmake from within Hologram? That would make sense, but Linux build would still fail because FindXCB.cmake would be missing.

Exactly. I only wanted to compile the Hologram demo without having to build all dependencies for the other examples, so I used it's CMakeLists.txt. On windows this works fine.

from vulkansamples.

olvaffe avatar olvaffe commented on August 14, 2024

There are common setups (FindXCB.cmake included) that cannot be found in Hologram's CMakeLists.txt. I guess the right way here is for the top-level CMakeLists.txt to make samples and their dependencies optional.

from vulkansamples.

ChristophHaag avatar ChristophHaag commented on August 14, 2024

FindXCB.cmake is in extra-cmake-modules

According to http://api.kde.org/ecm/manual/ecm-find-modules.7.html adding

find_package(ECM REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_FIND_MODULE_DIR})

in front of find_package(XCB REQUIRED) lets cmake find it.

I also had to add set_property(TARGET Hologram PROPERTY CXX_STANDARD 11) because this cmakelists file doesn't set c++11.

Oh and from the Hologram directory, you also need to put a glslang build e.g. ln -s /wherever/glslang ../../../glslang.

With all that I could build it "standalone".
Tl;dr: ChristophHaag@c491ec9

Does LunarG want to support "standalone" builds of the samples like that?

from vulkansamples.

TonyBarbour avatar TonyBarbour commented on August 14, 2024

Also, after running CMake from the root of the repo, running "make Hologram" will also just make the Hologram sample

from vulkansamples.

TonyBarbour avatar TonyBarbour commented on August 14, 2024

Closing - please open a new issue if there is still a problem

from vulkansamples.

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.