Packaging issue for Mac?

philstopfordphilstopford Posts: 19
edited April 2016 in Fabric for MODO

I'm having a lot of trouble getting this working here. I think the symlinks are broken in the package : I get this kind of error :

dyld: Library not loaded: @rpath/lib/libFabricCore.2.2.dylib
Referenced from: /Applications/Fabric2.0/FabricEngine-2.2.0-dev-modo.beta2-Darwin-x86_64//bin/canvas
Reason: no suitable image found. Did find:
/Applications/Fabric2.0/FabricEngine-2.2.0-dev-modo.beta2-Darwin-x86_64/bin/../lib/libFabricCore.2.2.dylib: file too short
Trace/BPT trap: 5

The lib folder shows no symlink definition :

-rwxr-xr-x 1 phil admin 23581132 Apr 15 03:18 libFabricCore.2.2.0.dylib
-rw-r--r-- 1 phil admin 25 Apr 15 03:18 libFabricCore.2.2.dylib
-rw-r--r-- 1 phil admin 23 Apr 15 03:18 libFabricCore.dylib

If I recreate the symlink for the above, as a test, the next error is :

-rwxr-xr-x 1 phil admin 23581132 Apr 15 03:18 libFabricCore.2.2.0.dylib
lrwxr-xr-x 1 phil admin 25 Apr 15 11:15 libFabricCore.2.2.dylib -> libFabricCore.2.2.0.dylib
lrwxr-xr-x 1 phil admin 25 Apr 15 11:16 libFabricCore.dylib -> libFabricCore.2.2.0.dylib
-rw-r--r-- 1 phil admin 3133728 Apr 15 03:17 libFabricServices.a
-rwxr-xr-x 1 phil admin 908048 Apr 15 03:21 libFabricSplice.2.2.0.dylib
-rw-r--r-- 1 phil admin 27 Apr 15 03:21 libFabricSplice.2.2.dylib
-rw-r--r-- 1 phil admin 25 Apr 15 03:21 libFabricSplice.dylib
-rw-r--r-- 1 phil admin 7658808 Apr 15 03:21 libFabricSplice_s.2.2.0.a
-rw-r--r-- 1 phil admin 25 Apr 15 03:21 libFabricSplice_s.2.2.a
-rw-r--r-- 1 phil admin 23 Apr 15 03:21 libFabricSplice_s.a
-rwxr-xr-x 1 phil admin 36968 Apr 15 03:17 libFabricSplitSearch.2.2.0.dylib
-rw-r--r-- 1 phil admin 32 Apr 15 03:17 libFabricSplitSearch.2.2.dylib
-rw-r--r-- 1 phil admin 30 Apr 15 03:17 libFabricSplitSearch.dylib
-rw-r--r-- 1 phil admin 181584944 Apr 15 03:21 libFabricUI.a
-rwxr-xr-x 1 phil admin 177652 Apr 1 10:10 libpyside-python2.7.1.2.4.dylib
-rw-r--r-- 1 phil admin 31 Apr 15 03:29 libpyside-python2.7.1.2.dylib
-rw-r--r-- 1 phil admin 29 Apr 15 03:29 libpyside-python2.7.1.dylib
-rw-r--r-- 1 phil admin 27 Apr 15 03:29 libpyside-python2.7.dylib
-rwxr-xr-x 1 phil admin 193172 Apr 1 10:10 libshiboken-python2.7.1.2.4.dylib
-rw-r--r-- 1 phil admin 33 Apr 15 03:29 libshiboken-python2.7.1.2.dylib
-rw-r--r-- 1 phil admin 31 Apr 15 03:29 libshiboken-python2.7.1.dylib
-rw-r--r-- 1 phil admin 29 Apr 15 03:29 libshiboken-python2.7.dylib
-rwxr-xr-x 1 phil admin 562928 Apr 15 03:16 libtbb.dylib
-rwxr-xr-x 1 phil admin 362400 Apr 15 03:16 libtbbmalloc.dylib
-rwxr-xr-x 1 phil admin 401888 Apr 1 10:06 phonon
sierra:lib phil$ canvas
dyld: Library not loaded: @rpath/lib/libFabricSplitSearch.2.2.dylib
Referenced from: /Applications/Fabric2.0/FabricEngine-2.2.0-dev-modo.beta2-Darwin-x86_64//bin/canvas
Reason: no suitable image found. Did find:
/Applications/Fabric2.0/FabricEngine-2.2.0-dev-modo.beta2-Darwin-x86_64/bin/../lib/libFabricSplitSearch.2.2.dylib: file too short
Trace/BPT trap: 5

Comments

  • philstopfordphilstopford Posts: 19

    Fixing up the symlinks, my next snag is :

    sierra:FabricEngine-2.2.0-dev-modo.beta2-Darwin-x86_64 phil$ ./environment.sh
    Setting up Fabric Engine 2.2.0-dev environment:
    Set FABRIC_DIR="/Applications/Fabric2.0/FabricEngine-2.2.0-dev-modo.beta2-Darwin-x86_64"
    Set PATH="/Applications/Fabric2.0/FabricEngine-2.2.0-dev-modo.beta2-Darwin-x86_64/bin:/Applications/Fabric2.0/FabricEngine-2.2.0-dev-modo.beta2-Darwin-x86_64//bin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin"
    Set PYTHONPATH="/Applications/Fabric2.0/FabricEngine-2.2.0-dev-modo.beta2-Darwin-x86_64/Python/2.7:"
    Set FABRIC_EXTS_PATH="/Applications/Fabric2.0/FabricEngine-2.2.0-dev-modo.beta2-Darwin-x86_64/Exts:/Applications/Fabric2.0/FabricEngine-2.2.0-dev-modo.beta2-Darwin-x86_64/Tests/Exts"
    Set FABRIC_DFG_PATH="/Applications/Fabric2.0/FabricEngine-2.2.0-dev-modo.beta2-Darwin-x86_64/Presets/DFG"
    Done!
    sierra:FabricEngine-2.2.0-dev-modo.beta2-Darwin-x86_64 phil$ canvas
    libpng warning: iCCP: known incorrect sRGB profile
    Will autosave to /Users/phil/.fabric-engine/autosave/autosave.4374.canvas every 30 seconds
    [FABRIC:MT] Fabric Engine version 2.2.0-dev
    [FABRIC:MT] Loading DFG presets from /Users/phil/Fabric/Presets
    [FABRIC:MT] IRCache: Not pruning since last prune was less than 24 hours ago
    [CanvasWindow::initKL] loadExtension('Math', '', false): 'Math': extension not found
    Error loading Canvas Standalone: CreateValue: 'EvalContext': type not registered

  • borjaborja Administrator, Fabric Employee Posts: 480 admin
    edited April 2016

    Hi @philstopford

    It is strange, I redownloaded the package and symlinks in the lib folder are fine. How did you extract the zip file?.

    About the second issue it looks like the extensions are not being loaded. I think you are running the script with the wrong shell. Would you mind to do source environment.sh instead of just ./environment.sh ?

    Borja Morales
    Technical Product Manager
    Fabric Software Inc.

  • borjaborja Administrator, Fabric Employee Posts: 480 admin

    Also, on OS X, note that you need to install the Qt 4 Framework libraries (as described in the docs). If they are not found, you will get the following error, which is very similar to yours “dyld: Library not loaded: /usr/local/lib/QtOpenGL.framework/Versions/4/QtOpenGL Referenced from: /Applications/FabricEngine/bin/canvas Reason: image not found Trace/BPT trap: 5”. To install them, you can use the Homebrew package manager (http://brew.sh/).

    Once Homebrew is installed, open a terminal and run the following command “brew install qt4”. Canvas then should work as expected.

    Borja Morales
    Technical Product Manager
    Fabric Software Inc.

  • philstopfordphilstopford Posts: 19
    edited April 2016

    I had previous installs of Fabric running without issue (homebrew qt, as you note). 'source environment.sh' works. It's been a little while since I've played with Fabric (was holding for the Modo/Mac build), so I forgot this need. I will try and get it set up with ~/.profile to make life a little easier.

    I also was confused because the build notes suggested that environment variables would be set when the tool launched - I guess I misunderstood that note in the release notes.

    Re extraction, I used Betterzip to extract the archive. I'll try with the commandline zip tool to see if it's a pure archive handling issue with that tool

Sign In or Register to comment.