This forum has been archived. All content is frozen. Please use KDE Discuss instead.

qtdocgallery compile errors

Tags: None
(comma "," separated)
parkham
Registered Member
Posts
0
Karma
0

qtdocgallery compile errors

Mon Feb 01, 2021 9:31 pm
debian 10

I'm getting qtdocgallery compile errors while attempting to run ./kdesrc-build and attempting to compile qtbase etc..

If this is a test, I'm failing it...

Here is relevant section of qt5-build-include
Code: Select all
    use-modules qtbase qtdeclarative qtgraphicaleffects qtimageformats          \
        qtmultimedia qtquickcontrols qtquickcontrols2 qtscript qtsensors qtsvg  \
        qttools qtwayland qtwebchannel qtwebsockets qtwebview qtx11extras       \
        qtnetworkauth qtspeech qtxmlpatterns

    # qtwebengine is very different to the rest of Qt. You can try ignoring it if
    # you cannot get it to compile by uncommenting the next line.
    ignore-modules qtdocgallery qtdoc


I thought I excluded qtdocgallery but it still keeps referring to it in the build log. Quite possible I have no clue what I'm doing.

A section of the build log

Code: Select all
cd imports/ && ( test -e Makefile || /opt/kde/build/Qt5/qtbase/bin/qmake -o Makefile /opt/kde/src/Qt5/qtquick3d/src/imports/imports.pro ) && make -f Makefile
In file included from /usr/include/c++/8/memory:67,
                 from .moc/moc_qabstractgallery.cpp:9,
                 from /opt/kde/src/Qt5/qtdocgallery/src/gallery/qabstractgallery.cpp:125:
/usr/include/c++/8/bits/stl_raw_storage_iter.h:69:22: error: expected template-name before ‘<’ token
     : public iterator<output_iterator_tag, void, void, void, void>
                      ^
/usr/include/c++/8/bits/stl_raw_storage_iter.h:69:22: error: expected ‘{’ before ‘<’ token
In file included from /usr/include/c++/8/memory:74,
                 from .moc/moc_qabstractgallery.cpp:9,
                 from /opt/kde/src/Qt5/qtdocgallery/src/gallery/qabstractgallery.cpp:125:
/usr/include/c++/8/ext/concurrence.h:68:3: error: expected class-name before ‘{’ token
   {


.kdesrc-buildrc

Code: Select all
# Autogenerated by kdesrc-build-setup. You may modify this file if desired.
global

    # The path to your Qt installation (default is empty, assumes Qt provided
    # by system)
    qtdir /opt/kde/qt5

    # Finds and includes *KDE*-based dependencies into the build.  This makes
    # it easier to ensure that you have all the modules needed, but the
    # dependencies are not very fine-grained so this can result in quite a few
    # modules being installed that you didn't need.
    include-dependencies true

    # Install directory for KDE software
    kdedir /opt/kde

    # Directory for downloaded source code
    source-dir /opt/kde/src

    # Directory to build KDE into before installing
    # relative to source-dir by default
    build-dir /opt/kde/build

   ## kdesrc-build sets 2 options which you can use in options like make-options or set-env
    # to help manage the number of compile jobs that # happen during a build:
    #
    # 1. num-cores, which is just the number of detected CPU cores, and can be passed
    #    to tools like make (needed for parallel build) or ninja (completely optional).
    #
    # 2. num-cores-low-mem, which is set to largest value that appears safe for
    #    particularly heavyweight modules based on total memory, intended for
    #    modules like qtwebengine
    num-cores 8
    num-cores-low-mem 8

    # Use multiple cores for building. Other options to GNU make may also be
    # set.
    make-options -j ${num-cores}

    # kdesrc-build can install a sample .xsession file for "Custom"
    # (or "XSession") logins,
    install-session-driver false

    # or add a environment variable-setting script to
    # ~/.config/kde-env-master.sh
    install-environment-driver true

    # Stop the build process on the first failure
    stop-on-failure true

    # Use a flat folder structure under /opt/kde/src and ~/kde/build
    # rather than nested directories
    #ignore-kde-structure false
    #directory-layout true
   
end global

# Common options that should be set for some KDE modules no matter how
# kdesrc-build finds them. Do not comment these out unless you know
# what you are doing.
include /opt/kde/kdesrc-build/kf5-common-options-build-include

# Refers to the qt5 file included as part of kdesrc-build. The file
# is simply read-in at this point as if you'd typed it in yourself.
include /opt/kde/kdesrc-build/qt5-build-include

# Support libraries that use Qt5
include /opt/kde/kdesrc-build/custom-qt5-libs-build-include

# Refers to the kf5-frameworks file included as part of kdesrc-build. The file
# is simply read-in at this point as if you'd typed it in yourself.
include /opt/kde/kdesrc-build/kf5-frameworks-build-include

# Refers to the kf5-workspace file included as part of kdesrc-build. The file
# is simply read-in at this point as if you'd typed it in yourself.
include /opt/kde/kdesrc-build/kf5-workspace-build-include

# Refers to the kf5-applications file included as part of kdesrc-build. The file
# is simply read-in at this point as if you'd typed it in yourself.
include /opt/kde/kdesrc-build/kf5-applications-build-include

# Refers to the kf5-kdepim file included as part of kdesrc-build. The file
# is simply read-in at this point as if you'd typed it in yourself.
include /opt/kde/kdesrc-build/kf5-kdepim-build-include
parkham
Registered Member
Posts
0
Karma
0

Re: qtdocgallery compile errors  Topic is solved

Wed Feb 03, 2021 3:55 pm
Big thanks to Johan Ouwerkerk on the Qt.io dev board - my kde 5.15 source code on Debian Buster is happily compiling as we speak.

The information below fixed my issue with qtdocgallery invading everything and erroring out. I believe that I read correctly that qtdocgallery is going to be removed in the future.
Anyway, if you're having issues like I was, add this to in your ~/kdesrc-build.rc :

Code: Select all
    options qt5-set
    branch 5.15
    configure-flags -release -reduce-relocations -force-debug-info -separate-debug-info \
    -skip qtdocgallery -skip qtquick3d -skip qtwebengine
    end options


Adding ignore-modules qtwebengine qtdocgallery to the qt5-build-include did not ignore the modules, fyi


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]