[PySide] Latest git download will not compile

Doug Hutcheson owlbrudder at gmail.com
Sat Jan 26 22:08:53 CET 2019

Thank you for the helpful post Cristián. I am still working to
understand how all these things work together, so you have certainly
added to my knowledge.Cheers, Doug
On Sat, 2019-01-26 at 14:28 +0000, Cristián Maureira-Fredes wrote:
> 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:
> https://code.qt.io/cgit/pyside/pyside-setup.git/tree/examples/scriptableapplication id="-x-evo-selection-end-marker">
> https://code.qt.io/cgit/pyside/pyside-setup.git/tree/examples/samplebinding
> Cheers
> ________________________________________From: PySide <
> pyside-bounces at qt-project.org> on behalf of Doug Hutcheson <
> owlbrudder at gmail.com>Sent: 26 January 2019 01:33:58To: Alexandru
> CroitorCc: 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-)
> Regards,Doug
> On Fri, 2019-01-25 at 23:57 +0000, Alexandru Croitor wrote:
> Hi,
> 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.
> Regards,
> Alexandru.
> ________________________________From: Doug Hutcheson <
> owlbrudder at gmail.com>Sent: Saturday, January 26, 2019 12:21:43 AMTo:
> Alexandru CroitorSubject: 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,Doug
> 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 PMTo:
> Alexandru CroitorSubject: 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.
> Regards,Doug.
> 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<mailt
> o: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:
>     shiboken2/cppgenerator.cpp
> 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:
> set(shiboken2_SRCgenerator.cppshiboken2/cppgenerator.cppshiboken2/hea
> dergenerator.cppshiboken2/overloaddata.cppshiboken2/shibokengenerator
> .cppmain.cpp)
> None of the files listed for the shiboken2 directory exist.
> What have I done wrong? All help gratefully
> received.Doug_______________________________________________PySide
> mailing listPySide at qt-project.org<mailto:PySide at qt-project.org>
> https://lists.qt-project.org/listinfo/pyside
> _______________________________________________PySide mailing 
> listPySide at qt-project.org
> https://lists.qt-project.org/listinfo/pyside
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20190127/77273723/attachment.html>

More information about the PySide mailing list