Build Minetest in Visual Studio error

Post Reply
nami32
New member
Posts: 2
Joined: Tue Aug 20, 2024 12:59

Build Minetest in Visual Studio error

by nami32 » Post

I to Build Minetest in Visual Studio 2019
1>------ Build started: Project: GenerateVersion, Configuration: Release x64 ------

Error List

1

Code: Select all

Severity	Code	Description	Project	File	Line	Suppression State
Error (active)	E0065	expected a ';'	minetest	U:\_minetest\minetest-5.9.0\lib\catch2\catch_amalgamated.hpp	5274	
error <T>{}>

Code: Select all

5273 struct capture_by_value
5274		: std::integral_constant<bool, std::is_arithmetic<T>{}> {};
2

Code: Select all

Severity	Code	Description	Project	File	Line	Suppression State
Error (active)	E2624	a friend template declaration with a default template argument must be the only declaration (first declared at line 3129 of "U:\_minetest\minetest-5.9.0\lib\catch2\catch_amalgamated.hpp")	catch2	U:\_minetest\minetest-5.9.0\lib\catch2\catch_amalgamated.hpp	3129
error operator

Code: Select all

3129 friend bool operator == ( const T& lhs, Approx const& rhs ) {
            auto lhs_v = static_cast<double>(lhs);
            return rhs.equalityComparisonImpl(lhs_v);
        }
3

Code: Select all

Severity	Code	Description	Project	File	Line	Suppression State
Error (active)	E0289	no instance of constructor "Catch::TextFlow::AnsiSkippingString::const_iterator::const_iterator" matches the argument list	catch2	U:\_minetest\minetest-5.9.0\lib\catch2\catch_amalgamated.hpp	11022	
error *this

Code: Select all

const_iterator operator++( int ) {
11022           iterator prev( *this );
                operator++();
                return prev;
            }
4

Code: Select all

Severity	Code	Description	Project	File	Line	Suppression State
Error (active)	E0312	no suitable user-defined conversion from "Catch::TextFlow::AnsiSkippingString::iterator" to "Catch::TextFlow::AnsiSkippingString::const_iterator" exists	catch2	U:\_minetest\minetest-5.9.0\lib\catch2\catch_amalgamated.hpp	11024	

Code: Select all

const_iterator operator++( int ) {
                iterator prev( *this );
                operator++();
11024           return prev;
            }
5

Code: Select all

Severity	Code	Description	Project	File	Line	Suppression State
Error	C2338	You've instantiated std::atomic<T> with sizeof(T) equal to 2/4/8 and alignof(T) < sizeof(T). Before VS 2015 Update 2, this would have misbehaved at runtime. VS 2015 Update 2 was fixed to handle this correctly, but the fix inherently changes layout and breaks binary compatibility. Please define _ENABLE_ATOMIC_ALIGNMENT_FIX to acknowledge that you understand this, and that everything you're linking has been compiled with VS 2015 Update 2 (or later). (compiling source file U:\_minetest\minetest-5.9.0\src\mapgen\mg_biome.cpp)	minetest	C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.20.27508\include\atomic	526	
error static_assert(alignof(_Ty) >= sizeof(_My_int),

Code: Select all

#ifndef _ENABLE_ATOMIC_ALIGNMENT_FIX
    static_assert(alignof(_Ty) >= sizeof(_My_int),
        "You've instantiated std::atomic<T> with sizeof(T) equal to 2/4/8 and alignof(T) < sizeof(T). "
        "Before VS 2015 Update 2, this would have misbehaved at runtime. "
        "VS 2015 Update 2 was fixed to handle this correctly, "
        "but the fix inherently changes layout and breaks binary compatibility. "
        "Please define _ENABLE_ATOMIC_ALIGNMENT_FIX to acknowledge that you understand this, "
        "and that everything you're linking has been compiled with VS 2015 Update 2 (or later).");
#endif // _ENABLE_ATOMIC_ALIGNMENT_FIX

User avatar
srifqi
Member
Posts: 577
Joined: Sat Jun 28, 2014 04:31
GitHub: srifqi
IRC: srifqi
In-game: srifqi
Location: Indonesia

Re: Build Minetest in Visual Studio error

by srifqi » Post

Can you post your configuration (e.g. CMake configuration)?
Saya dari Indonesia! · Terjemahkan Minetest! · my mods · My nickname in IPA: /es.rif.qi/

Post Reply