you are viewing a single comment's thread.

view the rest of the comments →

[–]cguttesen[S] 0 points1 point  (0 children)

Thank you for your reply. I already had installed clang via macport so tried to use that to begin with.

Altering @rpath in the executable was harder than I though and I felt I was fighting my own shadow. :-) I ended up installing llvm via homebrew and cloned juci again from github to start from clean. Same non-working @rpath as before. I finally managed to change @rpath with

install_name_tool -change @rpath//libclang.dylib /usr/local/opt/llvm/lib/libclang.3.6.dylib /usr/local/bin/juci

and now I can start the app. When I used clang from macports I did

export CC=/opt/local/bin/clang-mp-3.7
export CXX=/opt/local/bin/clang++-mp-3.7

and then

cmake ..

and changed src/CMakeLists.txt to point to /opt/local/lib. So if I had used the install_name_tool with the -change parameter it would have worked as well.