Fedora 42, skia-m124
I’m trying to compile Aseprite, but i keep getting an error on the ninja asprite
step; FAILED: third_party/json11/CMakeFiles/json11.dir/json11.cpp.o
. I get the error both using the script and comiling manually.
Complete error:
aseprite/third_party/json11/json11.cpp:95:32: error: unknown type name 'uint8_t'
95 | } else if (static_cast<uint8_t>(ch) <= 0x1f) {
| ^
/home/dalto/gitshit/aseprite/third_party/json11/json11.cpp:99:32: error: unknown type name 'uint8_t'
99 | } else if (static_cast<uint8_t>(ch) == 0xe2 && static_cast<uint8_t>(value[i+1]) == 0x80
| ^
/home/dalto/gitshit/aseprite/third_party/json11/json11.cpp:99:68: error: unknown type name 'uint8_t'
99 | } else if (static_cast<uint8_t>(ch) == 0xe2 && static_cast<uint8_t>(value[i+1]) == 0x80
| ^
/home/dalto/gitshit/aseprite/third_party/json11/json11.cpp:100:35: error: unknown type name 'uint8_t'
100 | && static_cast<uint8_t>(value[i+2]) == 0xa8) {
| ^
/home/dalto/gitshit/aseprite/third_party/json11/json11.cpp:103:32: error: unknown type name 'uint8_t'
103 | } else if (static_cast<uint8_t>(ch) == 0xe2 && static_cast<uint8_t>(value[i+1]) == 0x80
| ^
/home/dalto/gitshit/aseprite/third_party/json11/json11.cpp:103:68: error: unknown type name 'uint8_t'
103 | } else if (static_cast<uint8_t>(ch) == 0xe2 && static_cast<uint8_t>(value[i+1]) == 0x80
| ^
/home/dalto/gitshit/aseprite/third_party/json11/json11.cpp:104:35: error: unknown type name 'uint8_t'
104 | && static_cast<uint8_t>(value[i+2]) == 0xa9) {
| ^
/home/dalto/gitshit/aseprite/third_party/json11/json11.cpp:100:56: warning: result of comparison of constant 168 with expression of type 'const value_type' (aka 'const char') is always false [-Wtautological-constant-out-of-range-compare]
100 | && static_cast<uint8_t>(value[i+2]) == 0xa8) {
| ~~~~~~~~~~ ^ ~~~~
/home/dalto/gitshit/aseprite/third_party/json11/json11.cpp:99:89: warning: result of comparison of constant 128 with expression of type 'const value_type' (aka 'const char') is always false [-Wtautological-constant-out-of-range-compare]
99 | } else if (static_cast<uint8_t>(ch) == 0xe2 && static_cast<uint8_t>(value[i+1]) == 0x80
| ~~~~~~~~~~ ^ ~~~~
/home/dalto/gitshit/aseprite/third_party/json11/json11.cpp:99:45: warning: result of comparison of constant 226 with expression of type 'const char' is always false [-Wtautological-constant-out-of-range-compare]
99 | } else if (static_cast<uint8_t>(ch) == 0xe2 && static_cast<uint8_t>(value[i+1]) == 0x80
| ~~ ^ ~~~~
/home/dalto/gitshit/aseprite/third_party/json11/json11.cpp:104:56: warning: result of comparison of constant 169 with expression of type 'const value_type' (aka 'const char') is always false [-Wtautological-constant-out-of-range-compare]
104 | && static_cast<uint8_t>(value[i+2]) == 0xa9) {
| ~~~~~~~~~~ ^ ~~~~
/home/dalto/gitshit/aseprite/third_party/json11/json11.cpp:103:89: warning: result of comparison of constant 128 with expression of type 'const value_type' (aka 'const char') is always false [-Wtautological-constant-out-of-range-compare]
103 | } else if (static_cast<uint8_t>(ch) == 0xe2 && static_cast<uint8_t>(value[i+1]) == 0x80
| ~~~~~~~~~~ ^ ~~~~
/home/dalto/gitshit/aseprite/third_party/json11/json11.cpp:103:45: warning: result of comparison of constant 226 with expression of type 'const char' is always false [-Wtautological-constant-out-of-range-compare]
103 | } else if (static_cast<uint8_t>(ch) == 0xe2 && static_cast<uint8_t>(value[i+1]) == 0x80
| ~~ ^ ~~~~
/home/dalto/gitshit/aseprite/third_party/json11/json11.cpp:201:54: warning: unqualified call to 'std::move' [-Wunqualified-std-cast-call]
201 | explicit JsonString(string &&value) : Value(move(value)) {}
| ^
| std::
/home/dalto/gitshit/aseprite/third_party/json11/json11.cpp:210:58: warning: unqualified call to 'std::move' [-Wunqualified-std-cast-call]
210 | explicit JsonArray(Json::array &&value) : Value(move(value)) {}
| ^
| std::
/home/dalto/gitshit/aseprite/third_party/json11/json11.cpp:219:60: warning: unqualified call to 'std::move' [-Wunqualified-std-cast-call]
219 | explicit JsonObject(Json::object &&value) : Value(move(value)) {}
| ^
| std::
/home/dalto/gitshit/aseprite/third_party/json11/json11.cpp:261:72: warning: unqualified call to 'std::move' [-Wunqualified-std-cast-call]
261 | Json::Json(string &&value) : m_ptr(make_shared<JsonString>(move(value))) {}
| ^
| std::
/home/dalto/gitshit/aseprite/third_party/json11/json11.cpp:264:71: warning: unqualified call to 'std::move' [-Wunqualified-std-cast-call]
264 | Json::Json(Json::array &&values) : m_ptr(make_shared<JsonArray>(move(values))) {}
| ^
| std::
/home/dalto/gitshit/aseprite/third_party/json11/json11.cpp:266:72: warning: unqualified call to 'std::move' [-Wunqualified-std-cast-call]
266 | Json::Json(Json::object &&values) : m_ptr(make_shared<JsonObject>(move(values))) {}
| ^
| std::
/home/dalto/gitshit/aseprite/third_party/json11/json11.cpp:350:21: error: unknown type name 'uint8_t'
350 | if (static_cast<uint8_t>(c) >= 0x20 && static_cast<uint8_t>(c) <= 0x7f) {
| ^
/home/dalto/gitshit/aseprite/third_party/json11/json11.cpp:350:56: error: unknown type name 'uint8_t'
350 | if (static_cast<uint8_t>(c) >= 0x20 && static_cast<uint8_t>(c) <= 0x7f) {
| ^
/home/dalto/gitshit/aseprite/third_party/json11/json11.cpp:382:21: warning: unqualified call to 'std::move' [-Wunqualified-std-cast-call]
382 | return fail(move(msg), Json());
| ^
| std::
/home/dalto/gitshit/aseprite/third_party/json11/json11.cpp:154:46: warning: unqualified call to 'std::move' [-Wunqualified-std-cast-call]
154 | explicit Value(T &&value) : m_value(move(value)) {}
| ^
| std::
/home/dalto/gitshit/aseprite/third_party/json11/json11.cpp:201:48: note: in instantiation of member function 'json11::Value<json11::Json::STRING, std::basic_string<char>>::Value' requested here
201 | explicit JsonString(string &&value) : Value(move(value)) {}
| ^
/home/dalto/gitshit/aseprite/third_party/json11/json11.cpp:154:46: warning: unqualified call to 'std::move' [-Wunqualified-std-cast-call]
154 | explicit Value(T &&value) : m_value(move(value)) {}
| ^
| std::
/home/dalto/gitshit/aseprite/third_party/json11/json11.cpp:210:52: note: in instantiation of member function 'json11::Value<json11::Json::ARRAY, std::vector<json11::Json>>::Value' requested here
210 | explicit JsonArray(Json::array &&value) : Value(move(value)) {}
| ^
/home/dalto/gitshit/aseprite/third_party/json11/json11.cpp:154:46: warning: unqualified call to 'std::move' [-Wunqualified-std-cast-call]
154 | explicit Value(T &&value) : m_value(move(value)) {}
| ^
| std::
/home/dalto/gitshit/aseprite/third_party/json11/json11.cpp:219:54: note: in instantiation of member function 'json11::Value<json11::Json::OBJECT, std::map<std::basic_string<char>, json11::Json>>::Value' requested here
219 | explicit JsonObject(Json::object &&value) : Value(move(value)) {}
| ^
/home/dalto/gitshit/aseprite/third_party/json11/json11.cpp:154:46: warning: unqualified call to 'std::move' [-Wunqualified-std-cast-call]
154 | explicit Value(T &&value) : m_value(move(value)) {}
| ^
| std::
/home/dalto/gitshit/aseprite/third_party/json11/json11.cpp:224:18: note: in instantiation of member function 'json11::Value<json11::Json::NUL, json11::NullStruct>::Value' requested here
224 | JsonNull() : Value({}) {}
| ^
17 warnings and 9 errors generated.