Use msvc2008 to compile binary release by default?

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
ZbynekWinkler
Posts: 10
Joined: Sat Sep 30, 2017 6:37 pm

Use msvc2008 to compile binary release by default?

Post by ZbynekWinkler »

Can the compiler for binary release be switched from msvc2013 to msvc2008? That would make it compatible with stock python 2.7 which would allow installing from pypi using pip. I have only found now while trying to get numpy working, please see https://github.com/jmwright/cadquery-fr ... issues/120
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: Use msvc2008 to compile binary release by default?

Post by sgrogan »

ZbynekWinkler wrote: Mon May 14, 2018 9:55 am Can the compiler for binary release be switched from msvc2013 to msvc2008?
FreeCAD uses C++11 features not supported by MSVC2008. The MSVC2013 Win FreeCAD bundle does include numpy 1.12
We are working on porting the builds to MSVC2015 using miniconda to manage the dependencies. This will align FreeCAD with official PY3.6.
See this thread https://forum.freecadweb.org/viewtopic.php?f=4&t=27514
The FreeCAD packages are hosted here https://github.com/FreeCAD/FreeCAD/rele ... g/0.18_pre
"fight the good fight"
ZbynekWinkler
Posts: 10
Joined: Sat Sep 30, 2017 6:37 pm

Re: Use msvc2008 to compile binary release by default?

Post by ZbynekWinkler »

Cool. Should I go ahead and remove all the references to compiling with msvc 2008 from the wiki?

In the meantime, for other poor souls with the same problem:

Code: Select all

/conda create -n freecad -c cadquery -c conda-forge freecad=0.17 python=3.6 pyparsing
got me a working freecad with python3.6 where I can pip-install stuff from pypi. But please note it took over 30min just shuffling stuff on local drive.
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: Use msvc2008 to compile binary release by default?

Post by sgrogan »

ZbynekWinkler wrote: Mon May 14, 2018 9:07 pm Cool. Should I go ahead and remove all the references to compiling with msvc 2008 from the wiki?
At least we could add a deprecation warning. It was very early in the 0.17-dev cycle that we starting using C++11.

We are also in the infancy for the Conda stuff, any contribution to this effort would be greatly appreciated.
"fight the good fight"
ZbynekWinkler
Posts: 10
Joined: Sat Sep 30, 2017 6:37 pm

Re: Use msvc2008 to compile binary release by default?

Post by ZbynekWinkler »

I'll see what I can do. For starters, I wish I'd found https://github.com/FreeCAD/FreeCAD_Conda much earlier.
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: Use msvc2008 to compile binary release by default?

Post by sgrogan »

ZbynekWinkler wrote: Tue May 15, 2018 7:45 am I'll see what I can do. For starters, I wish I'd found https://github.com/FreeCAD/FreeCAD_Conda much earlier.
Thanks! Any help with the docs is greatly appreciated. Conda is new, but I think the future for FreeCAD on WIN.
"fight the good fight"
Post Reply