-
Notifications
You must be signed in to change notification settings - Fork 1
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
osqp build error #3
Comments
installing osqp using ~/bin/R works,
so I guess there is some issue with osqp not seeing the right place to install when we use ~/R/R-devel/bin/R ? |
the important difference seems to be
vs
|
removing ~/bin from PATH fixed it
|
different lines
vs
|
I did
works if PATH does not include ~/bin, does not work otherwise. |
https://github.com/osqp/osqp/blob/master/configure/cmake/FindR.cmake contains
the docs https://cmake.org/cmake/help/latest/command/find_path.html say that "This command is used to find a directory containing the named file. A cache entry, or a normal variable if NO_CACHE is specified, named by is created to store the result of this command. If the file in a directory is found the result is stored in the variable and the search will not be repeated unless the variable is cleared. If nothing is found, the result will be -NOTFOUND." I put a message before that,
and I see
|
the program comes from this line
which says
meaning R_HOME is correct but R_EXEC is not finding it. it should be searched before path.
|
above is what I tried, which worked. actually there is already a change in https://github.com/osqp/osqp/blob/master/configure/cmake/FindR.cmake
and that works too, so no need to file issue/pr with osqp, just need to use their dev version, or wait until they release their new code. |
not sure if we need to fix this, or osqp does
The text was updated successfully, but these errors were encountered: