-
Notifications
You must be signed in to change notification settings - Fork 21
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
Installation/build issue - Any doc for installation steps? #132
Comments
@constantinpape can maybe help, also his fork (https://github.com/constantinpape/nifty) is way more up to date then mine, but on a first glence it looks like z5 is missing which can be found here |
Apparently, it can not find where How and where to define manually those 2 paths in order that examples of the related errors:
|
Could you paste the full cmake command you are using please? Also, which OS are you on? If you want to install from a conda environment, I would recommend to run it like this: cmake -DCMAKE_PREFIX_PATH=/path/to/conda/env -DNUMPY_INCLUDE_DIR=/path/to/conda/env/lib/python3.7/site-pacakges/numpy/core/include ... It should pick z5 automatically (if it is installed to this environment) and find numpy by specifying the include dir. Note that I recently fixed a few minor CMake issues on my fork of nifty, so maybe it would help if you check it out. (I will try to merge this soon, but I am currently updating a few features and want to finish this first.) |
actually, I am trying to install from a conda environment, mine was a 'conda build' command (I saw it in the README file located at the folder What is your full cmake command please ? Thanks! By the way, I am on linux |
This is the command to build the conda package, which just wraps cmake; it's easier to use cmake directly. I just checked the README, and the installation instructions were outdated.
Let me know if it does not work, then I will update the instructions on how to build from source and we can try with CMake. |
thanks for your reply! It did work out with your command. I could be able to import Essentially, since I passed some time with compilation issues, I am interested in compiling from source with CMake. Could you please share with me your Cmake commands ? What I tried is the following:
but it gave me an error related to pybind11, e.g.
Thanks in advance! |
Unfortunately not.
Can you check which version of pybind11 you are using? I think I have seen this before and fixed it on my branch, can you try building from there? |
Regarding Actually, I was talking about your code. The compilation issue about When you have some time, if you can test the installation steps (on a new environment), I would be grateful! Thanks! |
Ok, I will look into it later. |
Indeed, the build is broken with pybind11 >= 2.4; see #133. I have also added a section on how to build from source to my branch: Hope this helps and let me know if you run into more issues. |
Thank you very much for you help! I was able to build it with the option Nevertheless, I run into some issues with other options, that is,
In the end, I could be able to compile two versions without problem.
I suppose there was something wrong during the compilation. Have you had the same issue before? I mean, would you have an idea what can be the possible reason(s) which allows to compile the code, but we can not use it in execution? Thanks in advance! |
Glad it works now.
Do you need any Gurobi functionality? |
Actually, for now I do not need any Gurobi functionality. I just thought that allowing Gurobi would mean to get the exact or LP relaxation solutions, so that would be nice. |
Yes, that's true. Anyway, thanks for reporting the issue! |
First, I would like to thank you for this github repo! Thanks to python API its use should be easier.
This is why I would like to install the program through anaconda (as you recommend). If possible, I would like to ask you to provide some installation steps for:
In the following, I explain what I tried since yesterday:
According to the
readme
file, the program is supposed to run with one simple line command:GUROBI_ROOT_DIR=/path/to/gurobi conda install -c cpape nifty-with-gurobi
. However, it did not work out, since it does not found the package nifty-with-gurobi in the current channel of anaconda. My second attempt was to buildnifty
by using this commandconda build conda-recipe
. However, I had many issues during build process. The last one was this one:Thanks in advance!
Nejat
The text was updated successfully, but these errors were encountered: