One another idea is put the code to run the test in Install scheme in order to Xcode performs operations from setup to debug/tests.
On 7 August 2013 21:50, David Ragazzi <[email protected]> wrote: > Hi guys, > > It seems that I managed setup and install Nupic by Xcode.. :-) > > The question is that Xcode use 2 schemes: > -setup-install: it's preparation of the environment itself > -install: it's build > > When we use only the shell, both schemes are performed by "build.sh" file. > > So, from I understood, one should first set the project to "setup-install" > sheme and run it. And then definitively set the project to "install" scheme > to perform new builds. > > The python config file for "setup-install" is "/(your project > folder)/build_system/contrib/xcode-setup-install.py" > The python config file for "install" is "/(your project > folder)/build_system/contrib/make.py" > > Both files were bugged and I fixed them. > > For those know the shell file, you will note that instructions are very > similar. I still don't checked all differences between them, i.e. the shell > file and the Py files, but it's extremely worth do this. > > Let's go to the fixes.. > > Install: When you try run the project, it shows an error that is related > to a build directory that don't exists, so I changed it to "/tmp/ntabuild" > that is the same directory used by the shell file. > Setup-Install: When you try run the project, it show an error that is > related to configure.py file, the problem is that the buildStyle is always > empty in "configureCmd += ' --mode=%s' % buildStyle". I don't know why > os.environ['BUILD_STYLE'] doesn't working. Anyway, I changed this line > to "configureCmd += ' --mode=release'". I know this is an horrible hack but > this is until we realize why os.environ['BUILD_STYLE'] is empty. > > My settings: > OSX 10.7.2 (Lion) > XCode 4.2 > > I attached the 2 files with the changes. Note that I still didn't run the > tests by Xcode, only the builds that presented "Success" messages, but I > believe we are in good progress. > > Cheers, David > > > > > > > > On 7 August 2013 14:44, Patrick Higgins <[email protected]> wrote: > >> I tried that: >> >> make: *** No rule to make target `install'. Stop. >> Build failed. Error 512 >> Command build_system/contrib/make.py failed with exit code 1 >> >> >> I've got to get to work, but I'll take a look at this >> later today when I'm done drafting... >> >> >> >> Patrick >> >> On Aug 7, 2013, at 10:20 AM, David Ragazzi wrote: >> >> > Hi Patrick, >> > >> > It is the same problem I got. You should create >> '/Users/Patrick/nupic-master/build/Debug' manually. >> > >> > David >> >> >> _______________________________________________ >> 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
