Building VulkanSceneGraph with premake5 #1530
Replies: 3 comments 7 replies
-
Is there a reason why cmake isn't good enough for you? As for suggestion "I found out that most (if not all) compilers do NOT support "LINE" in constexpr." could you provide some further information/links on this. This is odd because lots of folks are using the VSG with different compilers across numerous platforms without issues. You are the first one to ever suggest there might be an issue here. So something odd is happening on your build, I presume because premake5 is introducing problems for some reason. Personally, I'd suggest just building and installing the VSG using CMake generated build system and then just use premark5 in your own application. |
Beta Was this translation helpful? Give feedback.
-
That simply can't be true. Beyond the theoretical, we know that the major C++17-compatible compilers (GCC, Clang and MSVC) can all compile this code just fine when passed the intended compiler flags. If you absolutely must replace the build system with premake, you should start by using CMake to configure a build system, and then look at the compiler flags it uses and set the same ones via premake. If you make an MSBuild solution, then in Visual Studio, you can right click the VSG
Additional options
If you use another generator, e.g. Ninja, then passing |
Beta Was this translation helpful? Give feedback.
-
This can be closed :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello hello!
Im currently working on building VulkanSceneGraph using premake5 instead of cmake.
Its nearly finished (at least for my current needs) configuring.
But I keep running into an issue inside Viewer.cpp (and if Instrumentation is enabled, also in Instrumentation.h). More precicely, lines that do the following:
static constexpr ... "__LINE__" -> gibing the error "error C2131: expression did not evaluate to a constant".
I found out that most (if not all) compilers do NOT support "__LINE__" in constexpr.
One post suggested to add /Zi as buildoption and remove /ZI. This effectively disabled "Edit and Continue" in debug builds.
Its not working for me and I dont ask you to fix my problem.
However, it would be nice if you can explain how or which option and where you enable/disable something, such that you can actually compile the code.
I've been building VulkanSceneGraph before using cmake and didn't run into this issue. But I dont find the cmake-script lines that would change the building/compilation process.
Additional Info:
Im on Windows 10, Visual Studio 2022 (latest build 17.14.x) and building with C++17
Thanks alot!
Beta Was this translation helpful? Give feedback.
All reactions