[solved] conda: win: build-errors 20191201

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
wmayer
Founder
Posts: 20307
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: conda: win: build-errors 20191201

Post by wmayer »

I was able to build FreeCAD and pass all the self tests, I can switch to the ReverseEngineering WB. Is there a way to test if this actually worked and there will not be problems at runtime?
You can do

Code: Select all

import ReverseEngineering
dir(ReverseEngineering)
If it lists e.g. "triangulate" then pcl is enabled. In case there were serious binary incompatibilities then FreeCAD would have crashed as soon as loading the workbench.
UR_
Veteran
Posts: 1355
Joined: Tue Jan 03, 2017 8:42 pm

Re: conda: win: build-errors 20191201

Post by UR_ »

Last build 0.19.18827 finished successfully.



changed:

Code: Select all

-D Boost_NO_CMAKE=TRUE
to:

Code: Select all

-D Boost_NO_BOOST_CMAKE:BOOL=ON


:man_facepalming:


I will install and test PCL once looo's PR has been merged

https://github.com/conda-forge/pcl-feedstock/pull/18
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: conda: win: build-errors 20191201

Post by looo »

UR_ wrote: Thu Dec 05, 2019 8:48 am I will install and test PCL once looo's PR has been merged
If you want to accelerate the process you can clone the pcl-feedstck (my fork) and call conda-build on it and upload to the anaconda freecad-channel.

requrements:

Code: Select all

conda install conda-build anaconda-client
build procedure:

Code: Select all

git clone https://github.com/conda-forge/pcl-feedstock
cd pcl-feedstock
git remote add looooo https://github.com/looooo/pcl-feedstock
git fetch --all
git chekout patch-1
conda build . -m .ci_support\win_cxx_compilervs2015vc14.yaml
once installed you can upload to the freecad organization by:

Code: Select all

anaconda upload <package-name> -u freecad -c dev
But you have to create an account for https://anaconda.org/ first + I need to add you to the maintainers.

Just in case you want to accelerate the conda-packaging... ;)
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: conda: win: build-errors 20191201

Post by looo »

test-package uploaded: https://anaconda.org/freecad/pcl/files
now looking if it works: https://dev.azure.com/sppedflyer/feedst ... buildId=70

Right now I haven't changed any pcl cmake-configs at build time. So this might fail.
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: conda: win: build-errors 20191201

Post by looo »

seems like it is now also working for windows:

Code: Select all

>>> dir(ReverseEngineering)
['__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__', 'approxSurface', 'featureSegmentation', 'filterVoxelGrid', 'gridProjection', 'marchingCubesHoppe', 'marchingCubesRBF', 'normalEstimation', 'poissonReconstruction', 'regionGrowingSegmentation', 'sampleConsensus', 'triangulate', 'viewTriangulation']

With the dynamical linked boost library I do not have to replace any cmake configs. For conda-dorge it is suggested to use dynamic linking where possible. Also it makes totally sense to align all platforms as much as possible.



OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.18829 (Git)
Build type: Release
Branch: master
Hash: 186d52ffd47696fadcd91369365e97f084051e7b
Python version: 3.7.3
Qt version: 5.12.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Austria (de_AT)
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: conda: win: build-errors 20191201

Post by sgrogan »

UR_ wrote: Thu Dec 05, 2019 8:48 am
Ahh, so I bet before your fix FreeCAD was using the static boost libs, when looo and enabled PCL, PCL's config forced the static boost libs, hence the same error. I wonder if

Code: Select all

-D Boost_NO_BOOST_CMAKE=TRUE
works? The key doesn't exist, so maybe when creating it from the command line it's necessary to specify the BOOL, I created mine in the cmake-gui and set BOOL that way.
wmayer wrote: Thu Dec 05, 2019 3:07 amYou can do
Thanks, it worked so I guess my workaround worked.
looo wrote: Thu Dec 05, 2019 7:35 pm seems like it is now also working for windows:
Great

This was a good thread it looks like all of our problems are solved and we have the Reverseengineering WB available on Conda Win now :)

Thanks for the guidance in this thread wmayer!
"fight the good fight"
Post Reply