Skip to content

Changes needed for fedora compilation #30

@dov

Description

@dov

The following patch was needed to compile Gladius (HEAD: 841f359) on Fedora 41. There seems to be some mix up between the versions of nanovdb and imgui declared in vcpkg and the once used for compilation.

diff --git a/gladius/src/io/MeshExporter.cpp b/gladius/src/io/MeshExporter.cpp
index 1f29d43..c826956 100644
--- a/gladius/src/io/MeshExporter.cpp
+++ b/gladius/src/io/MeshExporter.cpp
@@ -370,7 +370,7 @@ namespace gladius::vdb
     {
         try
         {
-            auto handle = nanovdb::openToNanoVDB(m_grid);
+            auto handle = nanovdb::tools::openToNanoVDB(m_grid);
             std::vector<nanovdb::GridHandle<>> handles;
             handles.push_back(std::move(handle));
             nanovdb::io::writeGrids<nanovdb::HostBuffer, std::vector>(m_fileName.string(), handles);
diff --git a/gladius/src/io/VdbImporter.h b/gladius/src/io/VdbImporter.h
index f538bf4..f2f5bd9 100644
--- a/gladius/src/io/VdbImporter.h
+++ b/gladius/src/io/VdbImporter.h
@@ -177,7 +177,7 @@ namespace gladius::vdb
         //     return importFromGridUint8<T>(sdfGrid, primitives, scaling);
         // }
 
-        auto handle = nanovdb::openToNanoVDB(sdfGrid);
+        auto handle = nanovdb::tools::openToNanoVDB(sdfGrid);
         auto * grid = handle.grid<T>();
 
         if (!grid)
@@ -246,4 +246,4 @@ namespace gladius::vdb
         TriangleMesh m_mesh;
     };
 
-}
\ No newline at end of file
+}
diff --git a/gladius/src/ui/WelcomeScreen.cpp b/gladius/src/ui/WelcomeScreen.cpp
index a9e8e27..686d3a4 100644
--- a/gladius/src/ui/WelcomeScreen.cpp
+++ b/gladius/src/ui/WelcomeScreen.cpp
@@ -420,7 +420,7 @@ namespace gladius::ui
             const float listWidth = windowWidth - buttonWidth - 40.0f; // 20px padding on each side
 
             // Left side - actions
-            ImGui::BeginChild("ActionsPane", ImVec2(buttonWidth, 0), ImGuiChildFlags_None);
+            ImGui::BeginChild("ActionsPane", ImVec2(buttonWidth, 0), 0);
 
             ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(10, 10));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions