Open ipatch opened 2 years ago
update
got the same results using either of the two examples for the,
-DPYTHON_INCLUDE_DIR=
results, ouput from make install
CMake Error at src/MacAppBundle/cmake_install.cmake:55 (file):
file INSTALL cannot find
"/opt/code/freecad-git/freecad-src/src/MacAppBundle/import site": No such
file or directory.
Call Stack (most recent call first):
src/cmake_install.cmake:51 (include)
cmake_install.cmake:68 (include)
make: *** [install] Error 1
Can you please post the full cmake
command output, with both stdout and stderr capture? I use roughly the same cmake command as yours to build my release, but I am not that familiar with MacOS.
PS. I use a custom branch of Coin3D for my release, which contains some additional visual features. I use brew edit
to build a local package for that. It is not compulsory though, as the official Coin3D can still be used.
a little follow up to my 2nd comment above, the below error message line,
"/opt/code/freecad-git/freecad-src/src/MacAppBundle/import site": No such
is related to the homebrew specific .pth
file related to pybind11, specifically
$(brew --prefix)/Cellar/pybind11/2.9.1/lib/python3.9/site-packages/homebrew-pybind11.pth
which contains
import site; site.addsitedir('/Users/brewmaster/homebrew/Cellar/pybind11/2.9.1/libexec/lib/python3.9/site-packages')
i believe the current CMakeLists.txt
is unable to process the import site;
as it is not run through the python interpreter. the hacky fix is to update the contents of that file to,
/Users/brewmaster/homebrew/Cellar/pybind11/2.9.1/libexec/lib/python3.9/site-packages
obviously that path needs to be updated for the specific $USER
homebrew prefix ie. $(brew --prefix)
Anymore progress with this?
been doing some work on an updated build...
i believe if you add the below lines to your mac app bundling CMakeLists.txt
it should prevent the error i describing above. i have tested this locally on my machine.
Nice!
hello, 👋
i'm one of the maintainers of the homebrew-freecad tap, and am attempting to build your linkdaily branch on macos and am running into some issues related to pybind11
i'm not experiencing any issues with the
make
command, but rather themake install
.i believe the issue stems from the
CMakeLists.txt
within the/src/MacAppBundle
directory, and I do not experience these issues compiling and installing the upstream freecad, ie. github.com/freecad/freecad master branchi'm setting up my build directory with the below cmake command
using that above cmake command sets up the below logic in the
cmake_install.cmake
fileforgive me for the formatting of the above code snippet that's how it's being copied to my clipboard FWR 😑
i can obviously go hacking into the
CMakeLists.txt
file, but prefer to get this working in a less hack way if possible.and thanks for making such awesome/ambitious fork of freecad, looking forward to publish a release based on your linkdaily branch.
update i've amended my above cmake command with the below python include dir to see it makes a difference, waiting on the rebuild now,