Skip to content

Python modules Compilation fails #702

@RDaneelOlivav

Description

@RDaneelOlivav

I'm trying to get the htm-2d-object-modeling example working, which I need the nupic.cpp compiled as far aas I see.
But when I compile I had to Upgrade the CMake to higher than 3.7 and add in /home/rdaneel/RI/nupic.cpp/external/common.cmake the line SET(CMAKE_CXX_FLAGS "-std=c++11 -O3")
to fix error when compiling.

Now when I execute the command:
python setup.py install --user --force

It gives the following error:

In file included from /home/rdaneel/RI/nupic.cpp/src/htm/algorithms/Connections.cpp:27:0:
/home/rdaneel/RI/nupic.cpp/src/htm/algorithms/Connections.hpp:602:24: error: enclosing class of constexpr non-static member function ‘htm::Permanence htm::Connections::getConnectedThreshold() const’ is not a literal type
constexpr Permanence getConnectedThreshold() const noexcept { return connectedThreshold_; }
^

Any ideas? Is there a script to setup and install everything in a virtualenv? I'm trying to make this easy for everyone but as far as I see it seems its not that straightforward.

Any help would be appreciated

EDIT: Ubuntu18.04 build is OK, on Ubuntu 16.04 there are some problems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions