Git Product home page Git Product logo

Comments (5)

theronic avatar theronic commented on July 29, 2024 2

Turns out DYLD_LIBRARY_PATH is silently ignored on OS X Sierra due to System Integrity Protection (SIP), which can be turned off by booting into recovery mode by holding Cmd+R while booting. Open Terminal via Utilities and enter:

csrutil disable

Restart again. To re-enable repeat with, csrutil enable

from europa.

theronic avatar theronic commented on July 29, 2024

When I try to build Europa from source by calling ant release-dist, I get "Env variable DYLD_BIND_AT_LAUNCH=YES must be set to build shared libraries" despite export showing that DYLD_BIND_AT_LAUNCH=YES:

ant release-dist                                                                                                                                                        ✔  5963  01:09:53
Buildfile: /Users/petrus/Projects/europa/build.xml

findPlatform:
     [echo] os.name='Mac OS X' os.arch='x86_64'
     [echo] Running build for : family=unix os=mac 64bit=true

init:

init-unix:

release-dist:

findPlatform:
     [echo] os.name='Mac OS X' os.arch='x86_64'
     [echo] Running build for : family=unix os=mac 64bit=true

init:

init-unix:

build-cpp:

build-cpp-unix:
     [echo] jam   -s64BIT=1 -sLOGGER_TYPE= -sVARIANTS=DEV -sLIBRARIES=SHARED -sPLATFORM_FLAGS="" -sLINKLIBS="" -j1 build
     [exec] Fatal build error:
     [exec] Env variable DYLD_BIND_AT_LAUNCH=YES must be set to build shared libraries.
     [exec]

Something weird with environment variables. Could this be related to SIP on OS X Sierra?

from europa.

theronic avatar theronic commented on July 29, 2024

Workaround

Copy the .dylib files in lib folder to /usr/local/lib. Not ideal, obviously.

from europa.

mcgannc avatar mcgannc commented on July 29, 2024

Any thoughts on resolving this issue folks?

from europa.

miatauro-NASA avatar miatauro-NASA commented on July 29, 2024

I've looked into this a couple of times, and I haven't come up with a "good" resolution using the ant/jam/make build. It seems like you can:

  1. Disable SIP as @theronic suggests.
  2. Set DYLD_LIBRARY_PATH in main via setenv()
  3. Link statically
  4. Use otool to fix up the paths

Building using CMake seems not to have this problem for some reason.

from europa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.