[Continued from
Where is Qt uiTools module?]
I've tried building SQLiteStudio with clang,
Code:
$ cc --version
$ c++ --version
OpenBSD clang version 6.0.0 (tags/RELEASE_600/final) (based on LLVM 6.0.0)
Target: amd64-unknown-openbsd6.3
Thread model: posix
InstalledDir: /usr/bin
using two different commands:
$ qmake-qt5 ../../SQLiteStudio3 ; make
$ export CC=cc; export CXX=c++; qmake-qt5 ../../SQLiteStudio3 ; make
They both generate the same error:
Code:
c++ -c -pipe -pedantic -O2 -std=gnu++11 -Wall -W -pthread -fPIC -DCORESQLITESTUDIO_LIBRARY -DQT_NO_DEBUG -DQT_SCRIPT_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -isystem /usr/include/c++/v1 -I../../../SQLiteStudio3/coreSQLiteStudio -I. -I../../../SQLiteStudio3/coreSQLiteStudio -I../../../SQLiteStudio3/guiSQLiteStudio -I/home/gustaf/Source/SQLiteStudio/SQLiteStudio3/../output/build/guiSQLiteStudio -I/usr/local/include/X11/qt5 -I/usr/local/include/X11/qt5/QtScript -I/usr/local/include/X11/qt5/QtNetwork -I/usr/local/include/X11/qt5/QtCore -I. -I/usr/local/include -I/usr/local/lib/qt5/mkspecs/openbsd-clang -o ./utils_sql.o ../../../SQLiteStudio3/coreSQLiteStudio/common/utils_sql.cpp
In file included from ../../../SQLiteStudio3/coreSQLiteStudio/common/utils_sql.cpp:1:
In file included from ../../../SQLiteStudio3/coreSQLiteStudio/common/utils_sql.h:5:
In file included from ../../../SQLiteStudio3/coreSQLiteStudio/parser/token.h:4:
In file included from ../../../SQLiteStudio3/coreSQLiteStudio/common/utils.h:4:
In file included from ../../../SQLiteStudio3/coreSQLiteStudio/coreSQLiteStudio_global.h:4:
In file included from /usr/local/include/X11/qt5/QtCore/qglobal.h:45:
/usr/include/c++/v1/type_traits:4287:23: error: calling 'operator()' with incomplete return type 'QVariant'
_LIBCPP_INVOKE_RETURN(_VSTD::forward<_Fp>(__f)(_VSTD::forward<_Args>(__args)...))
~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/v1/__config:462:15: note: expanded from macro '_VSTD'
#define _VSTD std::_LIBCPP_NAMESPACE
^
/usr/include/c++/v1/type_traits:4184:23: note: expanded from macro '_LIBCPP_INVOKE_RETURN'
noexcept(noexcept(__VA_ARGS__)) -> decltype(__VA_ARGS__) \
^~~~~~~~~~~
/usr/include/c++/v1/type_traits:4304:9: note: in instantiation of exception specification for '__invoke<std::__1::function<QVariant
(const QList<QVariant> &, Db *, bool &)> &, const QList<QVariant> &, Db *, bool &>' requested here
_VSTD::__invoke(_VSTD::declval<_Fp>(), _VSTD::declval<_Args>()...));
^
/usr/include/c++/v1/__config:462:15: note: expanded from macro '_VSTD'
#define _VSTD std::_LIBCPP_NAMESPACE
^
/usr/include/c++/v1/functional:1574:33: note: in instantiation of template class 'std::__1::__invokable_r<void, std::__1::function<QVariant
(const QList<QVariant> &, Db *, bool &)> &, const QList<QVariant> &, Db *, bool &>' requested here
__invokable<_Fp&, _ArgTypes...>::value>
^
/usr/include/c++/v1/functional:1601:41: note: in instantiation of default argument for '__callable<std::__1::function<QVariant
(const QList<QVariant> &, Db *, bool &)> >' required here
__callable<_Fp>::value &&
^~~~~~~~~~~~~~~
/usr/include/c++/v1/functional:1561:29: note: while substituting deduced template arguments into function template 'function' [with _Fp =
std::__1::function<QVariant (const QList<QVariant> &, Db *, bool &)>]
class _LIBCPP_TYPE_VIS_ONLY function<_Rp(_ArgTypes...)>
../../../SQLiteStudio3/coreSQLiteStudio/services/functionmanager.h:51:27: note: while declaring the implicit copy constructor for 'NativeFunction'
struct API_EXPORT NativeFunction : public FunctionBase
^
/usr/include/c++/v1/functional:1654:9: note: 'operator()' declared here
_Rp operator()(_ArgTypes...) const;
^
/usr/local/include/X11/qt5/QtCore/qmetatype.h:1881:1: note: forward declaration of 'QVariant'
QT_FOR_EACH_STATIC_CORE_CLASS(QT_FORWARD_DECLARE_STATIC_TYPES_ITER)
^
/usr/local/include/X11/qt5/QtCore/qmetatype.h:114:21: note: expanded from macro 'QT_FOR_EACH_STATIC_CORE_CLASS'
F(QVariant, 41, QVariant) \
^
1 error generated.
*** Error 1 in coreSQLiteStudio (Makefile:8630 './utils_sql.o')
*** Error 1 in /home/gustaf/Source/SQLiteStudio/output/build (Makefile:51 'sub-coreSQLiteStudio-make_first')
Can I fix this and get the program to build or do I need to contact the developer?
PS -- I'm not sure where to post this thread. There doesn't seem to be a category for building things outside the ports tree.