Replies: 3 comments 3 replies
-
Answering to myself... Now, some additional findings: However... Once the fixup_bundle is allowed to run with the proper bundle parameter value, the resulting bundle is not working, while it runs properly in its original form in the build directory. fixup_bundle is corrupting the application bundle!
JP |
Beta Was this translation helpful? Give feedback.
-
One of the previous Qucs developers had access to Apple hardware in the past and prepared a Mac package for Qucs. I have no access to MacOS and cannot debug the build issues on this platform. So, I dropped MacOS support for Qucs-S. I can only say that the reported CMake issues were never observed on LInux/WIndows(MXE,MSYS2). But I will certainly accept a patch providing a Mac compatibility if someone will submit it. |
Beta Was this translation helpful? Give feedback.
-
In the past couple of days, I tired building for macOS again. Following @jaypeeds' instructions, I managed to compile the apps with Qt5 and Qt6. However, I had to make some changes to the I quickly want to document my steps so that other people can replicate it. Choice of package managerWhile both Installing requirementsDepending on your package manager of choice, different package names are required. Brewbrew install cmake bison qt6 MacPortssudo port install cmake bison qt6-qtbase qt6-qtsvg qt6-qttools Replace 'qt6' with 'qt5' if you prefer to use Qt 5 instead. Fix
|
Package manager | Qt major version | <qt_cmake_dir> |
<plugins_dir> |
---|---|---|---|
port |
5 | /opt/local/lib/cmake/Qt5 |
/opt/local/libexec/qt5/plugins |
port |
6 | /opt/local/libexec/qt6/lib/cmake/Qt6 |
/opt/local/libexec/qt6/plugins |
brew |
6 | /opt/homebrew/lib/cmake/Qt6 |
/opt/homebrew/share/qt/plugins |
Note
I didn't test Brew with Qt 5 because Qt 6 already caused some problems.
The binaries should finally be located in the qucs_s/dist/bin
directory.
Other remarks
I only tested this on macOS Ventura on Apple M2 (ARM). I can create a pull request with the changes (and maybe a better fix for the VERSION file) if there is interest in it. We could also setup a simple GitHub Action that automatically builds a macOS app bundle for release.
Beta Was this translation helpful? Give feedback.
-
Hello,
I have sorted out a few workarounds, none implying code change, to manage to get to some results.
cp <git workspace>/qucs_s/qucs/bitmaps/qucsfilter.icns <git workspace>/qucs_s/qucs/bitmaps/qucspowercombining.icns
export Qt5_DIR=/usr/local/Cellar/qt@5/5.15.6/lib/cmake/Qt5
With these changes, 'make' would run with some warnings, and after a build without error, individual apps would run in their respective build directories.
But during the 'sudo make install' step, there is an error message for 3 out of the 8 components to be installed (-) indicates an error, (+) a success:
(+) qucs-activefilter
(+) qucs-filter
(+) qucs-powercombining
(+) library
(+) translations
(-) qucs
(-) qucs-attenuator
(-) qucs-transcalc
The error message is:
It looks like the location of Qt plugins directory is not resolved, but the installation by Homebrew does have a populated imageformats/ sub-directory.
And indeed, the 3 cmake_install.cmake files in the build/qucs, build/qucs-attenuator and build/qucs-transcalc sub-directory should be edited with:
Set(Qt5_DIR /usr/local/Cellar/qt@5/5.15.6)
and the line with /imageformats edited to include the full path, for example:
And those changes allow the 'sudo make install' step to complete, though with yet a last error:
Hoping this can trigger some research by other devs... Could someone help ?
JP
Beta Was this translation helpful? Give feedback.
All reactions