{"action":"created","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/9300","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/9300/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/9300/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/9300/events","html_url":"https://github.com/NixOS/nixpkgs/issues/9300","id":101476533,"number":9300,"title":"When using Qt Creator: cannot find -lGL","user":{"login":"bjornfor","id":133602,"avatar_url":"https://avatars.githubusercontent.com/u/133602?v=3","gravatar_id":"","url":"https://api.github.com/users/bjornfor","html_url":"https://github.com/bjornfor","followers_url":"https://api.github.com/users/bjornfor/followers","following_url":"https://api.github.com/users/bjornfor/following{/other_user}","gists_url":"https://api.github.com/users/bjornfor/gists{/gist_id}","starred_url":"https://api.github.com/users/bjornfor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjornfor/subscriptions","organizations_url":"https://api.github.com/users/bjornfor/orgs","repos_url":"https://api.github.com/users/bjornfor/repos","events_url":"https://api.github.com/users/bjornfor/events{/privacy}","received_events_url":"https://api.github.com/users/bjornfor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-17T18:00:50Z","updated_at":"2015-08-17T18:10:25Z","closed_at":null,"body":"Creating and building a default \"Qt Widgets Application\" results in\r\n\r\n```\r\n...(compile output window)\r\ng++ -Wl,-rpath,/nix/store/1w7h7p6s2srfw2ady90k7072991lrnpp-qtbase-5.4.2/lib -o qt-test3 main.o mainwindow.o moc_mainwindow.o   -L/nix/store/1w7h7p6s2srfw2ady90k7072991lrnpp-qtbase-5.4.2/lib -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread \r\n/nix/store/b8qhjrwf8sf9ggkjxqqav7f1m6w83bh0-binutils-2.23.1/bin/ld: cannot find -lGL\r\ncollect2: error: ld returned 1 exit status\r\n```\r\n\r\nOne solution is to manually add ```LIBS += -L/run/opengl-driver/lib``` to the .pro file. But is it possible to do something with qtcreator / qt so that we don't have to do this manual step?\r\n\r\nIf I'm not mistaken, I think we want qtcreator to try linking with mesa (not ```/run/opengl-driver/lib```, which is NixOS specific) and then have the built program pick a possibly different openGL provider at runtime.\r\n"},"comment":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/comments/131912533","html_url":"https://github.com/NixOS/nixpkgs/issues/9300#issuecomment-131912533","issue_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/9300","id":131912533,"user":{"login":"bjornfor","id":133602,"avatar_url":"https://avatars.githubusercontent.com/u/133602?v=3","gravatar_id":"","url":"https://api.github.com/users/bjornfor","html_url":"https://github.com/bjornfor","followers_url":"https://api.github.com/users/bjornfor/followers","following_url":"https://api.github.com/users/bjornfor/following{/other_user}","gists_url":"https://api.github.com/users/bjornfor/gists{/gist_id}","starred_url":"https://api.github.com/users/bjornfor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjornfor/subscriptions","organizations_url":"https://api.github.com/users/bjornfor/orgs","repos_url":"https://api.github.com/users/bjornfor/repos","events_url":"https://api.github.com/users/bjornfor/events{/privacy}","received_events_url":"https://api.github.com/users/bjornfor/received_events","type":"User","site_admin":false},"created_at":"2015-08-17T18:10:24Z","updated_at":"2015-08-17T18:10:24Z","body":"CC @bbenoist"}}