[solved] conda: building freecad fails

This subforum is specifically to discuss packaging issues on different platforms (windows, mac, linux), and using different packaging systems (conda, etc...)
Post Reply
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

[solved] conda: building freecad fails

Post by looo »

Something elated to pcl. Were there any recent changes?

Code: Select all

%SRC_DIR%\src\Mod\ReverseEngineering\App\SurfaceTriangulation.cpp(59): error C2871: 'io': a namespace with this name does not exist
%SRC_DIR%\src\Mod\ReverseEngineering\App\SurfaceTriangulation.cpp(101): error C2039: 'concatenateFields': is not a member of 'pcl'
%PREFIX%\Library\include\pcl-1.12\pcl/common/common.h(58): note: see declaration of 'pcl'
Last edited by looo on Sat Jul 31, 2021 8:42 pm, edited 1 time in total.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: conda: building freecad fails

Post by Kunda1 »

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

Re: conda: building freecad fails

Post by looo »

Thanks, using this as a patch right now. But linux still failing:

Code: Select all

CMake Error at cMake/FindOpenCasCade.cmake:112 (string):
  string sub-command REGEX, mode MATCH needs at least 5 arguments total to
  command.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: conda: building freecad fails

Post by Kunda1 »

wth? where did that come from?

Edit: here's the line in question (link)

Edit2: did a newer minor version of OCC get used in building the appimage?
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
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: conda: building freecad fails

Post by looo »

Kunda1 wrote: Sun Jul 25, 2021 4:03 pm wth? where did that come from?

Edit: here's the line in question (link)

Edit2: did a newer minor version of OCC get used in building the appimage?
I have no idea, why it was failing. The occt version hasn't changed:

Code: Select all

 occt:                      7.5.2-h7391655_0                 conda-forge
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: conda: building freecad fails

Post by looo »

Code: Select all

/home/conda/feedstock_root/build_artifacts/freecad_1627467712041/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib64/include/opencascade/Standard_Version.hxx"
I guess the lib64 thing is wrong for the occ_include_dir. But I have no idea what triggers this difference as the occt-package wasn't updated. Maybe it is because of a cmake update... :(

edit: no this is not the issue. It was building fine at 18.07.21 with cmake version 3.21.0.... So I don't have a clue.

So the question is:
Where does the "lib64" thing come from???

:D
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: conda: building freecad fails

Post by looo »

Solved with https://github.com/conda-forge/ctng-com ... ck/pull/67

Maybe the occ config script should take lib64 into consideration. But it's also possible to use a cake flag:

FIND_LIBRARY_USE_LIB64_PATHS=OFF

Thanks to @isuruf .
Post Reply