{"action":"created","issue":{"url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/26094","repository_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA","labels_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/26094/labels{/name}","comments_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/26094/comments","events_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/26094/events","html_url":"https://github.com/CleverRaven/Cataclysm-DDA/issues/26094","id":367463990,"node_id":"MDU6SXNzdWUzNjc0NjM5OTA=","number":26094,"title":"datadir is mandatory after a make install ","user":{"login":"pierredavidbelanger","id":1076726,"node_id":"MDQ6VXNlcjEwNzY3MjY=","avatar_url":"https://avatars0.githubusercontent.com/u/1076726?v=4","gravatar_id":"","url":"https://api.github.com/users/pierredavidbelanger","html_url":"https://github.com/pierredavidbelanger","followers_url":"https://api.github.com/users/pierredavidbelanger/followers","following_url":"https://api.github.com/users/pierredavidbelanger/following{/other_user}","gists_url":"https://api.github.com/users/pierredavidbelanger/gists{/gist_id}","starred_url":"https://api.github.com/users/pierredavidbelanger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pierredavidbelanger/subscriptions","organizations_url":"https://api.github.com/users/pierredavidbelanger/orgs","repos_url":"https://api.github.com/users/pierredavidbelanger/repos","events_url":"https://api.github.com/users/pierredavidbelanger/events{/privacy}","received_events_url":"https://api.github.com/users/pierredavidbelanger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-06T14:52:05Z","updated_at":"2018-10-07T21:04:56Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"**Describe the bug**  \r\n\r\nAfter `make install`, I expect the game to know where its data is located, but this is not the case. \r\n\r\n**To Reproduce**  \r\n\r\nGet the latest git version and build it like this:\r\n\r\n```\r\npbelanger@marvin:~/dev/Cataclysm-DDA$ sudo make clean\r\npbelanger@marvin:~/dev/Cataclysm-DDA$ sudo time make install -j12 \\\r\n    NATIVE=linux64 \\\r\n    RELEASE=1 \\\r\n    LTO=1 \\\r\n    LOCALIZE=0 \\\r\n    USE_HOME_DIR=1 \\\r\n    TILES=1 \\\r\n    SOUND=1\r\n```\r\n\r\nthen go outside of the build folder and execute:\r\n\r\n```\r\npbelanger@marvin:~$ cataclysm-tiles \r\nFailed to read from \"data/names/en.json\": opening file failed\r\nAborted\r\n```\r\n\r\nBut if I specify the `--datadir` it works:\r\n\r\n```\r\npbelanger@marvin:~$ cataclysm-tiles --datadir /share/cataclysm-dda/\r\n```\r\n\r\n**Expected behavior**  \r\n\r\nI expect the installed version to know where its data is located\r\n \r\n**Versions and configuration(please complete the following information):**\r\n\r\n```\r\npbelanger@marvin:~$ uname -a\r\nLinux marvin 4.18.0-2-amd64 #1 SMP Debian 4.18.10-1 (2018-09-30) x86_64 GNU/Linux\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/comments/427686958","html_url":"https://github.com/CleverRaven/Cataclysm-DDA/issues/26094#issuecomment-427686958","issue_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/26094","id":427686958,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzY4Njk1OA==","user":{"login":"pierredavidbelanger","id":1076726,"node_id":"MDQ6VXNlcjEwNzY3MjY=","avatar_url":"https://avatars0.githubusercontent.com/u/1076726?v=4","gravatar_id":"","url":"https://api.github.com/users/pierredavidbelanger","html_url":"https://github.com/pierredavidbelanger","followers_url":"https://api.github.com/users/pierredavidbelanger/followers","following_url":"https://api.github.com/users/pierredavidbelanger/following{/other_user}","gists_url":"https://api.github.com/users/pierredavidbelanger/gists{/gist_id}","starred_url":"https://api.github.com/users/pierredavidbelanger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pierredavidbelanger/subscriptions","organizations_url":"https://api.github.com/users/pierredavidbelanger/orgs","repos_url":"https://api.github.com/users/pierredavidbelanger/repos","events_url":"https://api.github.com/users/pierredavidbelanger/events{/privacy}","received_events_url":"https://api.github.com/users/pierredavidbelanger/received_events","type":"User","site_admin":false},"created_at":"2018-10-07T21:04:56Z","updated_at":"2018-10-07T21:04:56Z","author_association":"CONTRIBUTOR","body":"OMG, ok, I found a way to make this work, I needed to add an explicit `PREFIX=/usr/` define, that way we enter [this `ifdef`](https://github.com/CleverRaven/Cataclysm-DDA/blob/689638614edf54b4af94d01426cd941c0a2bd381/src/main.cpp#L144) required to automatically set the basepath.\r\n\r\nI do not close this issue, in case someone want to fix this obscure workaround."}}
{"actor":{"display_login":"pierredavidbelanger"}}