numenta / nupic.core-legacy

Implementation of core NuPIC algorithms in C++ (under construction)
http://numenta.org
GNU Affero General Public License v3.0
272 stars 276 forks source link

cmake creates scripts in wrong directory #853

Open SaganBolliger opened 8 years ago

SaganBolliger commented 8 years ago

I'm trying to install nupic.core on Ubuntu 12.04.5 LTS with cmake version 2.8.7. When I create the directory $NUPIC_CORE/build/scripts and run cmake $NUPIC_CORE -DCMAKE_INSTALL_PREFIX=../release -DPY_EXTENSIONS_DIR=$NUPIC_CORE/bindings/py/nupic/bindings from within it, I get the following output:

Doing a local build
GNU gold (GNU Binutils for Ubuntu 2.22) 1.11
Copyright 2011 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.
Using ld.gold as LINKER.
-- PYTHON_EXECUTABLE   = /usr/bin/python
-- PYTHON_INCLUDE_DIRS = /usr/include/python2.7
-- PYTHON_LIBRARIES    = /usr/lib/libpython2.7.so
-- CAPNP_EXECUTABLE   = /home/sbolliger/nupic.core/ThirdParty/Install/bin/capnp
-- CAPNP_DEFINITIONS   = -DCAPNP_LITE=0
-- CAPNP_INCLUDE_DIRS  = /home/sbolliger/nupic.core/ThirdParty/Install/include
-- CAPNP_LIBRARIES     = /home/sbolliger/nupic.core/ThirdParty/Install/lib/libcapnpc.a;/home/sbolliger/nupic.core/ThirdParty/Install/lib/libcapnp.a;/home/sbolliger/nupic.core/ThirdParty/Install/lib/libkj.a
-- CAPNP_LIBRARIES_LITE= /home/sbolliger/nupic.core/ThirdParty/Install/lib/libcapnp.a;/home/sbolliger/nupic.core/ThirdParty/Install/lib/libkj.a
-- PYCAPNP             = /usr/local/lib/python2.7/dist-packages
-- Configuring done
-- Generating done
-- Build files have been written to: /home/sbolliger/nupic.core

In particular, note that the cmake files are created in /home/sbolliger/nupic.core rather than the current directory (/home/sbolliger/nupic.core/build/scripts) as expected. This is at odds with the documentation that then instructs the user to run make from within the same directory.

$NUPIC_CORE is set to /home/sbolliger/nupic.core.

@scottpurdy

vitaly-krugl commented 8 years ago

@SaganBolliger -- quite a few changes have been made to the cmake scripts in nupic.core since this issue was filed. Would you mind trying this again against the latest nupic.core in master?

Cheers!

CC @rhyolight