{"action":"created","issue":{"url":"https://api.github.com/repos/u8sand/Baka-MPlayer/issues/74","labels_url":"https://api.github.com/repos/u8sand/Baka-MPlayer/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/u8sand/Baka-MPlayer/issues/74/comments","events_url":"https://api.github.com/repos/u8sand/Baka-MPlayer/issues/74/events","html_url":"https://github.com/u8sand/Baka-MPlayer/issues/74","id":53546201,"number":74,"title":"Compile for windows without console","user":{"login":"u8sand","id":1341861,"avatar_url":"https://avatars.githubusercontent.com/u/1341861?v=3","gravatar_id":"","url":"https://api.github.com/users/u8sand","html_url":"https://github.com/u8sand","followers_url":"https://api.github.com/users/u8sand/followers","following_url":"https://api.github.com/users/u8sand/following{/other_user}","gists_url":"https://api.github.com/users/u8sand/gists{/gist_id}","starred_url":"https://api.github.com/users/u8sand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/u8sand/subscriptions","organizations_url":"https://api.github.com/users/u8sand/orgs","repos_url":"https://api.github.com/users/u8sand/repos","events_url":"https://api.github.com/users/u8sand/events{/privacy}","received_events_url":"https://api.github.com/users/u8sand/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/u8sand/Baka-MPlayer/labels/developer+needed","name":"developer needed","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-06T18:29:00Z","updated_at":"2015-01-12T13:46:14Z","closed_at":null,"body":"Though this should be very simple--I've spent much too long to no avail. If someone has any clue as to what might be the problem please share.\r\n\r\nI've tried #mingw and #qt and searching through the internet. Here are some solutions that DON'T work.\r\n\r\n- Adding `-mwindows` to linker flags\r\n- Adding ` -Wl,-subsystem,windows`\r\n- Adding (as suggested by http://blog.debao.me/2013/07/link-confilict-between-sdl-and-qt-under-windows/ ; the article makes sense and the source code agrees. It doesn't work though.)\r\n\r\n        win32:QMAKE_LIBS_QT_ENGTRY -= -lqtmain\r\n        win32-g++:DEFINES -= QT_NEEDS_QMAIN\r\n  or\r\n\r\n        CONFIG-= windows\r\n        QMAKE_LFLAGS += $$QMAKE_LFLAGS_WINDOWS\r\n  or both\r\n- Adding `CONFIG-=console` or `CONFIG+=windows` (which is already there so why would it work)\r\n\r\nand more...\r\n\r\n\r\nI'm unsure as to whether this is a qt problem or an mxe problem (or perhaps my own? I don't see any terminal on Linux though..)\r\n\r\nI wouldn't mind handling the calling of WinMain/SDL_main myself if only I knew how to disable the existing things. (No calling it after using the `DEFINES -= QT_NEEDS_QMAIN` above didn't work)\r\n\r\nI do hope this problem is solved eventually--the current solution is disgusting, that-is calling `FreeConsole` on startup (resulting in a flashed console)."},"comment":{"url":"https://api.github.com/repos/u8sand/Baka-MPlayer/issues/comments/69571354","html_url":"https://github.com/u8sand/Baka-MPlayer/issues/74#issuecomment-69571354","issue_url":"https://api.github.com/repos/u8sand/Baka-MPlayer/issues/74","id":69571354,"user":{"login":"amazingfate","id":5022901,"avatar_url":"https://avatars.githubusercontent.com/u/5022901?v=3","gravatar_id":"","url":"https://api.github.com/users/amazingfate","html_url":"https://github.com/amazingfate","followers_url":"https://api.github.com/users/amazingfate/followers","following_url":"https://api.github.com/users/amazingfate/following{/other_user}","gists_url":"https://api.github.com/users/amazingfate/gists{/gist_id}","starred_url":"https://api.github.com/users/amazingfate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amazingfate/subscriptions","organizations_url":"https://api.github.com/users/amazingfate/orgs","repos_url":"https://api.github.com/users/amazingfate/repos","events_url":"https://api.github.com/users/amazingfate/events{/privacy}","received_events_url":"https://api.github.com/users/amazingfate/received_events","type":"User","site_admin":false},"created_at":"2015-01-12T13:46:14Z","updated_at":"2015-01-12T13:46:14Z","body":"this seems to be the problem of mingw.\r\nshall we try msvs to build the windows release?"}}