{"action":"created","issue":{"url":"https://api.github.com/repos/simbody/simbody/issues/441","labels_url":"https://api.github.com/repos/simbody/simbody/issues/441/labels{/name}","comments_url":"https://api.github.com/repos/simbody/simbody/issues/441/comments","events_url":"https://api.github.com/repos/simbody/simbody/issues/441/events","html_url":"https://github.com/simbody/simbody/pull/441","id":111151857,"number":441,"title":"Added the possibility to compile simbody with MinGW for Windows","user":{"login":"Gjacquenot","id":6797340,"avatar_url":"https://avatars.githubusercontent.com/u/6797340?v=3","gravatar_id":"","url":"https://api.github.com/users/Gjacquenot","html_url":"https://github.com/Gjacquenot","followers_url":"https://api.github.com/users/Gjacquenot/followers","following_url":"https://api.github.com/users/Gjacquenot/following{/other_user}","gists_url":"https://api.github.com/users/Gjacquenot/gists{/gist_id}","starred_url":"https://api.github.com/users/Gjacquenot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gjacquenot/subscriptions","organizations_url":"https://api.github.com/users/Gjacquenot/orgs","repos_url":"https://api.github.com/users/Gjacquenot/repos","events_url":"https://api.github.com/users/Gjacquenot/events{/privacy}","received_events_url":"https://api.github.com/users/Gjacquenot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":31,"created_at":"2015-10-13T10:27:28Z","updated_at":"2015-10-29T20:43:43Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/simbody/simbody/pulls/441","html_url":"https://github.com/simbody/simbody/pull/441","diff_url":"https://github.com/simbody/simbody/pull/441.diff","patch_url":"https://github.com/simbody/simbody/pull/441.patch"},"body":"\r\n\r\nThese commits enable compilation with various versions of MinGW for Windows.\r\n\r\nSince, simbody is shipped with Blas and Lapack libraries compiled with specific versions of MinGW, some checks had to be added to verify compatibility.\r\n\r\nIf it is possible to compile simbody, configuration and compilation run smoothly.\r\nOtherwise, user is asked to provide its own version of Blas and Lapack, or to change to its version of MinGW.\r\n\r\nVersions tested:\r\n\r\n- MinGW 32 with gcc 4.7.2 and dwarf exception mechanism\r\n- MinGW 64 with gcc 4.9.2 and SJLJ exception mechanism\r\n- MinGW 64 with gcc 5.2.0 and SEH exception mechanism with Blas and Lapack compiled manually\r\n\r\n\r\n\r\nPlease note, that one can clean the code with the the two Python scripts:\r\n    \r\nThe Python script that has been used to remove trailing spaces from CMakeLists.txt files found recursively is:\r\n    \r\n    import os\r\n    PATH = r'simbody'\r\n    for path, dirs, files in os.walk(PATH):\r\n        for f in files:\r\n            file_name, file_extension = os.path.splitext(f)\r\n            if file_name == 'CMakeLists' and file_extension =='.txt':\r\n                print(f)\r\n                path_name = os.path.join(path, f)\r\n                with open(path_name, 'r') as fh:\r\n                    new = [line.rstrip() for line in fh]\r\n                with open(path_name, 'w') as fh:\r\n                    fh.writelines((line+'\\n' for line in new))\r\n\r\nThe Python script that has been used to remove trailing spaces from files *.c *.h *.cpp *.hpp found recursively is:\r\n    \r\n    import os\r\n    PATH = r'simbody'\r\n    extensions = ('.c','.h','.cpp','.hpp')\r\n    \r\n    for path, dirs, files in os.walk(PATH):\r\n        for f in files:\r\n            file_name, file_extension = os.path.splitext(f)\r\n            if file_extension in extensions:\r\n                print(f)\r\n                path_name = os.path.join(path, f)\r\n                with open(path_name, 'r') as fh:\r\n                    new = [line.rstrip() for line in fh]\r\n                with open(path_name, 'w') as fh:\r\n                    fh.writelines((line+'\\n' for line in new))\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/simbody/simbody/issues/comments/152314653","html_url":"https://github.com/simbody/simbody/pull/441#issuecomment-152314653","issue_url":"https://api.github.com/repos/simbody/simbody/issues/441","id":152314653,"user":{"login":"sherm1","id":4088016,"avatar_url":"https://avatars.githubusercontent.com/u/4088016?v=3","gravatar_id":"","url":"https://api.github.com/users/sherm1","html_url":"https://github.com/sherm1","followers_url":"https://api.github.com/users/sherm1/followers","following_url":"https://api.github.com/users/sherm1/following{/other_user}","gists_url":"https://api.github.com/users/sherm1/gists{/gist_id}","starred_url":"https://api.github.com/users/sherm1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sherm1/subscriptions","organizations_url":"https://api.github.com/users/sherm1/orgs","repos_url":"https://api.github.com/users/sherm1/repos","events_url":"https://api.github.com/users/sherm1/events{/privacy}","received_events_url":"https://api.github.com/users/sherm1/received_events","type":"User","site_admin":false},"created_at":"2015-10-29T20:43:42Z","updated_at":"2015-10-29T20:43:42Z","body":"So is this ready to merge then, Guillaume?"}}