devbean / orbitswriter Goto Github PK
View Code? Open in Web Editor NEWAn offline blog writer based on Qt framework.
An offline blog writer based on Qt framework.
How to compile the project. Already I tried to compile the project in Qt 5.8 IDE . Here is the compiler output:
12:38:59: Running steps for project orbitswriter...
12:38:59: Configuration unchanged, skipping qmake step.
12:38:59: Starting: "/usr/bin/make"
cd src/ && ( test -e Makefile || /opt/Qt5.8.0/5.8/gcc_64/bin/qmake -o Makefile /home/prism/Desktop/code/orbitswriter/src/src.pro -spec linux-g++ CONFIG+=debug CONFIG+=qml_debug ) && /usr/bin/make -f Makefile
make[1]: Entering directory '/home/prism/Desktop/code/build-orbitswriter-Desktop_Qt_5_8_0_GCC_64bit-Debug/src'
cd libs/ && ( test -e Makefile || /opt/Qt5.8.0/5.8/gcc_64/bin/qmake -o Makefile /home/prism/Desktop/code/orbitswriter/src/libs/libs.pro -spec linux-g++ CONFIG+=debug CONFIG+=qml_debug ) && /usr/bin/make -f Makefile
make[2]: Entering directory '/home/prism/Desktop/code/build-orbitswriter-Desktop_Qt_5_8_0_GCC_64bit-Debug/src/libs'
cd core/ && ( test -e Makefile || /opt/Qt5.8.0/5.8/gcc_64/bin/qmake -o Makefile /home/prism/Desktop/code/orbitswriter/src/libs/core/core.pro -spec linux-g++ CONFIG+=debug CONFIG+=qml_debug ) && /usr/bin/make -f Makefile
make[3]: Entering directory '/home/prism/Desktop/code/build-orbitswriter-Desktop_Qt_5_8_0_GCC_64bit-Debug/src/libs/core'
g++ -c -pipe -g -std=gnu++11 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DCORE_LIBRARY -DLIBRARY_BASENAME=\"libs\" -DQT_NO_CAST_TO_ASCII -DQT_RESTRICTED_CAST_FROM_ASCII -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../../../orbitswriter/src/libs/core -I. -I/home/prism/Desktop/code/build-orbitswriter-Desktop_Qt_5_8_0_GCC_64bit-Debug/src/app -I../../../../orbitswriter/src/libs -I../../../../orbitswriter/src/plugins -I../../../../orbitswriter/src/includes -I/opt/Qt5.8.0/5.8/gcc_64/include -I/opt/Qt5.8.0/5.8/gcc_64/include/QtWidgets -I/opt/Qt5.8.0/5.8/gcc_64/include/QtGui -I/opt/Qt5.8.0/5.8/gcc_64/include/QtCore -I.moc/debug-shared -isystem /usr/include/libdrm -I/opt/Qt5.8.0/5.8/gcc_64/mkspecs/linux-g++ -o .obj/debug-shared/markupgenerator.o ../../../../orbitswriter/src/libs/core/document/markupgenerator.cpp
../../../../orbitswriter/src/libs/core/document/markupgenerator.cpp: In member function ‘void Core::MarkupGenerator::processDocumentContents(QTextFrame::iterator, QTextFrame::iterator)’:
../../../../orbitswriter/src/libs/core/document/markupgenerator.cpp:421:51: error: invalid initialization of non-const reference of type ‘QTextBlock&’ from an rvalue of type ‘QTextBlock’
QTextBlock &block = begin.currentBlock();
^
In file included from /opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qglobal.h:97:0,
from /opt/Qt5.8.0/5.8/gcc_64/include/QtCore/QtGlobal:1,
from ../../../../orbitswriter/src/libs/core/core_global.h:25,
from ../../../../orbitswriter/src/libs/core/document/markupbuilder.h:25,
from ../../../../orbitswriter/src/libs/core/document/markupgenerator.cpp:22:
/opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qhashfunctions.h: In instantiation of ‘uint qHash(const T&, uint) [with T = Core::MarkupElement; uint = unsigned int]’:
/opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qhash.h:920:18: required from ‘QHash<K, V>::Node** QHash<K, V>::findNode(const Key&, uint*) const [with Key = Core::MarkupElement; T = QHashDummyValue; QHash<K, V>::Node = QHashNode<Core::MarkupElement, QHashDummyValue>; uint = unsigned int]’
/opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qhash.h:792:27: required from ‘int QHash<K, V>::remove(const Key&) [with Key = Core::MarkupElement; T = QHashDummyValue]’
/opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qset.h:94:70: required from ‘bool QSet<T>::remove(const T&) [with T = Core::MarkupElement]’
../../../../orbitswriter/src/libs/core/document/markupgenerator.cpp:491:47: required from here
/opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qhashfunctions.h:110:40: error: no matching function for call to ‘qHash(const Core::MarkupElement&)’
Q_DECL_NOEXCEPT_EXPR(noexcept(qHash(t)))
^
/opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qcompilerdetection.h:1134:43: note: in definition of macro ‘Q_DECL_NOEXCEPT_EXPR’
# define Q_DECL_NOEXCEPT_EXPR(x) noexcept(x)
^
In file included from /opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qlist.h:47:0,
from /opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qstringlist.h:41,
from /opt/Qt5.8.0/5.8/gcc_64/include/QtGui/qcolor.h:46,
from /opt/Qt5.8.0/5.8/gcc_64/include/QtGui/qtextformat.h:44,
from /opt/Qt5.8.0/5.8/gcc_64/include/QtGui/QTextListFormat:1,
from ../../../../orbitswriter/src/libs/core/document/markupbuilder.h:27,
from ../../../../orbitswriter/src/libs/core/document/markupgenerator.cpp:22:
/opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qhashfunctions.h:72:52: note: candidate: constexpr uint qHash(char, uint)
Q_DECL_CONST_FUNCTION Q_DECL_CONSTEXPR inline uint qHash(char key, uint seed = 0) Q_DECL_NOTHROW { return uint(key) ^ seed; }
^
/opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qhashfunctions.h:72:52: note: no known conversion for argument 1 from ‘const Core::MarkupElement’ to ‘char’
/opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qhashfunctions.h:73:52: note: candidate: constexpr uint qHash(uchar, uint)
Q_DECL_CONST_FUNCTION Q_DECL_CONSTEXPR inline uint qHash(uchar key, uint seed = 0) Q_DECL_NOTHROW { return uint(key) ^ seed; }
^
/opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qhashfunctions.h:73:52: note: no known conversion for argument 1 from ‘const Core::MarkupElement’ to ‘uchar {aka unsigned char}’
/opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qhashfunctions.h:74:52: note: candidate: constexpr uint qHash(signed char, uint)
Q_DECL_CONST_FUNCTION Q_DECL_CONSTEXPR inline uint qHash(signed char key, uint seed = 0) Q_DECL_NOTHROW { return uint(key) ^ seed; }
^
/opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qhashfunctions.h:74:52: note: no known conversion for argument 1 from ‘const Core::MarkupElement’ to ‘signed char’
In file included from /opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qlist.h:47:0,
from /opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qstringlist.h:41,
from /opt/Qt5.8.0/5.8/gcc_64/include/QtGui/qcolor.h:46,
from /opt/Qt5.8.0/5.8/gcc_64/include/QtGui/qtextformat.h:44,
from /opt/Qt5.8.0/5.8/gcc_64/include/QtGui/QTextListFormat:1,
from ../../../../orbitswriter/src/libs/core/document/markupbuilder.h:27,
from ../../../../orbitswriter/src/libs/core/document/markupgenerator.cpp:22:
/opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qhashfunctions.h:75:52: note: candidate: constexpr uint qHash(ushort, uint)
Q_DECL_CONST_FUNCTION Q_DECL_CONSTEXPR inline uint qHash(ushort key, uint seed = 0) Q_DECL_NOTHROW { return uint(key) ^ seed; }
^
/opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qhashfunctions.h:75:52: note: no known conversion for argument 1 from ‘const Core::MarkupElement’ to ‘ushort {aka short unsigned int}’
/opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qhashfunctions.h:76:52: note: candidate: constexpr uint qHash(short int, uint)
Q_DECL_CONST_FUNCTION Q_DECL_CONSTEXPR inline uint qHash(short key, uint seed = 0) Q_DECL_NOTHROW { return uint(key) ^ seed; }
^
/opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qhashfunctions.h:76:52: note: no known conversion for argument 1 from ‘const Core::MarkupElement’ to ‘short int’
/opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qhashfunctions.h:77:52: note: candidate: constexpr uint qHash(uint, uint)
Q_DECL_CONST_FUNCTION Q_DECL_CONSTEXPR inline uint qHash(uint key, uint seed = 0) Q_DECL_NOTHROW { return key ^ seed; }
^
/opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qhashfunctions.h:77:52: note: no known conversion for argument 1 from ‘const Core::MarkupElement’ to ‘uint {aka unsigned int}’
/opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qhashfunctions.h:78:52: note: candidate: constexpr uint qHash(int, uint)
Q_DECL_CONST_FUNCTION Q_DECL_CONSTEXPR inline uint qHash(int key, uint seed = 0) Q_DECL_NOTHROW { return uint(key) ^ seed; }
^
/opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qhashfunctions.h:78:52: note: no known conversion for argument 1 from ‘const Core::MarkupElement’ to ‘int’
/opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qhashfunctions.h:79:52: note: candidate: constexpr uint qHash(ulong, uint)
Q_DECL_CONST_FUNCTION Q_DECL_CONSTEXPR inline uint qHash(ulong key, uint seed = 0) Q_DECL_NOTHROW
^
/opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qhashfunctions.h:79:52: note: no known conversion for argument 1 from ‘const Core::MarkupElement’ to ‘ulong {aka long unsigned int}’
/opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qhashfunctions.h:85:52: note: candidate: constexpr uint qHash(long int, uint)
Q_DECL_CONST_FUNCTION Q_DECL_CONSTEXPR inline uint qHash(long key, uint seed = 0) Q_DECL_NOTHROW { return qHash(ulong(key), seed); }
^
/opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qhashfunctions.h:85:52: note: no known conversion for argument 1 from ‘const Core::MarkupElement’ to ‘long int’
/opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qhashfunctions.h:86:52: note: candidate: constexpr uint qHash(quint64, uint)
Q_DECL_CONST_FUNCTION Q_DECL_CONSTEXPR inline uint qHash(quint64 key, uint seed = 0) Q_DECL_NOTHROW
^
/opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qhashfunctions.h:86:52: note: no known conversion for argument 1 from ‘const Core::MarkupElement’ to ‘quint64 {aka long long unsigned int}’
/opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qhashfunctions.h:90:52: note: candidate: constexpr uint qHash(qint64, uint)
Q_DECL_CONST_FUNCTION Q_DECL_CONSTEXPR inline uint qHash(qint64 key, uint seed = 0) Q_DECL_NOTHROW { return qHash(quint64(key), seed); }
^
/opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qhashfunctions.h:90:52: note: no known conversion for argument 1 from ‘const Core::MarkupElement’ to ‘qint64 {aka long long int}’
/opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qhashfunctions.h:91:42: note: candidate: uint qHash(float, uint)
Q_CORE_EXPORT Q_DECL_CONST_FUNCTION uint qHash(float key, uint seed = 0) Q_DECL_NOTHROW;
^
/opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qhashfunctions.h:91:42: note: no known conversion for argument 1 from ‘const Core::MarkupElement’ to ‘float’
/opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qhashfunctions.h:92:42: note: candidate: uint qHash(double, uint)
Q_CORE_EXPORT Q_DECL_CONST_FUNCTION uint qHash(double key, uint seed = 0) Q_DECL_NOTHROW;
^
/opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qhashfunctions.h:92:42: note: no known conversion for argument 1 from ‘const Core::MarkupElement’ to ‘double’
/opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qhashfunctions.h:94:42: note: candidate: uint qHash(long double, uint)
Q_CORE_EXPORT Q_DECL_CONST_FUNCTION uint qHash(long double key, uint seed = 0) Q_DECL_NOTHROW;
^
/opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qhashfunctions.h:94:42: note: no known conversion for argument 1 from ‘const Core::MarkupElement’ to ‘long double’
/opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qhashfunctions.h:96:52: note: candidate: constexpr uint qHash(QChar, uint)
Q_DECL_CONST_FUNCTION Q_DECL_CONSTEXPR inline uint qHash(const QChar key, uint seed = 0) Q_DECL_NOTHROW { return qHash(key.unicode(), seed); }
^
/opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qhashfunctions.h:96:52: note: no known conversion for argument 1 from ‘const Core::MarkupElement’ to ‘QChar’
/opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qhashfunctions.h:97:41: note: candidate: uint qHash(const QByteArray&, uint)
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION uint qHash(const QByteArray &key, uint seed = 0) Q_DECL_NOTHROW;
^
/opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qhashfunctions.h:97:41: note: no known conversion for argument 1 from ‘const Core::MarkupElement’ to ‘const QByteArray&’
/opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qhashfunctions.h:98:41: note: candidate: uint qHash(const QString&, uint)
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION uint qHash(const QString &key, uint seed = 0) Q_DECL_NOTHROW;
^
/opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qhashfunctions.h:98:41: note: no known conversion for argument 1 from ‘const Core::MarkupElement’ to ‘const QString&’
/opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qhashfunctions.h:99:41: note: candidate: uint qHash(const QStringRef&, uint)
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION uint qHash(const QStringRef &key, uint seed = 0) Q_DECL_NOTHROW;
^
/opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qhashfunctions.h:99:41: note: no known conversion for argument 1 from ‘const Core::MarkupElement’ to ‘const QStringRef&’
/opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qhashfunctions.h:100:41: note: candidate: uint qHash(const QBitArray&, uint)
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION uint qHash(const QBitArray &key, uint seed = 0) Q_DECL_NOTHROW;
^
/opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qhashfunctions.h:100:41: note: no known conversion for argument 1 from ‘const Core::MarkupElement’ to ‘const QBitArray&’
/opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qhashfunctions.h:101:41: note: candidate: uint qHash(QLatin1String, uint)
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION uint qHash(QLatin1String key, uint seed = 0) Q_DECL_NOTHROW;
^
/opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qhashfunctions.h:101:41: note: no known conversion for argument 1 from ‘const Core::MarkupElement’ to ‘QLatin1String’
/opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qhashfunctions.h:105:32: note: candidate: template<class T> uint qHash(const T*, uint)
template <class T> inline uint qHash(const T *key, uint seed = 0) Q_DECL_NOTHROW
^
/opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qhashfunctions.h:105:32: note: template argument deduction/substitution failed:
In file included from /opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qglobal.h:97:0,
from /opt/Qt5.8.0/5.8/gcc_64/include/QtCore/QtGlobal:1,
from ../../../../orbitswriter/src/libs/core/core_global.h:25,
from ../../../../orbitswriter/src/libs/core/document/markupbuilder.h:25,
from ../../../../orbitswriter/src/libs/core/document/markupgenerator.cpp:22:
/opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qhashfunctions.h:110:40: note: mismatched types ‘const T*’ and ‘Core::MarkupElement’
Q_DECL_NOEXCEPT_EXPR(noexcept(qHash(t)))
^
/opt/Qt5.8.0/5.8/gcc_64/include/QtCore/qcompilerdetection.h:1134:43: note: in definition of macro ‘Q_DECL_NOEXCEPT_EXPR’
# define Q_DECL_NOEXCEPT_EXPR(x) noexcept(x)
^
Makefile:2733: recipe for target '.obj/debug-shared/markupgenerator.o' failed
make[3]: Leaving directory '/home/prism/Desktop/code/build-orbitswriter-Desktop_Qt_5_8_0_GCC_64bit-Debug/src/libs/core'
make[3]: *** [.obj/debug-shared/markupgenerator.o] Error 1
make[2]: *** [sub-core-make_first-ordered] Error 2
Makefile:42: recipe for target 'sub-core-make_first-ordered' failed
make[2]: Leaving directory '/home/prism/Desktop/code/build-orbitswriter-Desktop_Qt_5_8_0_GCC_64bit-Debug/src/libs'
Makefile:44: recipe for target 'sub-libs-make_first-ordered' failed
make[1]: Leaving directory '/home/prism/Desktop/code/build-orbitswriter-Desktop_Qt_5_8_0_GCC_64bit-Debug/src'
make[1]: *** [sub-libs-make_first-ordered] Error 2
make: *** [sub-src-make_first-ordered] Error 2
Makefile:42: recipe for target 'sub-src-make_first-ordered' failed
12:39:01: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project orbitswriter (kit: Desktop Qt 5.8.0 GCC 64bit)
When executing step "Make"
12:39:01: Elapsed time: 00:02.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.