OK so I tried a couple things: 1. I tried running
cmake $NUPIC_CORE/src -DCAPNPC_IMPORT_DIRS=/if21/mp3t/install from $NUPIC_CORE/build/scripts and I got the exact same error: CMake Error at CMakeLists.txt:727 (install): install FILES given directory "/if21/mp3t/install/lib" to install. 2. Since I'm also getting the error that pycapnp wasn't found, I tried opening a virtualenv at $NUPIC_CORE, then I ran pip install -r bindings/py/requirements.txt Then I went back and make install'ed the c++ side of capnproto into $NUPIC_CORE/venv Then in $NUPIC_CORE/build/scripts I ran cmake $NUPIC_CORE/src -DCAPNPC_IMPORT_DIRS=/if21/mp3t/nupic.core/venv The output is here: https://gist.github.com/matejaputic/2cda4e8aee5eb603b6b3 By looking at the CMakeCache.txt file, you can see that it can't find any of the libs or includes, but for example, it found CAPNP_EXECUTABLE. I also tried defining CAPNP_INCLUDE_DIRS, CAPNP_LIB_CAPNP, etc. all manually, and it's able to find everything, but it still comes back with the same error that we started with: CMake Error at CMakeLists.txt:727 (install): install FILES given directory "/if21/mp3t/nupic.core/venv/lib" to install. What does this error actually mean? Thanks, M On Mon, Sep 7, 2015 at 2:16 PM, Richard Crowder <[email protected]> wrote: > It's difficult to tell which of the few 'INSTALL(FILES)' sections could be > the problem here. Pls try Austin's suggestion. If possible post your build > logs to Gist etc. so we can narrow down which one, and track down any odd > env vars created on your system during cmake. > > On Mon, Sep 7, 2015 at 10:05 PM, Austin Marshall <[email protected]> > wrote: > >> I suspect you need only "-DCAPNPC_IMPORT_DIRS=/if21/mp3t/install" >> On Sep 7, 2015 11:05 AM, "Mateja Putic" <[email protected]> wrote: >> >>> Richard, thank you! That worked, to a point. Now I am getting the error: >>> >>> CMake Error at CMakeLists.txt:727 (install): >>> install FILES given directory "/if21/mp3t/install/lib" to install. >>> >>> when I run: >>> >>> cmake $NUPIC_CORE/src >>> -DCAPNPC_IMPORT_DIRS=/if21/mp3t/install/bin:/if21/mp3t/install/include:/if21/mp3t/install/lib >>> >>> from $NUPIC_CORE/build/scripts >>> >>> I don't understand what the error is. It's simply stating that it was >>> given the directory "/if21/mp3t/install/lib" to install, and I have >>> permission to install there, so I don't understand what other problem it >>> could be. >>> >>> Many thanks, >>> >>> On Mon, Sep 7, 2015 at 1:13 AM, Richard Crowder <[email protected]> >>> wrote: >>> >>>> Hi Mateja, >>>> >>>> Cap'n'Proto is discovered using the src/cmake/FindCapnProto.cmake file. >>>> Inside that text file the header comment mentions variables that it can use >>>> to discover where capnp is installed. >>>> >>>> When you run cmake can you try the following option; >>>> -DCAPNPC_IMPORT_DIRS=/home/mateja/install >>>> >>>> >>>> https://github.com/numenta/nupic.core/blob/master/src/cmake/FindCapnProto.cmake >>>> >>>> >>>> On Mon, Sep 7, 2015 at 8:57 AM, Mateja Putic <[email protected]> wrote: >>>> >>>>> How do I instruct CMake to look for the capnp libraries in a directory >>>>> other than the default? >>>>> >>>>> I am trying to build nupic.core on a machine where I don't have root >>>>> access. I am following instructions from >>>>> https://github.com/numenta/nupic.core. Currently nupic.core won't >>>>> build because CMake can't find capnproto. >>>>> >>>>> I have downloaded capnproto from capnproto.org, built it, and >>>>> installed it in /home/mateja/install >>>>> >>>>> What changes can I make to nupic.core/src/CMakeLists.txt to instruct >>>>> CMake that the capnproto libs are installed in /home/mateja/install? >>>>> >>>>> Many thanks, >>>>> >>>>> -- >>>>> Mr. Mateja Putic >>>>> Ph.D Candidate >>>>> Department of Electrical and Computer Engineering >>>>> University of Virginia >>>>> (703) 303-2099 >>>>> >>>> >>>> >>> >>> >>> -- >>> Mr. Mateja Putic >>> Ph.D Candidate >>> Department of Electrical and Computer Engineering >>> University of Virginia >>> (703) 303-2099 >>> >> > -- Mr. Mateja Putic Ph.D Candidate Department of Electrical and Computer Engineering University of Virginia (703) 303-2099
