{"action":"created","issue":{"url":"https://api.github.com/repos/probonopd/linuxdeployqt/issues/295","repository_url":"https://api.github.com/repos/probonopd/linuxdeployqt","labels_url":"https://api.github.com/repos/probonopd/linuxdeployqt/issues/295/labels{/name}","comments_url":"https://api.github.com/repos/probonopd/linuxdeployqt/issues/295/comments","events_url":"https://api.github.com/repos/probonopd/linuxdeployqt/issues/295/events","html_url":"https://github.com/probonopd/linuxdeployqt/issues/295","id":325244295,"number":295,"title":"Add an option to specify ldd executable","user":{"login":"nurupo","id":1855294,"avatar_url":"https://avatars1.githubusercontent.com/u/1855294?v=4","gravatar_id":"","url":"https://api.github.com/users/nurupo","html_url":"https://github.com/nurupo","followers_url":"https://api.github.com/users/nurupo/followers","following_url":"https://api.github.com/users/nurupo/following{/other_user}","gists_url":"https://api.github.com/users/nurupo/gists{/gist_id}","starred_url":"https://api.github.com/users/nurupo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nurupo/subscriptions","organizations_url":"https://api.github.com/users/nurupo/orgs","repos_url":"https://api.github.com/users/nurupo/repos","events_url":"https://api.github.com/users/nurupo/events{/privacy}","received_events_url":"https://api.github.com/users/nurupo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-05-22T11:03:39Z","updated_at":"2018-05-24T17:27:25Z","closed_at":null,"author_association":"NONE","body":"If my system is `x86_64-linux-gnu` and I have cross-compiled my Qt app to `arm-linux-gnueabi`, running `ldd` on my app won't produce any meaningful output:\r\n\r\n```\r\n$ ldd foo\r\n        not a dynamic executable\r\n```\r\n\r\nHowever, there are ways to get around that, e.g. the [`xldd`](https://github.com/crosstool-ng/crosstool-ng/blob/master/scripts/xldd.in) from crosstool-ng project:\r\n\r\n```\r\n$ xldd foo\r\n        libQt5Network.so.5 => /usr/lib/arm-linux-gnueabi/libQt5Network.so.5 (0xdeadbeef)\r\n        libQt5Core.so.5 => /usr/lib/arm-linux-gnueabi/libQt5Core.so.5 (0xdeadbeef)\r\n        libpthread.so.0 => /lib/arm-linux-gnueabi/libpthread.so.0 (0xdeadbeef)\r\n        libc.so.6 => /lib/arm-linux-gnueabi/libc.so.6 (0xdeadbeef)\r\n        ld-linux.so.3 => /lib/ld-linux.so.3 (0xdeadbeef)\r\n        libz.so.1 => /lib/arm-linux-gnueabi/libz.so.1 (0xdeadbeef)\r\n        libicui18n.so.57 => /usr/lib/arm-linux-gnueabi/libicui18n.so.57 (0xdeadbeef)\r\n        libicuuc.so.57 => /usr/lib/arm-linux-gnueabi/libicuuc.so.57 (0xdeadbeef)\r\n        libicudata.so.57 => /usr/lib/arm-linux-gnueabi/libicudata.so.57 (0xdeadbeef)\r\n        libdl.so.2 => /lib/arm-linux-gnueabi/libdl.so.2 (0xdeadbeef)\r\n        libstdc++.so.6 => /usr/lib/arm-linux-gnueabi/libstdc++.so.6 (0xdeadbeef)\r\n        libm.so.6 => /lib/arm-linux-gnueabi/libm.so.6 (0xdeadbeef)\r\n        libgcc_s.so.1 => /lib/arm-linux-gnueabi/libgcc_s.so.1 (0xdeadbeef)\r\n        libpcre16.so.3 => /usr/lib/arm-linux-gnueabi/libpcre16.so.3 (0xdeadbeef)\r\n        libdouble-conversion.so.1 => /usr/lib/arm-linux-gnueabi/libdouble-conversion.so.1 (0xdeadbeef)\r\n        libglib-2.0.so.0 => /lib/arm-linux-gnueabi/libglib-2.0.so.0 (0xdeadbeef)\r\n        libpcre.so.3 => /lib/arm-linux-gnueabi/libpcre.so.3 (0xdeadbeef)\r\n        librt.so.1 => /lib/arm-linux-gnueabi/librt.so.1 (0xdeadbeef)\r\n        libproxy.so.1 => /usr/lib/arm-linux-gnueabi/libproxy.so.1 (0xdeadbeef)\r\n        libQt5Widgets.so.5 => /usr/lib/arm-linux-gnueabi/libQt5Widgets.so.5 (0xdeadbeef)\r\n        libQt5Gui.so.5 => /usr/lib/arm-linux-gnueabi/libQt5Gui.so.5 (0xdeadbeef)\r\n        libharfbuzz.so.0 => /usr/lib/arm-linux-gnueabi/libharfbuzz.so.0 (0xdeadbeef)\r\n        libfreetype.so.6 => /usr/lib/arm-linux-gnueabi/libfreetype.so.6 (0xdeadbeef)\r\n        libpng16.so.16 => /usr/lib/arm-linux-gnueabi/libpng16.so.16 (0xdeadbeef)\r\n        libgraphite2.so.3 => /usr/lib/arm-linux-gnueabi/libgraphite2.so.3 (0xdeadbeef)\r\n        libGLESv2.so.2 => /usr/lib/arm-linux-gnueabi/libGLESv2.so.2 (0xdeadbeef)\r\n        libdrm.so.2 => /usr/lib/arm-linux-gnueabi/libdrm.so.2 (0xdeadbeef)\r\n        libglapi.so.0 => /usr/lib/arm-linux-gnueabi/libglapi.so.0 (0xdeadbeef)\r\n```\r\n\r\nThe library path is correct, but the address is a made up one. I don't think that linuxdeployqt uses the address in any way, so it should be fine with the output of `xldd`. However, linuxdeployqt is hardcoded to use `ldd`, there is no way to ask it to use, e.g. `/usr/bin/arm-linux-gnueabi-ldd` or anything like that."},"comment":{"url":"https://api.github.com/repos/probonopd/linuxdeployqt/issues/comments/391795511","html_url":"https://github.com/probonopd/linuxdeployqt/issues/295#issuecomment-391795511","issue_url":"https://api.github.com/repos/probonopd/linuxdeployqt/issues/295","id":391795511,"user":{"login":"nurupo","id":1855294,"avatar_url":"https://avatars1.githubusercontent.com/u/1855294?v=4","gravatar_id":"","url":"https://api.github.com/users/nurupo","html_url":"https://github.com/nurupo","followers_url":"https://api.github.com/users/nurupo/followers","following_url":"https://api.github.com/users/nurupo/following{/other_user}","gists_url":"https://api.github.com/users/nurupo/gists{/gist_id}","starred_url":"https://api.github.com/users/nurupo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nurupo/subscriptions","organizations_url":"https://api.github.com/users/nurupo/orgs","repos_url":"https://api.github.com/users/nurupo/repos","events_url":"https://api.github.com/users/nurupo/events{/privacy}","received_events_url":"https://api.github.com/users/nurupo/received_events","type":"User","site_admin":false},"created_at":"2018-05-24T17:27:25Z","updated_at":"2018-05-24T17:27:25Z","author_association":"NONE","body":"Um, not, just sysroot is not enough.\r\n\r\n>@probonopd If you want this script included into linuxdeployqt, the script needs a user input on paths of the gcc and readelf binaries, as well as the path for -root flag"}}
{"actor":{"display_login":"nurupo"}}