LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   BLFS: Can't build libdbusmenu-qt (https://www.linuxquestions.org/questions/linux-from-scratch-13/blfs-cant-build-libdbusmenu-qt-4175662101/)

Dalkiel 10-06-2019 08:23 AM

BLFS: Can't build libdbusmenu-qt
 
Hello, first of all, sorry for my english.

It's my first time trying to build an LFS system, at this moment I'm trying to build KDE, but I can't build libdbusmenu-qt

I'm getting this error at 9% compilation:

Code:

[  9%] Generating dbusmenuadaptor.moc
usr/include/c++/9.2.0/type_trait:40: Parse error at "std"
make[2]: *** [src/CMakeFiles/dbusmenu-qt5.dir/build.make:62: src/dbusmenuadaptor.moc] Error 1
make[1]: *** [CMakeFiles/Makefile2:185: src/CMakeFiles/dbusmenu-qt5.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

If I try to rebuild without cleaning the directory, it fails at 6%:

Code:

[  6%] Generating dbusmenuadaptor.moc
usr/include/c++/9.2.0/type_trait:40: Parse error at "std"
make[2]: *** [src/CMakeFiles/dbusmenu-qt5.dir/build.make:62: src/dbusmenuadaptor.moc] Error 1
make[1]: *** [CMakeFiles/Makefile2:185: src/CMakeFiles/dbusmenu-qt5.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

Also, the following warnings appear before the error shows:

Code:

warning: Tag 'SYMBOL_CACHE_SIZE' at line 42 of file 'Doxyfile' has become obsolete.
        To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag 'SHOW_DIRECTORIES' at line 75 of file 'Doxyfile' has become obsolete.
        To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag 'HTML_ALIGN_MEMBERS' at line 139 of file 'Doxyfile' has become obsolete.
        To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag 'USE_INLINE_TREES' at line 166 of file 'Doxyfile' has become obsolete.
        To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag 'XML_SCHEMA' at line 212 of file 'Doxyfile' has become obsolete.
        To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag 'XML_DTD' at line 213 of file 'Doxyfile' has become obsolete.
        To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag 'PERL_PATH' at line 245 of file 'Doxyfile' has become obsolete.
        To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag 'MSCGEN_PATH' at line 250 of file 'Doxyfile' has become obsolete.
        To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
[  0%] Built target doc
[  3%] Automatic MOC for target dbusmenu-qt5
AutoMoc warning
---------------
  "/sources/libdbusmenu-qt/src/dbusmenu_p.cpp"
The file includes the moc file "dbusmenu_p.moc", but does not contain a
Q_OBJECT, Q_GADGET or Q_NAMESPACE macro.
Running moc on the header
  "/sources/libdbusmenu-qt/src/dbusmenu_p.h"!
Better include "moc_dbusmenu_p.cpp" for a compatibility with regular mode.
This is a CMAKE_AUTOMOC_RELAXED_MODE warning.

AutoMoc warning
---------------
  "/sources/libdbusmenu-qt/src/dbusmenuexporter.cpp"
The file includes the moc file "dbusmenuexporter.moc", but does not contain a
Q_OBJECT, Q_GADGET or Q_NAMESPACE macro.
Running moc on the header
  "/sources/libdbusmenu-qt/src/dbusmenuexporter.h"!
Better include "moc_dbusmenuexporter.cpp" for a compatibility with regular mode.
This is a CMAKE_AUTOMOC_RELAXED_MODE warning.

AutoMoc warning
---------------
  "/sources/libdbusmenu-qt/src/dbusmenuexporterdbus_p.cpp"
The file includes the moc file "dbusmenuexporterdbus_p.moc", but does not contain a
Q_OBJECT, Q_GADGET or Q_NAMESPACE macro.
Running moc on the header
  "/sources/libdbusmenu-qt/src/dbusmenuexporterdbus_p.h"!
Better include "moc_dbusmenuexporterdbus_p.cpp" for a compatibility with regular mode.
This is a CMAKE_AUTOMOC_RELAXED_MODE warning.

AutoMoc warning
---------------
  "/sources/libdbusmenu-qt/src/dbusmenuimporter.cpp"
The file includes the moc file "dbusmenuimporter.moc", but does not contain a
Q_OBJECT, Q_GADGET or Q_NAMESPACE macro.
Running moc on the header
  "/sources/libdbusmenu-qt/src/dbusmenuimporter.h"!
Better include "moc_dbusmenuimporter.cpp" for a compatibility with regular mode.
This is a CMAKE_AUTOMOC_RELAXED_MODE warning.

I've been trying to fix this since last night, but I have not found anything. It's my first time building LFS, so I have no clue on what is happening, my best guess is that some file is getting created every time it compiles a file and it can't be rewrited afterwards.

Full log:

Code:

root [ /sources/libdbusmenu-qt ]# mkdir build && cd    build && cmake -DCMAKE_INSTALL_PREFIX=/usr      -DCMAKE_BUILD_TYPE=Release    -Wno-dev .. && make
-- The C compiler identification is GNU 9.2.0
-- The CXX compiler identification is GNU 9.2.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Autodetecting Qt version to use
-- Performing Test __DBUSMENU_HAVE_GCC_VISIBILITY
-- Performing Test __DBUSMENU_HAVE_GCC_VISIBILITY - Success
-- Performing Test __DBUSMENU_HAVE_W_OVERLOADED_VIRTUAL
-- Performing Test __DBUSMENU_HAVE_W_OVERLOADED_VIRTUAL - Success
-- Performing Test __DBUSMENU_HAVE_CXX11
-- Performing Test __DBUSMENU_HAVE_CXX11 - Success
-- Performing Test __DBUSMENU_HAVE_W_ALL
-- Performing Test __DBUSMENU_HAVE_W_ALL - Success
-- Performing Test HAVE_QICON_NAME
-- Performing Test HAVE_QICON_NAME - Success
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2")
-- Checking for module 'QJson>=0.5'
--  No package 'QJson' found
-- Could NOT find QJSON (missing: QJSON_LIBRARIES QJSON_INCLUDE_DIR)
-- QJSON not found, testapp will not be built
-- Configuring done
-- Generating done
-- Build files have been written to: /sources/libdbusmenu-qt/build
Scanning dependencies of target doc
warning: Tag 'SYMBOL_CACHE_SIZE' at line 42 of file 'Doxyfile' has become obsolete.
        To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag 'SHOW_DIRECTORIES' at line 75 of file 'Doxyfile' has become obsolete.
        To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag 'HTML_ALIGN_MEMBERS' at line 139 of file 'Doxyfile' has become obsolete.
        To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag 'USE_INLINE_TREES' at line 166 of file 'Doxyfile' has become obsolete.
        To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag 'XML_SCHEMA' at line 212 of file 'Doxyfile' has become obsolete.
        To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag 'XML_DTD' at line 213 of file 'Doxyfile' has become obsolete.
        To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag 'PERL_PATH' at line 245 of file 'Doxyfile' has become obsolete.
        To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag 'MSCGEN_PATH' at line 250 of file 'Doxyfile' has become obsolete.
        To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
[  0%] Built target doc
Scanning dependencies of target dbusmenu-qt5_autogen
[  3%] Automatic MOC for target dbusmenu-qt5
AutoMoc warning
---------------
  "/sources/libdbusmenu-qt/src/dbusmenu_p.cpp"
The file includes the moc file "dbusmenu_p.moc", but does not contain a
Q_OBJECT, Q_GADGET or Q_NAMESPACE macro.
Running moc on the header
  "/sources/libdbusmenu-qt/src/dbusmenu_p.h"!
Better include "moc_dbusmenu_p.cpp" for a compatibility with regular mode.
This is a CMAKE_AUTOMOC_RELAXED_MODE warning.

AutoMoc warning
---------------
  "/sources/libdbusmenu-qt/src/dbusmenuexporter.cpp"
The file includes the moc file "dbusmenuexporter.moc", but does not contain a
Q_OBJECT, Q_GADGET or Q_NAMESPACE macro.
Running moc on the header
  "/sources/libdbusmenu-qt/src/dbusmenuexporter.h"!
Better include "moc_dbusmenuexporter.cpp" for a compatibility with regular mode.
This is a CMAKE_AUTOMOC_RELAXED_MODE warning.

AutoMoc warning
---------------
  "/sources/libdbusmenu-qt/src/dbusmenuexporterdbus_p.cpp"
The file includes the moc file "dbusmenuexporterdbus_p.moc", but does not contain a
Q_OBJECT, Q_GADGET or Q_NAMESPACE macro.
Running moc on the header
  "/sources/libdbusmenu-qt/src/dbusmenuexporterdbus_p.h"!
Better include "moc_dbusmenuexporterdbus_p.cpp" for a compatibility with regular mode.
This is a CMAKE_AUTOMOC_RELAXED_MODE warning.

AutoMoc warning
---------------
  "/sources/libdbusmenu-qt/src/dbusmenuimporter.cpp"
The file includes the moc file "dbusmenuimporter.moc", but does not contain a
Q_OBJECT, Q_GADGET or Q_NAMESPACE macro.
Running moc on the header
  "/sources/libdbusmenu-qt/src/dbusmenuimporter.h"!
Better include "moc_dbusmenuimporter.cpp" for a compatibility with regular mode.
This is a CMAKE_AUTOMOC_RELAXED_MODE warning.

[  3%] Built target dbusmenu-qt5_autogen
[  6%] Generating dbusmenuadaptor.cpp, dbusmenuadaptor.h
qdbusxml2cpp: Warning: deprecated annotation 'com.trolltech.QtDBus.QtTypeName.Out0' found while processing '/sources/libdbusmenu-qt/src/com.canonical.dbusmenu.xml'; suggest updating to 'org.qtproject.QtDBus.QtTypeName.Out0'
qdbusxml2cpp: Warning: deprecated annotation 'com.trolltech.QtDBus.QtTypeName.In0' found while processing '/sources/libdbusmenu-qt/src/com.canonical.dbusmenu.xml'; suggest updating to 'org.qtproject.QtDBus.QtTypeName.In0'
qdbusxml2cpp: Warning: deprecated annotation 'com.trolltech.QtDBus.QtTypeName.In0' found while processing '/sources/libdbusmenu-qt/src/com.canonical.dbusmenu.xml'; suggest updating to 'org.qtproject.QtDBus.QtTypeName.In0'
qdbusxml2cpp: Warning: deprecated annotation 'com.trolltech.QtDBus.QtTypeName.Out1' found while processing '/sources/libdbusmenu-qt/src/com.canonical.dbusmenu.xml'; suggest updating to 'org.qtproject.QtDBus.QtTypeName.Out1'
qdbusxml2cpp: Warning: deprecated annotation 'com.trolltech.QtDBus.QtTypeName.Out1' found while processing '/sources/libdbusmenu-qt/src/com.canonical.dbusmenu.xml'; suggest updating to 'org.qtproject.QtDBus.QtTypeName.Out1'
qdbusxml2cpp: Got unknown type `a(ia{sv})' processing '/sources/libdbusmenu-qt/src/com.canonical.dbusmenu.xml'
You should add <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="<type>"/> to the XML description
qdbusxml2cpp: Warning: deprecated annotation 'com.trolltech.QtDBus.QtTypeName.In0' found while processing '/sources/libdbusmenu-qt/src/com.canonical.dbusmenu.xml'; suggest updating to 'org.qtproject.QtDBus.QtTypeName.In0'
qdbusxml2cpp: Got unknown type `a(ias)' processing '/sources/libdbusmenu-qt/src/com.canonical.dbusmenu.xml'
You should add <annotation name="org.qtproject.QtDBus.QtTypeName.Out1" value="<type>"/> to the XML description
qdbusxml2cpp: Warning: deprecated annotation 'com.trolltech.QtDBus.QtTypeName.In1' found while processing '/sources/libdbusmenu-qt/src/com.canonical.dbusmenu.xml'; suggest updating to 'org.qtproject.QtDBus.QtTypeName.In1'
[  9%] Generating dbusmenuadaptor.moc
usr/include/c++/9.2.0/type_trait:40: Parse error at "std"
make[2]: *** [src/CMakeFiles/dbusmenu-qt5.dir/build.make:62: src/dbusmenuadaptor.moc] Error 1
make[1]: *** [CMakeFiles/Makefile2:185: src/CMakeFiles/dbusmenu-qt5.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

Any ideas? Thanks in advance.

arch-linq 10-07-2019 01:27 PM

I'd suspect QT5 and rebuild making sure it has no errors before installing.


All times are GMT -5. The time now is 12:59 PM.