{"action":"opened","issue":{"url":"https://api.github.com/repos/eLvErDe/museek-plus/issues/23","repository_url":"https://api.github.com/repos/eLvErDe/museek-plus","labels_url":"https://api.github.com/repos/eLvErDe/museek-plus/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/eLvErDe/museek-plus/issues/23/comments","events_url":"https://api.github.com/repos/eLvErDe/museek-plus/issues/23/events","html_url":"https://github.com/eLvErDe/museek-plus/issues/23","id":176016832,"number":23,"title":"\"Floating point exception\" when install prefix is used","user":{"login":"hills","id":1131584,"avatar_url":"https://avatars.githubusercontent.com/u/1131584?v=3","gravatar_id":"","url":"https://api.github.com/users/hills","html_url":"https://github.com/hills","followers_url":"https://api.github.com/users/hills/followers","following_url":"https://api.github.com/users/hills/following{/other_user}","gists_url":"https://api.github.com/users/hills/gists{/gist_id}","starred_url":"https://api.github.com/users/hills/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hills/subscriptions","organizations_url":"https://api.github.com/users/hills/orgs","repos_url":"https://api.github.com/users/hills/repos","events_url":"https://api.github.com/users/hills/events{/privacy}","received_events_url":"https://api.github.com/users/hills/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-09T14:00:18Z","updated_at":"2016-09-09T14:00:18Z","closed_at":null,"body":"Linux, Slackware. Use ccmake to set CMAKE_INSTALL_PREFIX; eg. /opt/museek\r\n\r\nWhen running museeq I get:\r\n```\r\nFloating point exception\r\n```\r\nThe cuplrit is the IMG() function. If it can't find a file, it returns `QPixmap()`, an image measuring 0x0 pixels. Some of the code divides by the image width, which causes the crash.\r\n\r\nWhy it can't find the file is in `museeq/images.cpp`:\r\n```\r\nQString file (QString(DATADIR) + \"/museek/museeq/themes/default/\" + icon + \".png\");\r\n````\r\nBut `DATADIR` is returning the string 'share' only, and not a full path. So it can only find the images if I\r\n```\r\ncd /opt/museek\r\n./bin/museeq\r\n```\r\nEventually I found the implementation of DATADIR which I enabled by building with\r\n```\r\ncmake -DBINRELOC=1 -DCMAKE_INSTALL_PREFIX=/opt/museek\r\n```\r\nIs this really the best solution here or is something broken? And if it is the correct fix, should it be more intuitive (eg. on by default?)\r\n"}}
{"actor":{"display_login":"hills"}}