Compilation error
tbadalov opened this issue · 2 comments
tbadalov commented
When running make, I get the following error. OS: Fedora 29.
[ 2%] Built target small_lib
[ 3%] Built target sqlquery_lib
[ 6%] Built target cqmakedb
[ 7%] Built target cqsearch
[ 7%] Automatic MOC for target scintillaedit
[ 7%] Built target scintillaedit_autogen
[ 75%] Built target scintillaedit
[ 75%] Automatic MOC for target cqshowgraph-qt5
AutoGen warning
---------------
"/home/turik1997/c/codequery/showgraph/Utils/utils.cpp"
The source file is empty
[ 75%] Built target cqshowgraph-qt5_autogen
[ 75%] Building CXX object showgraph/CMakeFiles/cqshowgraph-qt5.dir/cqshowgraph-qt5_autogen/mocs_compilation.cpp.o
In file included from /home/turik1997/c/codequery/build/showgraph/cqshowgraph-qt5_autogen/JNOYJCHDPI/../../../../showgraph/GraphView/../Graph/../Utils/utils_iface.h:31,
from /home/turik1997/c/codequery/build/showgraph/cqshowgraph-qt5_autogen/JNOYJCHDPI/../../../../showgraph/GraphView/../Graph/predecls.h:32,
from /home/turik1997/c/codequery/build/showgraph/cqshowgraph-qt5_autogen/JNOYJCHDPI/../../../../showgraph/GraphView/../Graph/graph_iface.h:29,
from /home/turik1997/c/codequery/build/showgraph/cqshowgraph-qt5_autogen/JNOYJCHDPI/../../../../showgraph/GraphView/gview_iface.h:57,
from /home/turik1997/c/codequery/build/showgraph/cqshowgraph-qt5_autogen/JNOYJCHDPI/../../../../showgraph/GraphView/gview_impl.h:23,
from /home/turik1997/c/codequery/build/showgraph/cqshowgraph-qt5_autogen/JNOYJCHDPI/../../../../showgraph/GraphView/graph_view.h:38,
from /home/turik1997/c/codequery/build/showgraph/cqshowgraph-qt5_autogen/JNOYJCHDPI/moc_graph_view.cpp:9,
from /home/turik1997/c/codequery/build/showgraph/cqshowgraph-qt5_autogen/mocs_compilation.cpp:2:
/home/turik1997/c/codequery/build/showgraph/cqshowgraph-qt5_autogen/JNOYJCHDPI/../../../../showgraph/GraphView/../Graph/../Utils/asrt.h:78:61: error: macro "assert" passed 2 arguments, but takes just 1
template<class Excpt> inline void assert( bool asrt, Excpt e)
^
make installIn file included from /usr/include/qt5/QtCore/qglobal.h:50,
from /usr/include/qt5/QtCore/QtCore:4,
from /usr/include/qt5/QtWidgets/QtWidgetsDepends:3,
from /usr/include/qt5/QtWidgets/QtWidgets:3,
from /home/turik1997/c/codequery/build/showgraph/cqshowgraph-qt5_autogen/JNOYJCHDPI/../../../../showgraph/GraphView/gview_iface.h:46,
from /home/turik1997/c/codequery/build/showgraph/cqshowgraph-qt5_autogen/JNOYJCHDPI/../../../../showgraph/GraphView/gview_impl.h:23,
from /home/turik1997/c/codequery/build/showgraph/cqshowgraph-qt5_autogen/JNOYJCHDPI/../../../../showgraph/GraphView/graph_view.h:38,
from /home/turik1997/c/codequery/build/showgraph/cqshowgraph-qt5_autogen/JNOYJCHDPI/moc_graph_view.cpp:9,
from /home/turik1997/c/codequery/build/showgraph/cqshowgraph-qt5_autogen/mocs_compilation.cpp:2:
/home/turik1997/c/codequery/build/showgraph/cqshowgraph-qt5_autogen/JNOYJCHDPI/../../../../showgraph/GraphView/../Graph/../Utils/asrt.h:66:35: error: expected unqualified-id before ‘static_cast’
template<class Excpt> inline void assert( bool assertion)
^~~~~~
/home/turik1997/c/codequery/build/showgraph/cqshowgraph-qt5_autogen/JNOYJCHDPI/../../../../showgraph/GraphView/../Graph/../Utils/asrt.h:66:35: error: expected ‘)’ before ‘static_cast’
In file included from /home/turik1997/c/codequery/build/showgraph/cqshowgraph-qt5_autogen/JNOYJCHDPI/../../../../showgraph/GraphView/../Graph/../Utils/utils_iface.h:31,
from /home/turik1997/c/codequery/build/showgraph/cqshowgraph-qt5_autogen/JNOYJCHDPI/../../../../showgraph/GraphView/../Graph/predecls.h:32,
from /home/turik1997/c/codequery/build/showgraph/cqshowgraph-qt5_autogen/JNOYJCHDPI/../../../../showgraph/GraphView/../Graph/graph_iface.h:29,
from /home/turik1997/c/codequery/build/showgraph/cqshowgraph-qt5_autogen/JNOYJCHDPI/../../../../showgraph/GraphView/gview_iface.h:57,
from /home/turik1997/c/codequery/build/showgraph/cqshowgraph-qt5_autogen/JNOYJCHDPI/../../../../showgraph/GraphView/gview_impl.h:23,
from /home/turik1997/c/codequery/build/showgraph/cqshowgraph-qt5_autogen/JNOYJCHDPI/../../../../showgraph/GraphView/graph_view.h:38,
from /home/turik1997/c/codequery/build/showgraph/cqshowgraph-qt5_autogen/JNOYJCHDPI/moc_graph_view.cpp:9,
from /home/turik1997/c/codequery/build/showgraph/cqshowgraph-qt5_autogen/mocs_compilation.cpp:2:
/home/turik1997/c/codequery/build/showgraph/cqshowgraph-qt5_autogen/JNOYJCHDPI/../../../../showgraph/GraphView/../Graph/../Utils/asrt.h:78:35: error: variable or field ‘assert’ declared void
template<class Excpt> inline void assert( bool asrt, Excpt e)
^~~~~~
/home/turik1997/c/codequery/build/showgraph/cqshowgraph-qt5_autogen/JNOYJCHDPI/../../../../showgraph/GraphView/../Graph/../Utils/asrt.h:80:5: error: expected primary-expression before ‘if’
if ( !asrt)
^~
/home/turik1997/c/codequery/build/showgraph/cqshowgraph-qt5_autogen/JNOYJCHDPI/../../../../showgraph/GraphView/../Graph/../Utils/asrt.h:80:5: error: expected ‘}’ before ‘if’
/home/turik1997/c/codequery/build/showgraph/cqshowgraph-qt5_autogen/JNOYJCHDPI/../../../../showgraph/GraphView/../Graph/../Utils/asrt.h:79:1: note: to match this ‘{’
{
^
/home/turik1997/c/codequery/build/showgraph/cqshowgraph-qt5_autogen/JNOYJCHDPI/../../../../showgraph/GraphView/../Graph/../Utils/asrt.h:84:1: error: expected declaration before ‘}’ token
}
^
make[2]: *** [showgraph/CMakeFiles/cqshowgraph-qt5.dir/build.make:63: showgraph/CMakeFiles/cqshowgraph-qt5.dir/cqshowgraph-qt5_autogen/mocs_compilation.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:385: showgraph/CMakeFiles/cqshowgraph-qt5.dir/all] Error 2
make: *** [Makefile:152: all] Error 2
ruben2020 commented
I could reproduce this. Thanks.
ruben2020 commented
Hi @turok1997
In my latest code in the develop
branch, this problem does not happen. So, it's considered fixed.