[solved] conda: win: build-errors 20191201

Having trouble installing or compiling FreeCAD? Get help here.
wmayer
Site Admin
Posts: 15122
Joined: Thu Feb 19, 2009 10:32 am

Re: conda: win: build-errors 20191201

Postby wmayer » Thu Dec 05, 2019 3:07 am

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_
Posts: 1098
Joined: Tue Jan 03, 2017 8:42 pm

Re: conda: win: build-errors 20191201

Postby UR_ » Thu Dec 05, 2019 8:48 am

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

Re: conda: win: build-errors 20191201

Postby looo » Thu Dec 05, 2019 9:49 am

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... ;)
please help with my conda-packaging efforts: https://liberapay.com/looooo/
minimalistic blog: https://looooo.github.io/mini-blog/
User avatar
looo
Posts: 3009
Joined: Mon Nov 11, 2013 5:29 pm

Re: conda: win: build-errors 20191201

Postby looo » Thu Dec 05, 2019 12:10 pm

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.
please help with my conda-packaging efforts: https://liberapay.com/looooo/
minimalistic blog: https://looooo.github.io/mini-blog/
User avatar
looo
Posts: 3009
Joined: Mon Nov 11, 2013 5:29 pm

Re: conda: win: build-errors 20191201

Postby looo » Thu Dec 05, 2019 7:35 pm

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)
please help with my conda-packaging efforts: https://liberapay.com/looooo/
minimalistic blog: https://looooo.github.io/mini-blog/
User avatar
sgrogan
Posts: 5530
Joined: Wed Oct 22, 2014 5:02 pm

Re: conda: win: build-errors 20191201

Postby sgrogan » Thu Dec 05, 2019 9:57 pm

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 am
You 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!