Skip to content

Instantly share code, notes, and snippets.

@adventurist
Created February 26, 2020 14:16
Show Gist options
  • Save adventurist/93ef037aa8a06a4f2e3c7bac6a513fa7 to your computer and use it in GitHub Desktop.
Save adventurist/93ef037aa8a06a4f2e3c7bac6a513fa7 to your computer and use it in GitHub Desktop.
qmake -o Makefile ky_gui.pro -spec linux-g++ QMAKE_CXXFLAGS_DEBUG+=-std=gnu++1z CONFIG+=debug CONFIG+=qml_debug
make VERBOSE=1 -j8
g++ -c -pipe -g -std=gnu++1z -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_DESIGNER_LIB -DQT_UIPLUGIN_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_CORE_LIB -I. -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtDesigner -isystem /usr/include/x86_64-linux-gnu/qt5/QtUiPlugin -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtXml -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -isystem /usr/include/libdrm -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o client.o src/client.cpp
In file included from src/client.cpp:17:
./headers/kmessage_codec.hpp:14:8: error: use of enum 'FlatBuffersVTableOffset' without previous declaration
14 | enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
| ^~~~~~~~~~~~~~~~~~~~~~~
./headers/kmessage_codec.hpp:15:5: error: 'VT_ID' was not declared in this scope
15 | VT_ID = 4,
| ^~~~~
./headers/kmessage_codec.hpp:16:5: error: 'VT_DATA' was not declared in this scope; did you mean 'NO_DATA'?
16 | VT_DATA = 6
| ^~~~~~~
| NO_DATA
./headers/kmessage_codec.hpp:17:3: error: cannot convert '<brace-enclosed initializer list>' to 'int' in initialization
17 | };
| ^
./headers/kmessage_codec.hpp: In member function 'int32_t KData::Message::id() const':
./headers/kmessage_codec.hpp:19:30: error: 'VT_ID' was not declared in this scope
19 | return GetField<int32_t>(VT_ID, 0);
| ^~~~~
./headers/kmessage_codec.hpp: In member function 'const flatbuffers::Vector<unsigned char>* KData::Message::data() const':
./headers/kmessage_codec.hpp:22:61: error: 'VT_DATA' was not declared in this scope; did you mean 'NO_DATA'?
22 | return GetPointer<const flatbuffers::Vector<uint8_t> *>(VT_DATA);
| ^~~~~~~
| NO_DATA
./headers/kmessage_codec.hpp: In member function 'bool KData::Message::Verify(flatbuffers::Verifier&) const':
./headers/kmessage_codec.hpp:26:43: error: 'VT_ID' was not declared in this scope
26 | VerifyField<int32_t>(verifier, VT_ID) &&
| ^~~~~
./headers/kmessage_codec.hpp:27:35: error: 'VT_DATA' was not declared in this scope; did you mean 'NO_DATA'?
27 | VerifyOffset(verifier, VT_DATA) &&
| ^~~~~~~
| NO_DATA
./headers/kmessage_codec.hpp:28:40: error: no matching function for call to 'flatbuffers::Verifier::VerifyVector(const flatbuffers::Vector<unsigned char>*)'
28 | verifier.VerifyVector(data()) &&
| ^
In file included from ./headers/kmessage_codec.hpp:7,
from src/client.cpp:17:
/usr/include/flatbuffers/flatbuffers.h:1756:8: note: candidate: 'bool flatbuffers::Verifier::VerifyVector(const uint8_t*, size_t, const uint8_t**) const'
1756 | bool VerifyVector(const uint8_t *vec, size_t elem_size,
| ^~~~~~~~~~~~
/usr/include/flatbuffers/flatbuffers.h:1756:8: note: candidate expects 3 arguments, 1 provided
In file included from src/client.cpp:17:
./headers/kmessage_codec.hpp: In member function 'void KData::MessageBuilder::add_id(int32_t)':
./headers/kmessage_codec.hpp:37:39: error: 'VT_ID' is not a member of 'KData::Message'
37 | fbb_.AddElement<int32_t>(Message::VT_ID, id, 0);
| ^~~~~
./headers/kmessage_codec.hpp: In member function 'void KData::MessageBuilder::add_data(flatbuffers::Offset<flatbuffers::Vector<unsigned char> >)':
./headers/kmessage_codec.hpp:40:29: error: 'VT_DATA' is not a member of 'KData::Message'
40 | fbb_.AddOffset(Message::VT_DATA, data);
| ^~~~~~~
In file included from src/client.cpp:18:
./headers/instatask_generated.h: At global scope:
./headers/instatask_generated.h:14:8: error: use of enum 'FlatBuffersVTableOffset' without previous declaration
14 | enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
| ^~~~~~~~~~~~~~~~~~~~~~~
./headers/instatask_generated.h:15:5: error: 'VT_ID' was not declared in this scope
15 | VT_ID = 4,
| ^~~~~
./headers/instatask_generated.h:16:5: error: 'VT_FILE_INFO' was not declared in this scope
16 | VT_FILE_INFO = 6,
| ^~~~~~~~~~~~
./headers/instatask_generated.h:17:5: error: 'VT_TIME' was not declared in this scope; did you mean 'LC_TIME'?
17 | VT_TIME = 8,
| ^~~~~~~
| LC_TIME
./headers/instatask_generated.h:18:5: error: 'VT_DESCRIPTION' was not declared in this scope
18 | VT_DESCRIPTION = 10,
| ^~~~~~~~~~~~~~
./headers/instatask_generated.h:19:5: error: 'VT_HASHTAGS' was not declared in this scope
19 | VT_HASHTAGS = 12,
| ^~~~~~~~~~~
./headers/instatask_generated.h:20:5: error: 'VT_REQUESTED_BY' was not declared in this scope
20 | VT_REQUESTED_BY = 14,
| ^~~~~~~~~~~~~~~
./headers/instatask_generated.h:21:5: error: 'VT_REQUESTED_BY_PHRASE' was not declared in this scope
21 | VT_REQUESTED_BY_PHRASE = 16,
| ^~~~~~~~~~~~~~~~~~~~~~
./headers/instatask_generated.h:22:5: error: 'VT_PROMOTE_SHARE' was not declared in this scope
22 | VT_PROMOTE_SHARE = 18,
| ^~~~~~~~~~~~~~~~
./headers/instatask_generated.h:23:5: error: 'VT_LINK_BIO' was not declared in this scope
23 | VT_LINK_BIO = 20,
| ^~~~~~~~~~~
./headers/instatask_generated.h:24:5: error: 'VT_IS_VIDEO' was not declared in this scope
24 | VT_IS_VIDEO = 22,
| ^~~~~~~~~~~
./headers/instatask_generated.h:25:5: error: 'VT_MASK' was not declared in this scope
25 | VT_MASK = 24,
| ^~~~~~~
./headers/instatask_generated.h:26:5: error: 'VT_HEADER' was not declared in this scope; did you mean 'STDC_HEADERS'?
26 | VT_HEADER = 26
| ^~~~~~~~~
| STDC_HEADERS
./headers/instatask_generated.h:27:3: error: cannot convert '<brace-enclosed initializer list>' to 'int' in initialization
27 | };
| ^
./headers/instatask_generated.h: In member function 'int32_t IGData::IGTask::id() const':
./headers/instatask_generated.h:29:30: error: 'VT_ID' was not declared in this scope
29 | return GetField<int32_t>(VT_ID, 0);
| ^~~~~
./headers/instatask_generated.h: In member function 'const flatbuffers::String* IGData::IGTask::file_info() const':
./headers/instatask_generated.h:32:52: error: 'VT_FILE_INFO' was not declared in this scope
32 | return GetPointer<const flatbuffers::String *>(VT_FILE_INFO);
| ^~~~~~~~~~~~
./headers/instatask_generated.h: In member function 'const flatbuffers::String* IGData::IGTask::time() const':
./headers/instatask_generated.h:35:52: error: 'VT_TIME' was not declared in this scope; did you mean 'LC_TIME'?
35 | return GetPointer<const flatbuffers::String *>(VT_TIME);
| ^~~~~~~
| LC_TIME
./headers/instatask_generated.h: In member function 'const flatbuffers::String* IGData::IGTask::description() const':
./headers/instatask_generated.h:38:52: error: 'VT_DESCRIPTION' was not declared in this scope
38 | return GetPointer<const flatbuffers::String *>(VT_DESCRIPTION);
| ^~~~~~~~~~~~~~
./headers/instatask_generated.h: In member function 'const flatbuffers::String* IGData::IGTask::hashtags() const':
./headers/instatask_generated.h:41:52: error: 'VT_HASHTAGS' was not declared in this scope
41 | return GetPointer<const flatbuffers::String *>(VT_HASHTAGS);
| ^~~~~~~~~~~
./headers/instatask_generated.h: In member function 'const flatbuffers::String* IGData::IGTask::requested_by() const':
./headers/instatask_generated.h:44:52: error: 'VT_REQUESTED_BY' was not declared in this scope
44 | return GetPointer<const flatbuffers::String *>(VT_REQUESTED_BY);
| ^~~~~~~~~~~~~~~
./headers/instatask_generated.h: In member function 'const flatbuffers::String* IGData::IGTask::requested_by_phrase() const':
./headers/instatask_generated.h:47:52: error: 'VT_REQUESTED_BY_PHRASE' was not declared in this scope
47 | return GetPointer<const flatbuffers::String *>(VT_REQUESTED_BY_PHRASE);
| ^~~~~~~~~~~~~~~~~~~~~~
./headers/instatask_generated.h: In member function 'const flatbuffers::String* IGData::IGTask::promote_share() const':
./headers/instatask_generated.h:50:52: error: 'VT_PROMOTE_SHARE' was not declared in this scope
50 | return GetPointer<const flatbuffers::String *>(VT_PROMOTE_SHARE);
| ^~~~~~~~~~~~~~~~
./headers/instatask_generated.h: In member function 'const flatbuffers::String* IGData::IGTask::link_bio() const':
./headers/instatask_generated.h:53:52: error: 'VT_LINK_BIO' was not declared in this scope
53 | return GetPointer<const flatbuffers::String *>(VT_LINK_BIO);
| ^~~~~~~~~~~
./headers/instatask_generated.h: In member function 'bool IGData::IGTask::is_video() const':
./headers/instatask_generated.h:56:30: error: 'VT_IS_VIDEO' was not declared in this scope
56 | return GetField<uint8_t>(VT_IS_VIDEO, 0) != 0;
| ^~~~~~~~~~~
./headers/instatask_generated.h: In member function 'int32_t IGData::IGTask::mask() const':
./headers/instatask_generated.h:59:30: error: 'VT_MASK' was not declared in this scope
59 | return GetField<int32_t>(VT_MASK, 0);
| ^~~~~~~
./headers/instatask_generated.h: In member function 'const flatbuffers::String* IGData::IGTask::header() const':
./headers/instatask_generated.h:62:52: error: 'VT_HEADER' was not declared in this scope; did you mean 'STDC_HEADERS'?
62 | return GetPointer<const flatbuffers::String *>(VT_HEADER);
| ^~~~~~~~~
| STDC_HEADERS
./headers/instatask_generated.h: In member function 'bool IGData::IGTask::Verify(flatbuffers::Verifier&) const':
./headers/instatask_generated.h:66:43: error: 'VT_ID' was not declared in this scope
66 | VerifyField<int32_t>(verifier, VT_ID) &&
| ^~~~~
./headers/instatask_generated.h:67:35: error: 'VT_FILE_INFO' was not declared in this scope
67 | VerifyOffset(verifier, VT_FILE_INFO) &&
| ^~~~~~~~~~~~
./headers/instatask_generated.h:68:21: error: 'class flatbuffers::Verifier' has no member named 'VerifyString'
68 | verifier.VerifyString(file_info()) &&
| ^~~~~~~~~~~~
./headers/instatask_generated.h:69:35: error: 'VT_TIME' was not declared in this scope; did you mean 'LC_TIME'?
69 | VerifyOffset(verifier, VT_TIME) &&
| ^~~~~~~
| LC_TIME
./headers/instatask_generated.h:70:21: error: 'class flatbuffers::Verifier' has no member named 'VerifyString'
70 | verifier.VerifyString(time()) &&
| ^~~~~~~~~~~~
./headers/instatask_generated.h:71:35: error: 'VT_DESCRIPTION' was not declared in this scope
71 | VerifyOffset(verifier, VT_DESCRIPTION) &&
| ^~~~~~~~~~~~~~
./headers/instatask_generated.h:72:21: error: 'class flatbuffers::Verifier' has no member named 'VerifyString'
72 | verifier.VerifyString(description()) &&
| ^~~~~~~~~~~~
./headers/instatask_generated.h:73:35: error: 'VT_HASHTAGS' was not declared in this scope
73 | VerifyOffset(verifier, VT_HASHTAGS) &&
| ^~~~~~~~~~~
./headers/instatask_generated.h:74:21: error: 'class flatbuffers::Verifier' has no member named 'VerifyString'
74 | verifier.VerifyString(hashtags()) &&
| ^~~~~~~~~~~~
./headers/instatask_generated.h:75:35: error: 'VT_REQUESTED_BY' was not declared in this scope
75 | VerifyOffset(verifier, VT_REQUESTED_BY) &&
| ^~~~~~~~~~~~~~~
./headers/instatask_generated.h:76:21: error: 'class flatbuffers::Verifier' has no member named 'VerifyString'
76 | verifier.VerifyString(requested_by()) &&
| ^~~~~~~~~~~~
./headers/instatask_generated.h:77:35: error: 'VT_REQUESTED_BY_PHRASE' was not declared in this scope
77 | VerifyOffset(verifier, VT_REQUESTED_BY_PHRASE) &&
| ^~~~~~~~~~~~~~~~~~~~~~
./headers/instatask_generated.h:78:21: error: 'class flatbuffers::Verifier' has no member named 'VerifyString'
78 | verifier.VerifyString(requested_by_phrase()) &&
| ^~~~~~~~~~~~
./headers/instatask_generated.h:79:35: error: 'VT_PROMOTE_SHARE' was not declared in this scope
79 | VerifyOffset(verifier, VT_PROMOTE_SHARE) &&
| ^~~~~~~~~~~~~~~~
./headers/instatask_generated.h:80:21: error: 'class flatbuffers::Verifier' has no member named 'VerifyString'
80 | verifier.VerifyString(promote_share()) &&
| ^~~~~~~~~~~~
./headers/instatask_generated.h:81:35: error: 'VT_LINK_BIO' was not declared in this scope
81 | VerifyOffset(verifier, VT_LINK_BIO) &&
| ^~~~~~~~~~~
./headers/instatask_generated.h:82:21: error: 'class flatbuffers::Verifier' has no member named 'VerifyString'
82 | verifier.VerifyString(link_bio()) &&
| ^~~~~~~~~~~~
./headers/instatask_generated.h:83:43: error: 'VT_IS_VIDEO' was not declared in this scope
83 | VerifyField<uint8_t>(verifier, VT_IS_VIDEO) &&
| ^~~~~~~~~~~
./headers/instatask_generated.h:84:43: error: 'VT_MASK' was not declared in this scope
84 | VerifyField<int32_t>(verifier, VT_MASK) &&
| ^~~~~~~
./headers/instatask_generated.h:85:35: error: 'VT_HEADER' was not declared in this scope; did you mean 'STDC_HEADERS'?
85 | VerifyOffset(verifier, VT_HEADER) &&
| ^~~~~~~~~
| STDC_HEADERS
./headers/instatask_generated.h:86:21: error: 'class flatbuffers::Verifier' has no member named 'VerifyString'
86 | verifier.VerifyString(header()) &&
| ^~~~~~~~~~~~
./headers/instatask_generated.h: In member function 'void IGData::IGTaskBuilder::add_id(int32_t)':
./headers/instatask_generated.h:95:38: error: 'VT_ID' is not a member of 'IGData::IGTask'
95 | fbb_.AddElement<int32_t>(IGTask::VT_ID, id, 0);
| ^~~~~
./headers/instatask_generated.h: In member function 'void IGData::IGTaskBuilder::add_file_info(flatbuffers::Offset<flatbuffers::String>)':
./headers/instatask_generated.h:98:28: error: 'VT_FILE_INFO' is not a member of 'IGData::IGTask'
98 | fbb_.AddOffset(IGTask::VT_FILE_INFO, file_info);
| ^~~~~~~~~~~~
./headers/instatask_generated.h: In member function 'void IGData::IGTaskBuilder::add_time(flatbuffers::Offset<flatbuffers::String>)':
./headers/instatask_generated.h:101:28: error: 'VT_TIME' is not a member of 'IGData::IGTask'
101 | fbb_.AddOffset(IGTask::VT_TIME, time);
| ^~~~~~~
./headers/instatask_generated.h: In member function 'void IGData::IGTaskBuilder::add_description(flatbuffers::Offset<flatbuffers::String>)':
./headers/instatask_generated.h:104:28: error: 'VT_DESCRIPTION' is not a member of 'IGData::IGTask'
104 | fbb_.AddOffset(IGTask::VT_DESCRIPTION, description);
| ^~~~~~~~~~~~~~
./headers/instatask_generated.h: In member function 'void IGData::IGTaskBuilder::add_hashtags(flatbuffers::Offset<flatbuffers::String>)':
./headers/instatask_generated.h:107:28: error: 'VT_HASHTAGS' is not a member of 'IGData::IGTask'
107 | fbb_.AddOffset(IGTask::VT_HASHTAGS, hashtags);
| ^~~~~~~~~~~
./headers/instatask_generated.h: In member function 'void IGData::IGTaskBuilder::add_requested_by(flatbuffers::Offset<flatbuffers::String>)':
./headers/instatask_generated.h:110:28: error: 'VT_REQUESTED_BY' is not a member of 'IGData::IGTask'
110 | fbb_.AddOffset(IGTask::VT_REQUESTED_BY, requested_by);
| ^~~~~~~~~~~~~~~
./headers/instatask_generated.h: In member function 'void IGData::IGTaskBuilder::add_requested_by_phrase(flatbuffers::Offset<flatbuffers::String>)':
./headers/instatask_generated.h:113:28: error: 'VT_REQUESTED_BY_PHRASE' is not a member of 'IGData::IGTask'
113 | fbb_.AddOffset(IGTask::VT_REQUESTED_BY_PHRASE, requested_by_phrase);
| ^~~~~~~~~~~~~~~~~~~~~~
./headers/instatask_generated.h: In member function 'void IGData::IGTaskBuilder::add_promote_share(flatbuffers::Offset<flatbuffers::String>)':
./headers/instatask_generated.h:116:28: error: 'VT_PROMOTE_SHARE' is not a member of 'IGData::IGTask'
116 | fbb_.AddOffset(IGTask::VT_PROMOTE_SHARE, promote_share);
| ^~~~~~~~~~~~~~~~
./headers/instatask_generated.h: In member function 'void IGData::IGTaskBuilder::add_link_bio(flatbuffers::Offset<flatbuffers::String>)':
./headers/instatask_generated.h:119:28: error: 'VT_LINK_BIO' is not a member of 'IGData::IGTask'
119 | fbb_.AddOffset(IGTask::VT_LINK_BIO, link_bio);
| ^~~~~~~~~~~
./headers/instatask_generated.h: In member function 'void IGData::IGTaskBuilder::add_is_video(bool)':
./headers/instatask_generated.h:122:38: error: 'VT_IS_VIDEO' is not a member of 'IGData::IGTask'
122 | fbb_.AddElement<uint8_t>(IGTask::VT_IS_VIDEO, static_cast<uint8_t>(is_video), 0);
| ^~~~~~~~~~~
./headers/instatask_generated.h: In member function 'void IGData::IGTaskBuilder::add_mask(int32_t)':
./headers/instatask_generated.h:125:38: error: 'VT_MASK' is not a member of 'IGData::IGTask'
125 | fbb_.AddElement<int32_t>(IGTask::VT_MASK, mask, 0);
| ^~~~~~~
./headers/instatask_generated.h: In member function 'void IGData::IGTaskBuilder::add_header(flatbuffers::Offset<flatbuffers::String>)':
./headers/instatask_generated.h:128:28: error: 'VT_HEADER' is not a member of 'IGData::IGTask'
128 | fbb_.AddOffset(IGTask::VT_HEADER, header);
| ^~~~~~~~~
In file included from src/client.cpp:1:
./include/client.hpp: In constructor 'Client::Client(QWidget*, int, char**)':
./include/client.hpp:101:16: warning: 'Client::m_commands' will be initialized after [-Wreorder]
101 | CommandMap m_commands;
| ^~~~~~~~~~
./include/client.hpp:100:10: warning: 'bool Client::executing' [-Wreorder]
100 | bool executing;
| ^~~~~~~~~
src/client.cpp:45:1: warning: when initialized here [-Wreorder]
45 | Client::Client(QWidget *parent, int count, char** arguments) : QDialog(parent), argc(count), argv(arguments), m_client_socket_fd(-1), m_commands({}), executing(false) {
| ^~~~~~
src/client.cpp: In member function 'void Client::processFileQueue()':
src/client.cpp:111:90: warning: missing initializer for member 'SentFile::timestamp' [-Wmissing-field-initializers]
111 | sent_files.push_back(SentFile{.name = outgoing_file.name, .type = outgoing_file.type });
| ^
src/client.cpp: In member function 'void Client::execute()':
src/client.cpp:421:67: error: 'QUuid::StringFormat' has not been declared
421 | auto request_id = QUuid::createUuid().toString(QUuid::StringFormat::WithoutBraces);
| ^~~~~~~~~~~~
src/client.cpp:422:115: error: cannot convert '<brace-enclosed initializer list>' to 'QVector<QString>'
422 | emit Client::messageReceived(PROCESS_REQUEST_TYPE, message, { QString{command}, app_name, request_id });
| ^
In file included from src/client.cpp:1:
./include/client.hpp:86:61: note: initializing argument 3 of 'void Client::messageReceived(int, QString, QVector<QString>)'
86 | void messageReceived(int t, QString s, QVector<QString> args);
| ~~~~~~~~~~~~~~~~~^~~~
src/client.cpp:423:143: error: could not convert '{std::__cxx11::to_string(int)(), <expression error>}' from '<brace-enclosed initializer list>' to 'std::vector<std::__cxx11::basic_string<char> >'
423 | std::string execute_operation = createOperation("Execute", {std::to_string(command), std::string(request_id.toUtf8().constData())});
| ^
| |
| <brace-enclosed initializer list>
Makefile:720: recipe for target 'client.o' failed
make: *** [client.o] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment