From 11b38c464825172a23c1172e29f727fc82c8fec9 Mon Sep 17 00:00:00 2001 From: Alexei Kartashov Date: Sat, 25 Jan 2025 02:38:36 +0300 Subject: [PATCH 1/2] fix: stdc++fs is implemented in c++17 and does not exist in some linux distr --- CMakeLists.txt | 2 +- vctest/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index abfd430e..9f773002 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -63,7 +63,7 @@ else() endif() if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") - set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -no-pie -lstdc++fs") + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -no-pie") endif() if(WIN32) diff --git a/vctest/CMakeLists.txt b/vctest/CMakeLists.txt index 916eef31..6f195fe9 100644 --- a/vctest/CMakeLists.txt +++ b/vctest/CMakeLists.txt @@ -35,7 +35,7 @@ else() endif() if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") - set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -no-pie -lstdc++fs") + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -no-pie") endif() target_include_directories( From 6629d07bc27ff334af83ec05d5f4afbfb8d38336 Mon Sep 17 00:00:00 2001 From: Alexei Kartashov Date: Sat, 25 Jan 2025 02:40:02 +0300 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20"=E2=80=98find=E2=80=99=20is=20not?= =?UTF-8?q?=20a=20member=20of=20=E2=80=98std=E2=80=99"=20(import=20algorit?= =?UTF-8?q?hm)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/voxels/blocks_agent.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/voxels/blocks_agent.hpp b/src/voxels/blocks_agent.hpp index 15813bc9..3bee3685 100644 --- a/src/voxels/blocks_agent.hpp +++ b/src/voxels/blocks_agent.hpp @@ -14,6 +14,7 @@ #include "maths/voxmaths.hpp" #include +#include #include #include #include