-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Building on Mac OS X Using Homebrew Fails due to Qscintilla2 Versioning #5058
Comments
See also Homebrew/homebrew-core#166414. The workaround for building OpenSCAD from source is to build the dependencies using https://github.com/openscad/openscad/blob/master/scripts/macosx-build-dependencies.sh Out of curiosity, are you building manually vs. downloading the nightly builds for a reason (other than wanting to) ? |
@kintel |
Sounds good, let’s leave this ticket open to track this. Btw., building from source using the above script should be fully automatic as well, and any problems with it are reportable as bugs. |
Btw., this also breaks our CI, so it's pretty high priority to fix. I just keep hoping someone will pick up the Homebrew issue so I don't have to do it :) |
Workaround:
|
EDIT: see next comment for resolution to the following problem So I pulled the latest changes to try out your workaround. The build environment seems ok, but there is some noisy warnings and errors on my end, which may just be artifacts of previous attempts:
Now, the
But when I build with
Not quite sure what to make of these errors in the |
I had a feeling that the wrong version of Complete commands with extra qt6 removal steps:
I'm not sure what the right steps should be for someone who uses the same I'm currently running |
Not bad, only 2 tests failed:
Here are my test logs: __apple-m3-max_vwsg_report.txt |
I think the PDF checks are false positives - it's probably due to the conversion from PDF to PNG for comparison (ghostscript updated in Homebrew; I get the same error locally). |
I'm running into a build failure on macOS X (v13.6.6) on Apple Silicon due to qscintilla2: Building using:
As per the ReadMe.md I first ran but got an Error related to qscintilla2.rb
which seems likely to be the root issue. I don't know how to fix this; the workaround in the ./scripts/macosx-build-homebrew.sh doesn't seem to be working for me. I tried building dependencies from source as per option 1 in the ReadMe.md instructions via:
but that got an error relating to
So I'm unable to build OpenScad on macOS (v13.6.6) using either option for getting the dependencies installed. Was going to try looking into fixing a bug but sort of need to get it building first :) |
Option 1 (dependencies via homebrew) is temporarily a bit annoying since Homebrew upgraded qscintilla to Qt6 without making a Qt5 version available. You could try this:
Option 2 (locally built dependencies): You probably didn't install automake (brew install automake), as mentioned in build prerequisites at https://github.com/openscad/openscad?tab=readme-ov-file#building-for-macos |
Thank you. I installed the build prerequisites but it seems I missed this one (sigh). Sorry to trouble you. Still won't build from source. Your suggestion for qscintilla2 work-around worked though and I got it to build dependencies via brew after that and then OpenSCAD built - yay! Thanks again. |
Describe the bug
When following the build step:
Followed by:
The
cmake
script gives the following error:Environment and Version info (please complete the following information):
Additional context
According to
brew info qscintilla2
:The package
qt
is a dependency, but that package version viabrew info qt
is:thus libraries for the
qt5
version ofqscintilla2
are missing.The breaking change appears to have been introduced in this commit to
homebrew
: Homebrew/homebrew-core@ce9bebfI don't have a workaround yet but I expect that it involves either installing
qscintilla2@2.13.1
and somehow getting the build to use that instead of the head's version 2.14.1 OR maybe trying to build everything against qt6? Either way I am very new tohomebrew
and compiling on OSX in general.The text was updated successfully, but these errors were encountered: