Comments (7)
@vissarion ..The interface is working fine.. I directly installed all the dependencies via RStudio. I am facing no issues in the installation.
from volesti.
hello @vissarion ,
I want to work on this issue please assign me.
from volesti.
hello @vissarion , I want to work on this issue please assign me.
hello @vissarion , this may solve this issue, please look at it
The C++ compiler needs to be told to look at this root path instead of /usr/include
. This can be done by setting the CPLUS_INCLUDE_PATH
env variable. We have to also include LLVM’s normal include path because this is where it should search first.
#Adjust your llvm and CLT include paths to match your setup
export CPLUS_INCLUDE_PATH=/usr/local/opt/llvm/include/c++/v1:/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include
This should fix any fatal error: minimum_ellipsoid/khach.h
file not found errors.
We might still run into linker errors like ld: library not found for -lxxx
The linker also needs to be told to look for libraries in the CommandLineTools/Xcode paths by setting the LIBRARY_PATH
env variable.
export LIBRARY_PATH=$LIBRARY_PATH:/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/lib
Make sure to add these export
statements to the .bash_rc
, .zshrc
, .bash_profile
, or whatever shell you use, to make these adjusted environment variables available in all terminals.
from volesti.
I found the issue. See:
Line 1 in ac68063
volesti/include/convex_bodies/vpolytope.h
Line 20 in ac68063
The include flag
-I../../external/minimum_ellipsoid
which should be -I../../external
. There also needs to be an additional change fromto
#include "minimum_ellipsoid/khach.h"
I then ran into another issue where colamd.h
was being found in /usr/local/include
instead of src/external/lpsolve/headers/include
so I rewrote the following two lines
Lines 1 to 2 in ac68063
as
LP_SOLVE_CPPFLAGS=-I../../headers/include \
$(CPPFLAGS) \
-I$(R_INCLUDE_DIR) \
Afterwards I followed the following steps to install the package
- running in R console
install.packages(c('rcmdcheck', 'devtools', 'Rcpp', 'RcppEigen', 'BH', 'testthat', 'downloader', 'xfun'))
followed bysetwd("/Users/rjian/volesti/cran_gen")
- running
genCRANpkg.R
- running in R console
setwd("/Users/rjian/volesti/cran_gen/cran_package")
followed bydevtools::install()
The context for running these steps instead of the instructions in the docs
Rscript -e 'Rcpp::compileAttributes()'
R CMD INSTALL --no-multiarch --with-keep.source .
is that
Lines 11 to 12 in ac68063
Rproj_externals
(containing the lp_solve source) from the repo and replaced it with a download in genCRANpkg.R
In retrospect maybe I should've just tried installing from master instead of develop, I'm not even trying to make any changes to the R interface.
from volesti.
Indeed the correct way of building and running the R interface is via genCRANpkg.R
and this should be updated in the docs.
from volesti.
can i also work on this issue
from volesti.
I am able to install the complete interface. I am using Rstudio version 4.22
from volesti.
Related Issues (20)
- Volesti v1.1.4 installation failure (R interface) HOT 3
- Volesti 1.1.4 installation error
- Wrong volume computation HOT 1
- some logconcave examples are not working with MKL HOT 10
- Invalid output when sampling from hpolytope HOT 3
- Segfault sampling from HPolytope in R HOT 4
- Bug with doctest v.1.2.9 on Ubuntu 22.04
- Sampling polytopes with constraints in equality form HOT 2
- Set random seed in MC integration HOT 7
- Change to new cran checks badge URL HOT 2
- Convex polytopes defined by equality constraints return wrong results HOT 2
- Error on Compilation HOT 15
- Discrepancy between HMC output in R and C++ HOT 6
- Examples in optimization_spectrahedra do not compile HOT 2
- Questions about the Billard Walk Implementation HOT 2
- Error is generated while trying to run Volesti in RStudio of Win11 HOT 7
- R interface returns NaN for volume computation HOT 3
- Replace volesti4dingo with develop
- macos/ARM/clang compile errors HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from volesti.