ipatch wrote: ↑Tue Jul 27, 2021 6:51 pm
also something to point out, a lot of the formula file provided by the homebrew-freecad tap are keg-only which means their binaries are not located within the `/usr/local/bin/` or `$brew_prefix/bin` depending on where your homebrew installation is located.
so make sure that all the `keg-only` deps of the homebrew-freecad tap on linked into homebrew's bin dir.
This was incredibly tedious using the cmake gui - which would stop on the first error. I didn't learn about cmake -LH until later. Referring to the linux build page has useful clues.
I usually add the Cellar location of the installed packages to PREFIX_PATH, which avoids unnecessary linking into your global PATH:
# export path to installed dependencies
# here additional paths to the wiki page have to be defined
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"
[ 66%] Building CXX object src/Mod/Measure/App/CMakeFiles/Measure.dir/MeasurementPyImp.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>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /Users/dirkolbrich/Freecad/freecad-source/src/Mod/Measure/App/Measurement.cpp:50:
In file included from /Users/dirkolbrich/Freecad/freecad-source/src/Mod/Part/App/PartFeature.h:28:
In file included from /Users/dirkolbrich/Freecad/freecad-source/src/Mod/Part/App/PropertyTopoShape.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
[ 67%] Building CXX object src/Mod/Fem/App/CMakeFiles/Fem.dir/FemConstraintPressure.cpp.o
In file included from /Users/dirkolbrich/Freecad/freecad-source/src/Mod/Measure/App/MeasurementPyImp.cpp:28:
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/Measurement.cpp.o] Error 1
[ 67%] Linking CXX shared library ../../../../Mod/Fem/Fem.so
[ 67%] Built target Fem
[ 67%] Built target FreeCADGui_autogen
make: *** [all] Error 2
ipatch wrote: ↑Tue Jul 27, 2021 6:51 pm
welcome to compiling freecad from source. where you can spend more time setting up your environment to hopefully build and install freecad than actually using freecad. if you don't have any specific reason for compiling freecad from source than i'd highly recommend using the conda prebuilt dmg's. if you have the time and you enjoy troubleshooting build, install, and runtime errors than by all means continue to try and build freecad from source, just be aware it can become a form of a time sink. best of luck.
i also sent a pm to two separate site admins asking for "admin" control on the homebrew-freecad tap to help in the update duties of the tap, but have yet hear anything back.
My error is somewhat different to yours, as XercesC is installed and the path successfully found by the CMake preparation process. I opened a separate thread under https://forum.freecadweb.org/viewtopic.php?f=4&t=60663 as to not polute this thread with other things.
ipatch wrote: ↑Wed Jul 28, 2021 3:31 pm
i also sent a pm to two separate site admins asking for "admin" control on the homebrew-freecad tap to help in the update duties of the tap, but have yet hear anything back.
Just wanted to confirm this is on my radar, though I should mention I was only CCed on replies to you and didn't see the original message, if there's any additional detail on your request(s).
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
kkremitzki wrote: ↑Mon Aug 02, 2021 6:07 pm
Just wanted to confirm this is on my radar, though I should mention I was only CCed on replies to you and didn't see the original message, if there's any additional detail on your request(s).
kkremitzki wrote: ↑Mon Aug 02, 2021 6:07 pm
Just wanted to confirm this is on my radar, though I should mention I was only CCed on replies to you and didn't see the original message, if there's any additional detail on your request(s).
I forwarded the original request.
Could you re-send it? I'm not seeing it.
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
ipatch wrote: ↑Wed Jul 28, 2021 3:31 pm
i also sent a pm to two separate site admins asking for "admin" control on the homebrew-freecad tap to help in the update duties of the tap, but have yet hear anything back.
I have sent you invitations for admin access to github.com/freecad/homebrew-freecad and github.com/FreeCAD/FreeCAD-ports-cache
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
ipatch wrote: ↑Wed Jul 28, 2021 3:31 pm
i also sent a pm to two separate site admins asking for "admin" control on the homebrew-freecad tap to help in the update duties of the tap, but have yet hear anything back.
I have sent you invitations for admin access to github.com/freecad/homebrew-freecad and github.com/FreeCAD/FreeCAD-ports-cache
thank you. (i'd post a thumbs up emoji, but i'd take up the whole screen.)