conda-packages for osx

This subforum is specifically to discuss packaging issues on different platforms (windows, mac, linux), and using different packaging systems (conda, etc...)
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: conda-packages for osx

Post by looo »

vectronic wrote: Fri May 31, 2019 9:24 am Also, did you build this using conda and then package as a macOS app? If so do you have any instructions to take the binary produced from the conda build and produce the app/dmg?
Everything is done with this script:
https://github.com/FreeCAD/FreeCAD-AppI ... osx_dev.sh
chrisb
Veteran
Posts: 53930
Joined: Tue Mar 17, 2015 9:14 am

Re: conda-packages for osx

Post by chrisb »

looo wrote: Fri May 31, 2019 8:17 am I updated osx 0.19 bundle to use qt5.9 The generated bundle should include FreeCAD 0.19.16881.
Please report back. Maybe you can also try to close the WebGui widget. This results in a crash on linux.
Thank you very much! I'm downloading right now, expectations are high.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
chrisb
Veteran
Posts: 53930
Joined: Tue Mar 17, 2015 9:14 am

Re: conda-packages for osx

Post by chrisb »

vectronic's error looks similar to the one with the space path, so I hope there is only an issue with the calling script.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
chrisb
Veteran
Posts: 53930
Joined: Tue Mar 17, 2015 9:14 am

Re: conda-packages for osx

Post by chrisb »

It doesn't run here either. If I call the executable directly I get

Code: Select all

Fatal Python error: initfsencoding: unable to load the file system codec
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00007fffa9155340 (most recent call first):
Abort trap: 6
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: conda-packages for osx

Post by looo »

Thanks for testing. I have to try conda-packages directly (next Monday). Or if anyone else on osx is able to invest some time and learn the conda basics. This would help a lot.
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: conda-packages for osx

Post by looo »

looo wrote: Fri May 31, 2019 3:54 pm It doesn't run here either. If I call the executable directly I get
can you post the output of:

Code: Select all

echo ${VIRTUAL_ENV}
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: conda-packages for osx

Post by looo »

Starting FreeCAD from a conda-environment works but first impression is worse than qt5.6 builds.
- no mouse wheel
- hangs at simple part creation

I can reproduce the crash of the bundle.
chrisb
Veteran
Posts: 53930
Joined: Tue Mar 17, 2015 9:14 am

Re: conda-packages for osx

Post by chrisb »

looo wrote: Mon Jun 03, 2019 3:43 pm Starting FreeCAD from a conda-environment works but first impression is worse than qt5.6 builds.
- no mouse wheel
- hangs at simple part creation
sad to hear, my expectations were high.

I can reproduce the crash of the bundle.
good to hear.

Here comes an answer to the question from above: VIRTUAL_ENV is empty.
looo wrote: Mon Jun 03, 2019 5:59 am can you post the output of:

Code: Select all

echo ${VIRTUAL_ENV}
I augmented the starting batch file to look like this:

Code: Select all

#!/usr/bin/env bash
HERE=$(dirname "$(dirname "$0")")
export PREFIX=$HERE/Resources
export LD_LIBRARY_PATH=$PREFIX/lib
export PYTHONHOME=$PREFIX
export QT_QPA_PLATFORM_PLUGIN_PATH=$PREFIX/plugins
export QT_XKB_CONFIG_ROOT=$PREFIX/lib
export FONTCONFIG_FILE=/etc/fonts/fonts.conf
export FONTCONFIG_PATH=/etc/fonts

echo PREFIX:                      $PREFIX
echo LD_LIBRARY_PATH:             $LD_LIBRARY_PATH
echo PYTHONHOME:                  $PYTHONHOME
echo QT_QPA_PLATFORM_PLUGIN_PATH: $QT_QPA_PLATFORM_PLUGIN_PATH
echo QT_XKB_CONFIG_ROOT:          $QT_XKB_CONFIG_ROOT
echo FONTCONFIG_FILE:             $FONTCONFIG_FILE
echo FONTCONFIG_PATH:             $FONTCONFIG_PATH
echo {VIRTUAL_ENV}:               ${VIRTUAL_ENV}

"$PREFIX/bin/FreeCAD" $@
calling it I get the output

Code: Select all

Desktop/FreeCAD16881.app/Contents/MacOS/FreeCAD
PREFIX: Desktop/FreeCAD16881.app/Contents/Resources
LD_LIBRARY_PATH: Desktop/FreeCAD16881.app/Contents/Resources/lib
PYTHONHOME: Desktop/FreeCAD16881.app/Contents/Resources
QT_QPA_PLATFORM_PLUGIN_PATH: Desktop/FreeCAD16881.app/Contents/Resources/plugins
QT_XKB_CONFIG_ROOT: Desktop/FreeCAD16881.app/Contents/Resources/lib
FONTCONFIG_FILE: /etc/fonts/fonts.conf
FONTCONFIG_PATH: /etc/fonts
{VIRTUAL_ENV}:
FreeCAD 0.19, Libs: 0.19R16881 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2019
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

Sheet Metal workbench loaded
Desktop/FreeCAD16881.app/Contents/MacOS/FreeCAD: line 20: 32760 Abort trap: 6           "$PREFIX/bin/FreeCAD" $@
It shows the splash screen for a couple of seconds and crashes.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: conda-packages for osx

Post by looo »

chrisb wrote: Mon Jun 03, 2019 11:02 pm sad to hear, my expectations were high.
Yes I expected also to see some improvements.

regarding the crash of the bundle:
Seems to be related to qwebengine. In the log-file there is a message printed:

Code: Select all

Log: Init: Loading FreeCAD GUI
Log: Init: Running FreeCADGuiInit.py start script... done
Log: Init: Activating default workbench StartWorkbench
Log: Qt WebEngine seems to be initialized from a plugin. Please set Qt::AA_ShareOpenGLContexts using QCoreApplication::setAttribute before constructing QGuiApplication.
Log: Loading GUI of Web module... done
Log: Loading GUI of Start module... done
Log: Loading Start module... done
Log: Could not find QtWebEngineProcess
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: conda-packages for osx

Post by looo »

Removing the start/web module for now. Webkit is not yet available for conda-forge qt5.9:
https://github.com/conda-forge/qt-feedstock/issues/107
Post Reply