ana(conda) windows packaging

Having trouble installing or compiling FreeCAD? Get help here.
looo
Posts: 706
Joined: Mon Nov 11, 2013 5:29 pm

ana(conda) windows packaging

Postby looo » Sat Mar 18, 2017 11:00 pm

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

- upstreaming diff
[ ] netgen
[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.
Last edited by looo on Mon Mar 27, 2017 12:10 pm, edited 10 times in total.
looo
Posts: 706
Joined: Mon Nov 11, 2013 5:29 pm

Re: ana(conda) windows packaging

Postby looo » Sat Mar 18, 2017 11:06 pm

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
Posts: 4860
Joined: Mon Dec 12, 2011 4:45 pm

Re: ana(conda) windows packaging

Postby triplus » Sun Mar 19, 2017 12:03 am

looo wrote:ps.: It was my fault. I have introduced the and to my pivy fork some time ago ...


Busted!
looo
Posts: 706
Joined: Mon Nov 11, 2013 5:29 pm

Re: ana(conda) windows packaging

Postby looo » Sun Mar 19, 2017 11:59 am

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
Posts: 2999
Joined: Wed Oct 22, 2014 5:02 pm

Re: ana(conda) windows packaging

Postby sgrogan » Sun Mar 19, 2017 9:18 pm

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?
looo
Posts: 706
Joined: Mon Nov 11, 2013 5:29 pm

Re: ana(conda) windows packaging

Postby looo » Sun Mar 19, 2017 9:31 pm

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
Posts: 2999
Joined: Wed Oct 22, 2014 5:02 pm

Re: ana(conda) windows packaging

Postby sgrogan » Sun Mar 19, 2017 9:42 pm

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-feedstock/blob/master/recipe/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-freecad/blob/master/freecad/win/tk.py#L31
looo
Posts: 706
Joined: Mon Nov 11, 2013 5:29 pm

Re: ana(conda) windows packaging

Postby looo » Sun Mar 19, 2017 10:34 pm

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
Posts: 637
Joined: Thu Jan 05, 2017 9:03 pm

Re: ana(conda) windows packaging

Postby Kunda1 » Sun Mar 19, 2017 10:53 pm

FYI, netgen devs are open to patches
https://ngsolve.org/forum/ngspy-forum/6 ... ng-patches
User avatar
sgrogan
Posts: 2999
Joined: Wed Oct 22, 2014 5:02 pm

Re: ana(conda) windows packaging

Postby sgrogan » Sun Mar 19, 2017 11:02 pm

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.