Those instructions are clear and helpful for me. But I have encountered the same problems as @Locost reported here. He checked ccx in terminal as advised by @bernd:chrisb wrote: ↑Wed Mar 07, 2018 1:03 amUpdate/comprehension to these posts:
https://forum.freecadweb.org/viewtopic. ... 30#p198642
https://forum.freecadweb.org/viewtopic. ... 40#p216356
I did the same and got the same messages. @bernd thoughtLocost wrote: ↑Mon May 07, 2018 10:18 amI also tried running it in terminal (ie ./usr/local/Cellar/calculix-ccx/2.13/bin/ccx_2.13) and got something similar
Code: Select all
dyld: Library not loaded: /usr/local/opt/gcc/lib/gcc/7/libgfortran.4.dylib Referenced from: /usr/local/Cellar/calculix-ccx/2.13/bin/./ccx_2.13 Reason: image not found Abort trap: 6
and @christ kindly provide his compiled ccx binary here. But it was solved by @Locost himself as described here:
Actually @Locost is right. Our gcc version is 8, but this ccx binary is compiled with version gcc of version 7. If we provide the missed lib files, ccx_2.13 will work as expected.Locost wrote: ↑Fri May 11, 2018 4:22 amI solved the problem although I'm not sure how.
I decided to try installing CalculiX using the outdated install guide on the CalculiX website <http://www.dhondt.de/INST_CCX_2_8_MAC_02_10_2015.pdf>. The install wasn't successful (it threw an error while making CalculiX). However before having a second go at the install I tried chrisb's files again and the solver worked. My best guess is I changed something related to solvers dependencies SPOOLES and ARPACK.
Here is what I did, by referencing @vicnorton here.
Code: Select all
$ ccx_2.13 dyld: Library not loaded: /usr/local/opt/gcc/lib/gcc/7/libgfortran.4.dylib Referenced from: /usr/local/bin/ccx_2.13 Reason: image not found Abort trap: 6 $ cd /usr/local/opt $ sudo mv gcc gcc8 $ brew install gcc@7 $ cd /usr/local/opt $ sudo ln -s /usr/local/Cellar/gcc@7/7.3.0 gcc $ ccx_2.13 dyld: Library not loaded: /usr/local/opt/gcc/lib/gcc/8/libgfortran.5.dylib Referenced from: /usr/local/opt/arpack/libexec/lib/libarpack.2.dylib Reason: image not found Abort trap: 6 $ sudo cp -r /usr/local/Cellar/gcc/8.2.0/lib/gcc/8 /usr/local/Cellar/gcc@7/7.3.0/lib/gcc/ $ ccx_2.13 Usage: CalculiX.exe -i jobname
I think this hack solution is temporary, because this problem should be solved more elegantly by:
- Provide new package in brewsci/science tap, However it has anounced no maintainace anymore.
- "$ brew reinstall calculix-ccx --build-from-source" in one's own machine with new gcc version. However the process finally "make *** [calculix-ccx] Error 1" but providing issue on that repository seems useless.
- MacPorts have been one way to install Calculix, as @ian.rees posted here years ago. I didn't try it, but I have read through that topic. It sounds exciting, and I hope he would come back to MacPort.
---ian.rees wrote: ↑Wed Mar 02, 2016 10:43 amI've been messing around over the last few evenings with making a port for CalculiX (the FEM program that FreeCAD uses) - would be great to get a bit of testing from people who have an interest in using FreeCAD on Macs! This just involves:
1 Cloning a small git repository https://github.com/ianrrees/macports
2 Pointing MacPorts at the git repository https://guide.macports.org/#development ... positories
3 Running "sudo port install calculix" and noting any issues
4 If it works you should be able to run ccx and see something like "Usage: CalculiX.exe -i jobname"
I haven't had a chance to verify the dependencies yet; I've got it set to use gcc5 currently, but can probably use older versions too. Thanks! -Ian-
OS: Mac OS X
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13541 (Git)
Build type: Release
Python version: 2.7.14
Qt version: 5.10.1
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: English/UnitedStates (en_US)