ubuntu and python3-pyside2uic

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: ubuntu and python3-pyside2uic

Post by sgrogan »

kkremitzki wrote: Mon Oct 19, 2020 10:58 pm It's already been taken care of in cMake/FindPySide2Tools.cmake, if the Qt version is new enough it's just a matter of using rcc --generator=python instead of pyside2-rcc, same for uic and pyside2-uic. And on Debian/Ubuntu the necessary Qt package is qtbase5-dev-tools, version 5.14 minimum.
So it's possible on Ubuntu (Focal)20.04 to do this already without the PPA patch? Or do we need Groovy?
https://packages.ubuntu.com/focal/amd64 ... s/filelist

Thanks for the info, this is precious as it will come in both Conda and Windows packaging.
"fight the good fight"
User avatar
kkremitzki
Veteran
Posts: 2517
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: ubuntu and python3-pyside2uic

Post by kkremitzki »

sgrogan wrote: Mon Oct 19, 2020 11:04 pm
kkremitzki wrote: Mon Oct 19, 2020 10:58 pm It's already been taken care of in cMake/FindPySide2Tools.cmake, if the Qt version is new enough it's just a matter of using rcc --generator=python instead of pyside2-rcc, same for uic and pyside2-uic. And on Debian/Ubuntu the necessary Qt package is qtbase5-dev-tools, version 5.14 minimum.
So it's possible on Ubuntu (Focal)20.04 to do this already without the PPA patch? Or do we need Groovy?
https://packages.ubuntu.com/focal/amd64 ... s/filelist

Thanks for the info, this is precious as it will come in both Conda and Windows packaging.
For Ubuntu 20.10, it should be possible to use rcc and uic provided by Qt. For 20.04, I kinda hacked at things until it was working: pyqt5-dev-tools is required for building, and I think also python3-pyqt5 as a runtime dependency. For reference you can check the last couple commits at https://salsa.debian.org/science-team/f ... ster-focal for what I had to do to get it working.
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: ubuntu and python3-pyside2uic

Post by sgrogan »

kkremitzki wrote: Mon Oct 19, 2020 11:32 pm For Ubuntu 20.10, it should be possible to use rcc and uic provided by Qt. For 20.04, I kinda hacked at things until it was working: pyqt5-dev-tools is required for building, and I think also python3-pyqt5 as a runtime dependency. For reference you can check the last couple commits at https://salsa.debian.org/science-team/f ... ster-focal for what I had to do to get it working.
Thanks again, I was looking at that salsa repo. I think I actually get it. If you didn't explain after being in the weeds, I would not get it.

Your packaging work is priceless! I guess all the Debian rules really force you to understand it vs. something that works.
If we could link the wiki to the Debian(Ubuntu) control file on salsa, this would be more definitive. Maybe for Ubuntu we have some FreeCAD-daily PPA, but it seems your have up-streamed most everything.
"fight the good fight"
kawabago
Posts: 3
Joined: Thu Oct 22, 2020 7:10 pm

Re: ubuntu and python3-pyside2uic

Post by kawabago »

Git clone 0.19 my compile on Ubuntu 20.04 failed at about 38% with failure to find pytools-rcc and pytools-uic. Installing package pyqt5-dev-tools solved this problem and it compiled successfully.
Post Reply