Update faq authored by Rémy Mozul's avatar Rémy Mozul
...@@ -79,51 +79,26 @@ the `CMakeFiles` directory. Then you can go back to step where you change of ...@@ -79,51 +79,26 @@ the `CMakeFiles` directory. Then you can go back to step where you change of
directory (`cd build`) before continuing the installation process. directory (`cd build`) before continuing the installation process.
##### An error arise when building the `matlib` on Mac OS Yosemite #### ##### An error arise when building on Mac OS ####
* if the error is something like: On MacOS, at the time of writing (May 27th 2025) there may be an error during the `make` step:
```shell
/usr/include/dispatch/object.h:143:15: error: expected ')' before '^' token
/usr/include/dispatch/object.h:362:3: error: 'dispatch_block_t' has not been declared
dispatch_block_t notification_block);
^
make[5]: *** [CMakeFiles/matlib.dir/src/math/eigmat.cpp.o] Error 1
make[4]: *** [CMakeFiles/matlib.dir/all] Error 2
make[3]: *** [all] Error 2
make[2]: *** [src/contribs/matlib-prefix/src/matlib-stamp/matlib-build] Error 2
make[1]: *** [src/contribs/CMakeFiles/matlib.dir/all] Error 2
make: *** [all] Error 2
``` ```
from /Users/mozul/WORK/LMGC90/sources/lmgc90_dev/src/contribs/clipper2-1.4.0/CPP/Clipper2Lib/src/clipper.engine.cpp:10:
Then you can: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/mach/arm/_structs.h:627:35: error: expected primary-expression before 'unsigned'
627 | } __attribute__((aligned(_Alignof(unsigned int))));
* shut down the MatLib if you do not need it: | ^~~~~~~~
```shell
cmake . -DMATLIB_VERSION=none
make
``` ```
* or modifiy the file *src/contribs/MatLib4-LMGC-2015-1/src/math/lapack.h* so that it looks like this: In this case, following these instructions https://fluka-forum.web.cern.ch/t/geoviewer-compilation-error-on-macbook-pro-m4-macos-15-4/7246, you must:
* Check that you are using the Command Line Tools (CLT) 16.3
* `pkgutil --pkg-info=com.apple.pkg.CLTools_Executables`
* Uninstall Xcode if installed
* Remove the command line tools:
* `sudo rm -rf /Library/Developer/CommandLineTools`
* Download and install CLT 16.2 from [Apple Developer website](https://developer.apple.com/download/all/)
* Clean your build directory and start over...
```
#ifndef ZORGLIB_MATH_LAPACK_H
#define ZORGLIB_MATH_LAPACK_H
#ifndef __has_extension
#define __has_extension(x) 0
#endif
#define vImage_Utilities_h
#define vImage_CVUtilities_h
// config
#include <matlib_macros.h>
```
Then run `make` again.
****
| [back](./Documentation) | [home](./Home) | | [back](./Documentation) | [home](./Home) |
|:---------------------|---------------:| |:---------------------|---------------:|
\ No newline at end of file