conda, osx-arm64, occt7.6

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

Re: conda, osx-arm64, occt7.6

Post by looo »

edwilliams16 wrote: Sun Aug 14, 2022 6:30 pm I'm not sure that this is the right thread, but the Mac package is missing FreeCAD.Base.ProgressIndicator, as used in Curves|GordonSurface

Code: Select all

>>> FreeCAD.Base.ProgressIndicator()
Traceback (most recent call last):
  File "<input>", line 1, in <module>
TypeError: cannot create 'N4Base19ProgressIndicatorPyE' instances
>>> 

Code: Select all

OS: macOS High Sierra (10.13)
Word size of FreeCAD: 64-bit
Version: 0.21.29971 (Git)
Build type: Release
Branch: master
Hash: 29197f503dc8c802cd82c968d16f5e1356365bda
Python 3.10.5, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.2
Locale: C/Default (C)
Installed mods: 
  * Curves 0.5.4
  * DynamicData 2.46.0
  * fasteners 0.3.51
  * fcgear 1.0.0
  * GDML 1.8.0
  * Help 1.0.3
  * lattice2 1.0.0
  * MeshRemodel 1.8919.0
  * toSketch
It works on other platforms I have tried.
This fails for me in both systems (osx64 / osx-arm64). Maybe a qt5.15 /conda issue?
edwilliams16
Veteran
Posts: 3112
Joined: Thu Sep 24, 2020 10:31 pm
Location: Hawaii
Contact:

Re: conda, osx-arm64, occt7.6

Post by edwilliams16 »

@looo https://forum.freecadweb.org/viewtopic. ... yE#p461571 makes me think this has been lurking for a while. It seems FEM and Curves use the ProgressBar. Detailed version info has been absent in the reports I have found.
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: conda, osx-arm64, occt7.6

Post by looo »

no issue with:

Code: Select all

OS: Ubuntu 22.04 LTS (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.21.30265 (Git)
Build type: Release
Branch: master
Hash: c35244e74f326a04c5bcab31e984742db582ac78
Python 3.10.6, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.2
Locale: German/Austria (de_AT)
Installed mods: 
  * Assembly3 0.11.3

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.21.30265 (Git)
Build type: Release
Branch: master
Hash: c35244e74f326a04c5bcab31e984742db582ac78
Python 3.10.6, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.2
Locale: German/Austria (de_AT)
Installed mods: 
  * Plot
also not working with:

Code: Select all

OS: macOS 10.16
Word size of FreeCAD: 64-bit
Version: 0.20.29177 (Git)
Build type: Release
Branch: (HEAD detached at 0.20)
Hash: 68e337670e227889217652ddac593c93b5e8dc94
Python 3.10.5, Qt 5.12.9, Coin 4.0.0, Vtk 9.1.0, OCC 7.5.3
Locale: German/Austria (de_AT)
Installed mods: 
  * ThreadProfile 1.81.0
  * PieMenu
  * fasteners 0.3.44
  * Assembly4 0.12.0
  * Assembly3 0.11.3
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: conda, osx-arm64, occt7.6

Post by looo »

I am still trying to cross-compile freecad. Not a big goal, but it would be nice to automate this process. Currently it fails with:

Code: Select all

CMake Error at /Users/runner/miniforge3/conda-bld/freecad_1662619804597/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/lib/cmake/vtk-9.1/VTKPython-targets.cmake:428 (message):
  The imported target "VTK::vtkCommonCorePython" references the file

     "/Users/runner/miniforge3/conda-bld/freecad_1662619804597/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/lib/python3.10/site-packages/vtkmodules/vtkCommonCore.so"

  but this file does not exist.  Possible reasons include:
If anyone has an idea, feel free to give me a hint.
oursland
Posts: 55
Joined: Sat Mar 11, 2023 9:33 pm

Re: conda, osx-arm64, occt7.6

Post by oursland »

HI @looo, I'm currently trying to bring up a macOS ARM64 build using conda. I've had some success in building, however there's some weird runtime behavior that I'm still debugging. My progress is documented in this forum thread: viewtopic.php?t=76777&start=10

I have also made a PR to make netgen-feedstock build for macOS ARM64.

Ideally, once this work is completed and determined to be suitably functional, I'd like to assist in getting macOS ARM64 into the matrix of weekly builds.
User avatar
chennes
Veteran
Posts: 3884
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: conda, osx-arm64, occt7.6

Post by chennes »

I'm fighting with Netgen on my ARM machine today -- nothing architecture-specific, I don't think. I'm trying to use Netgen 6.2.2105, which clearly requires C++17 standard, but the CMake script is falling into the older, C++14-required branch. It seems to be trying to use a variable called "NETGEN_VERSION_62_2004", but that (very specific!) thing does not exist, at least on my installation. I have the more normal versions strings, however: does anyone know why this isn't using CMakes standard version comparison operations?
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
oursland
Posts: 55
Joined: Sat Mar 11, 2023 9:33 pm

Re: conda, osx-arm64, occt7.6

Post by oursland »

@chennes Is this with the conda build environment? @looo informed me and I confirmed that netgen is included in smesh conda package and does not require the netgen package to be explicitly brought in and built against: https://github.com/conda-forge/netgen-f ... 1483762349.
JohnOCFII
Posts: 112
Joined: Sun Sep 20, 2020 5:46 pm
Location: Minnesota, USA

Re: conda, osx-arm64, occt7.6

Post by JohnOCFII »

oursland wrote: Mon Apr 17, 2023 12:51 am @chennes Is this with the conda build environment?
With these build instructions so close to what @looo is using for the weekly builds, it seems the Conda Build instructions from @oursland are a really clean way to go. I've had very good luck with them on my Mac.

https://github.com/oursland/FreeCAD-Build-Notes
Post Reply