Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-598

build failure regarding wrong API for QWebDatabase() and QWebHistoryItem()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: dev
    • Fix Version/s: None
    • Component/s: PySide
    • Labels:

      Description

      I am trying to build pyside with the following configuration:

      cmake -C /var/tmp/portage/dev-python/pyside-9999/work/pyside-9999/sources/pyside2-python2_7/gentoo_common_config.cmake -G Unix Makefiles -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTS=no -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Charts=yes -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Concurrent=yes -DCMAKE_DISABLE_FIND_PACKAGE_Qt5DataVisualization=yes -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Designer=yes -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Gui=no -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Help=yes -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Multimedia=yes -DCMAKE_DISABLE_FIND_PACKAGE_Qt5MultimediaWidgets=yes -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Network=no -DCMAKE_DISABLE_FIND_PACKAGE_Qt5OpenGL=no -DCMAKE_DISABLE_FIND_PACKAGE_Qt5PrintSupport=no -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Qml=yes -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Quick=yes -DCMAKE_DISABLE_FIND_PACKAGE_Qt5QuickWidgets=yes -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Script=yes -DCMAKE_DISABLE_FIND_PACKAGE_Qt5ScriptTools=yes -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Sql=no -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Svg=no -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Test=yes -DCMAKE_DISABLE_FIND_PACKAGE_Qt5UiTools=yes -DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebChannel=yes -DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebEngineWidgets=yes -DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebKit=no -DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebKitWidgets=no -DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebSockets=yes -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Widgets=no -DCMAKE_DISABLE_FIND_PACKAGE_Qt5X11Extras=yes -DCMAKE_DISABLE_FIND_PACKAGE_Qt5XmlPatterns=yes -DPYTHON_EXECUTABLE=/usr/bin/python2.7 -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_USER_MAKE_RULES_OVERRIDE=/var/tmp/portage/dev-python/pyside-9999/work/pyside-9999/sources/pyside2-python2_7/gentoo_rules.cmake -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/dev-python/pyside-9999/work/pyside-9999/sources/pyside2-python2_7/gentoo_toolchain.cmake  /var/tmp/portage/dev-python/pyside-9999/work/pyside-9999/sources/pyside2
      loading initial cache file /var/tmp/portage/dev-python/pyside-9999/work/pyside-9999/sources/pyside2-python2_7/gentoo_common_config.cmake
      -- The C compiler identification is GNU 6.4.0
      -- The CXX compiler identification is GNU 6.4.0
      -- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc
      -- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc -- 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/x86_64-pc-linux-gnu-g++
      -- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++ -- works
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.14", minimum required is "2.6")
      -- Found PythonLibs: /usr/lib/libpython2.7.so (found suitable version "2.7.14", minimum required is "2.6")
      PYTHON_EXTENSION_SUFFIX:
      -- PYTHON_EXTENSION_SUFFIX:
      -- PYTHON_CONFIG_SUFFIX:         -python2.7
      -- PYTHON_SHARED_LIBRARY_SUFFIX: -python2.7
      -- libshiboken built for Release
      result:/usr/include/GL/gl.h
      -- *** Qt5Core_INCLUDE_DIRS = /usr/include/qt5/;/usr/include/qt5/QtCore;/usr/lib64/qt5//mkspecs/linux-g++
      -- *** computed QT_INCLUDE_DIR as /usr/include/qt5/
      -- Found Git: /usr/bin/git (found version "2.13.6")
      -- CORE_ABS_DIR:/usr/lib64/cmake
      -- essential module Qt5Core found ()
      -- essential module Qt5Gui found ()
      -- essential module Qt5Widgets found ()
      -- essential module Qt5PrintSupport found ()
      -- essential module Qt5Sql found ()
      -- essential module Qt5Network found ()
      -- skipped module Qt5Test is essential!
         We do not guarantee that all tests are working.
      -- skipped module Qt5Concurrent is essential!
         We do not guarantee that all tests are working.
      -- skipped module Qt5X11Extras is essential!
         We do not guarantee that all tests are working.
      -- optional module Qt5Xml found ()
      -- optional module Qt5XmlPatterns skipped
      -- optional module Qt5Help skipped
      -- optional module Qt5Multimedia skipped
      -- optional module Qt5MultimediaWidgets skipped
      -- optional module Qt5OpenGL found ()
      -- optional module Qt5Qml skipped
      -- optional module Qt5Quick skipped
      -- optional module Qt5QuickWidgets skipped
      -- optional module Qt5Script skipped
      -- optional module Qt5ScriptTools skipped
      CMake Warning at CMakeLists.txt:228 (find_package):
        By not providing "FindQt5TextToSpeech.cmake" in CMAKE_MODULE_PATH this
        project has asked CMake to find a package configuration file provided by
        "Qt5TextToSpeech", but CMake did not find one.
      
        Could not find a package configuration file provided by "Qt5TextToSpeech"
        with any of the following names:
      
          Qt5TextToSpeechConfig.cmake
          qt5texttospeech-config.cmake
      
        Add the installation prefix of "Qt5TextToSpeech" to CMAKE_PREFIX_PATH or
        set "Qt5TextToSpeech_DIR" to a directory containing one of the above files.
        If "Qt5TextToSpeech" provides a separate development package or SDK, be
        sure it has been installed.
      Call Stack (most recent call first):
        CMakeLists.txt:311 (COLLECT_MODULE_IF_FOUND)
      
      
      -- optional module Qt5TextToSpeech skipped
      -- optional module Qt5Charts skipped
      -- optional module Qt5Svg found ()
      -- optional module Qt5DataVisualization skipped
      -- optional module Qt5WebChannel skipped
      -- optional module Qt5WebEngineWidgets skipped
      -- optional module Qt5WebKit found ()
      -- optional module Qt5WebKitWidgets found ()
      -- optional module Qt5WebSockets skipped
      -- Detected OS: x11
      -- PySide will be generated using the protected hack!
      -- Checking for QGtkStyle in QtWidgets -- not found
      -- Checking for QMacStyle in QtWidgets -- not found
      -- Checking for QSslCertificate in QtNetwork -- not found
      -- Checking for QSslCipher in QtNetwork -- not found
      -- Checking for QSslConfiguration in QtNetwork -- not found
      -- Checking for QSslError in QtNetwork -- not found
      -- Checking for QSslKey in QtNetwork -- not found
      -- Checking for QSslSocket in QtNetwork -- not found
      -- QT_SRC_DIR variable not set, apidoc generation targets disabled.
      -- <<< Gentoo configuration >>>
      Build type Gentoo
      Install path /usr
      Compiler flags:
      C -march=core2 -O2 -pipe -ggdb
      C++ -march=core2 -O2 -pipe -ggdb -Wall -fvisibility=hidden -Wno-strict-aliasing
      Linker flags:
      Executable -Wl,-O1 -Wl,--as-needed
      Module -Wl,-O1 -Wl,--as-needed
      Shared -Wl,-O1 -Wl,--as-needed
      
      -- Configuring done
      -- Generating done
      -- Build files have been written to: /var/tmp/portage/dev-python/pyside-9999/work/pyside-9999/sources/pyside2-python2_7
      

      Close to the end I get the following error:

      /var/tmp/portage/dev-python/pyside-9999/work/pyside-9999/sources/pyside2-python2_7/PySide2/QtWebKitWidgets/PySide2/QtWebKitWidgets/qwebdatabase_wrapper.cpp
      : In function ‘int Sbk_QWebDatabase_Init(PyObject*, PyObject*, PyObject*)’:
      /var/tmp/portage/dev-python/pyside-9999/work/pyside-9999/sources/pyside2-python2_7/PySide2/QtWebKitWidgets/PySide2/QtWebKitWidgets/qwebdatabase_wrapper.cpp
      :108:55: error: no matching function for call to ‘QWebDatabase::QWebDatabase()’
       ::QWebDatabase cppArg0_local = ::QWebDatabase();
       ^
      In file included from /var/tmp/portage/dev-python/pyside-9999/work/pyside-9999/sources/pyside2-python2_7/PySide2/QtWebKit/PySide2/QtWebKit/pyside2_qtwebkit
      _python.h:61:0,
       from /var/tmp/portage/dev-python/pyside-9999/work/pyside-9999/sources/pyside2-python2_7/PySide2/QtWebKitWidgets/PySide2/QtWebKitWidgets/py
      side2_qtwebkitwidgets_python.h:59,
       from /var/tmp/portage/dev-python/pyside-9999/work/pyside-9999/sources/pyside2-python2_7/PySide2/QtWebKitWidgets/PySide2/QtWebKitWidgets/qw
      ebdatabase_wrapper.cpp:57:
      /usr/include/qt5/QtWebKit/qwebdatabase.h:51:5: note: candidate: QWebDatabase::QWebDatabase(QWebDatabasePrivate*)
       QWebDatabase(QWebDatabasePrivate* priv);
       ^~~~~~~~~~~~
      /usr/include/qt5/QtWebKit/qwebdatabase.h:51:5: note: candidate expects 1 argument, 0 provided
      /usr/include/qt5/QtWebKit/qwebdatabase.h:36:5: note: candidate: QWebDatabase::QWebDatabase(const QWebDatabase&)
       QWebDatabase(const QWebDatabase& other);
       ^~~~~~~~~~~~
      /usr/include/qt5/QtWebKit/qwebdatabase.h:36:5: note: candidate expects 1 argument, 0 provided
      /var/tmp/portage/dev-python/pyside-9999/work/pyside-9999/sources/pyside2-python2_7/PySide2/QtWebKitWidgets/PySide2/QtWebKitWidgets/qwebdatabase_wrapper.cpp
      : In function ‘PyObject* Sbk_QWebDatabaseFunc_removeDatabase(PyObject*, PyObject*)’:
      /var/tmp/portage/dev-python/pyside-9999/work/pyside-9999/sources/pyside2-python2_7/PySide2/QtWebKitWidgets/PySide2/QtWebKitWidgets/qwebdatabase_wrapper.cpp
      :324:55: error: no matching function for call to ‘QWebDatabase::QWebDatabase()’
       ::QWebDatabase cppArg0_local = ::QWebDatabase();
       ^
      In file included from /var/tmp/portage/dev-python/pyside-9999/work/pyside-9999/sources/pyside2-python2_7/PySide2/QtWebKit/PySide2/QtWebKit/pyside2_qtwebkit
      _python.h:61:0,
       from /var/tmp/portage/dev-python/pyside-9999/work/pyside-9999/sources/pyside2-python2_7/PySide2/QtWebKitWidgets/PySide2/QtWebKitWidgets/py
      side2_qtwebkitwidgets_python.h:59,
       from /var/tmp/portage/dev-python/pyside-9999/work/pyside-9999/sources/pyside2-python2_7/PySide2/QtWebKitWidgets/PySide2/QtWebKitWidgets/qw
      ebdatabase_wrapper.cpp:57:
      /usr/include/qt5/QtWebKit/qwebdatabase.h:51:5: note: candidate: QWebDatabase::QWebDatabase(QWebDatabasePrivate*)
       QWebDatabase(QWebDatabasePrivate* priv);
       ^~~~~~~~~~~~
      /usr/include/qt5/QtWebKit/qwebdatabase.h:51:5: note: candidate expects 1 argument, 0 provided
      /usr/include/qt5/QtWebKit/qwebdatabase.h:36:5: note: candidate: QWebDatabase::QWebDatabase(const QWebDatabase&)
       QWebDatabase(const QWebDatabase& other);
       ^~~~~~~~~~~~
      /usr/include/qt5/QtWebKit/qwebdatabase.h:36:5: note: candidate expects 1 argument, 0 provided
      /var/tmp/portage/dev-python/pyside-9999/work/pyside-9999/sources/pyside2-python2_7/PySide2/QtWebKitWidgets/PySide2/QtWebKitWidgets/qwebhistoryitem_wrapper.
      cpp: In function ‘int Sbk_QWebHistoryItem_Init(PyObject*, PyObject*, PyObject*)’:
      /var/tmp/portage/dev-python/pyside-9999/work/pyside-9999/sources/pyside2-python2_7/PySide2/QtWebKitWidgets/PySide2/QtWebKitWidgets/qwebhistoryitem_wrapper.
      cpp:110:61: error: no matching function for call to ‘QWebHistoryItem::QWebHistoryItem()’
      ::QWebHistoryItem cppArg0_local = ::QWebHistoryItem();
      ^
      In file included from /var/tmp/portage/dev-python/pyside-9999/work/pyside-9999/sources/pyside2-python2_7/PySide2/QtWebKitWidgets/PySide2/QtWebKitWidgets/pyside2_qtwebkitwidgets_python.h:71:0,
      from /var/tmp/portage/dev-python/pyside-9999/work/pyside-9999/sources/pyside2-python2_7/PySide2/QtWebKitWidgets/PySide2/QtWebKitWidgets/qwebhistoryitem_wrapper.cpp:57:
      /usr/include/qt5/QtWebKit/qwebhistory.h:59:5: note: candidate: QWebHistoryItem::QWebHistoryItem(QWebHistoryItemPrivate*)
      QWebHistoryItem(QWebHistoryItemPrivate *priv);
      ^~~~~~~~~~~~~~~
      /usr/include/qt5/QtWebKit/qwebhistory.h:59:5: note: candidate expects 1 argument, 0 provided
      /usr/include/qt5/QtWebKit/qwebhistory.h:41:5: note: candidate: QWebHistoryItem::QWebHistoryItem(const QWebHistoryItem&)
      QWebHistoryItem(const QWebHistoryItem &other);
      ^~~~~~~~~~~~~~~
      /usr/include/qt5/QtWebKit/qwebhistory.h:41:5: note: candidate expects 1 argument, 0 provided
      /var/tmp/portage/dev-python/pyside-9999/work/pyside-9999/sources/pyside2-python2_7/PySide2/QtWebKitWidgets/PySide2/QtWebKitWidgets/qwebhistory_wrapper.cpp: In function ‘PyObject* Sbk_QWebHistoryFunc_goToItem(PyObject*, PyObject*)’:
      /var/tmp/portage/dev-python/pyside-9999/work/pyside-9999/sources/pyside2-python2_7/PySide2/QtWebKitWidgets/PySide2/QtWebKitWidgets/qwebhistory_wrapper.cpp:460:61: error: no matching function for call to ‘QWebHistoryItem::QWebHistoryItem()’
      ::QWebHistoryItem cppArg0_local = ::QWebHistoryItem();
      ^
      In file included from /var/tmp/portage/dev-python/pyside-9999/work/pyside-9999/sources/pyside2-python2_7/PySide2/QtWebKitWidgets/PySide2/QtWebKitWidgets/pyside2_qtwebkitwidgets_python.h:71:0,
      from /var/tmp/portage/dev-python/pyside-9999/work/pyside-9999/sources/pyside2-python2_7/PySide2/QtWebKitWidgets/PySide2/QtWebKitWidgets/qwebhistory_wrapper.cpp:54:
      /usr/include/qt5/QtWebKit/qwebhistory.h:59:5: note: candidate: QWebHistoryItem::QWebHistoryItem(QWebHistoryItemPrivate*)
      QWebHistoryItem(QWebHistoryItemPrivate *priv);
      ^~~~~~~~~~~~~~~
      /usr/include/qt5/QtWebKit/qwebhistory.h:59:5: note: candidate expects 1 argument, 0 provided
      /usr/include/qt5/QtWebKit/qwebhistory.h:41:5: note: candidate: QWebHistoryItem::QWebHistoryItem(const QWebHistoryItem&)
      QWebHistoryItem(const QWebHistoryItem &other);
      ^~~~~~~~~~~~~~~
      /usr/include/qt5/QtWebKit/qwebhistory.h:41:5: note: candidate expects 1 argument, 0 provided
      make[2]: *** [PySide2/QtWebKitWidgets/CMakeFiles/QtWebKitWidgets.dir/build.make:169: PySide2/QtWebKitWidgets/CMakeFiles/QtWebKitWidgets.dir/PySide2/QtWebKitWidgets/qwebdatabase_wrapper.cpp.o] Error 1
      make[2]: *** Waiting for unfinished jobs....
      make[2]: *** [PySide2/QtWebKitWidgets/CMakeFiles/QtWebKitWidgets.dir/build.make:265: PySide2/QtWebKitWidgets/CMakeFiles/QtWebKitWidgets.dir/PySide2/QtWebKitWidgets/qwebhistory_wrapper.cpp.o] Error 1
      make[2]: *** [PySide2/QtWebKitWidgets/CMakeFiles/QtWebKitWidgets.dir/build.make:313: PySide2/QtWebKitWidgets/CMakeFiles/QtWebKitWidgets.dir/PySide2/QtWebKitWidgets/qwebhistoryitem_wrapper.cpp.o] Error 1
      make[2]: Leaving directory '/var/tmp/portage/dev-python/pyside-9999/work/pyside-9999/sources/pyside2-python2_7'
      make[1]: *** [CMakeFiles/Makefile2:816: PySide2/QtWebKitWidgets/CMakeFiles/QtWebKitWidgets.dir/all] Error 2
      make[1]: Leaving directory '/var/tmp/portage/dev-python/pyside-9999/work/pyside-9999/sources/pyside2-python2_7'
      make: *** [Makefile:130: all] Error 2

      I am using the dev branch of qtwebkit 5.9, I know that qtwebkit is being deprecated. Is the building supposed to complete or is better to disable webkit support for pyside?

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            • Assignee:
              ctismer Christian Tismer
              Reporter:
              efferre79 Fabio Rossi
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes