David,

I'm receiving the following error (see below) in CMake. I checked and there
is no flat_spatial_pooler.cpp file in algorithms. I'm* guessing* this file
should be generated by Cython from the flat_spatial_pooler.py file in
py/nupic/research. However, I don't see any references to Cython in the
CMakeList.txt file. Any pointers you can give me on how to proceed would be
appreciated.

Thanks,
Dean


CMake Error at CMakeLists.txt:116 (add_library):

Cannot find source file:

 C:/build/nupic/nta/algorithms/flat_spatial_pooler.cpp

 Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp

.hxx .in .txx

Call Stack (most recent call first):

CMakeLists.txt:673 (generate_static_library)


On Wed, Jan 8, 2014 at 4:44 AM, David Ragazzi <[email protected]>wrote:

> Ah.. I mentioned Visual Studio, but you can also generate Make or Ninja or
> any script file supported by CMake, discarding so any further IDE
> configuration.
>
>
> On 8 January 2014 08:15, David Ragazzi <[email protected]> wrote:
>
>> Hi Dean,
>>
>> Indeed, some things changed and so other compile errors arose in scene
>> (althought all runtime errors are solved). The main question is CLang..
>> some compile errors on VStudio are related to new preprocessor flags which
>> I believe was implemented for CLang use.
>>
>> So I believe we have two options (of course, if you want use Visual
>> Studio):
>> - Insist on use MSVS as default compiler and so adapt the code or compile
>> flags specified on CMake file;
>> - Integrate CLang or GCC to MSVS (which [seems] is painless);
>>
>> Fortunatelly, CMake file is working out of box for Unix-like os', and you
>> could use the same file to generate an IDE solution to Visual Studio. CMake
>> file is located in PRs sections on Nupic github (please read my revised
>> Readme to understand how to generate files).
>>
>> Another thing, is that you need static libraries for Windows (libapr,
>> libpcre, etc) to be linked with Windows compiled code. So I'm becoming them
>> available at:
>>
>> https://drive.google.com/#folders/0BwzyIe8QHk2kZTB5NHFyNVhjMmM
>> (Remember they should be in "nupic-master/external/win32" folder)
>>
>> Hideaki Suzuki also worked on this job, maybe he have some insights about.
>>
>> BTW, feel free to contact me.. :-)
>>
>> Best, David
>>
>>
>>
>>
>>
>> On 7 January 2014 23:26, Matthew Taylor <[email protected]> wrote:
>>
>>> David has been putting his efforts behind CMake:
>>> https://github.com/numenta/nupic/pull/514
>>>
>>> I'm not sure how this correlates with the Windows port, but I think it
>>> will help?
>>> ---------
>>> Matt Taylor
>>> OS Community Flag-Bearer
>>> Numenta
>>>
>>>
>>> On Tue, Jan 7, 2014 at 5:24 PM, Dean Horak <[email protected]> wrote:
>>> > Awesome Matt.
>>> >
>>> > I wish I'd have seen that thread earlier - it looks like I've
>>> encountered
>>> > most of the changes he mentions (I was working on building the port
>>> with VS
>>> > C++ 10, but 12 is even better.
>>> >
>>> > This should quickly get me to the point where David Ragazzi left it
>>> and save
>>> > me a lot of extra work getting to that point.
>>> >
>>> > Do you know if David still pursuing this port? This thread is about 3
>>> months
>>> > old, so I'm wondering if he resolved the run-time issues he mentioned.
>>> >
>>> > Thanks,
>>> > Dean
>>> >
>>> >
>>> > On Tue, Jan 7, 2014 at 6:11 PM, Matthew Taylor <[email protected]>
>>> wrote:
>>> >>
>>> >> Dean, you might want to have a read of this old thread about porting
>>> NuPIC
>>> >> to windows: http://markmail.org/message/2fgeurjy3zgrd3g3
>>> >>
>>> >> ---------
>>> >> Matt Taylor
>>> >> OS Community Flag-Bearer
>>> >> Numenta
>>> >>
>>> >>
>>> >> On Tue, Jan 7, 2014 at 12:40 PM, Fergal Byrne
>>> >> <[email protected]> wrote:
>>> >>>
>>> >>> Hi Dean,
>>> >>>
>>> >>> Thanks, by the way, for taking up this challenge! Worth a read is the
>>> >>> discussion [1] on StackOverflow regarding CygWin and MinGW.
>>> >>>
>>> >>> I've been investigating all sorts of things about platforms and one
>>> of
>>> >>> the things people said that CygWin is perhaps not the first place
>>> you should
>>> >>> look when trying to get something working on Windows - there's just
>>> too may
>>> >>> things to worry about, even when you think you've figured it out,
>>> someone
>>> >>> changes a dependency and you're back with a broken system. With
>>> MinGW, it
>>> >>> seems, you can better centralise all your concerns and that way you
>>> can keep
>>> >>> the thing building.
>>> >>>
>>> >>> Hopefully the exercise of separating out Python and building a C++
>>> stack
>>> >>> for NuPIC will help with this effort.
>>> >>>
>>> >>> Thankfully I'm on MacOS (or various Linuxen) for some time but I
>>> think a
>>> >>> Windows executable would be marvellous for growing mindshare for
>>> NuPIC, so
>>> >>> Matt's response during the Sprint Planning is echoed by us all!
>>> >>>
>>> >>> [1]
>>> >>>
>>> http://stackoverflow.com/questions/771756/what-is-the-difference-between-cygwin-and-mingw
>>> >>>
>>> >>> Regards
>>> >>>
>>> >>> Fergal Byrne
>>> >>>
>>> >>>
>>> >>> On Tue, Jan 7, 2014 at 7:06 PM, Dean Horak <[email protected]>
>>> wrote:
>>> >>>>
>>> >>>> I've been looking into getting the Windows build of NuPIC up and
>>> >>>> running, but before I re-invent the wheel, is there any
>>> >>>> information/documentation I can get my hands on regarding the build
>>> system
>>> >>>> and it's structure/setup, tools required, etc?
>>> >>>>
>>> >>>> I see that there appears to be (or at least was at one time) a Win32
>>> >>>> build process, so for consistency, I'm thinking that process should
>>> be
>>> >>>> reactivated.
>>> >>>>
>>> >>>> Any thoughts?
>>> >>>>
>>> >>>> Thanks,
>>> >>>> Dean
>>> >>>>
>>> >>>> _______________________________________________
>>> >>>> nupic mailing list
>>> >>>> [email protected]
>>> >>>> http://lists.numenta.org/mailman/listinfo/nupic_lists.numenta.org
>>> >>>>
>>> >>>
>>> >>>
>>> >>>
>>> >>> --
>>> >>>
>>> >>> Fergal Byrne, Brenter IT
>>> >>>
>>> >>> http://inbits.com - Better Living through Thoughtful Technology
>>> >>>
>>> >>> e:[email protected] t:+353 83 4214179
>>> >>> Formerly of Adnet [email protected] http://www.adnet.ie
>>> >>>
>>> >>> _______________________________________________
>>> >>> nupic mailing list
>>> >>> [email protected]
>>> >>> http://lists.numenta.org/mailman/listinfo/nupic_lists.numenta.org
>>> >>>
>>> >>
>>> >>
>>> >> _______________________________________________
>>> >> nupic mailing list
>>> >> [email protected]
>>> >> http://lists.numenta.org/mailman/listinfo/nupic_lists.numenta.org
>>> >>
>>> >
>>> >
>>> > _______________________________________________
>>> > nupic mailing list
>>> > [email protected]
>>> > http://lists.numenta.org/mailman/listinfo/nupic_lists.numenta.org
>>> >
>>>
>>> _______________________________________________
>>> nupic mailing list
>>> [email protected]
>>> http://lists.numenta.org/mailman/listinfo/nupic_lists.numenta.org
>>>
>>
>>
>
> _______________________________________________
> nupic mailing list
> [email protected]
> http://lists.numenta.org/mailman/listinfo/nupic_lists.numenta.org
>
>
_______________________________________________
nupic mailing list
[email protected]
http://lists.numenta.org/mailman/listinfo/nupic_lists.numenta.org

Reply via email to