ana(conda) windows packaging

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

ana(conda) windows packaging

Post by looo »

I start this as a new topic, as the anaconda-topic is too long already.

I will use this first post as a TODO-LIST. So everyone can follow the process.

[x] occt (conda-forge)
[x] coin (locally build and uploaded to the the freecad org at anaconda.org)
[x] pivy (locally build and uploaded to the the freecad org at anaconda.org)
[x] netgen (locally build and uploaded to the the freecad org at anaconda.org, maybe need some more work)
[x] pyside-tools (is included in the conda forge pyside package)
[x] libMed
[x] vtk (conda-forge vtk is build with freetype2.6, we need 2.7). PR, not yet accepted)
[x] FreeCAD

[x] finally move coin3d and pivy to conda-forge

- upstreaming diff
[x] netgen (thanks to luzpaz: https://ngsolve.org/forum/ngspy-forum/6 ... patches#14)
[x] FreeCAD-py3-win -> FreeCAD-py3-25
[x] rebasing on master

- problems
[ ] Highlighting isn't working no idea why this wasn't working at first try.
[x] occt7.1.0 Handles should be updated
Last edited by looo on Fri Mar 23, 2018 5:45 pm, edited 14 times in total.
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: ana(conda) windows packaging

Post by looo »

I think my problem with pivy is related to swig (version 3.0.11):

Code: Select all

pivy\coin_wrap.cpp(6969): error C2065: "and": nichtdeklarierter Bezeichner
Is "and" supported for newer vs-versions?

ps.: It was my fault. I have introduced the and to my pivy fork some time ago ...
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: ana(conda) windows packaging

Post by triplus »

looo wrote:ps.: It was my fault. I have introduced the and to my pivy fork some time ago ...
Busted!
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: ana(conda) windows packaging

Post by looo »

Busted!
blame on me. I had no windows running for 6 years + I am used to python. I was quite happy this was solved easyly.

next one is netgen. But also with netgen I encounter problem. I think we had this problem already with tk/tcl, but I can't remember how we solved that. @peterl94 maybe you remember what we had to do.

Code: Select all

C:\Users\fc_builder\Miniconda3\conda-bld\netgen_1489920412924\work\ng\Togl2.1\togl.c(19): fatal erro
r C1083: Datei (Include) kann nicht geöffnet werden: "tkInt.h": No such file or directory
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: ana(conda) windows packaging

Post by sgrogan »

looo wrote:I think we had this problem already with tk/tcl
Are you using the 8.5 or 8.6 package?
Also, everything is VC14/Python3.5?
"fight the good fight"
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: ana(conda) windows packaging

Post by looo »

There are two versions installed with conda (tk8.6 with the python interpreter and tk8.5 because it's a dependency of netgen). So I first thought this could be the problem. But this is also working for the occt recipe. There also both 85 and 8.6 are installed in the build enviroment.
The netgen recipe can be found here:
https://github.com/looooo/FreeCAD_Conda ... en/bld.bat


issue for the python feed-stock:
https://github.com/conda-forge/python-f ... issues/127

Also, everything is VC14/Python3.5?
should be.
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: ana(conda) windows packaging

Post by sgrogan »

looo wrote:The netgen recipe can be found here:
Maybe we need to force the version like you did for occt? https://github.com/conda-forge/occt-fee ... /meta.yaml
EDIT: the needed header is not in the package for either 8.5 or 8.6.
I think tcl/tk package needs to be fixed. From Peterl94's CLbundler https://github.com/peterl94/clbundler-f ... /tk.py#L31
"fight the good fight"
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: ana(conda) windows packaging

Post by looo »

the tkint.h problem was fixed by your suggestion to pin 8.5. But netgen really ha a strange cmake. There is a supurbuild which automatically download dependencies...
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: ana(conda) windows packaging

Post by Kunda1 »

FYI, netgen devs are open to patches
https://ngsolve.org/forum/ngspy-forum/6 ... ng-patches
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: ana(conda) windows packaging

Post by sgrogan »

looo wrote:But netgen really ha a strange cmake. There is a supurbuild which automatically download dependencies...
I saw your topic with jobermayer. This seems counter-productive. What do you think of leaving Netgen to last?
I could take a swing at Medfile, what version of hdf5 did you use on linux?
Sorry for so many basic questions, but I have a problem searching the conda repo's :oops:
looo wrote:I had no windows running for 6 years + I am used to python. I was quite happy this was solved easyly.
Thanks looo! This is for sure way difficult. All you efforts are for sure appreciated. I have VC14 and conda installed on my win system so I can try anything you like.
"fight the good fight"
Post Reply