{"action":"closed","issue":{"url":"https://api.github.com/repos/numenta/nupic.core/issues/103","labels_url":"https://api.github.com/repos/numenta/nupic.core/issues/103/labels{/name}","comments_url":"https://api.github.com/repos/numenta/nupic.core/issues/103/comments","events_url":"https://api.github.com/repos/numenta/nupic.core/issues/103/events","html_url":"https://github.com/numenta/nupic.core/issues/103","id":34750646,"number":103,"title":"Windows Build Support","user":{"login":"utensil","id":64258,"avatar_url":"https://avatars.githubusercontent.com/u/64258?v=3","gravatar_id":"","url":"https://api.github.com/users/utensil","html_url":"https://github.com/utensil","followers_url":"https://api.github.com/users/utensil/followers","following_url":"https://api.github.com/users/utensil/following{/other_user}","gists_url":"https://api.github.com/users/utensil/gists{/gist_id}","starred_url":"https://api.github.com/users/utensil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/utensil/subscriptions","organizations_url":"https://api.github.com/users/utensil/orgs","repos_url":"https://api.github.com/users/utensil/repos","events_url":"https://api.github.com/users/utensil/events{/privacy}","received_events_url":"https://api.github.com/users/utensil/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/numenta/nupic.core/labels/build","name":"build","color":"006b75"},{"url":"https://api.github.com/repos/numenta/nupic.core/labels/P3","name":"P3","color":"009800"},{"url":"https://api.github.com/repos/numenta/nupic.core/labels/windows","name":"windows","color":"5319e7"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/numenta/nupic.core/milestones/34","labels_url":"https://api.github.com/repos/numenta/nupic.core/milestones/34/labels","id":826284,"number":34,"title":"0.2.0","description":"","creator":{"login":"rhyolight","id":15566,"avatar_url":"https://avatars.githubusercontent.com/u/15566?v=3","gravatar_id":"","url":"https://api.github.com/users/rhyolight","html_url":"https://github.com/rhyolight","followers_url":"https://api.github.com/users/rhyolight/followers","following_url":"https://api.github.com/users/rhyolight/following{/other_user}","gists_url":"https://api.github.com/users/rhyolight/gists{/gist_id}","starred_url":"https://api.github.com/users/rhyolight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhyolight/subscriptions","organizations_url":"https://api.github.com/users/rhyolight/orgs","repos_url":"https://api.github.com/users/rhyolight/repos","events_url":"https://api.github.com/users/rhyolight/events{/privacy}","received_events_url":"https://api.github.com/users/rhyolight/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":8,"state":"open","created_at":"2014-10-14T19:58:56Z","updated_at":"2015-01-26T18:19:39Z","due_on":null,"closed_at":null},"comments":52,"created_at":"2014-06-02T07:22:39Z","updated_at":"2015-01-26T18:19:39Z","closed_at":"2015-01-26T18:19:39Z","body":"This is an issue logging what seems to be missing for a successful windows build of `nupic.core`:\r\n\r\n### @rcrowder and @kandeel 's work\r\n\r\n* [ ]  #184 and https://github.com/numenta/nupic.core/pull/184#commitcomment-7475075\r\n\r\n### Compiler support\r\n\r\n* [ ] current cmake instruction generates solution for VC by default, not MinGW or Cygwin, needs to doc how to generate makefiles for them\r\n\r\n### VC build issues\r\n\r\n* [x] `CMakeLists.txt` seems to be adding gcc/clang-specific compiler options to all compilers, see variable `NTA_CXXFLAGS_BASE`\r\n* [x] due to similar reasons(the usage of `-isystem`), VC failed to find all headers and libraries in `external`, should be fixed by using [`include_directories([AFTER|BEFORE] [SYSTEM] dir1 dir2 ...)`](http://www.cmake.org/cmake/help/v2.8.12/cmake.html#command:include_directories)\r\n\r\n### MSYS gcc build issue\r\n\r\nBy using `cmake $NUPIC_CORE/src -G \"MSYS Makefiles\"`, make files for gcc under MSYS can be generated, but fails the build:\r\n\r\n* [x] an typo `#TODO` in `ArrayAlgo.hpp` \r\n* [x] VC-specific asm code in `ArrayAlgo.hpp` and `SvmT.hpp`\r\n* [ ] something wrong with DLL and COM loading code:\r\n\r\n```\r\n[ 10%] Building CXX object CMakeFiles/nupic_core.dir/main/engine/RegionImplFactory.cpp.obj\r\nw:/workspace/nupic.core/master/src/main/engine/RegionImplFactory.cpp:1:0: warning: -fPIC ignored for target (all code is position independent) [enabled by default]\r\nIn file included from c:\\devkit\\mingw\\bin\\../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/include/objbase.h:153:0,\r\n                 from c:\\devkit\\mingw\\bin\\../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/include/ole2.h:16,\r\n\r\n[ 10%] Building CXX object CMakeFiles/nupic_core.dir/main/engine/RegionImplFactory.cpp.obj\r\nw:/workspace/nupic.core/master/src/main/engine/RegionImplFactory.cpp:1:0: warning: -fPIC ignored for target (all code is position independent) [enabled by default]\r\nIn file included from c:\\devkit\\mingw\\bin\\../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/include/objbase.h:153:0,\r\n                 from c:\\devkit\\mingw\\bin\\../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/include/ole2.h:16,\r\n                 from c:\\devkit\\mingw\\bin\\../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/include/Windows.h:94,\r\n                 from w:/workspace/nupic.core/master/build/release/include/nta/os/DynamicLibrary.hpp:32,\r\n                 from w:/workspace/nupic.core/master/src/main/engine/RegionImplFactory.cpp:29:\r\nc:\\devkit\\mingw\\bin\\../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/include/unknwn.h: In member function 'HRESULT IUnknown::QueryInterface(Q**)':\r\nc:\\devkit\\mingw\\bin\\../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/include/unknwn.h:70:82: error: '*' cannot appear in a constant-expression\r\nc:\\devkit\\mingw\\bin\\../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/include/unknwn.h:70:82: error: a function call cannot appear in a constant-expression\r\nmake[2]: *** [CMakeFiles/nupic_core.dir/main/engine/RegionImplFactory.cpp.obj] Error 1\r\nmake[1]: *** [CMakeFiles/nupic_core.dir/all] Error 2\r\nmake: *** [all] Error 2\r\n```\r\n\r\n<del>Personally I'm interested in making `nupic.core` work under Windows, but I guess a PR is not going to be created that soon. Just log an issue here for follow up.</del>\r\n\r\nUPDATE: See https://github.com/numenta/nupic.core/issues/103#issuecomment-58133631 for latest prgress ."}}