-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[email protected]_qt6: setup new freecad formula that builds and links against upstream qt@6 #547
Comments
currently running into the below issue because upstream pyside@6 has the force limited api set within the formula. |
a workaround for the above issue is to install a versioned formula of pyside that sets the below cmake var,
|
it appears a patch may be required to fix the below error,
using the patch supplied within this repo does bump my build further without encourting this fatal error message. |
the current error i'm getting when using my versioned version of pyside@6 and applying several patches to the freecad source, and using the below cmake command to configure my build directory,
error message,
|
it seems the above error message is related to the macos toolchain (possibly) and workaround / fix is to add the missing include for |
doing work within this branch of my local fork https://github.com/ipatch/homebrew-freecad/tree/freecad-0.21.2_qt6 |
current cmake issue i'm presently running into,
|
either need a new formula file for the ondselsolver or i need to figure out how i can add it as a resource to the current formula 🤔 |
attempted to add the ondselsolver as a resource but unfortunately that currently is not working,
|
setup a tap formula for the ondselsolver see new pr #549 |
it seems using the below cmake var does not prevent the cmake process from searching for the ondsel solver
from what i can tell because i'm still getting the above cmake warnings/errors. |
cmake appears to be picking qt@5 installation |
successfully built freecad from git main this afternoon using cmake with homebrew provided libaries, the below cmake command allowed me build fc from the below commit,
that above cmake does require setting up env vars for the path to the libaries and setting a env var of also i still have to apply the xerces-c patch, and the pybind11 patch contained within this repo or build errors will occur. also i set the compilers to use the open-mpi compiler wrappers ie. as the hdf5 wrapper utility is broken due to upstream homebrew-core switching the build of hdf5 from gnu autotools / autoconfigure to cmake 🤦♂️, so a work around is to use the hdf5-mpi library provided by upstream homebrew-core thus allowing cmake properly find and setup hdf5
all that said, freecad does launch, but
and running,
will produce the below error,
i can import the python module with the name so further investigation is required to figure out how to get PySide working when building and linking against qt6 |
useful links, upstream related to using qt6 with freecadFreeCAD/FreeCAD#13303 |
For the record, FREECAD_USE_EXTERNAL_ONDSELSOLVER is considered an advanced option designed for developers who are working on OndselSolver itself. In most cases self-compilers should be using |
my bad i see it there 🤦♂️
|
i think the issue related to PySide can be seen in the below
|
building freecad from git source with cmake, and attempting to import Draft module i get the below error with my py312 + qt6 build.
|
|
Is this still relevant for 1.0 ? If not, then probably worth closing ? |
i still haven't published a formula that build and links against qt version 6, yet, so i plan keeping it open until i get a new formula in the tap. |
Thanks for all your work, @ipatch ! |
need to setup a new formula that builds and links against qt@6 upstream homebrew-core formula.
The text was updated successfully, but these errors were encountered: