homebrew-freecad icon indicating copy to clipboard operation
homebrew-freecad copied to clipboard

Fix macapp build with homebrew (needs a FreeCAD fix)

Open vejmarie opened this issue 3 years ago • 2 comments

This is fixing the creation of the MacApp when using homebrew. Needs currently some fixes into freecad tree into src/MacAppBundle/CMakeLists.txt which is lacking a few includes to build the bundle.

For pure testing you can use https://github.com/vejmarie/FreeCAD -> branch macbundle

It will successfully create the FreeCAD.app which can be copied into /Applications (it is rellocatable) and then successfully used.

Let me know your thoughts !

Signed-off-by: vejmarie [email protected]

vejmarie avatar Apr 12 '21 03:04 vejmarie

I don't understand the icu4-stuff of this PR.

1. Set env PKG_CONFIG_PATH

The result of this line

ENV["PKG_CONFIG_PATH"] = Formula["[email protected]"].opt_prefix + "/lib/pkgconfig"

should be every time '/lib/pgkconfig'.

Better way:

ENV['PKG_CONFIG_PATH'] = Formula["#{@tap}/[email protected]"].lib/'pkgconfig'

2. In CMakeLists.txt the relevant source code is comment out in your branch

#set(ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:${CONFIG_ICU}")

ageeye avatar Jul 31 '21 06:07 ageeye

Inreplace solution. Testing welcome. :-)

ageeye avatar Aug 01 '21 18:08 ageeye