-
Notifications
You must be signed in to change notification settings - Fork 122
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
Remove lpsolve external libraries #149
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this PR!
It is a good start in general. There are some issues though.
First you have to branch from the current develop, now it seems that there are some commits here not related to this PR. A merge with current develop should fix that issue.
Second, and most important, you have to remove lp_solve library from external and see if your approach is working. Actually this is the main reason of doing this.
I had a quick question. Currently, the cmake file is downloading and building the lp_solve in the test folder. After removing the files of lp_solver from the external folder, do I need to relocate the build to the external folder or does it work if it stays in the test folder? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fine
I have removed the lp_solve files from the external folder and made the cmake file such that it download the source code in the test folder called _deps. I have modified the CMakeLists.txt file in the test folder to change the path of lp_solver to the _deps folder. I tested the file and it built successfully and passed all the tests. Also, I wanted to add that the issue that I described here: #149 (comment) only happens when the program is run in WSL. |
It seems that the tests are failing on cicleci see https://app.circleci.com/pipelines/github/GeomScale/volume_approximation/604/workflows/735a37af-5a38-4129-859a-71accc4db5ef/jobs/815
|
You maybe want to try to check the CI environments locally e.g. https://circleci.com/docs/2.0/local-cli/ and https://github.com/nektos/act |
68a2d7d
to
dbab7de
Compare
dbab7de
to
0ae35a6
Compare
@vissarion I have passed the circleci build |
I studied all the failed tests and found that while constructing the cran_package from cran_gen we are copying all the necessary files. Due to this, genCRANpkg.R is trying to copy the lp solver from its older location in the external folder. As we have removed the lp solver from the external folder we need to extract it from the build folder which we make after executing the CMakeLists.txt file in the test folder. Since in the automated test we are simply copy pasting the files, is it possible to add cmake commands to build lpSolver and then copy the files? |
This is fixed by #183 |
Created a cmake file to automatically download and build lp solver. The source code was found from sourceforge.net. Closes #141