Closed Calinou closed 9 months ago
Should be fixed in commit 05dbee9
Should be fixed in commit 05dbee9
This seems to work, but I get another error further in the build process:
$ cmake --build build -j1
[0/2] Re-checking globbed directories...
[1/3] Building CXX object wad2gltf/CMakeFiles/wad2gltf.dir/map_reader.cpp.o
FAILED: wad2gltf/CMakeFiles/wad2gltf.dir/map_reader.cpp.o
/usr/lib64/ccache/c++ -DFASTGLTF_DISABLE_CUSTOM_MEMORY_POOL=0 -DFASTGLTF_ENABLE_DEPRECATED_EXT=0 -DFASTGLTF_USE_64BIT_FLOAT=0 -DFASTGLTF_USE_CUSTOM_SMALLVECTOR=0 -I/home/hugo/Documents/Git/DethRaid/wad2gltf/build/_deps/cli11-src/include -I/home/hugo/Documents/Git/DethRaid/wad2gltf/build/_deps/earcut-src/include -I/home/hugo/Documents/Git/DethRaid/wad2gltf/build/_deps/fastgltf-src/include -I/home/hugo/Documents/Git/DethRaid/wad2gltf/build/_deps/glm-src -I/home/hugo/Documents/Git/DethRaid/wad2gltf/build/_deps/stb-src -O3 -DNDEBUG -std=gnu++23 -MD -MT wad2gltf/CMakeFiles/wad2gltf.dir/map_reader.cpp.o -MF wad2gltf/CMakeFiles/wad2gltf.dir/map_reader.cpp.o.d -o wad2gltf/CMakeFiles/wad2gltf.dir/map_reader.cpp.o -c /home/hugo/Documents/Git/DethRaid/wad2gltf/wad2gltf/map_reader.cpp
In file included from /home/hugo/Documents/Git/DethRaid/wad2gltf/wad2gltf/wad.hpp:12,
from /home/hugo/Documents/Git/DethRaid/wad2gltf/wad2gltf/texture_reader.hpp:5,
from /home/hugo/Documents/Git/DethRaid/wad2gltf/wad2gltf/mesh.hpp:9,
from /home/hugo/Documents/Git/DethRaid/wad2gltf/wad2gltf/map_reader.hpp:5,
from /home/hugo/Documents/Git/DethRaid/wad2gltf/wad2gltf/map_reader.cpp:1:
/home/hugo/Documents/Git/DethRaid/wad2gltf/wad2gltf/wad_name.hpp:3: warning: "__STDC_WANT_LIB_EXT1__" redefined
3 | #define __STDC_WANT_LIB_EXT1__ 1
|
/home/hugo/Documents/Git/DethRaid/wad2gltf/wad2gltf/wad.hpp:3: note: this is the location of the previous definition
3 | #define __STDC_WANT_LIB_EXT1__ 1
|
/home/hugo/Documents/Git/DethRaid/wad2gltf/wad2gltf/map_reader.cpp: In function ‘Map create_mesh_from_map(const wad::WAD&, const MapExtractionOptions&)’:
/home/hugo/Documents/Git/DethRaid/wad2gltf/wad2gltf/map_reader.cpp:237:10: error: ‘print’ is not a member of ‘std’; did you mean ‘rint’?
237 | std::print(std::cout, "Loaded map lump {}\n", itr->name);
| ^~~~~
| rint
ninja: build stopped: subcommand failed.
Hmm... std::print
is a C++23 function, maybe your standard library doesn't implement it yet
Hmm...
std::print
is a C++23 function, maybe your standard library doesn't implement it yet
Indeed, I can get it to build if I comment out all instances by running:
sed -i "s/std::print/\/\/std::print/g" **/*.cpp
The program works great after that, although you won't see some of the output messages (--help
still works).
I suggest updating the README to document that a C++23-compatible compiler is required.
Well, the CMake file already says the project requires C++23 - but I don't know how to make CMake differentiate between "full support for C++23" and "experimental support for C++23"
I've gone ahead and removed the C++23 features I was using, now it'll compile with C++20
It builds great out of the box now, thanks :slightly_smiling_face:
On Fedora 39 and GCC 13.2.1, I get the following error when building: