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

PySide2 build error on CentOS 7 (qv4engine)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 5.11.0
    • 5.7
    • PySide
    • None
    • CentOS 7

    Description

      I've successfully built PySide2 on numerous platforms, but I'm getting this error on CentOS 7. Please see here for my other successful builds:
      https://fredrikaverpil.github.io/2016/08/17/compiling-pyside2/

      [  0%] Building CXX object libpyside/CMakeFiles/pyside2.dir/destroylistener.cpp.o
      [  0%] Building CXX object libpyside/CMakeFiles/pyside2.dir/signalmanager.cpp.o
      /cmake-3.0.0/pyside-setup/pyside_build/py2.7-qt5.6.1-64bit-release/pyside2/libpyside/signalmanager.cpp:48:37: fatal error: private/qv4engine_p.h: No such file or directory
           #include <private/qv4engine_p.h>
                                           ^
      compilation terminated.
      make[2]: *** [libpyside/CMakeFiles/pyside2.dir/signalmanager.cpp.o] Error 1
      make[1]: *** [libpyside/CMakeFiles/pyside2.dir/all] Error 2
      make: *** [all] Error 2
      error: Error compiling pyside2
      

      This is what I did to arrive here:

      yum install epel-release
      yum groupinstall "Development Tools"
      yum install qt5-qtbase-devel
      yum install qt5-* libxslt libxml2
      
      yum install wget
      wget http://www.cmake.org/files/v3.0/cmake-3.0.0.tar.gz
      gunzip cmake-3.0.0.tar.gz
      tar xvf cmake-3.0.0.tar
      cd cmake-3.0.0
      ./bootstrap
      gmake
      gmake install
      
      yum install python-pip python-devel  # or python3-pip
      pip install wheel
      
      git clone --recursive https://codereview.qt-project.org/pyside/pyside-setup
      
      python setup.py bdist_wheel --ignore-git --qmake=/usr/lib64/qt5/bin/qmake-qt5 --cmake=/root/cmake-3.0.0/bin/cmake
      

      Attachments

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

        Activity

          People

            fredrikaverpil Fredrik Averpil
            fredrikaverpil Fredrik Averpil
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes