First post!
I have been trying to compile the master branch of nupic.core on Windows 10 with Visual Studio 2015. I tried to follow the steps outlined the readme.
Here is a list of the things I needed to do:
- Make sure python 2.7 is in PATH env. I have had python 3.5 and I think that caused some issues when running cmake
- Install numpy by using the command: “pip install numpy==1.12.1”
- Make sure the “patch” command is in PATH
I then run cmake as described in the readme. The output is here
In Visual Studio, when running “ALL_BUILD” in Release configuration I get the output
A few things I have noticed are:
-
LINK : fatal error LNK1181: cannot open input file ‘C:/Users/chhenning/Numenta/nupic.core/build/scripts/ThirdParty/Build/YamlStaticLib/yaml.lib’
-> I fixed it by copying the lib file into the correct folder
-
LINK : fatal error LNK1181: cannot open input file ‘C:/Users/chhenning/Numenta/nupic.core/build/scripts/ThirdParty/Install/YamlCppStaticLib/lib/yaml-cpp.lib’
-> I renamed from “libyaml-cppmd.lib” to “libyaml-cpp.lib”. Is that a debug lib?
-
LINK : fatal error LNK1104: cannot open file ‘$<TARGET_FILE:nupic_core_solo>’
-> Not sure what to about it.
There are many compiler errors and even ICE’s (Internal Compiler Errors). For instance:
------ Build started: Project: nupic_core_solo, Configuration: Release x64 ------
Cell.cpp
C:\Users\chhenning\Numenta\nupic.core\src\nupic/algorithms/Segment.hpp(170): error C2876: ‘nupic::Serializable’: not all overloads are accessible
C:\Users\chhenning\Numenta\nupic.core\src\nupic/algorithms/Segment.hpp(93): note: see declaration of ‘nupic::Serializable’
C:\Users\chhenning\Numenta\nupic.core\src\nupic/algorithms/Segment.hpp(181): error C2876: ‘nupic::Serializable’: not all overloads are accessible
C:\Users\chhenning\Numenta\nupic.core\src\nupic/algorithms/Segment.hpp(93): note: see declaration of ‘nupic::Serializable’
C:\Users\chhenning\Numenta\nupic.core\src\nupic/algorithms/Segment.hpp(365): warning C4838: conversion from ‘double’ to ‘const nupic::Real’ requires a narrowing conversion
C:\Users\chhenning\Numenta\nupic.core\src\nupic/algorithms/Segment.hpp(862): error C2876: ‘nupic::Serializable’: not all overloads are accessible
C:\Users\chhenning\Numenta\nupic.core\src\nupic/algorithms/Segment.hpp(383): note: see declaration of ‘nupic::Serializable’
C:\Users\chhenning\Numenta\nupic.core\src\nupic/algorithms/Segment.hpp(884): error C2876: ‘nupic::Serializable’: not all overloads are accessible
C:\Users\chhenning\Numenta\nupic.core\src\nupic/algorithms/Segment.hpp(383): note: see declaration of ‘nupic::Serializable’
C:\Users\chhenning\Numenta\nupic.core\src\nupic/algorithms/Cell.hpp(258): error C2876: ‘nupic::Serializable’: not all overloads are accessible
…
My questions are.
-
Can nupic.core be compiled on Windows using Visual Studio?
-
Is there interest in having a working Visual Studio solution that contains all of nupic.core source code? I think most of the compiler errors can be fixed quite easily.
Thanks,
Christian