[Solved] Compile FreeCAD on macOS Big Sur 11.5.1 with Homebrew, error finding XercesC files

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
Gift
Posts: 769
Joined: Tue Aug 18, 2015 10:08 am
Location: Germany, Sauerland

Re: Compile FreeCAD on macOS Big Sur 11.5.1 with Homebrew, error finding XercesC files

Post by Gift »

Can you test your build process in the homebrew environment:

Code: Select all

brew sh
User avatar
Gift
Posts: 769
Joined: Tue Aug 18, 2015 10:08 am
Location: Germany, Sauerland

Re: Compile FreeCAD on macOS Big Sur 11.5.1 with Homebrew, error finding XercesC files

Post by Gift »

Gift wrote: Fri Jul 30, 2021 3:18 pm
doia wrote: Fri Jul 30, 2021 2:54 pm Nach dem Tag mehr als eins. Jetzt spinnt auch noch die geupdatete Version von NGLib 6.2.2101. :x
Sorry, I need the update to compile FreeCAD for ARM64.

You can check the new path with irb:

Code: Select all

brew irb

Code: Select all

@tap = 'freecad/freecad'

prefix_paths = ""
prefix_paths << Formula["#{@tap}/qt5152"].opt_prefix/"lib/cmake;"
prefix_paths << Formula["#{@tap}/nglib"].opt_prefix/"Contents/Resources;"
prefix_paths << Formula["#{@tap}/vtk@8.2.0"].opt_prefix/"lib/cmake;"
prefix_paths << Formula["#{@tap}/opencascade@7.5.0"].opt_prefix + "/lib/cmake;"
prefix_paths << Formula["#{@tap}/med-file"].opt_prefix + "/share/cmake/;"
prefix_paths << Formula["#{@tap}/shiboken2"].opt_prefix + "/lib/cmake;"
prefix_paths << Formula["#{@tap}/pyside2"].opt_prefix+ "/lib/cmake;"
prefix_paths << Formula["#{@tap}/coin@4.0.0"].opt_prefix+ "/lib/cmake;"
prefix_paths << Formula["#{@tap}/boost@1.75.0"].opt_prefix+ "/lib/cmake;"
prefix_paths << Formula["#{@tap}/boost-python3@1.75.0"].opt_prefix+ "/lib/cmake;"

pp prefix_paths 
Source
Thx Dirk! This script based of the homebrew FreeCAD source code. Whatever, it included bugs.

New script:

Code: Select all

    @tap = 'freecad/freecad'

    python_exe = Formula["#{@tap}/python3.9"].opt_prefix/"bin/python3"
    python_headers = Formula["#{@tap}/python3.9"].opt_prefix/"Frameworks/Python.framework/Headers"

    prefix_paths = ''
    prefix_paths << Formula["#{@tap}/qt5152"].lib/'cmake;'
    prefix_paths << Formula["#{@tap}/nglib"].opt_prefix/'Contents/Resources;'
    prefix_paths << Formula["#{@tap}/vtk@8.2.0"].lib/'cmake;'
    prefix_paths << Formula["#{@tap}/opencascade@7.5.0"].lib/'cmake;'
    prefix_paths << Formula["#{@tap}/med-file"].share/'cmake;'
    prefix_paths << Formula["#{@tap}/shiboken2"].lib/'cmake;'
    prefix_paths << Formula["#{@tap}/pyside2"].lib/'cmake;'
    prefix_paths << Formula["#{@tap}/coin@4.0.0"].lib/'cmake;'
    prefix_paths << Formula["#{@tap}/boost@1.75.0"].lib/'cmake;'
    prefix_paths << Formula["#{@tap}/boost-python3@1.75.0"].lib/'cmake;'
    
    # Disable function which are not available for Apple Silicon
    act = Hardware::CPU.arm? ? 'OFF' : 'ON'
    web = act

	  args = Formula[@tap+'/freecad'].std_cmake_args
    args = args + %W[
      -DBUILD_QT5=ON
      -DUSE_PYTHON3=1
      -DCMAKE_CXX_STANDARD=14
      -DBUILD_ENABLE_CXX_STD:STRING=C++14
      -DBUILD_FEM_NETGEN=1
      -DBUILD_FEM=1
      -DBUILD_FEM_NETGEN:BOOL=ON
      -DBUILD_WEB=#{web}
      -DFREECAD_USE_EXTERNAL_KDL=ON
      -DPYTHON_EXECUTABLE=#{python_exe}
      -DPYTHON_INCLUDE_DIR=#{python_headers}
      -DCMAKE_PREFIX_PATH="#{prefix_paths}"
    ]

    args << "-DFREECAD_CREATE_MAC_APP=1"
	
	txt =  'cmake '
	args.each {|e| txt += e + ' '}
  txt += '../freecad-source'

  puts txt

	
	
User avatar
ipatch
Posts: 112
Joined: Wed Apr 08, 2020 3:40 pm
Location: dfw
Contact:

Re: Compile FreeCAD on macOS Big Sur 11.5.1 with Homebrew, error finding XercesC files

Post by ipatch »

doia

hey forgive me for the delayed response.

i just skimmed over the posts in this thread, so forgive if i forget something.

1. you're on macos big sur so you should be able to use newer language features of C++, i'm presently still using macos 10.14 mojave which pegs out at C++14 for most if not all features.

when i begin to compile freecad using

```
std=c++17
```

i get errors, but since your on a newer major release of the OS more than likely your build tools with support `c++17` and even newer features.

2. also you're `cmake` cmd is outputting a lot of warnings that you can suppress that are not related to your build issue.

if you look over the output of your cmake cmd, you might to add the below to your cmake cmd

```
-Wno-dev
```

add that flag to your cmake cmd and it should suppress a lot of that cmake nonsense for the time being.

so as i told somebody else recently on this forum. make sure you double check and all the deps provided by the homebrew-freecad tap linked within your

```
brew --prefix
```

you can check that the deps are linked by doing

```
brew link qt5152
```

as some deps are only installed as keg only.

i just build freecad myself from the 25310 commit the other (as stated before i'm still on macos mojave, but i have put together a dmg of my app bundle if your interested in giving it a try, i'm obviously using a amd64 (x86_64) based proc and not a m1 mac at the moment.

you can grab my dmg below,

https://github.com/ipatch/homebrew-free ... -25310.dmg

---

i've created a release on my fork of the homebrew-freecad tap to include all the bottles vej created along with the one's i've built from source for macos mojave.

---

https://github.com/ipatch/homebrew-free ... 07.28.2021

---


i'm not sure if that version of freecad will run on big sur as i've haven't popped open a big sur vm in a minute, but i'll spin one up sooner than later to see if it works. so you might want to give that a shot.

also you'll more than likely run into issues building a FreeCAD.app bundle release with the current freecad source, but you should be able to build a cli release without an issues.

me personally, i had to modify a cmake file related to the freecad source in order to properly build a `FreeCAD.app` bundle of freecad.

also, (more me peronsallys') the last cmake cmd i used to build the apple freecad bundle, ie. the one i use and uploaded into the dmg is below.


---

```
-DCMAKE_C_FLAGS_RELEASE=-DNDEBUG \
-DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG \
-DCMAKE_CXX_STANDARD=14 \
-DBUILD_ENABLE_CXX_STD:STRING=C++14 \
-Wno-deprecated-declarations \
-DCMAKE_FIND_FRAMEWORK=LAST \
-DCMAKE_VERBOSE_MAKEFILE=OFF \
-Wno-dev \
-DCMAKE_OSX_SYSROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk \
-DBUILD_QT5=ON \
-DUSE_PYTHON3=1 \
-DPYTHON_EXECUTABLE="/usr/local/opt/python3.9/bin/python3" \
-DPYTHON_INCLUDE_DIR="/usr/local/opt/python3.9/Frameworks/Python.framework/Headers" \
-DCMAKE_PREFIX_PATH="" \
-DBUILD_SMESH=1 \
-DBUILD_FEM_NETGEN=0 \
-DBUILD_FEM=0 \
-DBUILD_TECHDRAW=0 \
-DFREECAD_USE_EXTERNAL_KDL=ON \
-DBUILD_WEB=ON \
-DCMAKE_BUILD_TYPE=Release \
-DFREECAD_CREATE_MAC_APP=ON \
-DCMAKE_INSTALL_PREFIX=/opt/beta/freecad.apl ../freecad-src
```

obviously certain dirs are specific to my use case, but i've disabled netgen for the time being, and am also building the internal smesh, so update that cmd to work for you. and let me know what you see in the output.

hopefully you'll get your build to bump a little further. believe this is something i've been working with now for a little while, and it definitely didn't happen overnight (unfortunately).
User avatar
ipatch
Posts: 112
Joined: Wed Apr 08, 2020 3:40 pm
Location: dfw
Contact:

Re: Compile FreeCAD on macOS Big Sur 11.5.1 with Homebrew, error finding XercesC files

Post by ipatch »

following up to my reply post from last night (CST here)

it looks like your using paths

```
/usr/local/Cellar/...
```

personally i lean towards using

```
/usr/local/opt
```

as /usr/local/opt/library

will point to the `brew link` version of the library (from my understanding)


---

so more than likely this is going to be an issue with your build

```
-- Found PythonInterp: /usr/local/Frameworks/Python.framework/Versions/3.9/bin/python3.9 (found suitable version "3.9.6", minimum required is "3")
-- Found PythonLibs: /usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib/libpython3.9.dylib (found suitable version "3.9.6", minimum required is "3")
```

looking at the above output it looks cmake is referencing `PythonLibs` from the `homebrew-core` installation of python, whereas you're telling cmake to use the `python3.9` interpreter provided by the `homebrew-freecad` tap.

i bet that's going to cause some confusion when you attempt to compile freecad.

amend your current cmake cmd with the below flags,

```
-DUSE_PYTHON3=1 \
-DPYTHON_EXECUTABLE="/usr/local/opt/python3.9/bin/python3" \
-DPYTHON_INCLUDE_DIR="/usr/local/opt/python3.9/Frameworks/Python.framework/Headers" \
```

using those above cmake flags on my macos mojave box yields

```
-- Found PythonLibs: /usr/local/opt/python3.9/Frameworks/Python.framework/Versions/3.9/lib/libpython3.9.dylib (found suitable version "3.9.0", minimum required is "3")
-- SHIBOKEN_PYTHON_INCLUDE_DIRS computed to value: '/usr/local/opt/python3.9/Frameworks/Python.framework/Headers'
```

and double check which python your shell/terminal environment that your using your cmake cli cmd from is using.

```
export brew_prefix=$(brew --prefix)
ls -lah $brew_prefix/bin/python

echo "check to see which python interp that is pointing to"

ls -lah $brew_prefix/bin/python3
```

that last ls cmd should yield something like,

```
lrwxrwxr-x 1 capin admin 39 Jul 26 20:04 /usr/local/bin/python3 -> ../Cellar/python3.9/3.9.0_5/bin/python3
```

try all those updates, and then report back.
User avatar
doia
Posts: 251
Joined: Sat May 29, 2021 5:47 am
Location: Düsseldorf

Re: Compile FreeCAD on macOS Big Sur 11.5.1 with Homebrew, error finding XercesC files

Post by doia »

@ipatch, thank you. Don't worry about late answers. We are all volunteers here. Your time is more precious than mine and I'm not your boss. :D

Some additional information. I'm trying to build FC on Mac OS Big Sur from an Intel system, not ARM. This will come hopefully later this year (never by a Mac system on the first version). For actual work with FC I use the latest 0.20-daily builds. These work fine on my system.

I want to compile FC to be able to start and help with actual features for FC. I'm fairly comfortable in writing code, pulling stuff from git repos and using the terminal and brew, but NOT in debugging a build pipeline. (That's why there are specialised DevOps professionals) As the "Compile under macOS" section of the Wiki is broken, I tried different ways to compile. But any found way, either via Homebrew, via Docker or via Conda seems to be broken, at least for me.
It would be nice to have an updated version of the wiki with a simple and in detail explained version, which uses homebrew and some pastable lines of script. Like a pilot checklist, where each steps is explicitly described.

I'm thankful for your help and I learn a lot through your comments/repos. But I can not follow along completely, as some steps seem to be missing, which might be obvious to you.

Some additions to your comment:
Using /usr/local/Cellar/... or using /usr/local/opt/... does not matter, as /usr/local/opt/... are just alias links, which point to the /usr/local/Cellar/... versions. So /usr/local/opt/... is actually just a detour.

The same holds for:

Code: Select all

-- Found PythonInterp: /usr/local/Frameworks/Python.framework/Versions/3.9/bin/python3.9 (found suitable version "3.9.6", minimum required is "3")
-- Found PythonLibs: /usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib/libpython3.9.dylib (found suitable version "3.9.6", minimum required is "3")
- /usr/local/Frameworks/Python.framework/Versions/3.9 points to /usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9
- /usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9 points to /usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9

These are all just alias links which point to the same version. Anything installed with Homebrew uses the underlying Cellar version.

Checking which is the used python version on my terminal yields:

Code: Select all

➜  ~ export brew_prefix=$(brew --prefix)
ls -lah $brew_prefix/bin/python3
lrwxr-xr-x  1 dirkolbrich  admin    38B 14 Jul 22:24 /usr/local/bin/python3 -> ../Cellar/python@3.9/3.9.6/bin/python3
➜  ~ which python3
/usr/local/bin/python3
@Gift, thank you for your script and your effort. But unfortunately I'm not able to use it correctly. I started the interactive console and pasted your script, it ended after put txt. I do not know what to do next or how to receive the result when exiting irb.

Using bash scripts feels OK, if one is somewhat comfortable with the terminal. But adding Ruby and switching into an interactive console without being confident what to do, adds just to much cognitive burden to the build process. I'd rather prefer to only use bash scripts and avoid brew irb. This would be in line with the FreeCAD tutorials on how to compile FC. Is there a chance to translate your script to bash?

Thanks again both of you for your help. After may last attempt to compile I reset everything to start from a clean slate. Now I'm blocked due to the 404 error on the freecad/freecad tap on homebrew https://github.com/FreeCAD/homebrew-freecad/issues/187. Will resume when this is fixed, as I do not want to install each dep individually.
User avatar
Gift
Posts: 769
Joined: Tue Aug 18, 2015 10:08 am
Location: Germany, Sauerland

Re: Compile FreeCAD on macOS Big Sur 11.5.1 with Homebrew, error finding XercesC files

Post by Gift »

Hello you two,

Homebrew set automatic a lot of export settings from the dependencies. E.g. :

Code: Select all

PATH=" .. :/opt/homebrew/opt/xerces-c/bin: .. "

Code: Select all

PKG_CONFIG_PATH=" .. :/opt/homebrew/opt/xerces-c/lib/pkgconfig: .. "
To get this information for your system. I know, you will hate me:

1. Get information about brew env

We manipulate the formula ( Pfusch am Bau / slipshod ):

Code: Select all

brew edit freecad/freecad/freecad
Add the follow lines before 'mkdir "Build" do'

Code: Select all

    system 'export -p'
    system 'echo', 'cmake', *args, '..' 
2. Now start install process

Code: Select all

brew reinstall freecad/freecad/freecad
If you see "make -j* install" stop homebrew (CONTROL-C).

3. Undo our manipulation

Reset the Homebrew-Freecad repo:

Code: Select all

brew update-reset
4. Check the logs

Code: Select all

cat ~/Library/Logs/Homebrew/freecad/02.export
cat ~/Library/Logs/Homebrew/freecad/03.echo
Maybe you will find something, that help you, in the logs. Great success.
User avatar
ipatch
Posts: 112
Joined: Wed Apr 08, 2020 3:40 pm
Location: dfw
Contact:

Re: Compile FreeCAD on macOS Big Sur 11.5.1 with Homebrew, error finding XercesC files

Post by ipatch »

i'm drafting a reply for your github 404 as we speak.

heads homeberw can install multiple versions of python

the freecad tap provides a version of python all onto itself it's noted as python3.9
whereas the homebrew-core version of python would be known as python@3.9.x

notice how there is an `@` sign/symbol in the homebrew-core version of python and not the homebrew-freecad tap version.

run through the below commands

```
brew search python
```

yields the below output on my local box (mojave, no vm)

```
==> Formulae
app-engine-python freecad/freecad/python3.9 ✔ python-launcher python@3.7 pythran
boost-python ✔ gst-python python-markdown python@3.8 ✔ jython
boost-python3 ✔ ipython python-tabulate python@3.9 ✔ cython
bpython micropython python-tk@3.9 reorder-python-imports
freecad/freecad/boost-python3@1.75.0 ✔ ptpython python-yq wxpython
==> Casks
awips-python mysql-connector-python

If you meant "python" specifically:
It was migrated from homebrew/cask to homebrew/core.
```

---

then run

```
brew info python@3.9
```

```
brew info python@3.9 0 (8.102s)
python@3.9: stable 3.9.6 (bottled)
Interpreted, interactive, object-oriented programming language
https://www.python.org/
/usr/local/Cellar/python@3.9/3.9.6 (2,985 files, 50.9MB)
Poured from bottle on 2021-07-04 at 11:33:16
From: https://github.com/Homebrew/homebrew-co ... hon@3.9.rb
License: Python-2.0
==> Dependencies
Build: pkg-config ✔
Required: gdbm ✔, mpdecimal ✔, openssl@1.1 ✔, readline ✔, sqlite ✔, xz ✔
==> Caveats
Python has been installed as
/usr/local/bin/python3

Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to
`python3`, `python3-config`, `pip3` etc., respectively, have been installed into
/usr/local/opt/python@3.9/libexec/bin

You can install Python packages with
pip3 install <package>
They will install into the site-package directory
/usr/local/lib/python3.9/site-packages

tkinter is no longer included with this formula, but it is available separately:
brew install python-tk@3.9

See: https://docs.brew.sh/Homebrew-and-Python
==> Analytics
install: 589,913 (30 days), 1,665,938 (90 days), 6,750,431 (365 days)
install-on-request: 201,683 (30 days), 576,572 (90 days), 2,090,366 (365 days)
build-error: 0 (30 days)
```

then run,

```
brew info python3.9
```

```
freecad/freecad/python3.9: stable 3.9.0 [keg-only]
Interpreted, interactive, object-oriented programming language
https://www.python.org/
/usr/local/Cellar/python3.9/3.9.0_5 (4,351 files, 68.4MB) *
Built from source on 2021-07-25 at 17:19:45
From: https://github.com/freecad/homebrew-fre ... thon3.9.rb
License: Python-2.0
==> Dependencies
Build: pkg-config ✔
Required: gdbm ✔, gettext ✔, openssl@1.1 ✔, readline ✔, sqlite ✔, xz ✔
==> Caveats
Python has been installed as
/usr/local/bin/python3

Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to
`python3`, `python3-config`, `pip3` etc., respectively, have been installed into
/usr/local/opt/python3.9/libexec/bin

You can install Python packages with
pip3 install <package>
They will install into the site-package directory
/usr/local/lib/python3.9/site-packages

See: https://docs.brew.sh/Homebrew-and-Python

python3.9 is keg-only, which means it was not symlinked into /usr/local,
because freeCAD python version only.

If you need to have python3.9 first in your PATH, run:
echo 'fish_add_path /usr/local/opt/python3.9/bin' >> ~/.config/fish/config.fish

For compilers to find python3.9 you may need to set:
set -gx LDFLAGS "-L/usr/local/opt/python3.9/lib"

For pkg-config to find python3.9 you may need to set:
set -gx PKG_CONFIG_PATH "/usr/local/opt/python3.9/lib/pkgconfig"
```

---

so depending on which of python you have linked `brew link` version you have linked that's the version of python your `env` will use.

```
echo "this is partial output of what my `/usr/local/opt` looks like"
lrwxrwxr-x 1 capin admin 27 Jul 26 20:04 python3.9 -> ../Cellar/python3.9/3.9.0_5/
lrwxrwxr-x 1 capin admin 27 Dec 25 2019 'python@2' -> '../Cellar/python@2/2.7.17_1'/
lrwxrwxr-x 1 capin admin 26 Jul 4 11:33 'python@3' -> '../Cellar/python@3.9/3.9.6'/
lrwxrwxr-x 1 capin admin 27 Jun 30 22:52 'python@3.8' -> '../Cellar/python@3.8/3.8.11'/
lrwxrwxr-x 1 capin admin 26 Jul 4 11:33 'python@3.9' -> '../Cellar/python@3.9/3.9.6'/
```

so when you're specifying `python3.9` and `python@3.9` your referencing 2 different installs of python.

i hope this helps.
User avatar
doia
Posts: 251
Joined: Sat May 29, 2021 5:47 am
Location: Düsseldorf

Re: Compile FreeCAD on macOS Big Sur 11.5.1 with Homebrew, error finding XercesC files

Post by doia »

Update on my compile trials. I went full nuclear and deleted and reinstalled Homebrew completely. No success.

@ipatch: You are correct with the python version. I set the PYTHON_EXECUTABLE and PYTHON_INCLUDE_DIR path on cmake to the freecad/freecad/python3.9 version.

@Gift:
Thank you for your brew/ruby script. I ran each line separately with brew irb and constructed the following settings suitable for a bash script, with some slightly altered lines (see comments):

Code: Select all

➜  freecad-build export PREFIX_PATH="\
/usr/local/opt/qt5152/lib/cmake;\
/usr/local/opt/nglib/Contents/Resources;\
/usr/local/opt/vtk@8.2.0/lib/cmake;\
/usr/local/opt/opencascade@7.5.0/lib/cmake;\
/usr/local/opt/med-file/share/cmake;\
/usr/local/opt/shiboken2/lib/cmake;\
/usr/local/opt/pyside2/lib/cmake;\
/usr/local/opt/coin@4.0.0;\ # <- had to delete the ending /lib/cmake as with it coin3d was not found on cmake
/usr/local/opt/boost@1.75.0/lib/cmake;\
/usr/local/opt/boost-python3@1.75.0/lib/cmake"
➜  freecad-build cmake \
  -DCMAKE_INSTALL_LIBDIR=lib \
  -DCMAKE_BUILD_TYPE="Release" \
  -DCMAKE_FIND_FRAMEWORK=LAST \
  -DCMAKE_VERBOSE_MAKEFILE=OFF \ # <- with std_cmake_args this was set to ON and gave a very verbose make output which lets make takes longer, switched to OFF
  -Wno-dev \
  -DBUILD_TESTING=OFF \
  -DCMAKE_OSX_SYSROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk \
  -DBUILD_QT5=ON \
  -DUSE_PYTHON3=1 \
  -DCMAKE_CXX_STANDARD=14 \
  -DBUILD_ENABLE_CXX_STD:STRING=C++14 \
  -DBUILD_FEM_NETGEN=1 \
  -DBUILD_FEM=1 \
  -DBUILD_FEM_NETGEN:BOOL=ON \
  -DBUILD_WEB=ON \
  -DFREECAD_USE_EXTERNAL_KDL=ON \
  -DPYTHON_EXECUTABLE=/usr/local/opt/python3.9/bin/python3 \
  -DPYTHON_INCLUDE_DIR=/usr/local/opt/python3.9/Frameworks/Python.framework/Headers \
  -DCMAKE_PREFIX_PATH="$PREFIX_PATH" \
  -DFREECAD_CREATE_MAC_APP=1 \
  -DCMAKE_INSTALL_PREFIX="./.." \ # <- needed to change this line, std_cmake_args from freecad/freecad pointed to /usr/local/Cellar/freecad/0.19
  ../freecad-source
The Cmake preparation gave the following summary, which lists XercesC on its located path:

Code: Select all

-- The C compiler identification is AppleClang 12.0.5.12050022
-- The CXX compiler identification is AppleClang 12.0.5.12050022
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Compiler: AppleClang, version: 12.0.5.12050022
-- Looking for GL/gl.h
-- Looking for GL/gl.h - not found
-- Looking for C++ include istream
-- Looking for C++ include istream - found
-- Looking for C++ include ostream
-- Looking for C++ include ostream - found
-- Looking for C++ include fstream
-- Looking for C++ include fstream - found
-- Looking for C++ include sstream
-- Looking for C++ include sstream - found
-- Looking for C++ include ios
-- Looking for C++ include ios - found
-- Looking for C++ include iostream
-- Looking for C++ include iostream - found
-- Looking for C++ include iomanip
-- Looking for C++ include iomanip - found
-- Looking for C++ include iostream
-- Looking for C++ include iostream - found
-- Check for STD namespace
-- Check for STD namespace - found
-- Force BOOST_PP_VARIADICS=1 for clang
-- prefix: /Users/dirkolbrich/Freecad
-- bindir: bin
-- datadir: share
-- docdir: share/doc/FreeCAD
-- includedir: include
-- libdir: lib
-- cmake: 3.21.1
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
=====================================================
Doxygen not found, will not build documentation.
=====================================================

-- Detected Homebrew install at /usr/local
-- Found Python3: /usr/local/bin/python3.9 (found version "3.9.6") found components: Interpreter Development Development.Module Development.Embed
-- Found XercesC: /usr/local/lib/libxerces-c.dylib (found version "3.2.3")
-- Found ZLIB: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libz.tbd (found version "1.2.11")
-- PyCXX found:
--   Headers:  /Users/dirkolbrich/Freecad/freecad-source/src
--   Sources:  /Users/dirkolbrich/Freecad/freecad-source/src/CXX
--   Version:  6.2.8
-- Found OCC: /usr/local/opt/opencascade@7.5.0/include/opencascade (found version "7.5.0")
-- -- Found OCE/OpenCASCADE version: 7.5.0
-- -- OCE/OpenCASCADE include directory: /usr/local/opt/opencascade@7.5.0/include/opencascade
-- -- OCE/OpenCASCADE shared libraries directory: /usr/local/opt/opencascade@7.5.0/lib
-- Found OpenGL: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework
-- Found OpenGLU: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework
-- VTK components: vtkCommonCore;vtkCommonDataModel;vtkFiltersVerdict;vtkIOXML;vtkFiltersCore;vtkFiltersGeneral;vtkIOLegacy;vtkFiltersExtraction;vtkFiltersSources;vtkFiltersGeometry;vtkhdf5;vtkRenderingCore;vtkInteractionStyle;vtkRenderingFreeType;vtkRenderingOpenGL2
-- Check for medfile (libmed and libmedc) ...
-- Found MEDFile: /usr/local/include
-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.29.2")
-- We guess that libmed was built using hdf5-serial version
-- Checking for one of the modules 'hdf5-serial'
-- Found HDF5: /usr/local/Cellar/hdf5/1.12.1/lib/libhdf5.dylib;/usr/local/opt/szip/lib/libsz.dylib;/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libz.tbd;/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libdl.tbd;/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libm.tbd (found version "1.12.1")
-- Checking for one of the modules 'ompi-cxx'
/usr/local/opt/boost@1.75.0/lib/cmake/Boost-1.75.0
/usr/local/opt/boost@1.75.0/lib/cmake
find_pacjage called
/usr/local/opt/boost@1.75.0/lib/cmake/Boost-1.75.0
/usr/local/opt/boost@1.75.0/lib/cmake
find_pacjage called
/usr/local/opt/boost@1.75.0/lib/cmake/Boost-1.75.0
/usr/local/opt/boost@1.75.0/lib/cmake
find_pacjage called
/usr/local/opt/boost@1.75.0/lib/cmake/Boost-1.75.0
/usr/local/opt/boost@1.75.0/lib/cmake
find_pacjage called
/usr/local/opt/boost@1.75.0/lib/cmake/Boost-1.75.0
/usr/local/opt/boost@1.75.0/lib/cmake
find_pacjage called
/usr/local/opt/boost@1.75.0/lib/cmake/Boost-1.75.0
/usr/local/opt/boost@1.75.0/lib/cmake
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
find_pacjage called
-- Found Boost: /usr/local/opt/boost@1.75.0/lib/cmake/Boost-1.75.0/BoostConfig.cmake (found suitable version "1.75.0", minimum required is "1.55") found components: filesystem program_options regex system thread
-- Found Netgen: /usr/local/opt/nglib/Contents/Resources/CMake
-- Performing Test CSTDIO_INCLUDE_TRY1
-- Performing Test CSTDIO_INCLUDE_TRY1 - Success
-- Found NETGEN version 6.2, calculated: 395829
-- Found SWIG: /usr/local/bin/swig (found version "4.0.2")
-- Found Eigen3: /usr/local/include/eigen3 (found suitable version "3.3.9", minimum required is "2.91.0")
-- Found Freetype: /usr/local/lib/libfreetype.dylib (found version "2.11.0")
-- Coin3D libraries found
-- Could NOT find Spnav (missing: SPNAV_LIBRARY SPNAV_INCLUDE_DIR)
-- Shiboken2Config: Using default python: .cpython-39-darwin
-- Found PythonInterp: /usr/local/bin/python3.9 (found suitable version "3.9.6", minimum required is "3")
-- Found PythonLibs: /usr/local/opt/python3.9/Frameworks/Python.framework/Versions/3.9/lib/libpython3.9.dylib (found suitable version "3.9.0", minimum required is "3")
-- SHIBOKEN_PYTHON_INCLUDE_DIRS computed to value: '/usr/local/opt/python3.9/Frameworks/Python.framework/Headers'
-- SHIBOKEN_PYTHON_LIBRARIES computed to value: '-undefined dynamic_lookup'
-- libshiboken built for Release
-- PYTHON_CONFIG_SUFFIX: .cpython-39-darwin
-- libshiboken built for Release
-- ===============================================
PySide2 Python module found at /usr/local/lib/python3.9/site-packages/PySide2.
===============================================

-- Found Matplotlib: /usr/local/lib/python3.9/site-packages/matplotlib (found version "2.1.1")
-- Platform is 64-bit, set -D_OCC64
-- Performing Test _flag_found
-- Performing Test _flag_found - Success
-- Performing Test _flag_found
-- Performing Test _flag_found - Success
-- Performing Test _flag_found
-- Performing Test _flag_found - Success
-- /Users/dirkolbrich/Freecad/freecad-build/src/Base/TypePy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Base/BaseClassPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Base/BoundBoxPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Base/CoordinateSystemPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Base/PersistencePy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Base/VectorPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Base/MatrixPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Base/RotationPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Base/PlacementPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Base/AxisPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Base/UnitPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Base/QuantityPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/App/DocumentPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/App/DocumentObjectPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/App/ExtensionPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/App/ExtensionContainerPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/App/DocumentObjectExtensionPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/App/GroupExtensionPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/App/LinkBaseExtensionPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/App/DocumentObjectGroupPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/App/GeoFeaturePy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/App/GeoFeatureGroupExtensionPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/App/OriginGroupExtensionPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/App/PartPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/App/ComplexGeoDataPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/App/PropertyContainerPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/App/MaterialPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Points/App/PointsPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Mesh/App/FacetPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Mesh/App/MeshFeaturePy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Mesh/App/MeshPointPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Mesh/App/MeshPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Mesh/Gui/ViewProviderMeshPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/ArcPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/ArcOfConicPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/ArcOfCirclePy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/ArcOfParabolaPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/BodyBasePy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/ConicPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/CirclePy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/ArcOfEllipsePy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/EllipsePy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/HyperbolaPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/ArcOfHyperbolaPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/ParabolaPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/OffsetCurvePy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/GeometryPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/GeometryExtensionPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/GeometryIntExtensionPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/GeometryStringExtensionPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/GeometryBoolExtensionPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/GeometryDoubleExtensionPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/GeometryCurvePy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/BoundedCurvePy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/TrimmedCurvePy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/GeometrySurfacePy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/LinePy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/LineSegmentPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/PointPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/BezierCurvePy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/BSplineCurvePy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/PlanePy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/ConePy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/CylinderPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/SpherePy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/ToroidPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/BezierSurfacePy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/BSplineSurfacePy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/OffsetSurfacePy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/PlateSurfacePy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/RectangularTrimmedSurfacePy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/SurfaceOfExtrusionPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/SurfaceOfRevolutionPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/PartFeaturePy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/AttachExtensionPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/Part2DObjectPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/AttachEnginePy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/TopoShapePy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/TopoShapeCompoundPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/TopoShapeCompSolidPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/TopoShapeEdgePy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/TopoShapeFacePy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/TopoShapeShellPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/TopoShapeSolidPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/TopoShapeVertexPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/TopoShapeWirePy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/BRepOffsetAPI_MakePipeShellPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/BRepOffsetAPI_MakeFillingPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/BRepFeat/MakePrismPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/Geom2d/ArcOfCircle2dPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/Geom2d/ArcOfConic2dPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/Geom2d/ArcOfEllipse2dPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/Geom2d/ArcOfHyperbola2dPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/Geom2d/ArcOfParabola2dPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/Geom2d/BezierCurve2dPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/Geom2d/BSplineCurve2dPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/Geom2d/Circle2dPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/Geom2d/Conic2dPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/Geom2d/Ellipse2dPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/Geom2d/Geometry2dPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/Geom2d/Hyperbola2dPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/Geom2d/Curve2dPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/Geom2d/Line2dSegmentPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/Geom2d/Line2dPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/Geom2d/OffsetCurve2dPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/Geom2d/Parabola2dPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/GeomPlate/BuildPlateSurfacePy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/GeomPlate/CurveConstraintPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/GeomPlate/PointConstraintPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Part/App/ShapeUpgrade/UnifySameDomainPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/PartDesign/App/BodyPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/PartDesign/App/FeaturePy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/PartDesign/Gui/ViewProviderPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Sketcher/App/SketchObjectSFPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Sketcher/App/SketchObjectPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Sketcher/App/SketchGeometryExtensionPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Sketcher/App/ExternalGeometryExtensionPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Sketcher/App/GeometryFacadePy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Sketcher/App/ExternalGeometryFacadePy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Sketcher/App/ConstraintPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Sketcher/App/SketchPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Robot/App/Robot6AxisPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Robot/App/TrajectoryPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Robot/App/WaypointPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Robot/App/RobotObjectPy.cpp
-- Performing Test _flag_found
-- Performing Test _flag_found - Success
-- Performing Test _flag_found
-- Performing Test _flag_found - Success
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Import/App/StepShapePy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Fem/App/FemMeshPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Fem/App/FemPostPipelinePy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Fem/Gui/ViewProviderFemMeshPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Spreadsheet/App/SheetPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Spreadsheet/App/PropertySheetPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Spreadsheet/App/PropertyColumnWidthsPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Spreadsheet/App/PropertyRowHeightsPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Spreadsheet/Gui/SpreadsheetViewPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Path/App/CommandPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Path/App/PathPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Path/App/ToolPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Path/App/TooltablePy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Path/App/FeaturePathCompoundPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Path/App/AreaPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Path/App/FeatureAreaPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Path/App/VoronoiPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Path/App/VoronoiCellPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Path/App/VoronoiEdgePy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Path/App/VoronoiVertexPy.cpp
-- setting gcc options: -Wall -Werror -Wno-deprecated -pedantic-errors
/usr/local/opt/boost@1.75.0/lib/cmake/Boost-1.75.0
/usr/local/opt/boost@1.75.0/lib/cmake
find_pacjage called
/usr/local/opt/boost@1.75.0/lib/cmake/Boost-1.75.0
/usr/local/opt/boost@1.75.0/lib/cmake
find_pacjage called
-- Found Boost: /usr/local/opt/boost@1.75.0/lib/cmake/Boost-1.75.0/BoostConfig.cmake (found version "1.75.0") found components: python39
-- found Boost: 1_75
-- boost-incude dirs are: /usr/local/Cellar/boost@1.75.0/1.75.0/include
-- boost-python lib is:
-- boost_LIBRARY_DIRS is: /usr/local/Cellar/boost@1.75.0/1.75.0/lib
-- Boost_LIBRARIES is: Boost::python
-- area module (for Path Workbench) will be installed to: /Users/dirkolbrich/Freecad/FreeCAD.app/Contents/lib
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Path/PathSimulator/App/PathSimPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/Measure/App/MeasurementPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/TechDraw/App/DrawPagePy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/TechDraw/App/DrawViewPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/TechDraw/App/DrawViewPartPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/TechDraw/App/DrawViewSymbolPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/TechDraw/App/DrawTemplatePy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/TechDraw/App/DrawParametricTemplatePy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/TechDraw/App/DrawSVGTemplatePy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/TechDraw/App/DrawViewClipPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/TechDraw/App/DrawViewDimensionPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/TechDraw/App/DrawViewDimExtentPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/TechDraw/App/DrawHatchPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/TechDraw/App/DrawGeomHatchPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/TechDraw/App/DrawViewCollectionPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/TechDraw/App/DrawProjGroupPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/TechDraw/App/DrawProjGroupItemPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/TechDraw/App/DrawViewAnnotationPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/TechDraw/App/DrawLeaderLinePy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/TechDraw/App/DrawRichAnnoPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/TechDraw/App/GeomFormatPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/TechDraw/App/CenterLinePy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/TechDraw/App/CosmeticEdgePy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/TechDraw/App/CosmeticVertexPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/TechDraw/App/DrawTilePy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/TechDraw/App/DrawTileWeldPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/TechDraw/App/DrawWeldSymbolPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/TechDraw/App/CosmeticExtensionPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Mod/TechDraw/Gui/MDIViewPagePy.cpp
Created file /Users/dirkolbrich/Freecad/freecad-build/share/doc/FreeCAD/freecad.qch
-- /Users/dirkolbrich/Freecad/freecad-build/src/Gui/DocumentPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Gui/PythonWorkbenchPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Gui/ViewProviderPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Gui/ViewProviderDocumentObjectPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Gui/ViewProviderExtensionPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Gui/WorkbenchPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Gui/SelectionObjectPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Gui/LinkViewPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Gui/ViewProviderLinkPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Gui/AxisOriginPy.cpp
-- /Users/dirkolbrich/Freecad/freecad-build/src/Gui/CommandPy.cpp
find: /usr/local/Cellar/icu4c: No such file or directory
-- Checking for module 'icu-uc'
--   No package 'icu-uc' found
--
==============
Summary report
==============

-- Build type:          Release
-- Compiler:            /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ (12.0.5.12050022)
-- Flags:               -Wall -Wextra -Wpedantic -Wno-write-strings  -Wno-undefined-var-template
-- Standard:            Requires C++14
-- Python:              3.9.6 [/usr/local/bin/python3.9] [.cpython-39-darwin]
-- PCL:                 not enabled
-- pybind11:            not enabled
-- Boost:               1.75.0 (1.75.0)
-- XercesC:             3.2.3 [/usr/local/lib/libxerces-c.dylib] [/usr/local/include]
-- ZLIB:                1.2.11
-- PyCXX:               6.2.8 [/Users/dirkolbrich/Freecad/freecad-source/src]
-- OCC:                 7.5.0 [TKFillet;TKMesh;TKernel;TKG2d;TKG3d;TKMath;TKIGES;TKSTL;TKShHealing;TKXSBase;TKBool;TKBO;TKBRep;TKTopAlgo;TKGeomAlgo;TKGeomBase;TKOffset;TKPrim;TKSTEPBase;TKSTEPAttr;TKSTEP209;TKSTEP;TKHLR;TKFeat] [/usr/local/opt/opencascade@7.5.0/lib] [/usr/local/opt/opencascade@7.5.0/include/opencascade]
-- SMESH:               build internal
--  MEDFile:            4.0.0 [/usr/local/lib/libmedC.dylib;/usr/local/lib/libmed.dylib] [/usr/local/include]
--  HDF5:               1.12.1
--  VTK:                8.2.0
-- NETGEN:              6.2.2101 (6.2.2101) [-DNO_PARALLEL_THREADS;-DOCCGEOMETRY;-DNETGEN_VERSION=395829] [] [/usr/local/opt/nglib/Contents/Resources/include/include;/usr/local/opt/nglib/Contents/Resources/include] [nglib] [/usr/local/opt/nglib/Contents/Resources/include/include;/usr/local/opt/nglib/Contents/Resources/include]
-- SWIG:                4.0.2
-- Eigen3               3.3.9
-- Qt5Core:             5.15.2
-- Qt5Network:          5.15.2
-- Qt5Xml:              5.15.2
-- Qt5XmlPatterns:      5.15.2
-- Qt5Widgets:          5.15.2
-- Qt5PrintSupport:     5.15.2
-- Qt5OpenGL:           5.15.2
-- Qt5Svg:              5.15.2
-- Qt5UiTools:          5.15.2
-- Qt5Concurrent:       5.15.2
-- Qt5WebEngineWidgets: 5.15.2
-- Shiboken2:           5.15.2 [/usr/local/opt/shiboken2/lib/cmake/Shiboken2-5.15.2] [/usr/local/opt/shiboken2/include/shiboken2;/usr/local/opt/python3.9/Frameworks/Python.framework/Headers]
-- PySide2:             5.15.2 [/usr/local/opt/pyside2/include/PySide2]
-- PySide2Tools:        [/usr/local/bin/uic] [/usr/local/bin/rcc]
-- Freetype:            2.11.0
-- OpenGL:              /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework
-- OpenGLU:             [/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework][/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework]
-- Coin3D:              4.0.0 [/usr/local/opt/coin@4.0.0/lib/libCoin.dylib] [/usr/local/opt/coin@4.0.0/include]
-- Pivy:                0.6.5
-- SPNAV:               [SPNAV_LIBRARY-NOTFOUND] [SPNAV_INCLUDE_DIR-NOTFOUND]
-- Matplotlib:          2.1.1
-- Rift:                not enabled (BUILD_VR)
-- Doxygen:             not found
=================================================
Now run 'cmake --build /Users/dirkolbrich/Freecad/freecad-build' to build FreeCAD
=================================================

-- Configuring done
-- Generating done
-- Build files have been written to: /Users/dirkolbrich/Freecad/freecad-build
Running the compile process with:

Code: Select all

➜  freecad-build export LIBRARY_PATH="/usr/local/opt/icu4c@67.1/lib"
➜  freecad-build cmake --build /Users/dirkolbrich/Freecad/freecad-build
ends in the known error not finding the XercesC files:

Code: Select all

[ 91%] Building CXX object src/Mod/Measure/App/CMakeFiles/Measure.dir/AppMeasure.cpp.o
In file included from /Users/dirkolbrich/Freecad/freecad-source/src/Mod/Measure/App/AppMeasure.cpp:32:
In file included from /Users/dirkolbrich/Freecad/freecad-source/src/Mod/Measure/App/Measurement.h:29:
In file included from /Users/dirkolbrich/Freecad/freecad-source/src/App/DocumentObject.h:28:
In file included from /Users/dirkolbrich/Freecad/freecad-source/src/App/TransactionalObject.h:27:
In file included from /Users/dirkolbrich/Freecad/freecad-source/src/App/ExtensionContainer.h:33:
/Users/dirkolbrich/Freecad/freecad-source/src/Base/Reader.h:32:10: fatal error: 'xercesc/framework/XMLPScanToken.hpp' file not found
#include <xercesc/framework/XMLPScanToken.hpp>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [src/Mod/Measure/App/CMakeFiles/Measure.dir/AppMeasure.cpp.o] Error 1
make[1]: *** [src/Mod/Measure/App/CMakeFiles/Measure.dir/all] Error 2
make: *** [all] Error 2
I am all out of options. I probably will stop here until someone posts a reproducible script for macOS BigSur 11.5.1 on Intel using Homebrew. Or builds a docker file.

Note/Question:
The cmake settings use -DUSE_PYTHON3=1, the wiki post uses -DWITH_PYTHON3=1. I found no documentation in the CMAKE docs or the FC source, which of these is the correct setting.
User avatar
doia
Posts: 251
Joined: Sat May 29, 2021 5:47 am
Location: Düsseldorf

Re: Compile FreeCAD on macOS Big Sur 11.5.1 with Homebrew, error finding XercesC files

Post by doia »

Could it be that easy? Sometimes it's the little things. :o

I posted the issue on StackOverflow. A user suggested a typo in the CMakeLists.txt build script. https://stackoverflow.com/a/68714858/3358138

I found 4 occurrences of the typo within the project, which used XERCESC_INCLUDE_DIR. Changed these to XercesC_INCLUDE_DIRS (note the lower letters too), now FC builds just fine.

Will add a PR to the project to harmonize the include statement.
Post Reply