I am running Big Sur 11.3.1 and have been following the script in:
https://wiki.freecadweb.org/Compile_on_MacOS.
I need to configure the prefix path for cmake as follows:
Code: Select all
export PREFIX_PATH="\
/usr/local/Cellar/qt5152/5.15.2/lib/cmake;\
/usr/local/Cellar/nglib/v6.2.2007/Contents/Resources;\
/usr/local/Cellar/vtk@8.2.0/8.2.0_1/lib/cmake/;\
/usr/local/Cellar/coin@4.0.0/4.0.0;\
/usr/local/Cellar/boost@1.75.0/1.75.0/lib/cmake;\
/usr/local/Cellar/boost-python3@1.75.0/1.75.0/lib/cmake"
Code: Select all
cmake \
-DCMAKE_BUILD_TYPE="Release" \
-DBUILD_QT5=1 \
-DWITH_PYTHON3=1 \
-DCMAKE_PREFIX_PATH="$PREFIX_PATH" \
-DPYTHON_EXECUTABLE="/usr/local/bin/python3" \
-DFREECAD_USE_EXTERNAL_KDL=1 \
-DCMAKE_CXX_FLAGS='-std=c++14' \
-DBUILD_FEM_NETGEN=1 \
-DFREECAD_CREATE_MAC_APP=1 \
-DCMAKE_INSTALL_PREFIX="./.." \
-DPYTHON_INCLUDE_DIR=$(python -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())") \
../FreeCAD-git/
Code: Select all
make -j5 install
Code: Select all
cmake --build /Users/iwan/FreeCAD/build-release | tee cmake-build.log
Code: Select all
[ 2%] Linking CXX shared library ../../../lib/libSMESHDS.dylib
ld: library not found for -licudata
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/libSMESHDS.dylib] Error 1
make[1]: *** [src/3rdParty/salomesmesh/CMakeFiles/SMESHDS.dir/all] Error 2
make: *** [all] Error 2
Code: Select all
make -j4 install
It ends with:
Code: Select all
[ 37%] Built target Stylesheets_data
make: *** [all] Error 2
If so, what prefix should I add to the cmake configuration?
The log files are attached.
Also, I notice that the
Code: Select all
brew install --only-dependencies freecad --with-packaging-utils
Running
Code: Select all
brew list
Is this intended?
Kind regards,
iwan