-
Notifications
You must be signed in to change notification settings - Fork 279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Independent Build Process #33
Conversation
This commit includes the compilation of the dynamic/static libraries that compose nupic.core. They are generated by default on nupic.core/build/release folder, however any user could change its destination using "cmake -DPROJECT_BUILD_RELEASE_DIR=…" command line. Thought this option, Travis at nupic repo will compile the static libraries and put them on /external folder. Note that neither HtmTest not TestEverything was included, they still are hybrid and Python test need be removed from them.
Hi Matt, Actually CMake 2.8.8 have a new keyword called OBJECT which is used within We could remove OBJECT keyword (in other words, remove |
Note the main ouput is |
I created a ticket against Travis for this. A workaround would be to update the |
Hi Matt, regarding to Travis script, the only artifact that need be saved is the |
@david-ragazzi Cool. I haven't been following the details lately, but does that directory also have the required header files? |
@subutai You're right. I simply forgot include header files once it is a library to be linked. My mistake. Well, we could write a code to get all header files and put them in |
OK, thanks. We don't have the formal API defined yet, so it's hard to know exactly what files are required. One issue is that the |
Yeah, this way just we copy header's folder to
to:
|
Don't worry Subutai, I compiled |
On Thu, Mar 6, 2014 at 12:10 PM, david-ragazzi notifications@github.comwrote:
|
Yeah, at first moment yes, but I would consider strongly use |
@rhyolight Up to the moment, the following artifacts at
In other words, the entire |
How about |
Could be, but in this case, I still would prefer
|
Yes, I prefer |
OK. |
@rhyolight Have you managed update CMake at Travis to 2.8.8? Otherwise, I'll try remove object libraries to status is green. |
@david-ragazzi I won't be able to get it done today. It involves compiling a 64b binary of cmake in the proper environment, uploading it to S3, and downloading it with the build script to install it. I think it will be a lot less work to remote the object libraries for now. |
Here we go, glentemen.. Travis is green with my 2 last commits.. @breznak I added the same warning flags from your CMake file PR at Nupic (Curiosly my fork is red because build is presenting error at GCC environment, at least CLang passed in all tests.. I hope that my Travis file is missing something...) |
Update: This weekend I managed isolate pynode tests from htmtest and testeverything and now these tests are pure c++ tests (which is a good news). I moved them to nupic.core (although them also can be copied to nupic and called from it). Today I'll check what's is the problem with pynode. After all ok, they will be a small set within of nupic. In future, they will be moved to |
I ended working on my forks in order to avoid confusion.. After everything fine, I'll compare the repos indicated by you and pull a request.. The problem is that I had deleted my fork and forked them again which makes your permissions get lost.. I gave permissions again to you and now you can follow everything what is happening... The branchs I'm working: |
@subutai I'm working on this! After everything ok, it will be a very small set of tests within |
@david-ragazzi Thanks David. Your suggestion makes sense. Let us know if you need any help with debugging, etc. |
Ok, I think this has Travis-CI all confused, and it is not running builds against your new fork. Can you close this PR and create a new one from your master branch? |
@david-ragazzi The good thing is that Travis is building off your pushes to your master branch: https://travis-ci.org/david-ragazzi/nupic.core But this PR is not getting status updates from Travis from this, probably because what you mentioned earlier (deleting and recreating your fork). |
FYI: Travis has gotten confused, and won't update the Github status for any PRs associated with @david-ragazzi's fork. So ignore the status on this PR and watch Travis here: https://travis-ci.org/david-ragazzi/nupic.core |
So @david-ragazzi, it looks like you are 1/2 there. Travis build is building and running tests in clang, but not gcc: |
I had told this in other message.. Curiosily it passed in other branchs... |
Update: A bad news: I still didn't fix pynode issues. An excellent news: Yesterday I was able to compile
In other words, now |
Congratulations! |
@david-ragazzi That's great! I guess you have these changes locally, right? Because I don't see any new builds running on travis today. Can you push your changes to your remote so we can see what happens with Travis? |
Well, I finally found what was problem with PyNode.. I had said that nupic.core passed on all tests when was compiled directly by nupic cmake file, but not when was compiled by nupic.core cmake file. The question is that I had removed all python flags ( In other words, a few python flags should be passed to nupic.core from nupic cmake file untill all python support be definitily removed (I don't feel skilled enough to remove this support because this integration still is a little confuse to me). Anyway, this doesn't hinder those programmers that want consume a pure C++ API without have python installed on their computers, but this is a "white elephant" within nupic.core.. |
Hi @rhyolight , ASAP I have a more stable build process I push them.. I feel that the current state could hinder any conclusions.. :-( |
@david-ragazzi Well ok. But no one can help you if you don't push. 😕 |
@rhyolight You're right.. I just push last changes to nupic and nupic.core : Nupic: https://github.com/david-ragazzi/nupic (master) |
Ok, when I passed some py flags to nupic.core CMake ( But I now I get:
Some idea?? |
Ok, PyNode tests finally passed. I had to create a CMake file again from CMake at nupic being careful on not excluding any compiler flags.. And it works! Now I will commit from scratch to ease the review work (if I pull alll now, github won't show changes individually, and you will have dificulty to know that was changed). |
@david-ragazzi That's great, David. Sorry I haven't been keeping up with your progress this week. Been busy with other tasks. Let us know what we can do to help you. |
@rhyolight . Yes, it seems the things are working now! Anyway, I just would ask you (team) review and merge the PRs as soon as possible where these get done (I'll communicate when this happen). The problem is that I'm restructuring directories, and this will cause conflicts with existent PRs (bad reference to a file), otherwise we will have rework.. |
@david-ragazzi Just to be totally clear, the PRs you want us to review have not been created yet, is that right? |
Yes, I created just now! #47 |
This commit includes the compilation of the dynamic/static libraries
that compose
nupic.core
. They are generated by default onnupic.core/build/release
folder, however any user could change itsdestination using
cmake -DPROJECT_BUILD_RELEASE_DIR=…
orcmake -DPROJECT_BUILD_TEMP_DIR=…
command line.Thought this option, Travis at
nupic
repo will compile the staticlibraries and put them on
/external
folder.The output of this library is a static library called nupic.core (I linked with HtmTest, TesteEverything, and all is ok.. :-) ). I'm also trying make CMake generate a dynamic library, but without success (problems with dynamic linking).
Note that neither
HtmTest
notTestEverything
were included, they stillare hybrid and Python tests need be removed from them.
This PR replaces this:
#32
fixes #4