FreeCAD 0.19: macOS Big Sur

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
simonhu
Posts: 6
Joined: Fri Mar 27, 2020 9:13 am

Re: FreeCAD 0.19: macOS Big Sur: stuck on launch

Post by simonhu »

drvax wrote: Thu Nov 19, 2020 10:37 pm However, I ended up with an older .19 release. Revision 14555 vs 23040. In addition, as mentioned in an earlier post you do not have an icon/app when done this way. I would be happy to help with repackaging if someone can get me started. I am happy to join the Apple Developer Program if necessary.

Finally, I am happy to help document this work for future developers if that would be helpful.
update your homebrew with
brew update

and then use
brew reinstall freecad --with-macos-app

then you can get a macOS app bundle.
link it to /Applications folder or move it to /Applications.

This compiled version works but with many bugs. As I think it's related to python3 versions. need deep studying.
User avatar
drvax
Posts: 8
Joined: Thu Jan 16, 2020 9:15 pm
Contact:

Re: FreeCAD 0.19: macOS Big Sur: stuck on launch

Post by drvax »

Thanks to @simonhu, I was able to use Homebrew to build a FreeCAD version 0.19 release with a macOS APP bundle. I found the APP bundle (FreeCAD.app) was located at (which was not obvious):

/usr/local/opt/freecad

Unfortunately, the currently available Homebrew formulas, both the default and HEAD, build release 14555 of FreeCAD 0.19, which is quite old. So I spent some time looking for an alternative. One alternative I investigated was updating the formula to point at a later release. This is a bit tricky and requires Github and Homebrew proficiency that I was not ready to tackle, so I kept looking.

The macOS releases on the GitHub FreeCAD pre-release page are currently built with Conda. I discovered I could use Mini Conda locally on my Mac to build/install a more recent release. The current conda-forge version is at release 20909. The following FreeCAD wiki page explains how to install a Conda build:

https://wiki.freecadweb.org/Conda

The wiki does indicate that you should be able to use Conda to deploy the latest dev build, but I was not successful in getting that to work.

Unfortunately, as far as I could tell, Conda does not have an option to build the macOS APP structure. (I may be wrong here.) So I created a blog post that helps non-programmer through the detailed steps needed to install FreeCAD on a macOS system with Conda and then how to use macOS Automator to add an APP bundle in the Application directory so you can use it without dropping into Terminal.

Here is a link to the blog post:

https://drvax.com/freecad-pre-releases-on-macos/
Irv Shapiro
DrVax Content Creator
User avatar
drvax
Posts: 8
Joined: Thu Jan 16, 2020 9:15 pm
Contact:

Re: FreeCAD 0.19: macOS Big Sur: stuck on launch

Post by drvax »

Good news.

If you installed FreeCAD .19 with Conda, the installation has been significantly updated. Install using the instructions listed here:

https://drvax.com/freecad-pre-releases-on-macos/

Then do the following:

conda activate fcenv
conda update freecad

This will update the installation to the following:

OS: macOS 10.16
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.23141 (Git)
Build type: Release
Branch: master
Hash: 0eba78d40096720f7a637a9a73c382a08b820bca
Python version: 3.8.6
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: English/United States (en_US)

One of the improvements I much appreciate over the prior Conda Forge release is that the Add-On Manager works in this release. You can install the new Assembly 4 addon and begin to try out the new .19 link object supported Assembly system.

I test this today on macOS Big Sur on an iMac (Retina 5K, 27-inch, 2017).
Last edited by drvax on Wed Dec 02, 2020 8:51 pm, edited 1 time in total.
Irv Shapiro
DrVax Content Creator
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: FreeCAD 0.19: macOS Big Sur: stuck on launch

Post by Kunda1 »

drvax wrote: Wed Dec 02, 2020 4:44 pm Good news.
Thanks for reporting and your efforts. + your video advocacy for FreeCAD.
Much appreciated :D
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
drvax
Posts: 8
Joined: Thu Jan 16, 2020 9:15 pm
Contact:

Re: FreeCAD 0.19: macOS Big Sur: stuck on launch

Post by drvax »

Kunda1 wrote: Wed Dec 02, 2020 6:22 pm
drvax wrote: Wed Dec 02, 2020 4:44 pm Good news.
Thanks for reporting and your efforts. + your video advocacy for FreeCAD.
Much appreciated :D
Happy to help with macOS testing. What is the best way to get involved?
Irv Shapiro
DrVax Content Creator
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: FreeCAD 0.19: macOS Big Sur: stuck on launch

Post by Kunda1 »

drvax wrote: Wed Dec 02, 2020 8:51 pm Happy to help with macOS testing. What is the best way to get involved?
Fantastic!
chrisb wrote: pinged by pinger macro
CC @chrisb
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
chrisb
Veteran
Posts: 54313
Joined: Tue Mar 17, 2015 9:14 am

Re: FreeCAD 0.19: macOS Big Sur: stuck on launch

Post by chrisb »

I'm not yet on Big Sur, because current FreeCAD doesn't run on it. I would have to compile myself and then the version would be behind current master. I decided to postpone Big Sur after 0.19 release.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
CCryder
Posts: 9
Joined: Wed Dec 05, 2018 9:02 pm

Re: FreeCAD 0.19: macOS Big Sur: stuck on launch

Post by CCryder »

I've followed drvax's instructions to successfully use MiniConda to install and run FC 20909, but I can't get the update to work. Here's what I get from FC after the attempted update.

OS: macOS 10.16
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.20909 (Git)
Build type: Release
Branch: (HEAD detached at 0.19.alpha2)
Hash: 8be2c08141f0275e9da005bd143771953e982a59
Python version: 3.8.2
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: English/United States (en_US)

Here's what I get from the attempted FC update.

Code: Select all

(base) GrayBeast:~ car$ conda activate fcenv
(fcenv) GrayBeast:~ car$ conda update freecad
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /Users/car/miniconda3/envs/fcenv

  added / updated specs:
    - freecad


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    blas-1.0                   |              mkl           6 KB
    bzip2-1.0.8                |       h1de35cc_0          75 KB
    c-ares-1.17.1              |       h9ed2024_0          92 KB
    expat-2.2.10               |       hb1e8313_2         110 KB
    freetype-2.10.4            |       ha233b18_0         564 KB
    future-0.18.2              |           py38_1         642 KB
    hdf4-4.2.13                |       h39711bb_2         682 KB
    intel-openmp-2019.4        |              233         887 KB
    jsoncpp-1.8.4              |       h04f5b5a_0         135 KB
    jxrlib-1.1                 |       haf1e3a3_2         206 KB
    krb5-1.17.1                |       hddcf347_0         1.1 MB
    lcms2-2.11                 |       h92f6f08_0         278 KB
    libev-4.33                 |       haf1e3a3_0         106 KB
    libiconv-1.16              |       h1de35cc_0         693 KB
    libllvm9-9.0.1             |       h21ff451_1        15.4 MB
    libnghttp2-1.41.0          |       h7580e61_2         665 KB
    libpng-1.6.37              |       ha441bb4_0         262 KB
    libpq-12.2                 |       h051b688_0         2.0 MB
    libssh2-1.9.0              |       ha12b0ac_1         250 KB
    libtiff-4.1.0              |       hcb84e12_1         405 KB
    libwebp-base-1.1.0         |       haf1e3a3_3         392 KB
    lz4-c-1.9.2                |       h79c402e_3         130 KB
    mkl-2019.4                 |              233       101.9 MB
    mkl-service-2.3.0          |   py38h9ed2024_0          41 KB
    mkl_fft-1.2.0              |   py38hc64f4ea_0         143 KB
    mkl_random-1.1.1           |   py38h959d312_0         290 KB
    nspr-4.22                  |       h0a44026_0         584 KB
    nss-3.46.1                 |       h2ca8224_0         1.6 MB
    numpy-1.19.2               |   py38h456fd55_0          21 KB
    numpy-base-1.19.2          |   py38hcfb5961_0         4.0 MB
    openssl-1.1.1h             |       haf1e3a3_0         2.2 MB
    ply-3.11                   |           py38_0          80 KB
    pthread-stubs-0.3          |       hdd91f34_1           5 KB
    pyyaml-5.3.1               |   py38haf1e3a3_1         168 KB
    tbb-2020.3                 |       h879752b_0         147 KB
    yaml-0.2.5                 |       haf1e3a3_0          72 KB
    zstd-1.4.5                 |       h41d2c2f_0         442 KB
    ------------------------------------------------------------
                                           Total:       136.6 MB

The following NEW packages will be INSTALLED:

  blas               pkgs/main/osx-64::blas-1.0-mkl
  intel-openmp       pkgs/main/osx-64::intel-openmp-2019.4-233
  mkl                pkgs/main/osx-64::mkl-2019.4-233
  mkl-service        pkgs/main/osx-64::mkl-service-2.3.0-py38h9ed2024_0
  mkl_fft            pkgs/main/osx-64::mkl_fft-1.2.0-py38hc64f4ea_0
  mkl_random         pkgs/main/osx-64::mkl_random-1.1.1-py38h959d312_0
  numpy-base         pkgs/main/osx-64::numpy-base-1.19.2-py38hcfb5961_0

The following packages will be REMOVED:

  libblas-3.9.0-3_openblas
  libcblas-3.9.0-3_openblas
  liblapack-3.9.0-3_openblas
  libopenblas-0.3.12-openmp_h54245bb_1

The following packages will be UPDATED:

  expat                 conda-forge::expat-2.2.9-hb1e8313_2 --> pkgs/main::expat-2.2.10-hb1e8313_2
  libffi                 conda-forge::libffi-3.3-h74dc148_1 --> pkgs/main::libffi-3.3-hb1e8313_2
  setuptools         conda-forge::setuptools-49.6.0-py38h5~ --> pkgs/main::setuptools-50.3.2-py38hecd8cb5_2
  tbb                    conda-forge::tbb-2019.9-ha1b3eb9_1 --> pkgs/main::tbb-2020.3-h879752b_0

The following packages will be SUPERSEDED by a higher-priority channel:

  bzip2                 conda-forge::bzip2-1.0.8-hc929b4f_4 --> pkgs/main::bzip2-1.0.8-h1de35cc_0
  c-ares              conda-forge::c-ares-1.17.1-hc929b4f_0 --> pkgs/main::c-ares-1.17.1-h9ed2024_0
  ca-certificates    conda-forge::ca-certificates-2020.12.~ --> pkgs/main::ca-certificates-2020.10.14-0
  certifi            conda-forge::certifi-2020.12.5-py38h5~ --> pkgs/main::certifi-2020.11.8-py38hecd8cb5_0
  freetype           conda-forge::freetype-2.10.4-h3f75d11~ --> pkgs/main::freetype-2.10.4-ha233b18_0
  future             conda-forge::future-0.18.2-py38h50d17~ --> pkgs/main::future-0.18.2-py38_1
  hdf4               conda-forge::hdf4-4.2.13-h71d84a9_1004 --> pkgs/main::hdf4-4.2.13-h39711bb_2
  jsoncpp            conda-forge::jsoncpp-1.8.4-ha1b3eb9_1~ --> pkgs/main::jsoncpp-1.8.4-h04f5b5a_0
  jxrlib                 conda-forge::jxrlib-1.1-h35c211d_2 --> pkgs/main::jxrlib-1.1-haf1e3a3_2
  krb5                  conda-forge::krb5-1.17.2-h60d9502_0 --> pkgs/main::krb5-1.17.1-hddcf347_0
  lcms2                  conda-forge::lcms2-2.11-h11f7e16_1 --> pkgs/main::lcms2-2.11-h92f6f08_0
  libedit            conda-forge::libedit-3.1.20191231-h06~ --> pkgs/main::libedit-3.1.20191231-h1de35cc_1
  libev                  conda-forge::libev-4.33-haf1e3a3_1 --> pkgs/main::libev-4.33-haf1e3a3_0
  libiconv            conda-forge::libiconv-1.16-haf1e3a3_0 --> pkgs/main::libiconv-1.16-h1de35cc_0
  libllvm9           conda-forge::libllvm9-9.0.1-h7475705_1 --> pkgs/main::libllvm9-9.0.1-h21ff451_1
  libnghttp2                                    conda-forge --> pkgs/main
  libpng              conda-forge::libpng-1.6.37-h7cec526_2 --> pkgs/main::libpng-1.6.37-ha441bb4_0
  libpq                  conda-forge::libpq-12.3-haa216e0_2 --> pkgs/main::libpq-12.2-h051b688_0
  libssh2             conda-forge::libssh2-1.9.0-h8a08a2b_5 --> pkgs/main::libssh2-1.9.0-ha12b0ac_1
  libtiff             conda-forge::libtiff-4.1.0-hca7d577_6 --> pkgs/main::libtiff-4.1.0-hcb84e12_1
  libwebp-base       conda-forge::libwebp-base-1.1.0-hbcb3~ --> pkgs/main::libwebp-base-1.1.0-haf1e3a3_3
  lz4-c                 conda-forge::lz4-c-1.9.2-hb1e8313_3 --> pkgs/main::lz4-c-1.9.2-h79c402e_3
  ncurses               conda-forge::ncurses-6.2-h2e338ed_4 --> pkgs/main::ncurses-6.2-h0a44026_1
  nspr                    conda-forge::nspr-4.29-hb1e8313_1 --> pkgs/main::nspr-4.22-h0a44026_0
  nss                      conda-forge::nss-3.47-hc0980d9_0 --> pkgs/main::nss-3.46.1-h2ca8224_0
  numpy              conda-forge::numpy-1.19.4-py38hcf469a~ --> pkgs/main::numpy-1.19.2-py38h456fd55_0
  openssl                                       conda-forge --> pkgs/main
  pip                conda-forge/noarch::pip-20.3.1-pyhd8e~ --> pkgs/main/osx-64::pip-20.3-py38hecd8cb5_0
  ply                     conda-forge/noarch::ply-3.11-py_1 --> pkgs/main/osx-64::ply-3.11-py38_0
  pthread-stubs      conda-forge::pthread-stubs-0.4-hc929b~ --> pkgs/main::pthread-stubs-0.3-hdd91f34_1
  python             conda-forge::python-3.8.6-h3b7b5d6_1_~ --> pkgs/main::python-3.8.5-h26836e1_1
  pyyaml             conda-forge::pyyaml-5.3.1-py38h94c058~ --> pkgs/main::pyyaml-5.3.1-py38haf1e3a3_1
  readline             conda-forge::readline-8.0-h0678c8f_2 --> pkgs/main::readline-8.0-h1de35cc_0
  six                conda-forge/noarch::six-1.15.0-pyh9f0~ --> pkgs/main/osx-64::six-1.15.0-py38hecd8cb5_0
  sqlite              conda-forge::sqlite-3.34.0-h17101e1_0 --> pkgs/main::sqlite-3.33.0-hffcf06c_0
  tk                      conda-forge::tk-8.6.10-hb0a8c7a_1 --> pkgs/main::tk-8.6.10-hb0a8c7a_0
  wheel              conda-forge::wheel-0.36.1-pyhd3deb0d_0 --> pkgs/main::wheel-0.36.0-pyhd3eb1b0_0
  xz                       conda-forge::xz-5.2.5-haf1e3a3_1 --> pkgs/main::xz-5.2.5-h1de35cc_0
  yaml                                          conda-forge --> pkgs/main
  zlib               conda-forge::zlib-1.2.11-h7795811_1010 --> pkgs/main::zlib-1.2.11-h1de35cc_3
  zstd                   conda-forge::zstd-1.4.5-h289c70a_2 --> pkgs/main::zstd-1.4.5-h41d2c2f_0


Proceed ([y]/n)? y


Downloading and Extracting Packages
mkl_fft-1.2.0        | 143 KB    | ###################################################################### | 100% 
lcms2-2.11           | 278 KB    | ###################################################################### | 100% 
expat-2.2.10         | 110 KB    | ###################################################################### | 100% 
libssh2-1.9.0        | 250 KB    | ###################################################################### | 100% 
mkl-service-2.3.0    | 41 KB     | ###################################################################### | 100% 
pthread-stubs-0.3    | 5 KB      | ###################################################################### | 100% 
pyyaml-5.3.1         | 168 KB    | ###################################################################### | 100% 
libnghttp2-1.41.0    | 665 KB    | ###################################################################### | 100% 
numpy-base-1.19.2    | 4.0 MB    | ###################################################################### | 100% 
numpy-1.19.2         | 21 KB     | ###################################################################### | 100% 
jxrlib-1.1           | 206 KB    | ###################################################################### | 100% 
intel-openmp-2019.4  | 887 KB    | ###################################################################### | 100% 
lz4-c-1.9.2          | 130 KB    | ###################################################################### | 100% 
krb5-1.17.1          | 1.1 MB    | ###################################################################### | 100% 
ply-3.11             | 80 KB     | ###################################################################### | 100% 
jsoncpp-1.8.4        | 135 KB    | ###################################################################### | 100% 
nss-3.46.1           | 1.6 MB    | ###################################################################### | 100% 
freetype-2.10.4      | 564 KB    | ###################################################################### | 100% 
openssl-1.1.1h       | 2.2 MB    | ###################################################################### | 100% 
blas-1.0             | 6 KB      | ###################################################################### | 100% 
libpq-12.2           | 2.0 MB    | ###################################################################### | 100% 
bzip2-1.0.8          | 75 KB     | ###################################################################### | 100% 
tbb-2020.3           | 147 KB    | ###################################################################### | 100% 
hdf4-4.2.13          | 682 KB    | ###################################################################### | 100% 
libev-4.33           | 106 KB    | ###################################################################### | 100% 
libwebp-base-1.1.0   | 392 KB    | ###################################################################### | 100% 
libpng-1.6.37        | 262 KB    | ###################################################################### | 100% 
future-0.18.2        | 642 KB    | ###################################################################### | 100% 
libllvm9-9.0.1       | 15.4 MB   | ###################################################################### | 100% 
mkl-2019.4           | 101.9 MB  | ###################################################################### | 100% 
c-ares-1.17.1        | 92 KB     | ###################################################################### | 100% 
zstd-1.4.5           | 442 KB    | ###################################################################### | 100% 
mkl_random-1.1.1     | 290 KB    | ###################################################################### | 100% 
nspr-4.22            | 584 KB    | ###################################################################### | 100% 
yaml-0.2.5           | 72 KB     | ###################################################################### | 100% 
libiconv-1.16        | 693 KB    | ###################################################################### | 100% 
libtiff-4.1.0        | 405 KB    | ###################################################################### | 100% 
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
(fcenv) GrayBeast:~ car$ 
(fcenv) GrayBeast:~ car$ 
(fcenv) GrayBeast:~ car$ freecad
FreeCAD 0.19, Libs: 0.19R20909 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre and others 2001-2020
FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.
FreeCAD wouldn't be possible without FreeCAD community.
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

I seem to be stuck on the FC version that originally ran. There doesn't seem to any indication of freecad itself being downloaded or installed. I've removed and reinstalled MiniConda and get the same result. Any help is much appreciated! Thanks!

[EDIT: 2020-12-20] This is resolved. It is necessary to do the update from the dev channel, even though it produces a version that hangs, before doing the update operation. Then it has the latest FC version and runs w/o hanging.
Last edited by CCryder on Mon Dec 21, 2020 3:18 am, edited 4 times in total.
chrisb
Veteran
Posts: 54313
Joined: Tue Mar 17, 2015 9:14 am

Re: FreeCAD 0.19: macOS Big Sur: stuck on launch

Post by chrisb »

Please edit your post and put the output in code tags for better readability.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
qwerty_f
Posts: 204
Joined: Thu Sep 24, 2020 3:22 pm

Re: FreeCAD 0.19: macOS Big Sur: stuck on launch

Post by qwerty_f »

I just got a model where the issue with non-movability of elements appears permanently. I'm not able to move either body into the group. I have to open 0.19 in Windoze where I can move them. The issue vanishes afterwards and I can work normally. Until eventually it happens again. Maybe you find the issue by looking into the model.
Attachments
Piano.FCStd
(58.71 KiB) Downloaded 188 times
Post Reply