[PySide] Latest git download will not compile

Cristián Maureira-Fredes Cristian.Maureira-Fredes at qt.io
Sat Jan 26 15:28:57 CET 2019

Be careful not to mix bindings and binding generators:

PyQt5 uses sip.
PySide2 uses shiboken.

And when using shiboken, take into consideration to follow one of the existing examples:



From: PySide <pyside-bounces at qt-project.org> on behalf of Doug Hutcheson <owlbrudder at gmail.com>
Sent: 26 January 2019 01:33:58
To: Alexandru Croitor
Cc: pyside at qt-project.org
Subject: Re: [PySide] Latest git download will not compile

Thanks Alexandru.

For the benefit of the group, I will repeat an explanation of my goal I sent directly to Alexandru by mistake, instead of to the list.

I am aiming to build a Linux (Fedora 29) PyQt5 interface to PyQt5RPT, using the shiboken2 generator. This will no doubt be a long and painful learning process, but I am willing to try. "8-)


On Fri, 2019-01-25 at 23:57 +0000, Alexandru Croitor wrote:


No worries.

Currently there are no official examples on how to generate bindings for a separate "Qt" library.

There's only a regular C++ library binding example at "examples/samplebinding/", and an example for generating bindings for custom Qt classes as part of a main C++ application "examples/scriptableapplication/".

So you'll have to dissect them and make sense of to combine bits and pieces from both. Another source of inspiration are the shiboken tests and the main PySide modules.



From: Doug Hutcheson <owlbrudder at gmail.com>
Sent: Saturday, January 26, 2019 12:21:43 AM
To: Alexandru Croitor
Subject: Re: [PySide] Latest git download will not compile

Hi Alexandru.

You will see my response to the list. I am really sorry for troubling you.

I had a forty-year career as a software developer (now retired), so making such a silly mistake is embarrassing to me.

I am building from source so I can get the generator, so I can generate python3 interfaces to PyQtRPT - the report writer. It seems to have some bugs, so I want to develop my own API for it.

Kind regards,

On Fri, 2019-01-25 at 23:13 +0000, Alexandru Croitor wrote:

Consider keeping the conversation public by also CC-ing the list, in case somebody else has some insight.

It is a bit unclear to me what you wish to achieve by calling cmake manually on the shiboken project.

Which project do you wish to compile? Just shiboken? Also PySide2? Did you follow the guide at https://wiki.qt.io/Qt_for_Python/GettingStarted ?

Which branch of the repo are you using?

In any case when I checkout the 5.12 branch, the files you mentioned are present for me.

I guess you should provide more info about what you wish to achieve, and the sequence of commands you used to do it.

From: Doug Hutcheson <owlbrudder at gmail.com>
Sent: Friday, January 25, 2019 9:22:39 PM
To: Alexandru Croitor
Subject: Re: [PySide] Latest git download will not compile

Hi Alexandru.

My git command, as copied from my terminal history, was:
git clone --recursive https://code.qt.io/pyside/pyside-setup

I repeated this several time over the last week or so, including on Friday 25th January (our time - UTC+10), so I'm sure I have the latest version.

I am glad that at least I have been using the correct command.


On Fri, 2019-01-25 at 10:17 +0000, Alexandru Croitor wrote:
Hi, can you provide a link to the source archive you used?

In the meantime, you could simply use git to clone the pyside-setup repo, and checkout the 5.12 branch.

-> git clone --recursive https://code.qt.io/pyside/pyside-setup

On 25. Jan 2019, at 08:51, Doug Hutcheson <owlbrudder at gmail.com<mailto:owlbrudder at gmail.com>> wrote:

I have googled for this without success. I am new to the list and do not know how to search it - my apologies if this is a known issue.

I am trying to compile this project for the first time, so perhaps I am doing something stupid.

In pyside-setup/sources/shiboken2/, I run cmake . and the script issues the following message:

CMake Error at generator/CMakeLists.txt:29 (add_executable):
  Cannot find source file:


Sure enough, there is no such file on my machine.

The problem seems to stem from this block starting at line 6 of generator/CMakeLists.txt:


None of the files listed for the shiboken2 directory exist.

What have I done wrong? All help gratefully received.
PySide mailing list
PySide at qt-project.org<mailto:PySide at qt-project.org>

More information about the PySide mailing list