-
Notifications
You must be signed in to change notification settings - Fork 6
LLVM is required to build PySide2 on Windows #55
Comments
I'll have to dig into this (which unfortunately I do not have time with right now). But no, I wasn't using LLVM back when I built PySide2 on Windows last time. I'd recommend checking in with the PySide2 devs at http://gitter.im/PySide/pyside2?at=5926e5bd00efc2bb3ea3b3ae |
Just FYI,
The circumstances force me to use PyQt5 for now |
I actually made a little write-up on the alternative that is PyQt5 today: |
No, the solution is not to install PyQt5 (which is GPL-encumbered, which defeats the whole point of installing PySide2 in the first place) but to install PySide2 correctly: which means install the stable Also, note that the prior As its label implies, the tl;drUse the |
@fredrikaverpil Incidentally, would updating the Bintray-hosted wheels to the most recent commit of the Time scarcity probably remains an issue. As a fellow GitHubber, I grok that. If you simply don't have the time, you simply don't have the time. But the wheels are nearly a year old at this point. PySide2 has seen dramatic stability improvements and feature additions in the meanwhile. The |
@leycec I somewhat share your frustration. Yes, we could try updating the wheels using the 5.6 branch. |
@fbjorn @leycec Ok, so right now I'm successfully building all the wheels using the 5.6 branch except for the macOS builds. Unfortunately, these builds time out. It's a little strange, as they didn't time out last time around, but maybe PySide2 grew... I'll try to get the 5.9 branch to build too as it'll require the libclang from Qt, available here. But I'd like to see if I can speed up these macOS builds first. |
Well, that escalated quickly. Thanks for being so on-the-ball with this, @fredrikaverpil! You are the Qt superstar this world needs. We've had continued luck with the If you are able to eventually get either of the latter two branches up and running, that would be an extremely useful finding. We'd probably immediately follow suite on Gentoo. Until then, |
Expect this to get merged into the
Hehe, thanks! 💪
Did you use the QtC-prebuilt libclang when attempting this? |
Nope! That's a sane idea, though; I wasn't even aware that QtC had released Do you know exactly what those binaries provide? Are they merely the official versions of I suspect they're merely the official versions of
Sure! Since we never succeeded in compiling the Our key finding was that the top-level
Since upstream has hopefully since resolved this (e.g., by actually calling Sadly, PySide2's July 20th update suggests that
Why. Why? WHY!?! ...ok, i feel better now |
Nope, sorry. But if you haven't used those, I wouldn't expect anything to work.
Wowsers. I actually didn't know that. Is a Gentoo install compiling everything from source?!
Hm. I checked today and the devs seem to be able to build PySide2 5.9 just fine all the time... I haven't looked into it yet so I don't know... but perhaps I should give it a week or two before attempting it then. |
Religiously so. We're probably the best known source-based distribution, with a number of downstream distributions nobody has ever heard of: Calculate Linux, CoreOS, Sabayon, and (of course) Google's Chromium OS. Other source-based *nix platforms only spiritually related to Gentoo include Linux from Scratch, all of the BSD variants (e.g., FreeBSD, NetBSD, OpenBSD), and all of the macOS package managers (e.g., Homebrew, MacPorts). Other Linux package managers like Arch's While purely binary-based package managers still predominate, the landscape is gradually diversifying. Source-based package managers offer a number of significant advantages (like hardware optimization, security hardening, and extreme ricing) and an equal number of significant disadvantages (mostly, installation space and time).
It does, at least on traditional HDDs. This is mitigated by migrating to some combination of SDDs (easy but costly) and/or ramdisks (hard but cheap, assuming sufficient RAM). Compiling to a ramdisk is sufficiently fast for the typical package. ...which means anything not Chromium, Firefox, or webkit. Gentoo Portage is no But... yes. The high cost of installation-by-compilation remains our Achilles heel. It's a hopeless uphill battle, but we tend to feel that the subtle benefits of a Poettering-free distribution outweigh the obvious drawbacks. But we would say that. We're fanatics! ⛪️ |
O.K.! That's great to hear, actually. Thanks for the positive confirmation. Since our last attempts to support PySide2 5.9 failed in an apocalyptic inferno of developer flames and upstream rants, we'll probably hold off until mid- to late-August before trying again. But I fully support you trying. If anybody can make this work, it'll be |
Wow, I had no idea. Sounds both awesome and frightening at the same time. For a project such as this, I'm pretty sure it wouldn't make much sense to build PySide2 using a pre-built Qt5 on Gentoo then?
I might do that too. |
I'm going to close this issue, as it was originally about not being able to compile on Windows without LLVM and that the solution to that is (most likely) that you need to I'm tracking building the 5.9 branch in a separate issue: #63 Feel free to subscribe to that issue for updates. |
I'm trying to build PySide2 from sources on Win10 machine following these steps: Windows conf
But when I run
python setup.py bdist_wheel --ignore-git --qmake="C:\Qt\Qt5.9.0\5.9\msvc2015_64\bin\qmake.exe" --cmake="C:\Program Files\CMake\bin\cmake.exe"
I get such an error:
Based on your guide, you're not using LLVM. Do you have any thoughts what I'm doing wrong?
Thanks
The text was updated successfully, but these errors were encountered: