Skip to content

Instantly share code, notes, and snippets.

@vurpo
Created July 2, 2018 10:55
Show Gist options
  • Save vurpo/777ec2116cdcc239379a470972ba73f5 to your computer and use it in GitHub Desktop.
Save vurpo/777ec2116cdcc239379a470972ba73f5 to your computer and use it in GitHub Desktop.
13:54:17: Running steps for project nheko...
13:54:17: Starting: "/usr/bin/cmake" --build . --target all
[ 4%] Performing update step for 'lmdbxx'
[ 3%] Performing update step for 'Tweeny'
[ 4%] Built target LANG_QRC
[ 5%] No configure step for 'lmdbxx'
[ 5%] No configure step for 'Tweeny'
[ 6%] No build step for 'lmdbxx'
[ 6%] No build step for 'Tweeny'
[ 6%] No install step for 'lmdbxx'
[ 6%] No install step for 'Tweeny'
[ 7%] Completed 'Tweeny'
[ 7%] Completed 'lmdbxx'
[ 10%] Built target Tweeny
[ 10%] Built target lmdbxx
[ 11%] Building CXX object CMakeFiles/nheko.dir/src/timeline/TimelineView.cc.o
[ 11%] Building CXX object CMakeFiles/nheko.dir/src/Cache.cc.o
[ 12%] Building CXX object CMakeFiles/nheko.dir/src/Olm.cpp.o
[ 12%] Building CXX object CMakeFiles/nheko.dir/src/ChatPage.cc.o
[ 13%] Building CXX object CMakeFiles/nheko.dir/include/moc_MainWindow.cpp.o
[ 14%] Building CXX object CMakeFiles/nheko.dir/include/moc_CommunitiesList.cpp.o
[ 14%] Building CXX object CMakeFiles/nheko.dir/include/moc_QuickSwitcher.cpp.o
[ 14%] Building CXX object CMakeFiles/nheko.dir/include/moc_RoomInfoListItem.cpp.o
In file included from /home/max/nheko/src/Olm.cpp:1:
/home/max/nheko/include/Olm.hpp:19:50: error: ‘OlmCipherContent’ is not a member of ‘mtx::events::msg’
std::map<RecipientKey, mtx::events::msg::OlmCipherContent> ciphertext;
^~~~~~~~~~~~~~~~
/home/max/nheko/include/Olm.hpp:19:50: error: ‘OlmCipherContent’ is not a member of ‘mtx::events::msg’
/home/max/nheko/include/Olm.hpp:19:66: error: template argument 2 is invalid
std::map<RecipientKey, mtx::events::msg::OlmCipherContent> ciphertext;
^
/home/max/nheko/include/Olm.hpp:19:66: error: template argument 4 is invalid
/home/max/nheko/include/Olm.hpp: In function ‘void olm::from_json(const json&, olm::OlmMessage&)’:
/home/max/nheko/include/Olm.hpp:35:73: error: ‘OlmCipherContent’ is not a member of ‘mtx::events::msg’
.get<std::map<std::string, mtx::events::msg::OlmCipherContent>>();
^~~~~~~~~~~~~~~~
/home/max/nheko/include/Olm.hpp:35:73: error: ‘OlmCipherContent’ is not a member of ‘mtx::events::msg’
/home/max/nheko/include/Olm.hpp:35:73: error: template argument 2 is invalid
/home/max/nheko/include/Olm.hpp:35:73: error: template argument 4 is invalid
/home/max/nheko/include/Olm.hpp:35:92: error: no matching function for call to ‘nlohmann::basic_json<>::get<<expression error> >() const’
.get<std::map<std::string, mtx::events::msg::OlmCipherContent>>();
^
In file included from /home/max/nheko/.deps/build/matrix_structs/include/mtx/identifiers.hpp:6,
from /home/max/nheko/.deps/build/matrix_structs/include/mtx.hpp:3,
from /home/max/nheko/include/Olm.hpp:6,
from /home/max/nheko/src/Olm.cpp:1:
/home/max/nheko/.deps/build/matrix_structs/include/json.hpp:12096:16: note: candidate: ‘template<class BasicJsonType, typename std::enable_if<std::is_same<typename std::remove_const<_Tp>::type, nlohmann::basic_json<> >::value, int>::type <anonymous> > nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer> nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::get() const [with BasicJsonType = BasicJsonType; typename std::enable_if<std::is_same<typename std::remove_const<BasicJsonType>::type, nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer> >::value, int>::type <anonymous> = <enumerator>; ObjectType = std::map; ArrayType = std::vector; StringType = std::__cxx11::basic_string<char>; BooleanType = bool; NumberIntegerType = long int; NumberUnsignedType = long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; JSONSerializer = nlohmann::adl_serializer]’
basic_json get() const
^~~
/home/max/nheko/.deps/build/matrix_structs/include/json.hpp:12096:16: note: template argument deduction/substitution failed:
In file included from /home/max/nheko/src/Olm.cpp:1:
/home/max/nheko/include/Olm.hpp:35:92: error: template argument 1 is invalid
.get<std::map<std::string, mtx::events::msg::OlmCipherContent>>();
^
In file included from /home/max/nheko/.deps/build/matrix_structs/include/mtx/identifiers.hpp:6,
from /home/max/nheko/.deps/build/matrix_structs/include/mtx.hpp:3,
from /home/max/nheko/include/Olm.hpp:6,
from /home/max/nheko/src/Olm.cpp:1:
/home/max/nheko/.deps/build/matrix_structs/include/json.hpp:12119:19: note: candidate: ‘template<class BasicJsonType, typename std::enable_if<((! std::is_same<BasicJsonType, nlohmann::basic_json<> >::value) && nlohmann::detail::is_basic_json<BasicJsonType>::value), int>::type <anonymous> > BasicJsonType nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::get() const [with BasicJsonType = BasicJsonType; typename std::enable_if<((! std::is_same<BasicJsonType, nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer> >::value) && nlohmann::detail::is_basic_json<BasicJsonType>::value), int>::type <anonymous> = <enumerator>; ObjectType = std::map; ArrayType = std::vector; StringType = std::__cxx11::basic_string<char>; BooleanType = bool; NumberIntegerType = long int; NumberUnsignedType = long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; JSONSerializer = nlohmann::adl_serializer]’
BasicJsonType get() const
^~~
/home/max/nheko/.deps/build/matrix_structs/include/json.hpp:12119:19: note: template argument deduction/substitution failed:
In file included from /home/max/nheko/src/Olm.cpp:1:
/home/max/nheko/include/Olm.hpp:35:92: error: template argument 1 is invalid
.get<std::map<std::string, mtx::events::msg::OlmCipherContent>>();
^
In file included from /home/max/nheko/.deps/build/matrix_structs/include/mtx/identifiers.hpp:6,
from /home/max/nheko/.deps/build/matrix_structs/include/mtx.hpp:3,
from /home/max/nheko/include/Olm.hpp:6,
from /home/max/nheko/src/Olm.cpp:1:
/home/max/nheko/.deps/build/matrix_structs/include/json.hpp:12169:15: note: candidate: ‘template<class ValueTypeCV, class ValueType, typename std::enable_if<(((! nlohmann::detail::is_basic_json<CompatibleCompleteType>::value) && nlohmann::detail::has_from_json<nlohmann::basic_json<>, ValueType>::value) && (! nlohmann::detail::has_non_default_from_json<nlohmann::basic_json<>, ValueType>::value)), int>::type <anonymous> > ValueType nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::get() const [with ValueTypeCV = ValueTypeCV; ValueType = ValueType; typename std::enable_if<(((! nlohmann::detail::is_basic_json<ValueType>::value) && nlohmann::detail::has_from_json<nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>, ValueType>::value) && (! nlohmann::detail::has_non_default_from_json<nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>, ValueType>::value)), int>::type <anonymous> = <enumerator>; ObjectType = std::map; ArrayType = std::vector; StringType = std::__cxx11::basic_string<char>; BooleanType = bool; NumberIntegerType = long int; NumberUnsignedType = long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; JSONSerializer = nlohmann::adl_serializer]’
ValueType get() const noexcept(noexcept(
^~~
/home/max/nheko/.deps/build/matrix_structs/include/json.hpp:12169:15: note: template argument deduction/substitution failed:
In file included from /home/max/nheko/src/Olm.cpp:1:
/home/max/nheko/include/Olm.hpp:35:92: error: template argument 1 is invalid
.get<std::map<std::string, mtx::events::msg::OlmCipherContent>>();
^
In file included from /home/max/nheko/.deps/build/matrix_structs/include/mtx/identifiers.hpp:6,
from /home/max/nheko/.deps/build/matrix_structs/include/mtx.hpp:3,
from /home/max/nheko/include/Olm.hpp:6,
from /home/max/nheko/src/Olm.cpp:1:
/home/max/nheko/.deps/build/matrix_structs/include/json.hpp:12220:15: note: candidate: ‘template<class ValueTypeCV, class ValueType, typename std::enable_if<((! std::is_same<nlohmann::basic_json<>, ValueType>::value) && nlohmann::detail::has_non_default_from_json<nlohmann::basic_json<>, ValueType>::value), int>::type <anonymous> > ValueType nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::get() const [with ValueTypeCV = ValueTypeCV; ValueType = ValueType; typename std::enable_if<((! std::is_same<nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>, ValueType>::value) && nlohmann::detail::has_non_default_from_json<nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>, ValueType>::value), int>::type <anonymous> = <enumerator>; ObjectType = std::map; ArrayType = std::vector; StringType = std::__cxx11::basic_string<char>; BooleanType = bool; NumberIntegerType = long int; NumberUnsignedType = long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; JSONSerializer = nlohmann::adl_serializer]’
ValueType get() const noexcept(noexcept(
^~~
/home/max/nheko/.deps/build/matrix_structs/include/json.hpp:12220:15: note: template argument deduction/substitution failed:
In file included from /home/max/nheko/src/Olm.cpp:1:
/home/max/nheko/include/Olm.hpp:35:92: error: template argument 1 is invalid
.get<std::map<std::string, mtx::events::msg::OlmCipherContent>>();
^
In file included from /home/max/nheko/.deps/build/matrix_structs/include/mtx/identifiers.hpp:6,
from /home/max/nheko/.deps/build/matrix_structs/include/mtx.hpp:3,
from /home/max/nheko/include/Olm.hpp:6,
from /home/max/nheko/src/Olm.cpp:1:
/home/max/nheko/.deps/build/matrix_structs/include/json.hpp:12257:17: note: candidate: ‘template<class PointerType, typename std::enable_if<std::is_pointer<_Tp>::value, int>::type <anonymous> > PointerType nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::get() [with PointerType = PointerType; typename std::enable_if<std::is_pointer<_Ptr>::value, int>::type <anonymous> = <enumerator>; ObjectType = std::map; ArrayType = std::vector; StringType = std::__cxx11::basic_string<char>; BooleanType = bool; NumberIntegerType = long int; NumberUnsignedType = long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; JSONSerializer = nlohmann::adl_serializer]’
PointerType get() noexcept
^~~
/home/max/nheko/.deps/build/matrix_structs/include/json.hpp:12257:17: note: template argument deduction/substitution failed:
In file included from /home/max/nheko/src/Olm.cpp:1:
/home/max/nheko/include/Olm.hpp:35:92: error: template argument 1 is invalid
.get<std::map<std::string, mtx::events::msg::OlmCipherContent>>();
^
In file included from /home/max/nheko/.deps/build/matrix_structs/include/mtx/identifiers.hpp:6,
from /home/max/nheko/.deps/build/matrix_structs/include/mtx.hpp:3,
from /home/max/nheko/include/Olm.hpp:6,
from /home/max/nheko/src/Olm.cpp:1:
/home/max/nheko/.deps/build/matrix_structs/include/json.hpp:12269:33: note: candidate: ‘template<class PointerType, typename std::enable_if<std::is_pointer<_Tp>::value, int>::type <anonymous> > constexpr const PointerType nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::get() const [with PointerType = PointerType; typename std::enable_if<std::is_pointer<_Ptr>::value, int>::type <anonymous> = <enumerator>; ObjectType = std::map; ArrayType = std::vector; StringType = std::__cxx11::basic_string<char>; BooleanType = bool; NumberIntegerType = long int; NumberUnsignedType = long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; JSONSerializer = nlohmann::adl_serializer]’
constexpr const PointerType get() const noexcept
^~~
/home/max/nheko/.deps/build/matrix_structs/include/json.hpp:12269:33: note: template argument deduction/substitution failed:
In file included from /home/max/nheko/src/Olm.cpp:1:
/home/max/nheko/include/Olm.hpp:35:92: error: template argument 1 is invalid
.get<std::map<std::string, mtx::events::msg::OlmCipherContent>>();
^
/home/max/nheko/include/Olm.hpp: At global scope:
/home/max/nheko/include/Olm.hpp:46:44: error: ‘OlmCipherContent’ in namespace ‘mtx::events::msg’ does not name a type
const mtx::events::msg::OlmCipherContent &content);
^~~~~~~~~~~~~~~~
/home/max/nheko/include/Olm.hpp:60:52: error: ‘OlmCipherContent’ in namespace ‘mtx::events::msg’ does not name a type
const mtx::events::msg::OlmCipherContent &content);
^~~~~~~~~~~~~~~~
[ 14%] Building CXX object CMakeFiles/nheko.dir/include/moc_SideBarActions.cpp.o
[ 15%] Building CXX object CMakeFiles/nheko.dir/include/moc_Splitter.cpp.o
/home/max/nheko/src/Olm.cpp: In function ‘void olm::handle_olm_message(const olm::OlmMessage&)’:
/home/max/nheko/src/Olm.cpp:69:39: error: ‘begin’ was not declared in this scope
for (const auto &cipher : msg.ciphertext) {
^~~~~~~~~~
/home/max/nheko/src/Olm.cpp:69:39: note: suggested alternative:
In file included from /home/max/nheko/.deps/build/matrix_structs/include/json.hpp:915,
from /home/max/nheko/.deps/build/matrix_structs/include/mtx/identifiers.hpp:6,
from /home/max/nheko/.deps/build/matrix_structs/include/mtx.hpp:3,
from /home/max/nheko/include/Olm.hpp:6,
from /home/max/nheko/src/Olm.cpp:1:
/usr/include/c++/8/valarray:1211:5: note: ‘std::begin’
begin(const valarray<_Tp>& __va)
^~~~~
/home/max/nheko/src/Olm.cpp:69:39: error: ‘end’ was not declared in this scope
for (const auto &cipher : msg.ciphertext) {
^~~~~~~~~~
/home/max/nheko/src/Olm.cpp:69:39: note: suggested alternative:
In file included from /home/max/nheko/.deps/build/matrix_structs/include/json.hpp:915,
from /home/max/nheko/.deps/build/matrix_structs/include/mtx/identifiers.hpp:6,
from /home/max/nheko/.deps/build/matrix_structs/include/mtx.hpp:3,
from /home/max/nheko/include/Olm.hpp:6,
from /home/max/nheko/src/Olm.cpp:1:
/usr/include/c++/8/valarray:1231:5: note: ‘std::end’
end(const valarray<_Tp>& __va)
^~~
/home/max/nheko/src/Olm.cpp: At global scope:
/home/max/nheko/src/Olm.cpp:98:52: error: ‘OlmCipherContent’ in namespace ‘mtx::events::msg’ does not name a type
const mtx::events::msg::OlmCipherContent &content)
^~~~~~~~~~~~~~~~
/home/max/nheko/src/Olm.cpp: In function ‘void olm::handle_pre_key_olm_message(const string&, const string&, const int&)’:
/home/max/nheko/src/Olm.cpp:105:82: error: request for member ‘body’ in ‘content’, which is of non-class type ‘const int’
olm::client()->create_inbound_session_from(sender_key, content.body);
^~~~
/home/max/nheko/src/Olm.cpp:116:86: error: request for member ‘body’ in ‘content’, which is of non-class type ‘const int’
if (!matches_inbound_session_from(inbound_session.get(), sender_key, content.body)) {
^~~~
/home/max/nheko/src/Olm.cpp:125:81: error: request for member ‘type’ in ‘content’, which is of non-class type ‘const int’
olm::client()->decrypt_message(inbound_session.get(), content.type, content.body);
^~~~
/home/max/nheko/src/Olm.cpp:125:95: error: request for member ‘body’ in ‘content’, which is of non-class type ‘const int’
olm::client()->decrypt_message(inbound_session.get(), content.type, content.body);
^~~~
/home/max/nheko/src/Olm.cpp:128:67: error: request for member ‘body’ in ‘content’, which is of non-class type ‘const int’
"failed to decrypt olm message {}: {}", content.body, e.what());
^~~~
/home/max/nheko/src/Olm.cpp: At global scope:
/home/max/nheko/src/Olm.cpp:174:75: error: ‘OlmCipherContent’ in namespace ‘mtx::events::msg’ does not name a type
try_olm_decryption(const std::string &sender_key, const mtx::events::msg::OlmCipherContent &msg)
^~~~~~~~~~~~~~~~
/home/max/nheko/src/Olm.cpp: In function ‘boost::optional<nlohmann::basic_json<> > olm::try_olm_decryption(const string&, const int&)’:
/home/max/nheko/src/Olm.cpp:190:83: error: request for member ‘type’ in ‘msg’, which is of non-class type ‘const int’
text = olm::client()->decrypt_message(session->get(), msg.type, msg.body);
^~~~
/home/max/nheko/src/Olm.cpp:190:93: error: request for member ‘body’ in ‘msg’, which is of non-class type ‘const int’
text = olm::client()->decrypt_message(session->get(), msg.type, msg.body);
^~~~
/home/max/nheko/src/Olm.cpp:195:51: error: request for member ‘type’ in ‘msg’, which is of non-class type ‘const int’
msg.type,
^~~~
[ 15%] Building CXX object CMakeFiles/nheko.dir/include/moc_SuggestionsPopup.cpp.o
[ 16%] Building CXX object CMakeFiles/nheko.dir/include/moc_TextInputWidget.cpp.o
/home/max/nheko/src/Cache.cc: In member function ‘mtx::responses::Timeline Cache::getTimelineMessages(lmdb::txn&, const string&)’:
/home/max/nheko/src/Cache.cc:991:43: error: ‘from_json’ is not a member of ‘mtx::events::collections’
mtx::events::collections::from_json(obj.at("event"), event);
^~~~~~~~~
/home/max/nheko/src/Cache.cc:991:43: note: suggested alternatives:
In file included from /home/max/nheko/src/Cache.cc:30:
/home/max/nheko/include/Cache.h:222:1: note: ‘from_json’
from_json(const nlohmann::json &obj, DevicePublicKeys &msg)
^~~~~~~~~
In file included from /home/max/nheko/.deps/build/matrix_structs/include/mtx/responses/common.hpp:3,
from /home/max/nheko/src/Cache.cc:27:
/home/max/nheko/.deps/build/matrix_structs/include/json.hpp:1182:6: note: ‘nlohmann::detail::from_json’
void from_json(const BasicJsonType& j, std::tuple<Args...>& t)
^~~~~~~~~
/home/max/nheko/.deps/build/matrix_structs/include/json.hpp:1226:23: note: ‘nlohmann::{anonymous}::from_json’
constexpr const auto& from_json = detail::static_const<detail::from_json_fn>::value;
^~~~~~~~~
In file included from /home/max/nheko/.deps/build/matrix_structs/include/mtx/events/messages/image.hpp:6,
from /home/max/nheko/.deps/build/matrix_structs/include/mtx/events.hpp:7,
from /home/max/nheko/.deps/build/matrix_structs/include/mtx/events/collections.hpp:5,
from /home/max/nheko/.deps/build/matrix_structs/include/mtx/responses/common.hpp:8,
from /home/max/nheko/src/Cache.cc:27:
/home/max/nheko/.deps/build/matrix_structs/include/mtx/events/common.hpp:119:1: note: ‘mtx::common::from_json’
from_json(const json &obj, VideoInfo &info);
^~~~~~~~~
In file included from /home/max/nheko/.deps/build/matrix_structs/include/mtx/events/collections.hpp:5,
from /home/max/nheko/.deps/build/matrix_structs/include/mtx/responses/common.hpp:8,
from /home/max/nheko/src/Cache.cc:27:
/home/max/nheko/.deps/build/matrix_structs/include/mtx/events.hpp:372:1: note: ‘mtx::events::from_json’
from_json(const json &obj, EncryptedEvent<Content> &event)
^~~~~~~~~
In file included from /home/max/nheko/.deps/build/matrix_structs/include/mtx/events.hpp:8,
from /home/max/nheko/.deps/build/matrix_structs/include/mtx/events/collections.hpp:5,
from /home/max/nheko/.deps/build/matrix_structs/include/mtx/responses/common.hpp:8,
from /home/max/nheko/src/Cache.cc:27:
/home/max/nheko/.deps/build/matrix_structs/include/mtx/identifiers.hpp:125:1: note: ‘mtx::identifiers::from_json’
from_json(const nlohmann::json &obj, Event &event)
^~~~~~~~~
In file included from /home/max/nheko/.deps/build/matrix_structs/include/mtx/responses.hpp:15,
from /home/max/nheko/include/Cache.h:30,
from /home/max/nheko/src/Cache.cc:30:
/home/max/nheko/.deps/build/matrix_structs/include/mtx/responses/version.hpp:18:1: note: ‘mtx::responses::from_json’
from_json(const nlohmann::json &obj, Versions &response);
^~~~~~~~~
In file included from /home/max/nheko/.deps/build/mtxclient/include/mtxclient/crypto/client.hpp:16,
from /home/max/nheko/include/Cache.h:31,
from /home/max/nheko/src/Cache.cc:30:
/home/max/nheko/.deps/build/mtxclient/include/mtxclient/crypto/types.hpp:51:1: note: ‘mtx::crypto::from_json’
from_json(const nlohmann::json &obj, OneTimeKeys &keys)
^~~~~~~~~
In file included from /home/max/nheko/.deps/build/matrix_structs/include/mtx/events/collections.hpp:28,
from /home/max/nheko/.deps/build/matrix_structs/include/mtx/responses/common.hpp:8,
from /home/max/nheko/src/Cache.cc:27:
/home/max/nheko/.deps/build/matrix_structs/include/mtx/events/messages/video.hpp:30:1: note: ‘mtx::events::msg::from_json’
from_json(const json &obj, Video &content);
^~~~~~~~~
In file included from /home/max/nheko/.deps/build/matrix_structs/include/mtx/events/collections.hpp:20,
from /home/max/nheko/.deps/build/matrix_structs/include/mtx/responses/common.hpp:8,
from /home/max/nheko/src/Cache.cc:27:
/home/max/nheko/.deps/build/matrix_structs/include/mtx/events/topic.hpp:21:1: note: ‘mtx::events::state::from_json’
from_json(const json &obj, Topic &event);
^~~~~~~~~
/home/max/nheko/src/Cache.cc: In member function ‘DescInfo Cache::getLastMessageInfo(lmdb::txn&, const string&)’:
/home/max/nheko/src/Cache.cc:1063:43: error: ‘from_json’ is not a member of ‘mtx::events::collections’
mtx::events::collections::from_json(obj.at("event"), event);
^~~~~~~~~
/home/max/nheko/src/Cache.cc:1063:43: note: suggested alternatives:
In file included from /home/max/nheko/src/Cache.cc:30:
/home/max/nheko/include/Cache.h:222:1: note: ‘from_json’
from_json(const nlohmann::json &obj, DevicePublicKeys &msg)
^~~~~~~~~
In file included from /home/max/nheko/.deps/build/matrix_structs/include/mtx/responses/common.hpp:3,
from /home/max/nheko/src/Cache.cc:27:
/home/max/nheko/.deps/build/matrix_structs/include/json.hpp:1182:6: note: ‘nlohmann::detail::from_json’
void from_json(const BasicJsonType& j, std::tuple<Args...>& t)
^~~~~~~~~
/home/max/nheko/.deps/build/matrix_structs/include/json.hpp:1226:23: note: ‘nlohmann::{anonymous}::from_json’
constexpr const auto& from_json = detail::static_const<detail::from_json_fn>::value;
^~~~~~~~~
In file included from /home/max/nheko/.deps/build/matrix_structs/include/mtx/events/messages/image.hpp:6,
from /home/max/nheko/.deps/build/matrix_structs/include/mtx/events.hpp:7,
from /home/max/nheko/.deps/build/matrix_structs/include/mtx/events/collections.hpp:5,
from /home/max/nheko/.deps/build/matrix_structs/include/mtx/responses/common.hpp:8,
from /home/max/nheko/src/Cache.cc:27:
/home/max/nheko/.deps/build/matrix_structs/include/mtx/events/common.hpp:119:1: note: ‘mtx::common::from_json’
from_json(const json &obj, VideoInfo &info);
^~~~~~~~~
In file included from /home/max/nheko/.deps/build/matrix_structs/include/mtx/events/collections.hpp:5,
from /home/max/nheko/.deps/build/matrix_structs/include/mtx/responses/common.hpp:8,
from /home/max/nheko/src/Cache.cc:27:
/home/max/nheko/.deps/build/matrix_structs/include/mtx/events.hpp:372:1: note: ‘mtx::events::from_json’
from_json(const json &obj, EncryptedEvent<Content> &event)
^~~~~~~~~
In file included from /home/max/nheko/.deps/build/matrix_structs/include/mtx/events.hpp:8,
from /home/max/nheko/.deps/build/matrix_structs/include/mtx/events/collections.hpp:5,
from /home/max/nheko/.deps/build/matrix_structs/include/mtx/responses/common.hpp:8,
from /home/max/nheko/src/Cache.cc:27:
/home/max/nheko/.deps/build/matrix_structs/include/mtx/identifiers.hpp:125:1: note: ‘mtx::identifiers::from_json’
from_json(const nlohmann::json &obj, Event &event)
^~~~~~~~~
In file included from /home/max/nheko/.deps/build/matrix_structs/include/mtx/responses.hpp:15,
from /home/max/nheko/include/Cache.h:30,
from /home/max/nheko/src/Cache.cc:30:
/home/max/nheko/.deps/build/matrix_structs/include/mtx/responses/version.hpp:18:1: note: ‘mtx::responses::from_json’
from_json(const nlohmann::json &obj, Versions &response);
^~~~~~~~~
In file included from /home/max/nheko/.deps/build/mtxclient/include/mtxclient/crypto/client.hpp:16,
from /home/max/nheko/include/Cache.h:31,
from /home/max/nheko/src/Cache.cc:30:
/home/max/nheko/.deps/build/mtxclient/include/mtxclient/crypto/types.hpp:51:1: note: ‘mtx::crypto::from_json’
from_json(const nlohmann::json &obj, OneTimeKeys &keys)
^~~~~~~~~
In file included from /home/max/nheko/.deps/build/matrix_structs/include/mtx/events/collections.hpp:28,
from /home/max/nheko/.deps/build/matrix_structs/include/mtx/responses/common.hpp:8,
from /home/max/nheko/src/Cache.cc:27:
/home/max/nheko/.deps/build/matrix_structs/include/mtx/events/messages/video.hpp:30:1: note: ‘mtx::events::msg::from_json’
from_json(const json &obj, Video &content);
^~~~~~~~~
In file included from /home/max/nheko/.deps/build/matrix_structs/include/mtx/events/collections.hpp:20,
from /home/max/nheko/.deps/build/matrix_structs/include/mtx/responses/common.hpp:8,
from /home/max/nheko/src/Cache.cc:27:
/home/max/nheko/.deps/build/matrix_structs/include/mtx/events/topic.hpp:21:1: note: ‘mtx::events::state::from_json’
from_json(const json &obj, Topic &event);
^~~~~~~~~
gmake[2]: *** [CMakeFiles/nheko.dir/build.make:1102: CMakeFiles/nheko.dir/src/Olm.cpp.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
In file included from /home/max/nheko/src/timeline/TimelineView.cc:27:
/home/max/nheko/include/Olm.hpp:19:50: error: ‘OlmCipherContent’ is not a member of ‘mtx::events::msg’
std::map<RecipientKey, mtx::events::msg::OlmCipherContent> ciphertext;
^~~~~~~~~~~~~~~~
/home/max/nheko/include/Olm.hpp:19:50: error: ‘OlmCipherContent’ is not a member of ‘mtx::events::msg’
/home/max/nheko/include/Olm.hpp:19:66: error: template argument 2 is invalid
std::map<RecipientKey, mtx::events::msg::OlmCipherContent> ciphertext;
^
/home/max/nheko/include/Olm.hpp:19:66: error: template argument 4 is invalid
/home/max/nheko/include/Olm.hpp: In function ‘void olm::from_json(const json&, olm::OlmMessage&)’:
/home/max/nheko/include/Olm.hpp:35:73: error: ‘OlmCipherContent’ is not a member of ‘mtx::events::msg’
.get<std::map<std::string, mtx::events::msg::OlmCipherContent>>();
^~~~~~~~~~~~~~~~
/home/max/nheko/include/Olm.hpp:35:73: error: ‘OlmCipherContent’ is not a member of ‘mtx::events::msg’
/home/max/nheko/include/Olm.hpp:35:73: error: template argument 2 is invalid
/home/max/nheko/include/Olm.hpp:35:73: error: template argument 4 is invalid
/home/max/nheko/include/Olm.hpp:35:92: error: no matching function for call to ‘nlohmann::basic_json<>::get<<expression error> >() const’
.get<std::map<std::string, mtx::events::msg::OlmCipherContent>>();
^
In file included from /home/max/nheko/include/Cache.h:27,
from /home/max/nheko/src/timeline/TimelineView.cc:22:
/home/max/nheko/.deps/build/matrix_structs/include/json.hpp:12096:16: note: candidate: ‘template<class BasicJsonType, typename std::enable_if<std::is_same<typename std::remove_const<_Tp>::type, nlohmann::basic_json<> >::value, int>::type <anonymous> > nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer> nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::get() const [with BasicJsonType = BasicJsonType; typename std::enable_if<std::is_same<typename std::remove_const<BasicJsonType>::type, nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer> >::value, int>::type <anonymous> = <enumerator>; ObjectType = std::map; ArrayType = std::vector; StringType = std::__cxx11::basic_string<char>; BooleanType = bool; NumberIntegerType = long int; NumberUnsignedType = long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; JSONSerializer = nlohmann::adl_serializer]’
basic_json get() const
^~~
/home/max/nheko/.deps/build/matrix_structs/include/json.hpp:12096:16: note: template argument deduction/substitution failed:
In file included from /home/max/nheko/src/timeline/TimelineView.cc:27:
/home/max/nheko/include/Olm.hpp:35:92: error: template argument 1 is invalid
.get<std::map<std::string, mtx::events::msg::OlmCipherContent>>();
^
In file included from /home/max/nheko/include/Cache.h:27,
from /home/max/nheko/src/timeline/TimelineView.cc:22:
/home/max/nheko/.deps/build/matrix_structs/include/json.hpp:12119:19: note: candidate: ‘template<class BasicJsonType, typename std::enable_if<((! std::is_same<BasicJsonType, nlohmann::basic_json<> >::value) && nlohmann::detail::is_basic_json<BasicJsonType>::value), int>::type <anonymous> > BasicJsonType nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::get() const [with BasicJsonType = BasicJsonType; typename std::enable_if<((! std::is_same<BasicJsonType, nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer> >::value) && nlohmann::detail::is_basic_json<BasicJsonType>::value), int>::type <anonymous> = <enumerator>; ObjectType = std::map; ArrayType = std::vector; StringType = std::__cxx11::basic_string<char>; BooleanType = bool; NumberIntegerType = long int; NumberUnsignedType = long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; JSONSerializer = nlohmann::adl_serializer]’
BasicJsonType get() const
^~~
/home/max/nheko/.deps/build/matrix_structs/include/json.hpp:12119:19: note: template argument deduction/substitution failed:
In file included from /home/max/nheko/src/timeline/TimelineView.cc:27:
/home/max/nheko/include/Olm.hpp:35:92: error: template argument 1 is invalid
.get<std::map<std::string, mtx::events::msg::OlmCipherContent>>();
^
In file included from /home/max/nheko/include/Cache.h:27,
from /home/max/nheko/src/timeline/TimelineView.cc:22:
/home/max/nheko/.deps/build/matrix_structs/include/json.hpp:12169:15: note: candidate: ‘template<class ValueTypeCV, class ValueType, typename std::enable_if<(((! nlohmann::detail::is_basic_json<CompatibleCompleteType>::value) && nlohmann::detail::has_from_json<nlohmann::basic_json<>, ValueType>::value) && (! nlohmann::detail::has_non_default_from_json<nlohmann::basic_json<>, ValueType>::value)), int>::type <anonymous> > ValueType nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::get() const [with ValueTypeCV = ValueTypeCV; ValueType = ValueType; typename std::enable_if<(((! nlohmann::detail::is_basic_json<ValueType>::value) && nlohmann::detail::has_from_json<nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>, ValueType>::value) && (! nlohmann::detail::has_non_default_from_json<nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>, ValueType>::value)), int>::type <anonymous> = <enumerator>; ObjectType = std::map; ArrayType = std::vector; StringType = std::__cxx11::basic_string<char>; BooleanType = bool; NumberIntegerType = long int; NumberUnsignedType = long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; JSONSerializer = nlohmann::adl_serializer]’
ValueType get() const noexcept(noexcept(
^~~
/home/max/nheko/.deps/build/matrix_structs/include/json.hpp:12169:15: note: template argument deduction/substitution failed:
In file included from /home/max/nheko/src/timeline/TimelineView.cc:27:
/home/max/nheko/include/Olm.hpp:35:92: error: template argument 1 is invalid
.get<std::map<std::string, mtx::events::msg::OlmCipherContent>>();
^
In file included from /home/max/nheko/include/Cache.h:27,
from /home/max/nheko/src/timeline/TimelineView.cc:22:
/home/max/nheko/.deps/build/matrix_structs/include/json.hpp:12220:15: note: candidate: ‘template<class ValueTypeCV, class ValueType, typename std::enable_if<((! std::is_same<nlohmann::basic_json<>, ValueType>::value) && nlohmann::detail::has_non_default_from_json<nlohmann::basic_json<>, ValueType>::value), int>::type <anonymous> > ValueType nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::get() const [with ValueTypeCV = ValueTypeCV; ValueType = ValueType; typename std::enable_if<((! std::is_same<nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>, ValueType>::value) && nlohmann::detail::has_non_default_from_json<nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>, ValueType>::value), int>::type <anonymous> = <enumerator>; ObjectType = std::map; ArrayType = std::vector; StringType = std::__cxx11::basic_string<char>; BooleanType = bool; NumberIntegerType = long int; NumberUnsignedType = long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; JSONSerializer = nlohmann::adl_serializer]’
ValueType get() const noexcept(noexcept(
^~~
/home/max/nheko/.deps/build/matrix_structs/include/json.hpp:12220:15: note: template argument deduction/substitution failed:
In file included from /home/max/nheko/src/timeline/TimelineView.cc:27:
/home/max/nheko/include/Olm.hpp:35:92: error: template argument 1 is invalid
.get<std::map<std::string, mtx::events::msg::OlmCipherContent>>();
^
In file included from /home/max/nheko/include/Cache.h:27,
from /home/max/nheko/src/timeline/TimelineView.cc:22:
/home/max/nheko/.deps/build/matrix_structs/include/json.hpp:12257:17: note: candidate: ‘template<class PointerType, typename std::enable_if<std::is_pointer<_Tp>::value, int>::type <anonymous> > PointerType nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::get() [with PointerType = PointerType; typename std::enable_if<std::is_pointer<_Ptr>::value, int>::type <anonymous> = <enumerator>; ObjectType = std::map; ArrayType = std::vector; StringType = std::__cxx11::basic_string<char>; BooleanType = bool; NumberIntegerType = long int; NumberUnsignedType = long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; JSONSerializer = nlohmann::adl_serializer]’
PointerType get() noexcept
^~~
/home/max/nheko/.deps/build/matrix_structs/include/json.hpp:12257:17: note: template argument deduction/substitution failed:
In file included from /home/max/nheko/src/timeline/TimelineView.cc:27:
/home/max/nheko/include/Olm.hpp:35:92: error: template argument 1 is invalid
.get<std::map<std::string, mtx::events::msg::OlmCipherContent>>();
^
In file included from /home/max/nheko/include/Cache.h:27,
from /home/max/nheko/src/timeline/TimelineView.cc:22:
/home/max/nheko/.deps/build/matrix_structs/include/json.hpp:12269:33: note: candidate: ‘template<class PointerType, typename std::enable_if<std::is_pointer<_Tp>::value, int>::type <anonymous> > constexpr const PointerType nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::get() const [with PointerType = PointerType; typename std::enable_if<std::is_pointer<_Ptr>::value, int>::type <anonymous> = <enumerator>; ObjectType = std::map; ArrayType = std::vector; StringType = std::__cxx11::basic_string<char>; BooleanType = bool; NumberIntegerType = long int; NumberUnsignedType = long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; JSONSerializer = nlohmann::adl_serializer]’
constexpr const PointerType get() const noexcept
^~~
/home/max/nheko/.deps/build/matrix_structs/include/json.hpp:12269:33: note: template argument deduction/substitution failed:
In file included from /home/max/nheko/src/timeline/TimelineView.cc:27:
/home/max/nheko/include/Olm.hpp:35:92: error: template argument 1 is invalid
.get<std::map<std::string, mtx::events::msg::OlmCipherContent>>();
^
/home/max/nheko/include/Olm.hpp: At global scope:
/home/max/nheko/include/Olm.hpp:46:44: error: ‘OlmCipherContent’ in namespace ‘mtx::events::msg’ does not name a type
const mtx::events::msg::OlmCipherContent &content);
^~~~~~~~~~~~~~~~
/home/max/nheko/include/Olm.hpp:60:52: error: ‘OlmCipherContent’ in namespace ‘mtx::events::msg’ does not name a type
const mtx::events::msg::OlmCipherContent &content);
^~~~~~~~~~~~~~~~
In file included from /home/max/nheko/src/ChatPage.cc:28:
/home/max/nheko/include/Olm.hpp:19:50: error: ‘OlmCipherContent’ is not a member of ‘mtx::events::msg’
std::map<RecipientKey, mtx::events::msg::OlmCipherContent> ciphertext;
^~~~~~~~~~~~~~~~
/home/max/nheko/include/Olm.hpp:19:50: error: ‘OlmCipherContent’ is not a member of ‘mtx::events::msg’
/home/max/nheko/include/Olm.hpp:19:66: error: template argument 2 is invalid
std::map<RecipientKey, mtx::events::msg::OlmCipherContent> ciphertext;
^
/home/max/nheko/include/Olm.hpp:19:66: error: template argument 4 is invalid
/home/max/nheko/include/Olm.hpp: In function ‘void olm::from_json(const json&, olm::OlmMessage&)’:
/home/max/nheko/include/Olm.hpp:35:73: error: ‘OlmCipherContent’ is not a member of ‘mtx::events::msg’
.get<std::map<std::string, mtx::events::msg::OlmCipherContent>>();
^~~~~~~~~~~~~~~~
/home/max/nheko/include/Olm.hpp:35:73: error: ‘OlmCipherContent’ is not a member of ‘mtx::events::msg’
/home/max/nheko/include/Olm.hpp:35:73: error: template argument 2 is invalid
/home/max/nheko/include/Olm.hpp:35:73: error: template argument 4 is invalid
/home/max/nheko/include/Olm.hpp:35:92: error: no matching function for call to ‘nlohmann::basic_json<>::get<<expression error> >() const’
.get<std::map<std::string, mtx::events::msg::OlmCipherContent>>();
^
In file included from /home/max/nheko/include/Cache.h:27,
from /home/max/nheko/src/ChatPage.cc:23:
/home/max/nheko/.deps/build/matrix_structs/include/json.hpp:12096:16: note: candidate: ‘template<class BasicJsonType, typename std::enable_if<std::is_same<typename std::remove_const<_Tp>::type, nlohmann::basic_json<> >::value, int>::type <anonymous> > nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer> nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::get() const [with BasicJsonType = BasicJsonType; typename std::enable_if<std::is_same<typename std::remove_const<BasicJsonType>::type, nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer> >::value, int>::type <anonymous> = <enumerator>; ObjectType = std::map; ArrayType = std::vector; StringType = std::__cxx11::basic_string<char>; BooleanType = bool; NumberIntegerType = long int; NumberUnsignedType = long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; JSONSerializer = nlohmann::adl_serializer]’
basic_json get() const
^~~
/home/max/nheko/.deps/build/matrix_structs/include/json.hpp:12096:16: note: template argument deduction/substitution failed:
In file included from /home/max/nheko/src/ChatPage.cc:28:
/home/max/nheko/include/Olm.hpp:35:92: error: template argument 1 is invalid
.get<std::map<std::string, mtx::events::msg::OlmCipherContent>>();
^
In file included from /home/max/nheko/include/Cache.h:27,
from /home/max/nheko/src/ChatPage.cc:23:
/home/max/nheko/.deps/build/matrix_structs/include/json.hpp:12119:19: note: candidate: ‘template<class BasicJsonType, typename std::enable_if<((! std::is_same<BasicJsonType, nlohmann::basic_json<> >::value) && nlohmann::detail::is_basic_json<BasicJsonType>::value), int>::type <anonymous> > BasicJsonType nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::get() const [with BasicJsonType = BasicJsonType; typename std::enable_if<((! std::is_same<BasicJsonType, nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer> >::value) && nlohmann::detail::is_basic_json<BasicJsonType>::value), int>::type <anonymous> = <enumerator>; ObjectType = std::map; ArrayType = std::vector; StringType = std::__cxx11::basic_string<char>; BooleanType = bool; NumberIntegerType = long int; NumberUnsignedType = long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; JSONSerializer = nlohmann::adl_serializer]’
BasicJsonType get() const
^~~
/home/max/nheko/.deps/build/matrix_structs/include/json.hpp:12119:19: note: template argument deduction/substitution failed:
In file included from /home/max/nheko/src/ChatPage.cc:28:
/home/max/nheko/include/Olm.hpp:35:92: error: template argument 1 is invalid
.get<std::map<std::string, mtx::events::msg::OlmCipherContent>>();
^
In file included from /home/max/nheko/include/Cache.h:27,
from /home/max/nheko/src/ChatPage.cc:23:
/home/max/nheko/.deps/build/matrix_structs/include/json.hpp:12169:15: note: candidate: ‘template<class ValueTypeCV, class ValueType, typename std::enable_if<(((! nlohmann::detail::is_basic_json<CompatibleCompleteType>::value) && nlohmann::detail::has_from_json<nlohmann::basic_json<>, ValueType>::value) && (! nlohmann::detail::has_non_default_from_json<nlohmann::basic_json<>, ValueType>::value)), int>::type <anonymous> > ValueType nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::get() const [with ValueTypeCV = ValueTypeCV; ValueType = ValueType; typename std::enable_if<(((! nlohmann::detail::is_basic_json<ValueType>::value) && nlohmann::detail::has_from_json<nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>, ValueType>::value) && (! nlohmann::detail::has_non_default_from_json<nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>, ValueType>::value)), int>::type <anonymous> = <enumerator>; ObjectType = std::map; ArrayType = std::vector; StringType = std::__cxx11::basic_string<char>; BooleanType = bool; NumberIntegerType = long int; NumberUnsignedType = long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; JSONSerializer = nlohmann::adl_serializer]’
ValueType get() const noexcept(noexcept(
^~~
/home/max/nheko/.deps/build/matrix_structs/include/json.hpp:12169:15: note: template argument deduction/substitution failed:
In file included from /home/max/nheko/src/ChatPage.cc:28:
/home/max/nheko/include/Olm.hpp:35:92: error: template argument 1 is invalid
.get<std::map<std::string, mtx::events::msg::OlmCipherContent>>();
^
In file included from /home/max/nheko/include/Cache.h:27,
from /home/max/nheko/src/ChatPage.cc:23:
/home/max/nheko/.deps/build/matrix_structs/include/json.hpp:12220:15: note: candidate: ‘template<class ValueTypeCV, class ValueType, typename std::enable_if<((! std::is_same<nlohmann::basic_json<>, ValueType>::value) && nlohmann::detail::has_non_default_from_json<nlohmann::basic_json<>, ValueType>::value), int>::type <anonymous> > ValueType nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::get() const [with ValueTypeCV = ValueTypeCV; ValueType = ValueType; typename std::enable_if<((! std::is_same<nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>, ValueType>::value) && nlohmann::detail::has_non_default_from_json<nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>, ValueType>::value), int>::type <anonymous> = <enumerator>; ObjectType = std::map; ArrayType = std::vector; StringType = std::__cxx11::basic_string<char>; BooleanType = bool; NumberIntegerType = long int; NumberUnsignedType = long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; JSONSerializer = nlohmann::adl_serializer]’
ValueType get() const noexcept(noexcept(
^~~
/home/max/nheko/.deps/build/matrix_structs/include/json.hpp:12220:15: note: template argument deduction/substitution failed:
In file included from /home/max/nheko/src/ChatPage.cc:28:
/home/max/nheko/include/Olm.hpp:35:92: error: template argument 1 is invalid
.get<std::map<std::string, mtx::events::msg::OlmCipherContent>>();
^
In file included from /home/max/nheko/include/Cache.h:27,
from /home/max/nheko/src/ChatPage.cc:23:
/home/max/nheko/.deps/build/matrix_structs/include/json.hpp:12257:17: note: candidate: ‘template<class PointerType, typename std::enable_if<std::is_pointer<_Tp>::value, int>::type <anonymous> > PointerType nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::get() [with PointerType = PointerType; typename std::enable_if<std::is_pointer<_Ptr>::value, int>::type <anonymous> = <enumerator>; ObjectType = std::map; ArrayType = std::vector; StringType = std::__cxx11::basic_string<char>; BooleanType = bool; NumberIntegerType = long int; NumberUnsignedType = long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; JSONSerializer = nlohmann::adl_serializer]’
PointerType get() noexcept
^~~
/home/max/nheko/.deps/build/matrix_structs/include/json.hpp:12257:17: note: template argument deduction/substitution failed:
In file included from /home/max/nheko/src/ChatPage.cc:28:
/home/max/nheko/include/Olm.hpp:35:92: error: template argument 1 is invalid
.get<std::map<std::string, mtx::events::msg::OlmCipherContent>>();
^
In file included from /home/max/nheko/include/Cache.h:27,
from /home/max/nheko/src/ChatPage.cc:23:
/home/max/nheko/.deps/build/matrix_structs/include/json.hpp:12269:33: note: candidate: ‘template<class PointerType, typename std::enable_if<std::is_pointer<_Tp>::value, int>::type <anonymous> > constexpr const PointerType nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::get() const [with PointerType = PointerType; typename std::enable_if<std::is_pointer<_Ptr>::value, int>::type <anonymous> = <enumerator>; ObjectType = std::map; ArrayType = std::vector; StringType = std::__cxx11::basic_string<char>; BooleanType = bool; NumberIntegerType = long int; NumberUnsignedType = long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; JSONSerializer = nlohmann::adl_serializer]’
constexpr const PointerType get() const noexcept
^~~
/home/max/nheko/.deps/build/matrix_structs/include/json.hpp:12269:33: note: template argument deduction/substitution failed:
In file included from /home/max/nheko/src/ChatPage.cc:28:
/home/max/nheko/include/Olm.hpp:35:92: error: template argument 1 is invalid
.get<std::map<std::string, mtx::events::msg::OlmCipherContent>>();
^
/home/max/nheko/include/Olm.hpp: At global scope:
/home/max/nheko/include/Olm.hpp:46:44: error: ‘OlmCipherContent’ in namespace ‘mtx::events::msg’ does not name a type
const mtx::events::msg::OlmCipherContent &content);
^~~~~~~~~~~~~~~~
/home/max/nheko/include/Olm.hpp:60:52: error: ‘OlmCipherContent’ in namespace ‘mtx::events::msg’ does not name a type
const mtx::events::msg::OlmCipherContent &content);
^~~~~~~~~~~~~~~~
gmake[2]: *** [CMakeFiles/nheko.dir/build.make:959: CMakeFiles/nheko.dir/src/Cache.cc.o] Error 1
gmake[2]: *** [CMakeFiles/nheko.dir/build.make:972: CMakeFiles/nheko.dir/src/ChatPage.cc.o] Error 1
gmake[2]: *** [CMakeFiles/nheko.dir/build.make:660: CMakeFiles/nheko.dir/src/timeline/TimelineView.cc.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:212: CMakeFiles/nheko.dir/all] Error 2
gmake: *** [Makefile:130: all] Error 2
13:54:54: The process "/usr/bin/cmake" exited with code 2.
Error while building/deploying project nheko (kit: Desktop)
The kit Desktop has configuration issues which might be the root cause for this problem.
When executing step "CMake Build"
13:54:54: Elapsed time: 00:36.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment