[conda] compile calculix for osx and windows

Having trouble installing or compiling FreeCAD? Get help here.
User avatar
bernd
Posts: 10702
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: [conda] compile calculix for osx and windows

Postby bernd » Sat Dec 08, 2018 9:41 am

https://github.com/FreeCAD/FreeCAD/blob ... ix.py#L259 was added as a conclution of the problem
User avatar
looo
Posts: 3431
Joined: Mon Nov 11, 2013 5:29 pm

Re: [conda] compile calculix for osx and windows

Postby looo » Sat Dec 08, 2018 9:55 am

I have uploaded a new build to the freecad channel with a fix for the digits problem. @ _UR can you try again the tests?
update the package with:

Code: Select all

conda install calculix -c freecad
bernd wrote:
Sat Dec 08, 2018 9:41 am
https://github.com/FreeCAD/FreeCAD/blob ... ix.py#L259 was added as a conclution of the problem
I guess with the digits problem ccx is not useful at all... But I am in contact with the calculix-developer. So hopefully some of the patches can be applied to make building ccx in the future a bit simpler.

edit.: here the fix. This will hopefully avoid a lot of hair pulling research... ;)
_set_output_format(_TWO_DIGIT_EXPONENT); for mingw must be called in the main function.
UR_
Posts: 1188
Joined: Tue Jan 03, 2017 8:42 pm

Re: [conda] compile calculix for osx and windows

Postby UR_ » Sat Dec 08, 2018 2:06 pm

looo wrote:
Sat Dec 08, 2018 9:55 am
can you try again the tests?
Here it is:
error.ccx2.14looo.txt
(13.5 KiB) Downloaded 65 times
tested with:

Code: Select all

(freecad_py3) C:\Users\aio>conda info calculix

calculix 2.14 h391fb7c_1
------------------------
file name   : calculix-2.14-h391fb7c_1.tar.bz2
name        : calculix
version     : 2.14
build string: h391fb7c_1
build number: 1
channel     : https://conda.anaconda.org/freecad/win-64
size        : 6.1 MB
arch        : x86_64
constrains  : ()
license     : GPL 2
license_family: GPL
md5         : 9acba38ae778b13268aa296eff595a94
platform    : win32
subdir      : win-64
timestamp   : 1544258952924
url         : https://conda.anaconda.org/freecad/win-64/calculix-2.14-h391fb7c_1.tar.bz2
dependencies:
    m2w64-gcc-libs
Used script is from test suite:
compare.sh.txt
(3.05 KiB) Downloaded 41 times
I changed only some lines to ensure usage of correct executable and mingw libraries.

Script was executed in single threaded mode, and that's the sunny side ;)

looo wrote:
Sat Dec 08, 2018 4:35 am
For example Eigenvectors can have different values for the same result using different solvers
Solvers are determined by *.inp files from test suite. Of course no changes were made!
UR_
Posts: 1188
Joined: Tue Jan 03, 2017 8:42 pm

Re: [conda] compile calculix for osx and windows

Postby UR_ » Sat Dec 08, 2018 2:18 pm

Starting FreeCAD from

Code: Select all

C:\Users\aio\Miniconda3\envs\freecad_py3\Library\bin
works as expected. No special settings of environ variables are needed.
But running ccx by FreeCAD's FEM WB didn't work, because ccx can't load mingw dll's located at

Code: Select all

C:\Users\aio\Miniconda3\envs\freecad_py3\Library\mingw-w64\bin
IMO, a static linked build seams to be more reliable.
User avatar
looo
Posts: 3431
Joined: Mon Nov 11, 2013 5:29 pm

Re: [conda] compile calculix for osx and windows

Postby looo » Sat Dec 08, 2018 3:03 pm

UR_ wrote:
Sat Dec 08, 2018 2:18 pm
But running ccx by FreeCAD's FEM WB didn't work, because ccx can't load mingw dll's located at
activating the environment with conda does the job for me and setup all paths etc.
UR_ wrote:
Sat Dec 08, 2018 2:18 pm
IMO, a static linked build seams to be more reliable.
If you want to make the library maximal portable this is true. If it should be part of a modular environment I guess shared libraries are the better approach.
UR_ wrote:
Sat Dec 08, 2018 2:06 pm
Solvers are determined by *.inp files from test suite. Of course no changes were made!
if v is an eigenvector than -v should be the same eigenvector with the same norm. But I am not sure how eigenvectors are normed in calculix.
User avatar
looo
Posts: 3431
Joined: Mon Nov 11, 2013 5:29 pm

Re: [conda] compile calculix for osx and windows

Postby looo » Tue Dec 18, 2018 8:31 am

Good news:
calculix 2.15 was released which include most of the patches I mentioned earlier. Thanks again @Guido Dhondt.
Also the package is now build with the gcc-7 based toolchain.
Jee-Bee
Posts: 2087
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: [conda] compile calculix for osx and windows

Postby Jee-Bee » Tue Dec 18, 2018 8:43 am

looo wrote:
Tue Dec 18, 2018 8:31 am
Good news:
calculix 2.15 was released which include most of the patches I mentioned earlier. Thanks again @Guido Dhondt.
Also the package is now build with the gcc-7 based toolchain.
congrats!! thanks for all your (hard) work!!
User avatar
Kunda1
Posts: 7990
Joined: Thu Jan 05, 2017 9:03 pm

Re: [conda] compile calculix for osx and windows

Postby Kunda1 » Tue Dec 18, 2018 12:11 pm

looo wrote:
Tue Dec 18, 2018 8:31 am
Good news:
calculix 2.15 was released which include most of the patches I mentioned earlier. Thanks again @Guido Dhondt.
Also the package is now build with the gcc-7 based toolchain.
Cool. I bumped downstream Arch AUR and FreeBSD CalculiX maintainers. I hope conda gets in to repology soon
Image
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features