{"action":"created","issue":{"url":"https://api.github.com/repos/mickelson/attract/issues/108","labels_url":"https://api.github.com/repos/mickelson/attract/issues/108/labels{/name}","comments_url":"https://api.github.com/repos/mickelson/attract/issues/108/comments","events_url":"https://api.github.com/repos/mickelson/attract/issues/108/events","html_url":"https://github.com/mickelson/attract/issues/108","id":57102609,"number":108,"title":"Linux-to-Windows cross-compilation fails due to missing sfml package","user":{"login":"digitalhobbit","id":682,"avatar_url":"https://avatars.githubusercontent.com/u/682?v=3","gravatar_id":"","url":"https://api.github.com/users/digitalhobbit","html_url":"https://github.com/digitalhobbit","followers_url":"https://api.github.com/users/digitalhobbit/followers","following_url":"https://api.github.com/users/digitalhobbit/following{/other_user}","gists_url":"https://api.github.com/users/digitalhobbit/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalhobbit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalhobbit/subscriptions","organizations_url":"https://api.github.com/users/digitalhobbit/orgs","repos_url":"https://api.github.com/users/digitalhobbit/repos","events_url":"https://api.github.com/users/digitalhobbit/events{/privacy}","received_events_url":"https://api.github.com/users/digitalhobbit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-02-09T22:49:13Z","updated_at":"2015-02-28T05:17:54Z","closed_at":null,"body":"I'm trying to cross-compile from Linux to Windows (64 bit), following the instructions in Compile.md.\r\n\r\nI built a full MXE setup, including sfml. I then tried to build attract with the following command:\r\n\r\n```make WINDOWS_STATIC=1 CROSS=x86_64-w64-mingw32-```\r\n\r\nDuring compilation, I receive the error message below multiple times:\r\n\r\n```\r\nPackage sfml was not found in the pkg-config search path.\r\nPerhaps you should add the directory containing `sfml.pc'\r\nto the PKG_CONFIG_PATH environment variable\r\nNo package 'sfml' found\r\n```\r\n\r\nAt the end, the linker fails with many undefined sfml references such as this one:\r\n\r\n```\r\nobj/fe_input.o:fe_input.cpp:(.text+0x8da): undefined reference to `sf::Joystick::isButtonPressed(unsigned int, unsigned int)'\r\n```\r\n\r\nEven though sfml is installed with MXE, I can't find a sfml.pc file anywhere. Not sure if this is expected or a problem with the sfml MXE package.\r\n\r\nI found a few references to sfml / MXE requiring some special settings, but it looks like your Makefile already addresses this.\r\n\r\nAny pointers?\r\n\r\nI haven't tried building the 32-bit version yet (which would entail another lengthy MXE build first...), but that's the next thing I'm planning to try.\r\n\r\nThanks,\r\n\r\n-Mirko\r\n"},"comment":{"url":"https://api.github.com/repos/mickelson/attract/issues/comments/76511428","html_url":"https://github.com/mickelson/attract/issues/108#issuecomment-76511428","issue_url":"https://api.github.com/repos/mickelson/attract/issues/108","id":76511428,"user":{"login":"carlmart","id":608168,"avatar_url":"https://avatars.githubusercontent.com/u/608168?v=3","gravatar_id":"","url":"https://api.github.com/users/carlmart","html_url":"https://github.com/carlmart","followers_url":"https://api.github.com/users/carlmart/followers","following_url":"https://api.github.com/users/carlmart/following{/other_user}","gists_url":"https://api.github.com/users/carlmart/gists{/gist_id}","starred_url":"https://api.github.com/users/carlmart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlmart/subscriptions","organizations_url":"https://api.github.com/users/carlmart/orgs","repos_url":"https://api.github.com/users/carlmart/repos","events_url":"https://api.github.com/users/carlmart/events{/privacy}","received_events_url":"https://api.github.com/users/carlmart/received_events","type":"User","site_admin":false},"created_at":"2015-02-28T05:17:54Z","updated_at":"2015-02-28T05:17:54Z","body":"What does your cmake file or makefile look like? I am trying to build a demo sfml program.\r\nI posted my cmake file, just do not know how to add sfml libraries http://pastebin.com/XeML0gQ6"}}