SAMSON Forum
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • SAMSON Connect
    • Get SAMSON

    SAMSON-Core.command file missing in MacOS

    Getting started
    2
    2
    1505
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      Jean-Luc last edited by

      I am about to do the final steps of SDK installation on macOS, but I cannot find the file :
      SAMSON-Core.command. Only files SAMSON-Core.console and SAMSON-Core starting with SAMSON are present in the directory ../SDK/0.11.0/SAMSON-Debug/Binaries/SAMSON-Core
      Any idea where I got it wrong ?

      1 Reply Last reply Reply Quote 0
      • J
        Jocelyn last edited by Jocelyn

        Hi,
        Sorry for the issue the file was not shipped with the SDK.
        See : https://documentation.samson-connect.net/developers/latest/page_installation.html
        To launch SAMSON just execute SAMSON-Core after doing the step inside the previous link.

        If the file is absent you can create SAMSON-Core.command with the following content


        #!/bin/sh

        echo "saving context"
        SAVED_DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH
        SAVED_DYLD_FRAMEWORK_PATH=$DYLD_FRAMEWORK_PATH
        SAVED_DYLD_FALLBACK_LIBRARY_PATH=$DYLD_FALLBACK_LIBRARY_PATH

        echo "launching SAMSON-Core"
        script_dir=$(cd "$(dirname "$0")";pwd)
        cd "$script_dir"

        echo "You need to add ~/Qt5.12.5/5.12.5/clang_64/lib folder in your DYLD_FRAMEWORK_PATH or edit this file"

        #export DYLD_FRAMEWORK_PATH=~/Qt5.12.5/5.12.5/clang_64/lib or the one corresponding to your setup
        export DYLD_LIBRARY_PATH=$script_dir
        export DYLD_FALLBACK_LIBRARY_PATH=$script_dir

        ./SAMSON-Core #available flags --disablenetwork /--import /--logconsole /--logfile "file" /--logdefaultfile

        echo "restoring context"
        export DYLD_LIBRARY_PATH=$SAVED_DYLD_LIBRARY_PATH
        export DYLD_FRAMEWORK_PATH=$SAVED_DYLD_FRAMEWORK_PATH
        export DYLD_FALLBACK_LIBRARY_PATH=$SAVED_DYLD_FALLBACK_LIBRARY_PATH


        then execute chmod +x SAMSON-Core.command
        then execute chmod +x SAMSON-Core

        Jocelyn

        1 Reply Last reply Reply Quote 0
        • First post
          Last post