{"action":"created","issue":{"url":"https://api.github.com/repos/qorelanguage/qore/issues/53","labels_url":"https://api.github.com/repos/qorelanguage/qore/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/qorelanguage/qore/issues/53/comments","events_url":"https://api.github.com/repos/qorelanguage/qore/issues/53/events","html_url":"https://github.com/qorelanguage/qore/issues/53","id":111628309,"number":53,"title":"OS X, cmake: build results in missing library path in more binary","user":{"login":"pvanek","id":207237,"avatar_url":"https://avatars.githubusercontent.com/u/207237?v=3","gravatar_id":"","url":"https://api.github.com/users/pvanek","html_url":"https://github.com/pvanek","followers_url":"https://api.github.com/users/pvanek/followers","following_url":"https://api.github.com/users/pvanek/following{/other_user}","gists_url":"https://api.github.com/users/pvanek/gists{/gist_id}","starred_url":"https://api.github.com/users/pvanek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pvanek/subscriptions","organizations_url":"https://api.github.com/users/pvanek/orgs","repos_url":"https://api.github.com/users/pvanek/repos","events_url":"https://api.github.com/users/pvanek/events{/privacy}","received_events_url":"https://api.github.com/users/pvanek/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/qorelanguage/qore/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-15T14:27:11Z","updated_at":"2015-10-16T09:50:40Z","closed_at":null,"body":"existing workaround: export DYLD_LIBRARY_PATH\r\n\r\n```\r\nlister:build pvanek$ ../test/yaml-test.q \r\ndyld: Library not loaded: libqore.dylib\r\n  Referenced from: /opt/qore/bin/qore\r\n  Reason: image not found\r\nTrace/BPT trap: 5\r\nlister:build pvanek$ set|grep DY\r\nDYLD_LIBRARY_PATH=:/Users/pvanek/bin:/opt/local/lib/oracle\r\nlister:build pvanek$ otool -L /opt/qore/bin/qore \r\n/opt/qore/bin/qore:\r\n\tlibqore.dylib (compatibility version 0.0.0, current version 0.0.0)\r\n\t/opt/local/lib/libbz2.1.0.dylib (compatibility version 1.0.0, current version 1.0.6)\r\n\t/opt/local/lib/libiconv.2.dylib (compatibility version 8.0.0, current version 8.1.0)\r\n\t/opt/local/lib/libmpfr.4.dylib (compatibility version 6.0.0, current version 6.3.0)\r\n\t/opt/local/lib/libssl.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)\r\n\t/opt/local/lib/libcrypto.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)\r\n\t/opt/local/lib/libpcre.1.dylib (compatibility version 4.0.0, current version 4.5.0)\r\n\t/opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.8)\r\n\t/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.0.0)\r\n\t/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1213.0.0)\r\n```"},"comment":{"url":"https://api.github.com/repos/qorelanguage/qore/issues/comments/148670256","html_url":"https://github.com/qorelanguage/qore/issues/53#issuecomment-148670256","issue_url":"https://api.github.com/repos/qorelanguage/qore/issues/53","id":148670256,"user":{"login":"niclasr","id":6010579,"avatar_url":"https://avatars.githubusercontent.com/u/6010579?v=3","gravatar_id":"","url":"https://api.github.com/users/niclasr","html_url":"https://github.com/niclasr","followers_url":"https://api.github.com/users/niclasr/followers","following_url":"https://api.github.com/users/niclasr/following{/other_user}","gists_url":"https://api.github.com/users/niclasr/gists{/gist_id}","starred_url":"https://api.github.com/users/niclasr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niclasr/subscriptions","organizations_url":"https://api.github.com/users/niclasr/orgs","repos_url":"https://api.github.com/users/niclasr/repos","events_url":"https://api.github.com/users/niclasr/events{/privacy}","received_events_url":"https://api.github.com/users/niclasr/received_events","type":"User","site_admin":false},"created_at":"2015-10-16T09:50:40Z","updated_at":"2015-10-16T09:50:40Z","body":"Does adding\r\nset_target_properties(qore qr PROPERTIES INSTALL_RPATH ${CMAKE_INSTALL_FULL_LIBDIR})\r\non the line under\r\ntarget_link_libraries(qr libqore)\r\nand rebuildling fix your problem?\r\nI will commit that line with some other stuff I have changed in CMakeLists.txt if it works for you."}}